Display enemy trainer briefly when switching
This commit is contained in:
1 parent
aa13562433
commit
4e93f1e52c
20 files changed
+100
-68
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { CommandPhase } from "../battle-phases";
|
||||
import { CommandPhase } from "../phases";
|
||||
import BattleScene, { Button } from "../battle-scene";
|
||||
import { getPokeballName, PokeballType } from "../data/pokeball";
|
||||
import { addTextObject, TextStyle } from "./text";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CommandPhase } from "../battle-phases";
|
||||
import { CommandPhase } from "../phases";
|
||||
import BattleScene, { Button } from "../battle-scene";
|
||||
import { addTextObject, TextStyle } from "./text";
|
||||
import PartyUiHandler, { PartyUiMode } from "./party-ui-handler";
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Command } from "./command-ui-handler";
|
||||
import { Mode } from "./ui";
|
||||
import UiHandler from "./ui-handler";
|
||||
import * as Utils from "../utils";
|
||||
import { CommandPhase } from "../battle-phases";
|
||||
import { CommandPhase } from "../phases";
|
||||
|
||||
export default class FightUiHandler extends UiHandler {
|
||||
private movesContainer: Phaser.GameObjects.Container;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CommandPhase } from "../battle-phases";
|
||||
import { CommandPhase } from "../phases";
|
||||
import BattleScene, { Button } from "../battle-scene";
|
||||
import { PlayerPokemon, PokemonMove } from "../pokemon";
|
||||
import { addTextObject, TextStyle } from "./text";
|
||||
|
||||
@@ -49,7 +49,7 @@ export default class PokeballTray extends Phaser.GameObjects.Container {
|
||||
if (b >= party.length)
|
||||
ballFrame = 'empty';
|
||||
else if (!party[b].hp)
|
||||
ballFrame = 'fainted';
|
||||
ballFrame = 'faint';
|
||||
else if (party[b].status)
|
||||
ballFrame = 'status';
|
||||
ball.setFrame(ballFrame);
|
||||
|
||||
Reference in new issue
Block a user