Skip to content

Commit

Permalink
refactor(scripts): update map zone params in seed script
Browse files Browse the repository at this point in the history
  • Loading branch information
tsa96 committed Aug 31, 2024
1 parent 600feca commit 7638077
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/src/seed.script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ prismaWrapper(async (prisma: PrismaClient) => {
arrayFrom(randRange(vars.bonusesPerMap), (_) =>
randRange({ min: 1, max: 3 })
),
2 ** 16 - 64,
1024,
8192,
512,
512
);

Expand Down Expand Up @@ -1114,9 +1114,12 @@ prismaWrapper(async (prisma: PrismaClient) => {

const mapListJson = JSON.stringify(maps);

// Uncomment below line and import writeFileSync to write this out to disk
// if you want to debug output of this.
// writeFileSync(`./map-list-${type}.json`, mapListJson);
// Uncomment below line to write this out to disk if you want to debug output of this.
// eslint-disable-next-line unicorn/no-await-expression-member
(await import('node:fs')).writeFileSync(
`./map-list-${type}.json`,
mapListJson
);

const compressed = await promisify(zlib.deflate)(mapListJson);
await s3.send(
Expand Down

0 comments on commit 7638077

Please sign in to comment.