April Fool's Day changes

This commit is contained in:
Guangcong Luo
2013-03-31 14:36:52 -07:00
parent 1f174a61df
commit 601cd7f916
2 changed files with 27 additions and 1 deletions

View File

@@ -2439,9 +2439,25 @@ function Battle(frame, logFrame, noPreload) {
break;
case 'sleeptalk':
default:
self.message(pokemon.getName() + ' used <strong>' + move.name + '</strong>!');
if (move.id === 'earthquake') {
self.message(pokemon.getName() + ' used <strong>Fissure</strong>!');
self.message('Just kidding! It was <strong>Earthquake</strong>!');
} else {
self.message(pokemon.getName() + ' used <strong>' + move.name + '</strong>!');
}
break;
}
if (move.id === 'taunt') {
var quotes = [
"Yo mama so fat, she 4x resists Ice- and Fire-type attacks!",
"Yo mama so ugly, Captivate raises her opponent's Special Attack!",
"Yo mama so dumb, she lowers her Special Attack when she uses Nasty Plot!",
"Yo mama so fat, Smogon switched to Pokemon Showdown because PO had an integer overflow bug when you used Grass Knot against her!",
"Yo mama so dumb, she thought Sylveon would be Light Type!"
];
var quote = quotes[(self.p1.name.charCodeAt(2) + self.p2.name.charCodeAt(2) + self.turn) % quotes.length];
self.message(pokemon.getName() + " said, \"" + quote + "\"");
}
}
pokemon.lastmove = move.id;
self.lastmove = move.id;

View File

@@ -649,6 +649,16 @@ var Tools = {
if (num.length < 3) num = '0' + num;
cryurl = Tools.resourcePrefix + 'audio/cries/' + num + '.wav';
}
// april fool's
return {
w: 96,
h: 96,
url: Tools.resourcePrefix + 'sprites/afd'+back+'/' + spriteid + '.png',
cryurl: cryurl,
isBackSprite: isBack
};
if (pokemon.shiny) back += '-shiny';
if (window.BattlePokemonSprites && BattlePokemonSprites[pokemon.speciesid] && BattlePokemonSprites[pokemon.speciesid][facing]) {
var url = Tools.resourcePrefix + 'sprites/bwani'+back;