RageTag now displays message onAdd

This commit is contained in:
Mason 2024-08-20 12:28:49 -04:00
parent 9e018f4fe4
commit 3407d1100e
2 changed files with 7 additions and 0 deletions

View File

@ -209,6 +209,12 @@ export class RageTag extends BattlerTag {
constructor() { constructor() {
super(BattlerTagType.RAGE,[BattlerTagLapseType.MOVE_EFFECT],1,Moves.RAGE); super(BattlerTagType.RAGE,[BattlerTagLapseType.MOVE_EFFECT],1,Moves.RAGE);
} }
onAdd(pokemon: Pokemon) {
super.onAdd(pokemon);
/* This message might not exist on cartridge */
pokemon.scene.queueMessage(i18next.t("battlerTags:rageOnAdd", {
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon)}));
}
lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType): boolean { lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType): boolean {
if (lapseType === BattlerTagLapseType.MOVE_EFFECT) { if (lapseType === BattlerTagLapseType.MOVE_EFFECT) {

View File

@ -70,5 +70,6 @@ export const battlerTags: SimpleTranslationEntries = {
"cursedOnAdd": "{{pokemonNameWithAffix}} cut its own HP and put a curse on the {{pokemonName}}!", "cursedOnAdd": "{{pokemonNameWithAffix}} cut its own HP and put a curse on the {{pokemonName}}!",
"cursedLapse": "{{pokemonNameWithAffix}} is afflicted by the Curse!", "cursedLapse": "{{pokemonNameWithAffix}} is afflicted by the Curse!",
"stockpilingOnAdd": "{{pokemonNameWithAffix}} stockpiled {{stockpiledCount}}!", "stockpilingOnAdd": "{{pokemonNameWithAffix}} stockpiled {{stockpiledCount}}!",
"rageOnAdd":"{{pokemonNameWithAffix}}'s rage is starting to build",
"rageOnHit": "{{pokemonNameWithAffix}}'s rage is building" "rageOnHit": "{{pokemonNameWithAffix}}'s rage is building"
} as const; } as const;