module price rendering

This commit is contained in:
tresabhi committed 2026-05-15 10:54:36 -05:00
1 parent 6d2573ee95
commit f0e0d849d5
12 files changed
+269 -91

No files matched your search

+7 -1
View File
@@ -31,7 +31,7 @@ interface LocalizationConfig {
}
export class ServerAPI extends AbstractAPI {
constructor(private metadata: MetadataAccessor) {
constructor(public metadata: MetadataAccessor) {
super();
}
@@ -174,6 +174,12 @@ export class ServerAPI extends AbstractAPI {
return JSON.parse(data) as PopularTanks;
}
@Cache()
async tankUpgradePreset(id: string) {
const item = this.metadata.item(`TankUpgradePricePresetEntity.${id}`);
return item.TankUpgradePricePreset();
}
@Cache()
async tiers() {
const group = this.metadata.group("TankTierEntity");