mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-24 23:57:12 -05:00
Requisite ribbon syndicate ribbons
This commit is contained in:
parent
27eb68335b
commit
7d2808ea33
|
|
@ -31,8 +31,14 @@ public static void Parse(this IRibbonSetCommon4 r, RibbonVerifierArguments args,
|
|||
list.Add(ChampionSinnoh);
|
||||
if (!daily)
|
||||
FlagDaily(r, ref list);
|
||||
|
||||
// Gen6 can get individual ribbons via Ritzy Ribbon Retail -- OR/AS
|
||||
// Gen4 Ribbon Syndicate is sequential purchase (prerequisite ribbon cannot be disjointed) -- DP/Pt
|
||||
// Gen8 Ribbon Syndicate is sequential purchase (prerequisite ribbon cannot be disjointed) -- BD/SP
|
||||
if (!cosmetic)
|
||||
FlagCosmetic(r, ref list);
|
||||
else if (!oras6)
|
||||
FlagCosmeticRequsite(r, ref list);
|
||||
}
|
||||
|
||||
private static void FlagDaily(IRibbonSetCommon4 r, ref RibbonResultList list)
|
||||
|
|
@ -53,6 +59,19 @@ private static void FlagCosmetic(IRibbonSetCommon4 r, ref RibbonResultList list)
|
|||
if (r.RibbonGorgeousRoyal) list.Add(GorgeousRoyal);
|
||||
}
|
||||
|
||||
private static void FlagCosmeticRequsite(IRibbonSetCommon4 r, ref RibbonResultList list)
|
||||
{
|
||||
// Gorgeous -> Royal -> Gorgeous|Royal
|
||||
bool preReq;
|
||||
if (!r.RibbonRoyal) // 2
|
||||
preReq = false; // Skip reading 1; lacking 2 => can't have 3.
|
||||
else if (!(preReq = r.RibbonGorgeous))
|
||||
list.Add(Royal); // Needed 1
|
||||
|
||||
if (!preReq && r.RibbonGorgeousRoyal) // 3
|
||||
list.Add(GorgeousRoyal); // Needed 12
|
||||
}
|
||||
|
||||
public static void ParseEgg(this IRibbonSetCommon4 r, ref RibbonResultList list)
|
||||
{
|
||||
if (r.RibbonFootprint)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user