fix first voucher description (#1710)
This commit is contained in:
parent
902d4df1a8
commit
655e3ba24c
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue