fix first voucher description (#1710)

This commit is contained in:
José Ricardo Fleury Oliveira 2024-06-01 23:30:22 -03:00 committed by GitHub
parent 902d4df1a8
commit 655e3ba24c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import BattleScene from "../battle-scene";
import { TrainerType } from "../data/enums/trainer-type";
import { Achv, AchvTier, achvs } from "./achv";
import i18next from "../plugins/i18n";
import { Achv, AchvTier, achvs, getAchievementDescription } from "./achv";
export enum VoucherType {
REGULAR,
@ -96,7 +96,7 @@ const voucherAchvs: Achv[] = [ achvs.CLASSIC_VICTORY ];
: achv.score >= 75
? VoucherType.PLUS
: VoucherType.REGULAR;
vouchers[achv.id] = new Voucher(voucherType, achv.description);
vouchers[achv.id] = new Voucher(voucherType, getAchievementDescription(achv.localizationKey));
}
const bossTrainerTypes = Object.keys(trainerConfigs)

View File

@ -1,11 +1,11 @@
import BattleScene from "../battle-scene";
import { Button } from "../enums/buttons";
import i18next from "../plugins/i18n";
import { Voucher, getVoucherTypeIcon, getVoucherTypeName, vouchers } from "../system/voucher";
import MessageUiHandler from "./message-ui-handler";
import { TextStyle, addTextObject } from "./text";
import { Mode } from "./ui";
import { addWindow } from "./ui-theme";
import {Button} from "../enums/buttons";
import i18next from "../plugins/i18n";
const itemRows = 4;
const itemCols = 17;