mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-24 23:30:37 -05:00
Add a default item activation message
This commit is contained in:
parent
7e82afd2de
commit
c1f372b3a7
|
|
@ -60,6 +60,7 @@ exports.BattleText = {
|
|||
useGem: " The [ITEM] strengthened [POKEMON]'s power!",
|
||||
eatItemWeaken: " The [ITEM] weakened damage to [POKEMON]!",
|
||||
removeItem: " [POKEMON] lost its [ITEM]!",
|
||||
activateItem: " ([POKEMON] used its [ITEM]!)",
|
||||
|
||||
damage: " ([POKEMON] was hurt!)",
|
||||
damagePercentage: " ([POKEMON] lost [PERCENTAGE] of its health!)",
|
||||
|
|
|
|||
|
|
@ -473,7 +473,8 @@ class BattleTextParser {
|
|||
const template = this.template('removeItem', kwArgs.from);
|
||||
return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)).replace('[ITEM]', this.effect(item)).replace('[SOURCE]', this.pokemon(kwArgs.of));
|
||||
}
|
||||
const template = this.template('end', item, 'NODEFAULT');
|
||||
let template = this.template('end', item, 'NODEFAULT');
|
||||
if (!template) template = this.template('activateItem').replace('[ITEM]', this.effect(item));
|
||||
return line1 + template.replace('[POKEMON]', this.pokemon(pokemon)).replace('[TARGET]', this.pokemon(kwArgs.of));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user