mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-19 13:45:19 -05:00
68 lines
1.9 KiB
JavaScript
Executable File
68 lines
1.9 KiB
JavaScript
Executable File
'use strict';
|
|
/**@type {{[k: string]: ModdedItemData}} */
|
|
let BattleItems = {
|
|
aguavberry: {
|
|
inherit: true,
|
|
desc: "Restores 1/2 max HP at 1/4 max HP or less; confuses if -SpD Nature. Single use.",
|
|
onEat(pokemon) {
|
|
this.heal(pokemon.maxhp / 2);
|
|
if (pokemon.getNature().minus === 'spd') {
|
|
pokemon.addVolatile('confusion');
|
|
}
|
|
},
|
|
},
|
|
figyberry: {
|
|
inherit: true,
|
|
desc: "Restores 1/2 max HP at 1/4 max HP or less; confuses if -Atk Nature. Single use.",
|
|
onEat(pokemon) {
|
|
this.heal(pokemon.maxhp / 2);
|
|
if (pokemon.getNature().minus === 'atk') {
|
|
pokemon.addVolatile('confusion');
|
|
}
|
|
},
|
|
},
|
|
iapapaberry: {
|
|
inherit: true,
|
|
desc: "Restores 1/2 max HP at 1/4 max HP or less; confuses if -Def Nature. Single use.",
|
|
onEat(pokemon) {
|
|
this.heal(pokemon.maxhp / 2);
|
|
if (pokemon.getNature().minus === 'def') {
|
|
pokemon.addVolatile('confusion');
|
|
}
|
|
},
|
|
},
|
|
icestone: {
|
|
inherit: true,
|
|
desc: "Evolves Alolan Sandshrew into Alolan Sandslash and Alolan Vulpix into Alolan Ninetales when used.",
|
|
},
|
|
leafstone: {
|
|
inherit: true,
|
|
desc: "Evolves Gloom into Vileplume, Weepinbell into Victreebel, Exeggcute into Exeggutor or Alolan Exeggutor, Nuzleaf into Shiftry, and Pansage into Simisage when used.",
|
|
},
|
|
magoberry: {
|
|
inherit: true,
|
|
desc: "Restores 1/8 max HP at 1/2 max HP or less; confuses if -Spe Nature. Single use.",
|
|
onEat(pokemon) {
|
|
this.heal(pokemon.maxhp / 2);
|
|
if (pokemon.getNature().minus === 'spe') {
|
|
pokemon.addVolatile('confusion');
|
|
}
|
|
},
|
|
},
|
|
thunderstone: {
|
|
inherit: true,
|
|
desc: "Evolves Pikachu into Raichu or Alolan Raichu, Eevee into Jolteon, and Eelektrik into Eelektross when used.",
|
|
},
|
|
wikiberry: {
|
|
inherit: true,
|
|
desc: "Restores 1/2 max HP at 1/4 max HP or less; confuses if -SpA Nature. Single use.",
|
|
onEat(pokemon) {
|
|
this.heal(pokemon.maxhp / 2);
|
|
if (pokemon.getNature().minus === 'spa') {
|
|
pokemon.addVolatile('confusion');
|
|
}
|
|
},
|
|
},
|
|
};
|
|
exports.BattleItems = BattleItems;
|