mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Fix every error in the Travis CI Build / npm test
This commit is contained in:
parent
2aac94761a
commit
15b04f0a8a
|
|
@ -334,7 +334,7 @@ exports.Formats = [
|
|||
gameType: 'triples',
|
||||
team: 'randomSeasonalSB',
|
||||
ruleset: ['HP Percentage Mod', 'Sleep Clause Mod'],
|
||||
onBegin: function() {
|
||||
onBegin: function () {
|
||||
this.add('-message', "V4 is a big poo-poo!");
|
||||
},
|
||||
onModifyMove: function (move) {
|
||||
|
|
@ -346,98 +346,98 @@ exports.Formats = [
|
|||
move.accuracy = 100;
|
||||
switch (this.random(16)) {
|
||||
case 0:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was a bomb!");
|
||||
};
|
||||
move.category = 'Physical';
|
||||
move.basePower = 250;
|
||||
break;
|
||||
case 1:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was confusion!");
|
||||
};
|
||||
move.volatileStatus = 'confusion';
|
||||
break;
|
||||
break;
|
||||
case 2:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was Disable!");
|
||||
};
|
||||
move.volatileStatus = 'disable';
|
||||
break;
|
||||
case 3:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was a taunt!");
|
||||
};
|
||||
move.volatileStatus = 'taunt';
|
||||
break;
|
||||
case 4:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was some seeds!");
|
||||
};
|
||||
move.volatileStatus = 'leechseed';
|
||||
break;
|
||||
case 5:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was an embargo!");
|
||||
};
|
||||
move.volatileStatus = 'embargo';
|
||||
break;
|
||||
case 6:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was a music box!");
|
||||
};
|
||||
move.volatileStatus = 'perishsong';
|
||||
break;
|
||||
case 7:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was a curse!");
|
||||
};
|
||||
move.volatileStatus = 'curse';
|
||||
break;
|
||||
case 8:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was Torment!");
|
||||
};
|
||||
move.volatileStatus = 'torment';
|
||||
break;
|
||||
case 9:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was a trap!");
|
||||
};
|
||||
move.volatileStatus = 'partiallytrapped';
|
||||
break;
|
||||
case 10:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was a root!");
|
||||
};
|
||||
move.volatileStatus = 'ingrain';
|
||||
break;
|
||||
case 11:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was a makeover!");
|
||||
};
|
||||
var boosts = {};
|
||||
var possibleBoosts = ['atk','def','spa','spd','spe','accuracy','evasion'].randomize();
|
||||
var possibleBoosts = ['atk', 'def', 'spa', 'spd', 'spe', 'accuracy', 'evasion'].randomize();
|
||||
boosts[possibleBoosts[0]] = 1;
|
||||
boosts[possibleBoosts[1]] = -1;
|
||||
boosts[possibleBoosts[2]] = -1;
|
||||
move.boosts = boosts;
|
||||
break;
|
||||
case 12:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was psychic powers!");
|
||||
};
|
||||
move.volatileStatus = 'telekinesis';
|
||||
break;
|
||||
case 13:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was fatigue!");
|
||||
};
|
||||
move.volatileStatus = 'mustrecharge';
|
||||
break;
|
||||
case 14:
|
||||
case 15:
|
||||
move.onTryHit = function() {
|
||||
move.onTryHit = function () {
|
||||
this.add('-message', "The present was a snowball hit!");
|
||||
};
|
||||
move.category = 'Ice';
|
||||
|
|
@ -510,7 +510,7 @@ exports.Formats = [
|
|||
"Ain't no Pokemon tough enough / ain't no bulk decent enough / ain't no recovery good enough / to keep me from fainting you, babe",
|
||||
"Roses are red / violets are blue / you must be on some med / 'coz as a trainer you suck",
|
||||
"You're gonna be the very worst / like no one ever was / to lose all the battles is your test / to faint them all is your cause",
|
||||
'Twinkle twinkle little star / screw you that was my best sweeper', "I'm wheezy and I'm sleezy / but as a trainer you're measly",
|
||||
'Twinkle twinkle little star / screw you that was my best sweeper', "I'm wheezy and I'm sleezy / but as a trainer you're measly",
|
||||
"You're sharp as a rock / you're bright as a hole / you're one to mock / you could be beaten by a maimed mole",
|
||||
"Alas, poor trainer! I knew him, your Pokémon, a fellow of infinite jest, of most excellent fancy."];
|
||||
haikus = haikus.randomize();
|
||||
|
|
|
|||
|
|
@ -2520,7 +2520,7 @@ exports.BattleScripts = {
|
|||
(5 * hash + 192) % 721
|
||||
];
|
||||
var randoms = {};
|
||||
for (var i=0; i<6; i++) {
|
||||
for (var i = 0; i < 6; i++) {
|
||||
if (randNums[i] < 1) randNums[i] = 1;
|
||||
randoms[randNums[i]] = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user