pokemon-showdown/mods/gennext/items.js
Guangcong Luo 125ede327f Gen next changes:
- several bugfixes and new features
- see GEN-NEXT.md for details
2012-07-06 16:50:20 -04:00

135 lines
3.4 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.3;
}
},
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.3;
}
},
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.3;
}
},
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.3;
}
},
onDrive: 'Electric',
desc: "Changes Genesect to Genesect-Shock."
},
"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 *= 3;
pokemon.stats.spe *= 2;
pokemon.types = [pokemon.hpType];
}
},
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;
}
}
},
desc: "Raises Farfetch'd's critical hit rate two stages."
},
};