mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-07 19:38:02 -05:00
Gen 1/2 bg update
This commit is contained in:
BIN
fx/bg-gen1.png
BIN
fx/bg-gen1.png
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 5.4 KiB |
BIN
fx/bg-gen2.png
Normal file
BIN
fx/bg-gen2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -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)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user