mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 08:46:40 -05:00
Flag invalid gimmighoul formarg values
This commit is contained in:
@@ -276,6 +276,14 @@ private CheckResult VerifyFormArgument(LegalityAnalysis data, IFormArgument f)
|
||||
> 9_999 => GetInvalid(LFormArgumentHigh),
|
||||
_ => arg == 0 || HasVisitedSV(data, Bisharp) ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
|
||||
},
|
||||
Gimmighoul => arg switch
|
||||
{
|
||||
// Leveling up sets the save file's current coin count to the arg. If 999+, triggers level up.
|
||||
// Without leveling up, cannot have a form arg value.
|
||||
>= 999 => GetInvalid(LFormArgumentHigh),
|
||||
0 => GetValid(LFormArgumentValid),
|
||||
_ => pk.CurrentLevel != pk.Met_Level ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
|
||||
},
|
||||
Runerigus => VerifyFormArgumentRange(enc.Species, Runerigus, arg, 49, 9999),
|
||||
Alcremie => VerifyFormArgumentRange(enc.Species, Alcremie, arg, 0, (uint)AlcremieDecoration.Ribbon),
|
||||
Wyrdeer => VerifyFormArgumentRange(enc.Species, Wyrdeer, arg, 20, 9999),
|
||||
|
||||
Reference in New Issue
Block a user