From 1e985d6b26e77e269eac40f83948ce2d930f650e Mon Sep 17 00:00:00 2001
From: sora10pls <17801814+sora10pls@users.noreply.github.com>
Date: Wed, 10 May 2023 11:53:25 -0400
Subject: [PATCH] Expose Gimmighoul form argument in editing tabs
---
PKHeX.Core/Legality/Verifiers/FormVerifier.cs | 2 +-
PKHeX.Core/PKM/Interfaces/IFormArgument.cs | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/PKHeX.Core/Legality/Verifiers/FormVerifier.cs b/PKHeX.Core/Legality/Verifiers/FormVerifier.cs
index 5e5f5e79c..af3812fa2 100644
--- a/PKHeX.Core/Legality/Verifiers/FormVerifier.cs
+++ b/PKHeX.Core/Legality/Verifiers/FormVerifier.cs
@@ -276,7 +276,7 @@ private CheckResult VerifyFormArgument(LegalityAnalysis data, IFormArgument f)
> 9_999 => GetInvalid(LFormArgumentHigh),
_ => arg == 0 || HasVisitedSV(data, Bisharp) ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
},
- Gimmighoul => arg switch
+ 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.
diff --git a/PKHeX.Core/PKM/Interfaces/IFormArgument.cs b/PKHeX.Core/PKM/Interfaces/IFormArgument.cs
index 0c7fc3d89..300e5fbf2 100644
--- a/PKHeX.Core/PKM/Interfaces/IFormArgument.cs
+++ b/PKHeX.Core/PKM/Interfaces/IFormArgument.cs
@@ -17,6 +17,7 @@ namespace PKHeX.Core;
/// How much damage the Pokémon has taken through recoil as Basculin-2 [0,9999].
/// How many times the Pokémon has used Rage Fist [0,9999].
/// How many Bisharp that head up a group of Pawniard have been KOed [0,9999].
+/// How many Gimmighoul Coins were in the player's Bag after last leveling up [0,998].
/// How many Gimmighoul Coins were used on Gimmighoul to evolve into this Pokémon.
/// Flags whether or not this Pokémon was originally in its Ride Form (0/1).
/// Flags whether or not this Pokémon was originally in its Ride Form (0/1).
@@ -127,6 +128,7 @@ public static uint GetFormArgumentMax(ushort species, byte form, int generation)
(int)Basculegion => 9999, // 294
(int)Primeape or (int)Annihilape when generation >= 9 => 9999,
(int)Bisharp or (int)Kingambit when generation >= 9 => 9999,
+ (int)Gimmighoul => 998,
(int)Gholdengo => 999,
(int)Koraidon or (int)Miraidon => 1,
_ => 0,