Misc tweaks

the final "TODO ZA" and "TODO HOME ZA"
remove champions from blank save selection (would need PC9 docs first)
This commit is contained in:
Kurt
2026-04-03 01:07:51 -05:00
parent d21bc2ff6d
commit 8d24b16fe3
3 changed files with 3 additions and 4 deletions

View File

@@ -20,9 +20,8 @@ public static MemorySource GetPossibleSources(EvolutionHistory history)
sources |= MemorySource.Bank; // Trade encounters from Gen7 also come with hardcoded memories.
if (history.HasVisitedSWSH)
sources |= MemorySource.Gen8;
if (history.HasVisitedGen9)
if (history.HasVisitedGen9 || history.HasVisitedZA)
sources |= MemorySource.Deleted;
// TODO HOME ZA
return sources;
}

View File

@@ -172,7 +172,7 @@ private static bool HasEnteredHOME_Alpha(PKM pk)
/// </summary>
public static bool IsMarkValidAlpha(IEncounterTemplate enc, PKM pk)
{
var expect = enc is IAlphaReadOnly { IsAlpha: true } && enc.Context != EntityContext.Gen9a; // TODO ZA HOME
var expect = enc is IAlphaReadOnly { IsAlpha: true };
return IsMarkValidAlpha(pk, expect);
}

View File

@@ -22,7 +22,7 @@ public SettingsEditor(object obj)
if (obj is PKHeXSettings s)
{
static bool IsInvalidSaveFileVersion(GameVersion value) => value is 0 or GameVersion.GO;
static bool IsInvalidSaveFileVersion(GameVersion value) => value is 0 or GameVersion.GO or GameVersion.CP;
CB_Blank.InitializeBinding();
CB_Blank.DataSource = GameInfo.Sources.VersionDataSource.Where(z => !IsInvalidSaveFileVersion((GameVersion)z.Value)).ToList();
CB_Blank.SelectedValue = (int)s.Startup.DefaultSaveVersion;