mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-10 17:39:31 +02:00
Removed getPregenArgs
This commit is contained in:
parent
6a097ebb5e
commit
0d6d00a8ef
@ -115,6 +115,7 @@ export abstract class Reward {
|
||||
return i18next.t(`${this.localeKey}.name`);
|
||||
}
|
||||
|
||||
// TODO: These should be getters
|
||||
getDescription(): string {
|
||||
return i18next.t(`${this.localeKey}.description`);
|
||||
}
|
||||
@ -440,11 +441,6 @@ export class ChangeTeraTypeReward extends PokemonReward {
|
||||
});
|
||||
}
|
||||
|
||||
// TODO: What is this for?
|
||||
getPregenArgs(): any[] {
|
||||
return [this.teraType];
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if {@linkcode TerrastalizeConsumable} should be applied
|
||||
* @param playerPokemon The {@linkcode PlayerPokemon} that consumes the item
|
||||
@ -936,10 +932,6 @@ export class AttackTypeBoosterReward extends HeldItemReward {
|
||||
this.moveType = moveType;
|
||||
this.boostPercent = boostPercent;
|
||||
}
|
||||
|
||||
getPregenArgs(): any[] {
|
||||
return [this.moveType];
|
||||
}
|
||||
}
|
||||
|
||||
function incrementLevelWithCandy(pokemon: Pokemon): boolean {
|
||||
@ -1115,10 +1107,6 @@ export class EvolutionItemReward extends PokemonReward {
|
||||
return i18next.t("modifierType:ModifierType.EvolutionItemModifierType.description");
|
||||
}
|
||||
|
||||
getPregenArgs(): any[] {
|
||||
return [this.evolutionItem];
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies {@linkcode EvolutionItemConsumable}
|
||||
* @param playerPokemon The {@linkcode PlayerPokemon} that should evolve via item
|
||||
|
Loading…
Reference in New Issue
Block a user