mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-21 17:19:15 +01:00
[Qol] The title will now be displayed in the voucher overview (and flyout) (#1886)
* The title will now be displayed in the voucher overview * Update src/system/voucher.ts * Intend
This commit is contained in:
parent
ac8ae6c724
commit
1312d4f825
@ -108,12 +108,13 @@ const voucherAchvs: Achv[] = [ achvs.CLASSIC_VICTORY ];
|
|||||||
: VoucherType.PREMIUM;
|
: VoucherType.PREMIUM;
|
||||||
const key = TrainerType[trainerType];
|
const key = TrainerType[trainerType];
|
||||||
const trainerName = trainerConfigs[trainerType].name;
|
const trainerName = trainerConfigs[trainerType].name;
|
||||||
|
const trainer = trainerConfigs[trainerType];
|
||||||
|
const title = trainer.title ? ` (${trainer.title})` : "";
|
||||||
vouchers[key] = new Voucher(
|
vouchers[key] = new Voucher(
|
||||||
voucherType,
|
voucherType,
|
||||||
i18next.t("voucher:defeatTrainer", { trainerName })
|
`${i18next.t("voucher:defeatTrainer", { trainerName })} ${title}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const voucherKeys = Object.keys(vouchers);
|
const voucherKeys = Object.keys(vouchers);
|
||||||
for (const k of voucherKeys) {
|
for (const k of voucherKeys) {
|
||||||
vouchers[k].id = k;
|
vouchers[k].id = k;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user