mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-19 02:11:15 -05:00
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!
This commit is contained in:
parent
10d3ae0d54
commit
67b0217683
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user