mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-22 20:17:20 +00:00
- remove any `.js` extension imports - remove unncessary dynamic imports of `modifier.ts` file. The file was being imported statically & dynamically. Made it pure static - increase vite chunk-size warning limit Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>
25 lines
600 B
TypeScript
25 lines
600 B
TypeScript
import BattleScene from "#app/battle-scene";
|
|
import { PlayerGender } from "#app/enums/player-gender";
|
|
import { BattlePhase } from "./battle-phase";
|
|
|
|
export class ShowTrainerPhase extends BattlePhase {
|
|
constructor(scene: BattleScene) {
|
|
super(scene);
|
|
}
|
|
|
|
start() {
|
|
super.start();
|
|
|
|
this.scene.trainer.setVisible(true);
|
|
|
|
this.scene.trainer.setTexture(`trainer_${this.scene.gameData.gender === PlayerGender.FEMALE ? "f" : "m"}_back`);
|
|
|
|
this.scene.tweens.add({
|
|
targets: this.scene.trainer,
|
|
x: 106,
|
|
duration: 1000,
|
|
onComplete: () => this.end()
|
|
});
|
|
}
|
|
}
|