mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-11 18:09:29 +02:00
Removed unused `turnInitEvent
This commit is contained in:
parent
c36b0e2744
commit
d21434c32a
@ -20,11 +20,6 @@ export enum BattleSceneEventType {
|
|||||||
* @see {@linkcode EncounterPhaseEvent}
|
* @see {@linkcode EncounterPhaseEvent}
|
||||||
*/
|
*/
|
||||||
ENCOUNTER_PHASE = "onEncounterPhase",
|
ENCOUNTER_PHASE = "onEncounterPhase",
|
||||||
/**
|
|
||||||
* Triggers on the first turn of a new battle
|
|
||||||
* @see {@linkcode TurnInitEvent}
|
|
||||||
*/
|
|
||||||
TURN_INIT = "onTurnInit",
|
|
||||||
/**
|
/**
|
||||||
* Triggers after a turn ends in battle
|
* Triggers after a turn ends in battle
|
||||||
* @see {@linkcode TurnEndEvent}
|
* @see {@linkcode TurnEndEvent}
|
||||||
@ -95,16 +90,6 @@ export class EncounterPhaseEvent extends BattleSceneEvent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Container class for {@linkcode BattleSceneEventType.TURN_INIT} events.
|
|
||||||
*/
|
|
||||||
export class TurnInitEvent extends BattleSceneEvent {
|
|
||||||
declare type: BattleSceneEventType.TURN_INIT;
|
|
||||||
constructor() {
|
|
||||||
super(BattleSceneEventType.TURN_INIT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Container class for {@linkcode BattleSceneEventType.TURN_END} events
|
* Container class for {@linkcode BattleSceneEventType.TURN_END} events
|
||||||
* @extends Event
|
* @extends Event
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { BattlerIndex } from "#enums/battler-index";
|
import { BattlerIndex } from "#enums/battler-index";
|
||||||
import { TurnInitEvent } from "#events/battle-scene";
|
|
||||||
import type { PlayerPokemon } from "#field/pokemon";
|
import type { PlayerPokemon } from "#field/pokemon";
|
||||||
import {
|
import {
|
||||||
handleMysteryEncounterBattleStartEffects,
|
handleMysteryEncounterBattleStartEffects,
|
||||||
@ -46,8 +45,6 @@ export class TurnInitPhase extends FieldPhase {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
globalScene.eventTarget.dispatchEvent(new TurnInitEvent());
|
|
||||||
|
|
||||||
handleMysteryEncounterBattleStartEffects();
|
handleMysteryEncounterBattleStartEffects();
|
||||||
|
|
||||||
// If true, will skip remainder of current phase (and not queue CommandPhases etc.)
|
// If true, will skip remainder of current phase (and not queue CommandPhases etc.)
|
||||||
|
Loading…
Reference in New Issue
Block a user