mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Relocate female gender checks
Per discussion in #1170 Revise message descriptions Gen1 err message now used
This commit is contained in:
parent
92881e489c
commit
178017b104
5 changed files with 17 additions and 23 deletions
|
@ -422,21 +422,9 @@ namespace PKHeX.Core
|
|||
else if (pkm.SID == 0)
|
||||
AddLine(Severity.Fishy, V37, CheckIdentifier.Trainer);
|
||||
|
||||
if (pkm.OT_Gender == 1)
|
||||
verifyOTFemale();
|
||||
|
||||
if (pkm.VC)
|
||||
verifyG1OT();
|
||||
}
|
||||
private void verifyOTFemale()
|
||||
{
|
||||
if (pkm.Format < 3) // Format 2 pkm with ot gender stored are from crystal, female player is allowed
|
||||
return;
|
||||
if (pkm.Version == 15)
|
||||
AddLine(Severity.Invalid, V407, CheckIdentifier.Trainer);
|
||||
else if (pkm.VC) // If VC2 is realease probably more checks will be needed
|
||||
AddLine(Severity.Invalid, V407, CheckIdentifier.Trainer);
|
||||
}
|
||||
private void verifyG1OT()
|
||||
{
|
||||
string tr = pkm.OT_Name;
|
||||
|
@ -460,6 +448,9 @@ namespace PKHeX.Core
|
|||
else
|
||||
AddLine(Severity.Invalid, V402, CheckIdentifier.Trainer);
|
||||
}
|
||||
|
||||
if (pkm.OT_Gender == 1)
|
||||
AddLine(Severity.Invalid, V408, CheckIdentifier.Trainer);
|
||||
}
|
||||
#endregion
|
||||
private void verifyHyperTraining()
|
||||
|
@ -834,6 +825,9 @@ namespace PKHeX.Core
|
|||
{
|
||||
AddLine(Severity.Invalid, V80, CheckIdentifier.Encounter); // invalid encounter
|
||||
}
|
||||
|
||||
if (pkm.OT_Gender == 1)
|
||||
AddLine(Severity.Invalid, V407, CheckIdentifier.Trainer);
|
||||
}
|
||||
private void verifyCXDStarterCorrelation(PIDIV pidiv)
|
||||
{
|
||||
|
|
|
@ -399,9 +399,9 @@ namespace PKHeX.Core
|
|||
public static string V401 {get; set;} = "In-game trade {0} should have evolved into {1}.";
|
||||
public static string V402 {get; set;} = "Incorrect Stadium OT.";
|
||||
public static string V405 {get; set;} = "Outsider {0} should have evolved into {1}.";
|
||||
public static string V406 {get; set;} = "Non japanese Shadow E-reader Pokémon. Unreleased encounter.";
|
||||
public static string V407 {get; set;} = "OT Trainer from Colloseum/XD could not be female.";
|
||||
public static string V408 {get; set;} = "OT Trainer from generation 1 could not be female.";
|
||||
public static string V406 {get; set;} = "Non Japanese Shadow E-reader Pokémon. Unreleased encounter.";
|
||||
public static string V407 {get; set;} = "OT from Colosseum/XD cannot be female.";
|
||||
public static string V408 {get; set;} = "OT from Generation 1 cannot be female.";
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
|
|
@ -336,6 +336,6 @@ V400 = Unable to match encounter conditions to a possible RNG frame.
|
|||
V401 = In-game trade {0} should have evolved into {1}.
|
||||
V402 = Incorrect Stadium OT.
|
||||
V405 = Outsider {0} should have evolved into {1}.
|
||||
V406 = Non japanese Shadow E-reader Pokémon. Unreleased encounter.
|
||||
V407 = OT Trainer from Colloseum/XD could not be female.
|
||||
V408 = OT Trainer from generation 1 could not be female.
|
||||
V406 = Non Japanese Shadow E-reader Pokémon. Unreleased encounter.
|
||||
V407 = OT from Colosseum/XD cannot be female.
|
||||
V408 = OT from Generation 1 cannot be female.
|
|
@ -337,6 +337,6 @@ V400 = Unable to match encounter conditions to a possible RNG frame.
|
|||
V401 = In-game trade {0} should have evolved into {1}.
|
||||
V402 = Incorrect Stadium OT.
|
||||
V405 = Outsider {0} should have evolved into {1}.
|
||||
V406 = Non japanese Shadow E-reader Pokémon. Unreleased encounter.
|
||||
V407 = OT Trainer from Colloseum/XD could not be female.
|
||||
V408 = OT Trainer from generation 1 could not be female.
|
||||
V406 = Non Japanese Shadow E-reader Pokémon. Unreleased encounter.
|
||||
V407 = OT from Colosseum/XD cannot be female.
|
||||
V408 = OT from Generation 1 cannot be female.
|
|
@ -337,5 +337,5 @@ V401 = 游戏内交换{0}应当进化为{1}.
|
|||
V402 = 不正确竞技场初训家。
|
||||
V405 = 外来的{0}应当进化为{1}.
|
||||
V406 = 非日版黑暗E-reader宝可梦。未解禁遇见方式。
|
||||
V407 = OT Trainer from Colloseum/XD could not be female.
|
||||
V408 = OT Trainer from generation 1 could not be female.
|
||||
V407 = OT from Colosseum/XD cannot be female.
|
||||
V408 = OT from Generation 1 cannot be female.
|
Loading…
Reference in a new issue