From 655e3ba24c9ddd0f35a032f8debe71b8432e1fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ricardo=20Fleury=20Oliveira?= Date: Sat, 1 Jun 2024 23:30:22 -0300 Subject: [PATCH] fix first voucher description (#1710) --- src/system/voucher.ts | 4 ++-- src/ui/vouchers-ui-handler.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system/voucher.ts b/src/system/voucher.ts index b3d9cdd01f7..9381dd650f8 100644 --- a/src/system/voucher.ts +++ b/src/system/voucher.ts @@ -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) diff --git a/src/ui/vouchers-ui-handler.ts b/src/ui/vouchers-ui-handler.ts index 5d45c1d82d2..4508a5be193 100644 --- a/src/ui/vouchers-ui-handler.ts +++ b/src/ui/vouchers-ui-handler.ts @@ -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;