pokemon-showdown/mods/gen2/items.js

116 lines
2.3 KiB
JavaScript

'use strict';
exports.BattleItems = {
brightpowder: {
inherit: true,
desc: "An attack against the holder has its accuracy out of 255 lowered by 20.",
onModifyAccuracy: function (accuracy) {
if (typeof accuracy !== 'number') return;
this.debug('brightpowder - decreasing accuracy');
return accuracy - 20;
},
},
berryjuice: {
inherit: true,
isUnreleased: false,
},
dragonfang: {
inherit: true,
desc: "No competitive use.",
onBasePower: function () {},
},
metalpowder: {
inherit: true,
desc: "If held by a Ditto, its Defense and Sp. Def are 1.5x, even while Transformed.",
// In Gen 2 this happens in stat calculation directly.
onModifyDef: function () {},
onModifySpD: function () {},
},
lightball: {
inherit: true,
// In Gen 2 this happens in stat calculation directly.
onModifySpA: function () {},
},
luckypunch: {
inherit: true,
desc: "If held by a Chansey, its critical hit ratio is always at stage 2. (25% crit rate)",
onModifyCritRatioPriority: -1,
onModifyCritRatio: function (critRatio, user) {
if (user.template.species === 'Chansey') {
return 3;
}
},
},
stick: {
inherit: true,
desc: "If held by a Farfetch'd, its critical hit ratio is always at stage 2. (25% crit rate)",
onModifyCritRatioPriority: -1,
onModifyCritRatio: function (critRatio, user) {
if (user.template.species === 'Farfetch\'d') {
return 3;
}
},
},
thickclub: {
inherit: true,
// In Gen 2 this happens in stat calculation directly.
onModifyAtk: function () {},
},
berserkgene: {
inherit: true,
isNonstandard: false,
},
berry: {
inherit: true,
isNonstandard: false,
},
bitterberry: {
inherit: true,
isNonstandard: false,
},
burntberry: {
inherit: true,
isNonstandard: false,
},
dragonscale: {
inherit: true,
isNonstandard: false,
},
goldberry: {
inherit: true,
isNonstandard: false,
},
iceberry: {
inherit: true,
isNonstandard: false,
},
mintberry: {
inherit: true,
isNonstandard: false,
},
miracleberry: {
inherit: true,
isNonstandard: false,
},
mysteryberry: {
inherit: true,
isNonstandard: false,
},
pinkbow: {
inherit: true,
isNonstandard: false,
},
polkadotbow: {
inherit: true,
isNonstandard: false,
},
przcureberry: {
inherit: true,
isNonstandard: false,
},
psncureberry: {
inherit: true,
isNonstandard: false,
},
};