Gen 1/2 bg update

This commit is contained in:
Layell
2015-11-04 03:22:00 -05:00
parent 122dbeb426
commit 1cd72de452
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
fx/bg-gen2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -2247,7 +2247,8 @@ var Battle = (function () {
};
Battle.prototype.updateGen = function () {
if (!Tools.prefs('nopastgens')) {
if (this.gen <= 2) this.backdropImage = 'bg-gen1.png';
if (this.gen <= 1) this.backdropImage = 'bg-gen1.png';
else if (this.gen <= 2) this.backdropImage = 'bg-gen2.png';
else if (this.gen <= 3) this.backdropImage = BattleBackdropsThree[Math.floor(Math.random() * BattleBackdropsThree.length)];
else if (this.gen <= 4) this.backdropImage = BattleBackdropsFour[Math.floor(Math.random() * BattleBackdropsFour.length)];
}