Add starter select ability selection
This commit is contained in:
1 parent
bb86ab6250
commit
592ccc7c6a
9 files changed
+190
-47
No files matched your search
@@ -59,10 +59,18 @@ export abstract class PokemonSpeciesForm {
|
||||
this.genderDiffs = genderDiffs;
|
||||
}
|
||||
|
||||
isOfType(type: integer) {
|
||||
isOfType(type: integer): boolean {
|
||||
return this.type1 === type || (this.type2 !== null && this.type2 === type);
|
||||
}
|
||||
|
||||
getAbilityCount(): integer {
|
||||
return this.ability2 ? this.abilityHidden ? 3 : 2 : this.abilityHidden ? 2 : 1;
|
||||
}
|
||||
|
||||
getAbility(abilityIndex: integer): Abilities {
|
||||
return !abilityIndex ? this.ability1 : abilityIndex === 1 && this.ability2 ? this.ability2 : this.abilityHidden
|
||||
}
|
||||
|
||||
getSpriteAtlasPath(female: boolean, formIndex?: integer, shiny?: boolean): string {
|
||||
return this.getSpriteId(female, formIndex, shiny).replace(/\_{2}/g, '/');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user