mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-27 01:39:34 +02:00
Remove unnecessary loading of trainer sprites in loading scene
This commit is contained in:
parent
f32e10d549
commit
e556db81cb
@ -1,5 +1,4 @@
|
|||||||
import { GachaType } from "./enums/gacha-types";
|
import { GachaType } from "./enums/gacha-types";
|
||||||
import { trainerConfigs } from "./data/trainer-config";
|
|
||||||
import { getBiomeHasProps } from "./field/arena";
|
import { getBiomeHasProps } from "./field/arena";
|
||||||
import CacheBustedLoaderPlugin from "./plugins/cache-busted-loader-plugin";
|
import CacheBustedLoaderPlugin from "./plugins/cache-busted-loader-plugin";
|
||||||
import { SceneBase } from "./scene-base";
|
import { SceneBase } from "./scene-base";
|
||||||
@ -21,7 +20,6 @@ import i18next from "i18next";
|
|||||||
import { initStatsKeys } from "./ui/game-stats-ui-handler";
|
import { initStatsKeys } from "./ui/game-stats-ui-handler";
|
||||||
import { initVouchers } from "./system/voucher";
|
import { initVouchers } from "./system/voucher";
|
||||||
import { Biome } from "#enums/biome";
|
import { Biome } from "#enums/biome";
|
||||||
import { TrainerType } from "#enums/trainer-type";
|
|
||||||
import {initMysteryEncounters} from "#app/data/mystery-encounters/mystery-encounters";
|
import {initMysteryEncounters} from "#app/data/mystery-encounters/mystery-encounters";
|
||||||
|
|
||||||
export class LoadingScene extends SceneBase {
|
export class LoadingScene extends SceneBase {
|
||||||
@ -208,14 +206,6 @@ export class LoadingScene extends SceneBase {
|
|||||||
this.loadAtlas("trainer_f_back", "trainer");
|
this.loadAtlas("trainer_f_back", "trainer");
|
||||||
this.loadAtlas("trainer_f_back_pb", "trainer");
|
this.loadAtlas("trainer_f_back_pb", "trainer");
|
||||||
|
|
||||||
Utils.getEnumValues(TrainerType).map(tt => {
|
|
||||||
const config = trainerConfigs[tt];
|
|
||||||
this.loadAtlas(config.getSpriteKey(), "trainer");
|
|
||||||
if (config.doubleOnly || config.hasDouble) {
|
|
||||||
this.loadAtlas(config.getSpriteKey(true), "trainer");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Load character sprites
|
// Load character sprites
|
||||||
this.loadAtlas("c_rival_m", "character", "rival_m");
|
this.loadAtlas("c_rival_m", "character", "rival_m");
|
||||||
this.loadAtlas("c_rival_f", "character", "rival_f");
|
this.loadAtlas("c_rival_f", "character", "rival_f");
|
||||||
|
Loading…
Reference in New Issue
Block a user