Removed unused `turnInitEvent

This commit is contained in:
Bertie690 2025-07-25 10:17:10 -04:00
parent c36b0e2744
commit d21434c32a
2 changed files with 0 additions and 18 deletions

View File

@ -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

View File

@ -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.)