initVouchers correctly (#1940)
This commit is contained in:
parent
bf5b6e3f6b
commit
9c97e37c27
|
@ -20,6 +20,7 @@ import {initAchievements} from "#app/system/achv";
|
|||
import {initTrainerTypeDialogue} from "#app/data/dialogue";
|
||||
import i18next from "i18next";
|
||||
import { initStatsKeys } from "./ui/game-stats-ui-handler";
|
||||
import { initVouchers } from "./system/voucher";
|
||||
|
||||
export class LoadingScene extends SceneBase {
|
||||
constructor() {
|
||||
|
@ -329,6 +330,7 @@ export class LoadingScene extends SceneBase {
|
|||
|
||||
this.loadLoadingScreen();
|
||||
|
||||
initVouchers();
|
||||
initAchievements();
|
||||
initStatsKeys();
|
||||
initPokemonPrevolutions();
|
||||
|
|
|
@ -83,8 +83,7 @@ export const vouchers: Vouchers = {};
|
|||
|
||||
const voucherAchvs: Achv[] = [ achvs.CLASSIC_VICTORY ];
|
||||
|
||||
{
|
||||
(function() {
|
||||
export function initVouchers() {
|
||||
import("../data/trainer-config").then(tc => {
|
||||
const trainerConfigs = tc.trainerConfigs;
|
||||
|
||||
|
@ -120,5 +119,4 @@ const voucherAchvs: Achv[] = [ achvs.CLASSIC_VICTORY ];
|
|||
vouchers[k].id = k;
|
||||
}
|
||||
});
|
||||
})();
|
||||
}
|
||||
|
|
|
@ -9,7 +9,9 @@ import {initSpecies} from "#app/data/pokemon-species";
|
|||
import {initMoves} from "#app/data/move";
|
||||
import {initAbilities} from "#app/data/ability";
|
||||
import {initAchievements} from "#app/system/achv.js";
|
||||
import { initVouchers } from "#app/system/voucher.js";
|
||||
|
||||
initVouchers();
|
||||
initAchievements();
|
||||
initStatsKeys();
|
||||
initPokemonPrevolutions();
|
||||
|
|
Loading…
Reference in New Issue