mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-14 19:39:29 +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`);
|
return i18next.t(`${this.localeKey}.name`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: These should be getters
|
||||||
getDescription(): string {
|
getDescription(): string {
|
||||||
return i18next.t(`${this.localeKey}.description`);
|
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
|
* Checks if {@linkcode TerrastalizeConsumable} should be applied
|
||||||
* @param playerPokemon The {@linkcode PlayerPokemon} that consumes the item
|
* @param playerPokemon The {@linkcode PlayerPokemon} that consumes the item
|
||||||
@ -936,10 +932,6 @@ export class AttackTypeBoosterReward extends HeldItemReward {
|
|||||||
this.moveType = moveType;
|
this.moveType = moveType;
|
||||||
this.boostPercent = boostPercent;
|
this.boostPercent = boostPercent;
|
||||||
}
|
}
|
||||||
|
|
||||||
getPregenArgs(): any[] {
|
|
||||||
return [this.moveType];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function incrementLevelWithCandy(pokemon: Pokemon): boolean {
|
function incrementLevelWithCandy(pokemon: Pokemon): boolean {
|
||||||
@ -1115,10 +1107,6 @@ export class EvolutionItemReward extends PokemonReward {
|
|||||||
return i18next.t("modifierType:ModifierType.EvolutionItemModifierType.description");
|
return i18next.t("modifierType:ModifierType.EvolutionItemModifierType.description");
|
||||||
}
|
}
|
||||||
|
|
||||||
getPregenArgs(): any[] {
|
|
||||||
return [this.evolutionItem];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies {@linkcode EvolutionItemConsumable}
|
* Applies {@linkcode EvolutionItemConsumable}
|
||||||
* @param playerPokemon The {@linkcode PlayerPokemon} that should evolve via item
|
* @param playerPokemon The {@linkcode PlayerPokemon} that should evolve via item
|
||||||
|
Loading…
Reference in New Issue
Block a user