mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 09:19:31 +02:00
Make Switch[Summon]Phase params readonly
This commit is contained in:
parent
039f980a71
commit
8ec56e00ee
@ -10,10 +10,10 @@ import { SwitchSummonPhase } from "./switch-summon-phase";
|
|||||||
* for the player (if a switch would be valid for the current battle state).
|
* for the player (if a switch would be valid for the current battle state).
|
||||||
*/
|
*/
|
||||||
export class SwitchPhase extends BattlePhase {
|
export class SwitchPhase extends BattlePhase {
|
||||||
protected fieldIndex: integer;
|
protected readonly fieldIndex: integer;
|
||||||
private switchType: SwitchType;
|
private readonly switchType: SwitchType;
|
||||||
private isModal: boolean;
|
private readonly isModal: boolean;
|
||||||
private doReturn: boolean;
|
private readonly doReturn: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new SwitchPhase
|
* Creates a new SwitchPhase
|
||||||
|
@ -15,9 +15,9 @@ import { SubstituteTag } from "#app/data/battler-tags";
|
|||||||
import { SwitchType } from "#enums/switch-type";
|
import { SwitchType } from "#enums/switch-type";
|
||||||
|
|
||||||
export class SwitchSummonPhase extends SummonPhase {
|
export class SwitchSummonPhase extends SummonPhase {
|
||||||
private switchType: SwitchType;
|
private readonly switchType: SwitchType;
|
||||||
private slotIndex: integer;
|
private readonly slotIndex: integer;
|
||||||
private doReturn: boolean;
|
private readonly doReturn: boolean;
|
||||||
|
|
||||||
private lastPokemon: Pokemon;
|
private lastPokemon: Pokemon;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user