mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-16 09:26:48 -05:00
51 lines
1.0 KiB
JavaScript
51 lines
1.0 KiB
JavaScript
exports.BattleItems = {
|
|
amuletcoin: {
|
|
id: "amuletcoin",
|
|
name: "Amulet Coin",
|
|
num: -1,
|
|
gen: 2,
|
|
desc: "Doubles the amount of money received in trainer battles."
|
|
},
|
|
berry: {
|
|
id: "berry",
|
|
name: "Berry",
|
|
isBerry: true,
|
|
onUpdate: function(pokemon) {
|
|
if (pokemon.hp <= pokemon.maxhp/2) pokemon.eatItem();
|
|
},
|
|
onEat: function(pokemon) {
|
|
this.heal(10);
|
|
},
|
|
num: -2,
|
|
gen: 2,
|
|
desc: "Restores 10 HP when the holder of this item is at 50% HP or less. One-time use."
|
|
},
|
|
dragonfang: {
|
|
inherit: true,
|
|
onBasePower: null
|
|
},
|
|
dragonscale: {
|
|
id: "dragonscale",
|
|
name: "Dragon Scale",
|
|
num: -3,
|
|
gen: 2,
|
|
desc: "Evolves Seadra into Kingdra. Raises power of Dragon-type moves by 10%."
|
|
},
|
|
lightball: {
|
|
inherit: true,
|
|
onModifyAtk: null
|
|
},
|
|
metalpowder: {
|
|
inherit: true,
|
|
onModifyDef: function(def, pokemon) {
|
|
if (pokemon.template.species === 'Ditto') {
|
|
return def * 1.5;
|
|
}
|
|
},
|
|
onModifySpD: function(def, pokemon) {
|
|
if (pokemon.template.species === 'Ditto') {
|
|
return def * 1.5;
|
|
}
|
|
}
|
|
}
|
|
}; |