Make Switch[Summon]Phase params readonly

This commit is contained in:
innerthunder 2024-09-25 10:31:38 -07:00
parent 039f980a71
commit 8ec56e00ee
2 changed files with 7 additions and 7 deletions

View File

@ -10,10 +10,10 @@ import { SwitchSummonPhase } from "./switch-summon-phase";
* for the player (if a switch would be valid for the current battle state).
*/
export class SwitchPhase extends BattlePhase {
protected fieldIndex: integer;
private switchType: SwitchType;
private isModal: boolean;
private doReturn: boolean;
protected readonly fieldIndex: integer;
private readonly switchType: SwitchType;
private readonly isModal: boolean;
private readonly doReturn: boolean;
/**
* Creates a new SwitchPhase

View File

@ -15,9 +15,9 @@ import { SubstituteTag } from "#app/data/battler-tags";
import { SwitchType } from "#enums/switch-type";
export class SwitchSummonPhase extends SummonPhase {
private switchType: SwitchType;
private slotIndex: integer;
private doReturn: boolean;
private readonly switchType: SwitchType;
private readonly slotIndex: integer;
private readonly doReturn: boolean;
private lastPokemon: Pokemon;