From 42bbd1cda89825a8aa346b43134317c72ce0fb5d Mon Sep 17 00:00:00 2001 From: frutescens Date: Thu, 5 Sep 2024 09:57:39 -0700 Subject: [PATCH] Setting species-variables to read only --- src/data/pokemon-species.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/data/pokemon-species.ts b/src/data/pokemon-species.ts index 09448b332e4..e7ec33a0260 100644 --- a/src/data/pokemon-species.ts +++ b/src/data/pokemon-species.ts @@ -579,15 +579,15 @@ export abstract class PokemonSpeciesForm { export default class PokemonSpecies extends PokemonSpeciesForm implements Localizable { public name: string; - public subLegendary: boolean; - public legendary: boolean; - public mythical: boolean; - public species: string; - public growthRate: GrowthRate; - public malePercent: number | null; - public genderDiffs: boolean; - public canChangeForm: boolean; - public forms: PokemonForm[]; + readonly subLegendary: boolean; + readonly legendary: boolean; + readonly mythical: boolean; + readonly species: string; + readonly growthRate: GrowthRate; + readonly malePercent: number | null; + readonly genderDiffs: boolean; + readonly canChangeForm: boolean; + readonly forms: PokemonForm[]; 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,