mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 18:06:49 -05:00
Allow Gourmand mark on Eggs
Flag it if it's affixed though.
This commit is contained in:
@@ -22,6 +22,12 @@ public override void Verify(LegalityAnalysis data)
|
||||
VerifyMarksPresent(data, m);
|
||||
|
||||
VerifyAffixedRibbonMark(data, m);
|
||||
if (pk.IsEgg && pk is IRibbonSetAffixed a && a.AffixedRibbon != -1)
|
||||
{
|
||||
// Disallow affixed values on eggs.
|
||||
var affix = (RibbonIndex)a.AffixedRibbon;
|
||||
data.AddLine(GetInvalid(string.Format(LRibbonMarkingAffixedF_0, GetRibbonNameSafe(affix))));
|
||||
}
|
||||
|
||||
// Some encounters come with a fixed Mark, and we've not yet checked if it's missing.
|
||||
if (data.EncounterMatch is IEncounterMarkExtra extra && extra.IsMissingExtraMark(pk, out var missing))
|
||||
|
||||
@@ -31,8 +31,9 @@ public static void ParseEgg(this IRibbonSetMark9 r, ref RibbonResultList list)
|
||||
{
|
||||
if (r.RibbonMarkAlpha)
|
||||
list.Add(MarkAlpha);
|
||||
if (r.RibbonMarkGourmand)
|
||||
list.Add(MarkGourmand);
|
||||
// Can apply to eggs if in party. Just can't affix.
|
||||
// if (r.RibbonMarkGourmand)
|
||||
// list.Add(MarkGourmand);
|
||||
if (r.RibbonMarkItemfinder)
|
||||
list.Add(MarkItemfinder);
|
||||
if (r.RibbonMarkJumbo)
|
||||
|
||||
Reference in New Issue
Block a user