pokemon-showdown/mods/gennext/items.js
Guangcong Luo 53af2c8533 NEXT changes:
- buff Snow Cloak, special perfect accuracy moves, Thick Fat, Unown
- unnerf Draco Meteor
- nerf Genesect, freezing
- 95% accurate moves now 100% accurate (except Jump Kick)
- Kyurem-B, Deoxys-D, Latios, Latias to Uber
2012-11-24 11:54:38 -08:00

164 lines
4.1 KiB
JavaScript

exports.BattleItems = {
"burndrive": {
id: "burndrive",
name: "Burn Drive",
spritenum: 103,
fling: {
basePower: 70
},
onStart: function (pokemon) {
if (pokemon.species === 'Genesect') {
this.add('-item', pokemon, 'Burn Drive');
if (pokemon.transformInto('Genesect-Burn')) {
this.add('-formechange', pokemon, 'Genesect-Burn');
}
}
},
onBasePower: function(basePower, user, target, move) {
if (move.id === 'technoblast') {
return basePower * 1.1;
}
},
onDrive: 'Fire',
desc: "Changes Genesect to Genesect-Burn."
},
"chilldrive": {
id: "chilldrive",
name: "Chill Drive",
spritenum: 103,
fling: {
basePower: 70
},
onStart: function (pokemon) {
if (pokemon.species === 'Genesect') {
this.add('-item', pokemon, 'Chill Drive');
if (pokemon.transformInto('Genesect-Chill')) {
this.add('-formechange', pokemon, 'Genesect-Chill');
}
}
},
onBasePower: function(basePower, user, target, move) {
if (move.id === 'technoblast') {
return basePower * 1.1;
}
},
onDrive: 'Ice',
desc: "Changes Genesect to Genesect-Chill."
},
"dousedrive": {
id: "dousedrive",
name: "Douse Drive",
spritenum: 103,
fling: {
basePower: 70
},
onStart: function (pokemon) {
if (pokemon.species === 'Genesect') {
this.add('-item', pokemon, 'Douse Drive');
if (pokemon.transformInto('Genesect-Douse')) {
this.add('-formechange', pokemon, 'Genesect-Douse');
}
}
},
onBasePower: function(basePower, user, target, move) {
if (move.id === 'technoblast') {
return basePower * 1.1;
}
},
onDrive: 'Water',
desc: "Changes Genesect to Genesect-Douse."
},
"shockdrive": {
id: "shockdrive",
name: "Shock Drive",
spritenum: 103,
fling: {
basePower: 70
},
onStart: function (pokemon) {
if (pokemon.species === 'Genesect') {
this.add('-item', pokemon, 'Shock Drive');
if (pokemon.transformInto('Genesect-Shock')) {
this.add('-formechange', pokemon, 'Genesect-Shock');
}
}
},
onBasePower: function(basePower, user, target, move) {
if (move.id === 'technoblast') {
return basePower * 1.1;
}
},
onDrive: 'Electric',
desc: "Changes Genesect to Genesect-Shock."
},
"widelens": {
inherit: true,
onModifyMove: function(move, user, target) {
if (typeof move.accuracy === 'number') {
move.accuracy *= 1.3;
}
}
},
"zoomlens": {
inherit: true,
onModifyMove: function(move, user, target) {
if (typeof move.accuracy === 'number' && !this.willMove(target)) {
this.debug('Zoom Lens boosting accuracy');
move.accuracy *= 1.6;
}
}
},
"stick": {
id: "stick",
name: "Stick",
fling: {
basePower: 60
},
spritenum: 475,
// The Stick is a stand-in for a number of pokemon-exclusive items
// introduced with Gen Next
onModifyMove: function(move, user) {
if (user.template.species === 'Farfetch\'d') {
move.critRatio += 2;
}
},
onModifyPokemon: function(pokemon) {
if (pokemon.template.species === 'Unown') {
// Strange Orb
pokemon.stats.spa *= 2;
pokemon.stats.spd *= 2;
pokemon.stats.spe *= 2;
pokemon.types = [pokemon.hpType];
}
},
onModifyStats: function(stats, pokemon) {
if (pokemon.template.species === 'Shuckle') {
stats.def *= 1.5;
stats.spd *= 1.5;
}
},
onFoeBasePower: function(basePower, attacker, defender, move) {
var GossamerWingUsers = {"Butterfree":1, "Masquerain":1, "Beautifly":1, "Mothim":1};
if (GossamerWingUsers[defender.template.species]) {
if (move.type === 'Rock' || move.type === 'Electric' || move.type === 'Ice') {
return basePower / 2;
}
}
},
onDamage: function(damage, defender, attacker, effect) {
var GossamerWingUsers = {"Butterfree":1, "Masquerain":1, "Beautifly":1, "Mothim":1};
if (GossamerWingUsers[defender.template.species]) {
if (effect && effect.id === 'stealthrock') {
return damage / 2;
}
}
},
// onResidual: function(pokemon) {
// if (pokemon.template.species === 'Shuckle') {
// this.heal(clampIntRange(pokemon.maxhp/16, 1));
// }
// },
desc: "Raises Farfetch'd's critical hit rate two stages."
},
};