mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-17 10:53:57 +01:00
some consumable compatibility code
This commit is contained in:
1 parent
a2574efb9c
commit
2627aba938
9 files changed
+154
-10
No files matched your search
@@ -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[
|
||||
|
||||
Reference in new issue
Block a user