From 154a396df144cdbee045721e206e85ce1de23fa7 Mon Sep 17 00:00:00 2001 From: Layell Date: Mon, 31 Aug 2015 21:27:47 -0400 Subject: [PATCH] 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 --- js/battle.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/battle.js b/js/battle.js index fc07f6d5b..fc23309a7 100644 --- a/js/battle.js +++ b/js/battle.js @@ -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) {