mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-06-02 22:09:20 -05:00
commit
f6f929efe0
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)];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user