Merge pull request #539 from Layell/gsc_bgs

Gen 1/2 bg update
This commit is contained in:
Guangcong Luo 2015-11-04 03:19:02 -06:00
commit f6f929efe0
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)];
}