File tree 1 file changed +6
-2
lines changed
play.pokemonshowdown.com/src
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -568,15 +568,18 @@ export class BattleScene implements BattleSceneStub {
568
568
this . gen = gen ;
569
569
this . activeCount = this . battle . nearSide ?. active . length || 1 ;
570
570
571
- const isSPL = ( typeof this . battle . rated === 'string' && this . battle . rated . startsWith ( "Smogon Premier League" ) ) ;
571
+ const rated = this . battle . rated ;
572
572
let bg : string ;
573
- if ( isSPL ) {
573
+ if ( typeof rated === 'string' && rated . startsWith ( "Smogon Premier League" ) ) {
574
574
if ( gen <= 1 ) bg = 'fx/bg-gen1-spl.png' ;
575
575
else if ( gen <= 2 ) bg = 'fx/bg-gen2-spl.png' ;
576
576
else if ( gen <= 3 ) bg = 'fx/bg-gen3-spl.png' ;
577
577
else if ( gen <= 4 ) bg = 'fx/bg-gen4-spl.png' ;
578
578
else bg = 'fx/bg-spl.png' ;
579
579
this . setBgm ( - 101 ) ;
580
+ } else if ( typeof rated === 'string' && rated . startsWith ( 'National Pokemon Association' ) ) {
581
+ bg = 'fx/bg-npa.png' ;
582
+ this . setBgm ( - 101 ) ;
580
583
} else {
581
584
if ( gen <= 1 ) bg = 'fx/bg-gen1.png?' ;
582
585
else if ( gen <= 2 ) bg = 'fx/bg-gen2.png?' ;
@@ -586,6 +589,7 @@ export class BattleScene implements BattleSceneStub {
586
589
else bg = `sprites/gen6bgs/${ BattleBackdrops [ this . numericId % BattleBackdrops . length ] } ` ;
587
590
}
588
591
592
+ console . log ( bg ) ;
589
593
this . backdropImage = bg ;
590
594
if ( this . $bg ) {
591
595
this . $bg . css ( 'background-image' , `url(${ Dex . resourcePrefix } ${ this . backdropImage } )` ) ;
You can’t perform that action at this time.
0 commit comments