mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-13 11:52:18 +02:00
Setting species-variables to read only
This commit is contained in:
parent
8835ae0299
commit
42bbd1cda8
@ -579,15 +579,15 @@ export abstract class PokemonSpeciesForm {
|
|||||||
|
|
||||||
export default class PokemonSpecies extends PokemonSpeciesForm implements Localizable {
|
export default class PokemonSpecies extends PokemonSpeciesForm implements Localizable {
|
||||||
public name: string;
|
public name: string;
|
||||||
public subLegendary: boolean;
|
readonly subLegendary: boolean;
|
||||||
public legendary: boolean;
|
readonly legendary: boolean;
|
||||||
public mythical: boolean;
|
readonly mythical: boolean;
|
||||||
public species: string;
|
readonly species: string;
|
||||||
public growthRate: GrowthRate;
|
readonly growthRate: GrowthRate;
|
||||||
public malePercent: number | null;
|
readonly malePercent: number | null;
|
||||||
public genderDiffs: boolean;
|
readonly genderDiffs: boolean;
|
||||||
public canChangeForm: boolean;
|
readonly canChangeForm: boolean;
|
||||||
public forms: PokemonForm[];
|
readonly forms: PokemonForm[];
|
||||||
|
|
||||||
constructor(id: Species, generation: integer, subLegendary: boolean, legendary: boolean, mythical: boolean, species: string,
|
constructor(id: Species, generation: integer, subLegendary: boolean, legendary: boolean, mythical: boolean, species: string,
|
||||||
type1: Type, type2: Type | null, height: number, weight: number, ability1: Abilities, ability2: Abilities, abilityHidden: Abilities,
|
type1: Type, type2: Type | null, height: number, weight: number, ability1: Abilities, ability2: Abilities, abilityHidden: Abilities,
|
||||||
|
Loading…
Reference in New Issue
Block a user