Remove hp bar segment dividers from base battle info

This commit is contained in:
Sirz Benjie 2025-04-23 11:16:30 -05:00
parent 13cead1d31
commit 386ce7ee2d
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,6 @@ export default abstract class BattleInfo extends Phaser.GameObjects.Container {
protected statusIndicator: Phaser.GameObjects.Sprite;
protected levelContainer: Phaser.GameObjects.Container;
protected hpBar: Phaser.GameObjects.Image;
protected hpBarSegmentDividers: Phaser.GameObjects.Rectangle[];
protected levelNumbersContainer: Phaser.GameObjects.Container;
protected hpNumbersContainer: Phaser.GameObjects.Container;
protected type1Icon: Phaser.GameObjects.Sprite;
@ -165,8 +164,6 @@ export default abstract class BattleInfo extends Phaser.GameObjects.Container {
this.hpBar.setOrigin(0);
this.add(this.hpBar);
this.hpBarSegmentDividers = [];
this.levelNumbersContainer = globalScene.add.container(9.5, globalScene.uiTheme ? 0 : -0.5);
this.levelNumbersContainer.setName("container_level");
this.levelContainer.add(this.levelNumbersContainer);

View File

@ -4,8 +4,9 @@ import BattleFlyout from "../battle-flyout";
import { addTextObject, TextStyle } from "#app/ui/text";
import { addWindow, WindowVariant } from "#app/ui/ui-theme";
import { Stat } from "#enums/stat";
import type { EnemyPokemon } from "#app/field/pokemon";
import i18next from "i18next";
import type { EnemyPokemon } from "#app/field/pokemon";
import type { GameObjects } from "phaser";
export class EnemyBattleInfo extends BattleInfo {
protected player: false = false;
@ -13,6 +14,8 @@ export class EnemyBattleInfo extends BattleInfo {
protected ownedIcon: Phaser.GameObjects.Sprite;
protected flyoutMenu: BattleFlyout;
protected hpBarSegmentDividers: GameObjects.Rectangle[] = [];
// #region Type effectiveness hint objects
protected effectivenessContainer: Phaser.GameObjects.Container;
protected effectivenessWindow: Phaser.GameObjects.NineSlice;