Battle backgrounds gen 3 + 5

Adding in the gen 3 bg, and fixing it so that gen 5 can use the rotating backgrounds that it could before.

Preview: http://i.imgur.com/qQB0mj5.png
This commit is contained in:
Layell
2015-08-31 21:27:47 -04:00
parent d739ee0a20
commit 154a396df1

View File

@@ -2222,7 +2222,8 @@ var Battle = (function () {
};
Battle.prototype.updateGen = function () {
if (this.gen < 3) this.backdropImage = 'bg-gen1.png';
else if (this.gen < 6) this.backdropImage = 'bg.jpg';
if (this.gen == 3) this.backdropImage = 'bg-gen3.png';
else if (this.gen < 5) this.backdropImage = 'bg.jpg';
if (this.bgElem) this.bgElem.css('background-image', 'url(' + Tools.resourcePrefix + 'fx/' + this.backdropImage + ')');
};
Battle.prototype.reset = function (dontResetSound) {