mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 09:19:31 +02:00
Show wave and biome in arena flyout
This commit is contained in:
parent
63604b5a79
commit
1bb9c99cca
@ -14,6 +14,7 @@ import { getNatureDecrease, getNatureIncrease, getNatureName } from "#app/data/n
|
|||||||
import * as LoggerTools from "../logger"
|
import * as LoggerTools from "../logger"
|
||||||
import { BattleEndPhase } from "#app/phases.js";
|
import { BattleEndPhase } from "#app/phases.js";
|
||||||
import { Gender } from "#app/data/gender.js";
|
import { Gender } from "#app/data/gender.js";
|
||||||
|
import { getBiomeName } from "#app/data/biomes.js";
|
||||||
|
|
||||||
/** Enum used to differentiate {@linkcode Arena} effects */
|
/** Enum used to differentiate {@linkcode Arena} effects */
|
||||||
enum ArenaEffectType {
|
enum ArenaEffectType {
|
||||||
@ -200,7 +201,7 @@ export class ArenaFlyout extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
doShinyCharmTooltip() {
|
doShinyCharmTooltip() {
|
||||||
if ((this.scene as BattleScene).currentBattle.waveIndex % 10 == 0 || (this.scene as BattleScene).currentBattle.trainer) {
|
if ((this.scene as BattleScene).currentBattle.waveIndex % 10 == 0) {
|
||||||
this.shinyCharmIcon.setVisible(false)
|
this.shinyCharmIcon.setVisible(false)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -295,6 +296,7 @@ export class ArenaFlyout extends Phaser.GameObjects.Container {
|
|||||||
this.flyoutTextHeaderPlayer.text = ""
|
this.flyoutTextHeaderPlayer.text = ""
|
||||||
this.flyoutTextHeaderEnemy.text = ""
|
this.flyoutTextHeaderEnemy.text = ""
|
||||||
this.flyoutTextHeader.text = "IVs"
|
this.flyoutTextHeader.text = "IVs"
|
||||||
|
this.flyoutTextHeader.text = getBiomeName((this.scene as BattleScene).arena.biomeType) + " - " + (this.scene as BattleScene).currentBattle.waveIndex
|
||||||
for (var i = 0; i < poke.length; i++) {
|
for (var i = 0; i < poke.length; i++) {
|
||||||
if (i == 1 || true) {
|
if (i == 1 || true) {
|
||||||
var formtext = ""
|
var formtext = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user