mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 14:22:19 +02:00
Compare commits
No commits in common. "bd4729b4c5f9c38addfadf662f002572b95b9fa9" and "ebb09dda34f0d5a369939684c36665332404baf5" have entirely different histories.
bd4729b4c5
...
ebb09dda34
@ -367,10 +367,6 @@ export abstract class LapsingPersistentModifier extends PersistentModifier {
|
|||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
||||||
getIconStackText(_scene: BattleScene, _virtual?: boolean): Phaser.GameObjects.BitmapText | null {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
getBattleCount(): number {
|
getBattleCount(): number {
|
||||||
return this.battleCount;
|
return this.battleCount;
|
||||||
}
|
}
|
||||||
@ -388,8 +384,7 @@ export abstract class LapsingPersistentModifier extends PersistentModifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getMaxStackCount(_scene: BattleScene, _forThreshold?: boolean): number {
|
getMaxStackCount(_scene: BattleScene, _forThreshold?: boolean): number {
|
||||||
// Must be an abitrary number greater than 1
|
return 1;
|
||||||
return 2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -792,7 +787,7 @@ export class TerastallizeModifier extends LapsingPokemonHeldItemModifier {
|
|||||||
/**
|
/**
|
||||||
* Modifier used for held items, specifically vitamins like Carbos, Hp Up, etc., that
|
* Modifier used for held items, specifically vitamins like Carbos, Hp Up, etc., that
|
||||||
* increase the value of a given {@linkcode PermanentStat}.
|
* increase the value of a given {@linkcode PermanentStat}.
|
||||||
* @extends PokemonHeldItemModifier
|
* @extends LapsingPersistentModifier
|
||||||
* @see {@linkcode apply}
|
* @see {@linkcode apply}
|
||||||
*/
|
*/
|
||||||
export class BaseStatModifier extends PokemonHeldItemModifier {
|
export class BaseStatModifier extends PokemonHeldItemModifier {
|
||||||
|
@ -43,9 +43,9 @@ export class EggSummaryPhase extends Phase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
end() {
|
end() {
|
||||||
|
this.eggHatchHandler.clear();
|
||||||
|
this.scene.ui.setModeForceTransition(Mode.MESSAGE).then(() => {});
|
||||||
this.scene.time.delayedCall(250, () => this.scene.setModifiersVisible(true));
|
this.scene.time.delayedCall(250, () => this.scene.setModifiersVisible(true));
|
||||||
this.scene.ui.setModeForceTransition(Mode.MESSAGE).then(() => {
|
super.end();
|
||||||
super.end();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,6 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
|
|||||||
this.pokemonIconsContainer.removeAll(true);
|
this.pokemonIconsContainer.removeAll(true);
|
||||||
this.eggHatchBg.setVisible(false);
|
this.eggHatchBg.setVisible(false);
|
||||||
this.getUi().hideTooltip();
|
this.getUi().hideTooltip();
|
||||||
|
|
||||||
// Note: Questions on garbage collection go to @frutescens
|
// Note: Questions on garbage collection go to @frutescens
|
||||||
const activeKeys = this.scene.getActiveKeys();
|
const activeKeys = this.scene.getActiveKeys();
|
||||||
// Removing unnecessary sprites from animation manager
|
// Removing unnecessary sprites from animation manager
|
||||||
@ -118,6 +117,7 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
|
|||||||
this.eggHatchData.length = 0;
|
this.eggHatchData.length = 0;
|
||||||
// Removes Pokemon icons in EggSummaryUiHandler
|
// Removes Pokemon icons in EggSummaryUiHandler
|
||||||
this.iconAnimHandler.removeAll();
|
this.iconAnimHandler.removeAll();
|
||||||
|
console.log("Egg Summary Handler cleared");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -256,6 +256,7 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
|
|||||||
if (phase instanceof EggSummaryPhase) {
|
if (phase instanceof EggSummaryPhase) {
|
||||||
phase.end();
|
phase.end();
|
||||||
}
|
}
|
||||||
|
ui.revertMode();
|
||||||
success = true;
|
success = true;
|
||||||
} else {
|
} else {
|
||||||
const count = this.eggHatchData.length;
|
const count = this.eggHatchData.length;
|
||||||
|
Loading…
Reference in New Issue
Block a user