diff --git a/src/battle-animations-moves.ts b/src/battle-animations-moves.ts index 7f40e23d2..06078e0d9 100644 --- a/src/battle-animations-moves.ts +++ b/src/battle-animations-moves.ts @@ -30650,7 +30650,10 @@ BattleMoveAnims['flatter'] = {anim: BattleMoveAnims['attract'].anim}; BattleMoveAnims['armthrust'] = {anim: BattleMoveAnims['smellingsalts'].anim}; -BattleMoveAnims['phantomforce'] = {anim: BattleMoveAnims['shadowforce'].anim, prepareAnim: BattleMoveAnims['shadowforce'].prepareAnim}; +BattleMoveAnims['phantomforce'] = { + anim: BattleMoveAnims['shadowforce'].anim, + prepareAnim: BattleMoveAnims['shadowforce'].prepareAnim, +}; BattleMoveAnims['shadowstrike'] = {anim: BattleMoveAnims['shadowforce'].anim}; BattleMoveAnims['smackdown'] = {anim: BattleMoveAnims['rockblast'].anim}; diff --git a/src/battle-animations.ts b/src/battle-animations.ts index 0308f82aa..cd1ba5fdf 100644 --- a/src/battle-animations.ts +++ b/src/battle-animations.ts @@ -569,7 +569,8 @@ class BattleScene { } getDetailsText(pokemon: Pokemon) { - let name = pokemon.side && pokemon.side.n && (this.battle.ignoreOpponent || this.battle.ignoreNicks) ? pokemon.species : pokemon.name; + let name = pokemon.side && pokemon.side.n && + (this.battle.ignoreOpponent || this.battle.ignoreNicks) ? pokemon.species : pokemon.name; if (name !== pokemon.species) { name += ' (' + pokemon.species + ')'; } @@ -759,15 +760,15 @@ class BattleScene { weatherLeft() { if (this.battle.gen < 7 && this.battle.hardcoreMode) return ''; if (this.battle.weatherMinTimeLeft !== 0) { - return ' (' + this.battle.weatherMinTimeLeft + ' or ' + this.battle.weatherTimeLeft + ' turns)'; + return ` (${this.battle.weatherMinTimeLeft} or ${this.battle.weatherTimeLeft} turns)`; } if (this.battle.weatherTimeLeft !== 0) { - return ' (' + this.battle.weatherTimeLeft + ' turn' + (this.battle.weatherTimeLeft === 1 ? '' : 's') + ')'; + return ` (${this.battle.weatherTimeLeft} turn${this.battle.weatherTimeLeft === 1 ? '' : 's'})`; } return ''; } upkeepWeather() { - const isIntense = (this.curWeather === 'desolateland' || this.curWeather === 'primordialsea' || this.curWeather === 'deltastream'); + const isIntense = ['desolateland', 'primordialsea', 'deltastream'].includes(this.curWeather); this.$weather.animate({ opacity: 1.0, }, 300).animate({ @@ -2326,21 +2327,24 @@ class PokemonSprite extends Sprite { getStatbarHTML(pokemon: Pokemon) { let buf = ' : ); const onlineButton = ' button' + (PS.connected ? '' : ' disabled'); return @@ -77,9 +82,17 @@ class MainMenuPanel extends PSRoomPanel {
-

News

+

+ + + News +

-

Test client

Welcome to the test client! You can test client changes here!

Zarel on Sep 25, 2015

+
+

Test client

+

Welcome to the test client! You can test client changes here!

+

Zarel on Sep 25, 2015

+
@@ -99,13 +112,23 @@ class MainMenuPanel extends PSRoomPanel {
- {PS.server.id === 'showdown' ? - : - } +
; diff --git a/src/panel-teambuilder.tsx b/src/panel-teambuilder.tsx index db2638e45..1f3b629d8 100644 --- a/src/panel-teambuilder.tsx +++ b/src/panel-teambuilder.tsx @@ -532,8 +532,12 @@ class TeambuilderPanel extends PSRoomPanel { {filterFolder ?

{filterFolder} {} - {} - + {} +

: filterFolder === '' ?

Teams not in any folders

diff --git a/src/panel-topbar.tsx b/src/panel-topbar.tsx index 4d26423e8..ab816e569 100644 --- a/src/panel-topbar.tsx +++ b/src/panel-topbar.tsx @@ -76,13 +76,21 @@ class PSHeader extends preact.Component<{style: {}}> { break; } if (closable) { - closeButton = ; + closeButton = ; } return
  • {icon} {title}{closeButton}
  • ; } render() { return