mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-12 00:55:21 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user