From 7eda707062f00b6eae9709789851d8996f7937fc Mon Sep 17 00:00:00 2001 From: Alistair Bahr Date: Sat, 11 Jan 2025 13:08:34 +0100 Subject: [PATCH 1/2] add pokerogue-wiki links to overlay --- libs/httputils.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/libs/httputils.js b/libs/httputils.js index 77157ba..f89d4a6 100644 --- a/libs/httputils.js +++ b/libs/httputils.js @@ -34,10 +34,20 @@ function _createPokemonCardDiv(cardclass, cardId, pokemon) {
HP: ${pokemon.ivs[Stat["HP"]]}, ATK: ${pokemon.ivs[Stat["ATK"]]}, DEF: ${pokemon.ivs[Stat["DEF"]]}
-
- SPE: ${pokemon.ivs[Stat["SPD"]]}, SPD: ${pokemon.ivs[Stat["SPDEF"]]}, SPA: ${pokemon.ivs[Stat["SPATK"]]} -
- + + + + + + + +
+
+ SPE: ${pokemon.ivs[Stat["SPD"]]}, SPD: ${pokemon.ivs[Stat["SPDEF"]]}, SPA: ${pokemon.ivs[Stat["SPATK"]]} +
+
+ wiki +
${(_weather.type && _weather.turnsLeft) ? `
_weather: ${_weather.type}, Turns Left: ${_weather.turnsLeft}
` : ''} From 9a1e6c6f2f0efee9b889f4006090e54a01df2784 Mon Sep 17 00:00:00 2001 From: Alistair Bahr Date: Sat, 11 Jan 2025 13:11:50 +0100 Subject: [PATCH 2/2] fix indenting --- libs/httputils.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/libs/httputils.js b/libs/httputils.js index f89d4a6..d43ae8f 100644 --- a/libs/httputils.js +++ b/libs/httputils.js @@ -35,19 +35,19 @@ function _createPokemonCardDiv(cardclass, cardId, pokemon) { HP: ${pokemon.ivs[Stat["HP"]]}, ATK: ${pokemon.ivs[Stat["ATK"]]}, DEF: ${pokemon.ivs[Stat["DEF"]]} - - - - - - -
-
- SPE: ${pokemon.ivs[Stat["SPD"]]}, SPD: ${pokemon.ivs[Stat["SPDEF"]]}, SPA: ${pokemon.ivs[Stat["SPATK"]]} -
-
- wiki -
+ + + +
+ SPE: ${pokemon.ivs[Stat["SPD"]]}, SPD: ${pokemon.ivs[Stat["SPDEF"]]}, SPA: ${pokemon.ivs[Stat["SPATK"]]} +
+ + + wiki + + + + ${(_weather.type && _weather.turnsLeft) ? `
_weather: ${_weather.type}, Turns Left: ${_weather.turnsLeft}
` : ''}