mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-12 13:59:09 -05:00
Add a default item activation message
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user