mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 02:06:07 +00:00
[QOL] Trainers will display their title after defeat in the name box (#3738)
* Enemy trainers will now show their title after defeat
* Basically titles are now always shown (like in the real games)
* Revert "Basically titles are now always shown (like in the real games)"
This reverts commit 6943860539
.
This commit is contained in:
parent
49f4f8ea71
commit
2df5da2f61
@ -1,6 +1,5 @@
|
|||||||
import BattleScene from "#app/battle-scene.js";
|
import BattleScene from "#app/battle-scene.js";
|
||||||
import { getCharVariantFromDialogue } from "#app/data/dialogue.js";
|
import { getCharVariantFromDialogue } from "#app/data/dialogue.js";
|
||||||
import { TrainerSlot } from "#app/data/trainer-config.js";
|
|
||||||
import { TrainerType } from "#app/enums/trainer-type.js";
|
import { TrainerType } from "#app/enums/trainer-type.js";
|
||||||
import { modifierTypes } from "#app/modifier/modifier-type.js";
|
import { modifierTypes } from "#app/modifier/modifier-type.js";
|
||||||
import { vouchers } from "#app/system/voucher.js";
|
import { vouchers } from "#app/system/voucher.js";
|
||||||
@ -9,6 +8,7 @@ import * as Utils from "#app/utils.js";
|
|||||||
import { BattlePhase } from "./battle-phase";
|
import { BattlePhase } from "./battle-phase";
|
||||||
import { ModifierRewardPhase } from "./modifier-reward-phase";
|
import { ModifierRewardPhase } from "./modifier-reward-phase";
|
||||||
import { MoneyRewardPhase } from "./money-reward-phase";
|
import { MoneyRewardPhase } from "./money-reward-phase";
|
||||||
|
import { TrainerSlot } from "#app/data/trainer-config";
|
||||||
|
|
||||||
export class TrainerVictoryPhase extends BattlePhase {
|
export class TrainerVictoryPhase extends BattlePhase {
|
||||||
constructor(scene: BattleScene) {
|
constructor(scene: BattleScene) {
|
||||||
@ -42,7 +42,7 @@ export class TrainerVictoryPhase extends BattlePhase {
|
|||||||
|
|
||||||
const showMessage = () => {
|
const showMessage = () => {
|
||||||
const originalFunc = showMessageOrEnd;
|
const originalFunc = showMessageOrEnd;
|
||||||
showMessageOrEnd = () => this.scene.ui.showDialogue(message, this.scene.currentBattle.trainer?.getName(), null, originalFunc);
|
showMessageOrEnd = () => this.scene.ui.showDialogue(message, this.scene.currentBattle.trainer?.getName(TrainerSlot.TRAINER, true), null, originalFunc);
|
||||||
|
|
||||||
showMessageOrEnd();
|
showMessageOrEnd();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user