From 47ae281a0cd83ba96b034a381c0ad0e8bf46c6f9 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Sat, 18 Jan 2025 00:11:04 +0100 Subject: [PATCH] Added icons to legacy mode; fixed bug that caused game to hang when switching to or from legacy mode --- public/images/ui/legacy/mystery_egg.png | Bin 0 -> 252 bytes public/images/ui/legacy/normal_memory.png | Bin 0 -> 405 bytes src/ui/pokedex-page-ui-handler.ts | 5 ++++- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 public/images/ui/legacy/mystery_egg.png create mode 100644 public/images/ui/legacy/normal_memory.png diff --git a/public/images/ui/legacy/mystery_egg.png b/public/images/ui/legacy/mystery_egg.png new file mode 100644 index 0000000000000000000000000000000000000000..bb117a137b0a9ef2cc75d1ec041655f5d820a092 GIT binary patch literal 252 zcmV^3MFz-jJ|xib=o zZvfIU;KKPnd<^BY<$0|OVF1=*p1-${5`b|9xZHXdq6`OYbpV93y{Zvxmh3?Zflv;% zF3J7^4(Dn)Tn50)=vi95_X?H(&0oczKF6U@sHWb@dA=k@%>Q{3FV z_vqQ=AMpd2d+l;bS$h%9Dc;5!V$jK}j=qyPmkdAc}; zSomMPbW*5AfrsUSKvRSC|Nq-BC%Q0QyE5nPqsHpKK))w~(armlGTPyO&5T=BUo9o&A8#Q6+&{XBT750^bCO1G*kP zrQF}StO{;jcWyEeHVJrf`|*^|7s@9DtDec+`j?k$u9wA2-5L9s|L~@}om;rg;pCUy ina@5d>oY8^VL125z+}DR{GUMIF?hQAxvX 0n; + let isFormCaught: Boolean = false; + if (this.speciesStarterDexEntry) { + isFormCaught = (this.speciesStarterDexEntry?.caughtAttr! & globalScene.gameData.getFormAttr(this.formIndex ?? 0)) > 0n; + } if (this.speciesStarterDexEntry?.caughtAttr) { if (isFormCaught) {