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).
|
||||
*/
|
||||
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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user