mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user