mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
More strict egg nickname length check
only fishy if it was traded & within bounds
This commit is contained in:
parent
029e0e0a08
commit
edce01a857
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,10 @@ namespace PKHeX.Core
|
|||
}
|
||||
if (nickname.Length > Legal.GetMaxLengthNickname(data.Info.Generation, (LanguageID)pkm.Language))
|
||||
{
|
||||
data.AddLine(Get(LNickLengthLong, data.EncounterOriginal.EggEncounter ? Severity.Fishy : Severity.Invalid));
|
||||
var severe = data.EncounterOriginal.EggEncounter && pkm.WasTradedEgg && nickname.Length <= Legal.GetMaxLengthNickname(data.Info.Generation, LanguageID.English)
|
||||
? Severity.Fishy
|
||||
: Severity.Invalid;
|
||||
data.AddLine(Get(LNickLengthLong, severe));
|
||||
return true;
|
||||
}
|
||||
data.AddLine(GetValid(LNickMatchNoOthers));
|
||||
|
|
Loading…
Reference in a new issue