some consumable compatibility code

This commit is contained in:
tresabhi committed 2026-05-20 13:48:20 -05:00
1 parent a2574efb9c
commit 2627aba938
9 files changed
+154 -10

No files matched your search

+12
View File
@@ -8,6 +8,7 @@ import type { RemoteStorageComponent } from "@protos/blitz_static_remote_storage
import { Consumables } from "@protos/consumables";
import { Equipment } from "@protos/equipment";
import type { PopularTanks } from "@protos/popular_tanks";
import { Sets } from "@protos/sets";
import type { Tank } from "@protos/tank";
import type { TankListEntry } from "@protos/tank_list";
import { TankUpgradePresets } from "@protos/tank_upgrade_presets";
@@ -294,6 +295,17 @@ export class ServerAPI extends AbstractAPI {
return tierPrices;
}
@Cache()
async sets() {
const sets = Sets.create();
for (const item of this.metadata.group("TankSetEntity")) {
sets.sets[item.id] = item.TankSetCatalog();
}
return sets;
}
@Cache(true)
async strings(locale: string) {
const localized = (await globbedStrings[