From 67b021768337fe7475e2effb0bb8a493936d9bef Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 27 Oct 2025 12:21:08 -0500 Subject: [PATCH] Fix met location duplication across sets Kalos Gift starters when loaded to the GUI would mutate their met location to the wrong index (series 0) rather than retain the correct one (series 3). Wasn't apparent because the deduplication algorithm is different for Debug and Release builds. Tested Release build, all unit tests now pass. Thanks pigeonsaint (discord) for reporting! --- PKHeX.Core/Game/GameStrings/GameStrings.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/PKHeX.Core/Game/GameStrings/GameStrings.cs b/PKHeX.Core/Game/GameStrings/GameStrings.cs index afb356c13..9958471d2 100644 --- a/PKHeX.Core/Game/GameStrings/GameStrings.cs +++ b/PKHeX.Core/Game/GameStrings/GameStrings.cs @@ -713,6 +713,19 @@ private void SanitizeMetGen9(LocationSet6 set) private static void SanitizeMetGen9a(LocationSet6 set) { // ZA: Truncated list to remove all after 235 (no encounters there). + + // Resolve collisions across sets + set.Met0[4] += " (-)"; // Faraway Place -- duplicate with 40002 + set.Met3[27] += " (-)"; // (Laboratory) -- duplicate with 103 in all languages besides English + set.Met3[28] += " (-)"; // Wild Zone 11 (30028) -- duplicate with 210 + set.Met3[29] += " (-)"; // (Museum) -- duplicate with 100 in all languages besides English + set.Met3[30] += " (-)"; // Académie Étoile (30030) -- duplicate with 76 + set.Met3[31] += " (-)"; // Magenta Sector 2 (30031) -- duplicate with 59 + set.Met3[32] += " (-)"; // North Boulevard (30032) -- duplicate with 65 + set.Met4[65] += " (-)"; // Pokémon GO -- duplicate with 30012 + set.Met4[70] += " (-)"; // Pokémon HOME -- duplicate with 30018 + set.Met6[05] += " (-)"; // Lumiose City (6005) -- duplicate with 30026 + Deduplicate(set.Met0, 00000); Deduplicate(set.Met3, 30000); Deduplicate(set.Met4, 40000);