feat: gamemode consumable and provisions

This commit is contained in:
TrèsAbhi committed 2024-08-14 14:04:06 -05:00
1 parent 94db2c9159
commit 97b251e3a3
14 files changed
+225 -216

No files matched your search

+5 -3
View File
@@ -3,10 +3,10 @@ import sharp from 'sharp';
import { readDVPLFile } from '../../src/core/blitz/readDVPLFile';
import { commitAssets } from '../../src/core/blitzkit/commitAssets';
import { FileChange } from '../../src/core/blitzkit/commitMultipleFiles';
import { DATA, POI } from './constants';
import { DATA } from './constants';
export async function circleFlags(production: boolean) {
const flags = await readdir(`${DATA}/${POI.flags}`);
const flags = await readdir(`${DATA}/Gfx/Lobby/flags`);
const changes = await Promise.all(
flags
.filter(
@@ -15,7 +15,9 @@ export async function circleFlags(production: boolean) {
!flag.endsWith('@2x.packed.webp.dvpl'),
)
.map(async (flag) => {
const image = sharp(await readDVPLFile(`${DATA}/${POI.flags}/${flag}`));
const image = sharp(
await readDVPLFile(`${DATA}/Gfx/Lobby/flags/${flag}`),
);
const content = (
await image.trim({ threshold: 100 }).toBuffer()
).toString('base64');