mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 21:05:13 -05:00
Update korean vc string checks
https://projectpokemon.org/home/forums/topic/43610-legality-about-gen-2/
This commit is contained in:
@@ -667,7 +667,7 @@ private void VerifyG1OTWithinBounds(string str)
|
||||
if (str.Length > 5)
|
||||
AddLine(Severity.Invalid, V38, CheckIdentifier.Trainer);
|
||||
}
|
||||
else if (pkm is PK2 pk2 && pk2.Korean)
|
||||
else if (pkm.Korean && StringConverter.GetIsG2Korean(str))
|
||||
{
|
||||
if (str.Length > 5)
|
||||
AddLine(Severity.Invalid, V38, CheckIdentifier.Trainer);
|
||||
@@ -689,6 +689,11 @@ private void VerifyG1NicknameWithinBounds(string str)
|
||||
if (str.Length > 5)
|
||||
AddLine(Severity.Invalid, V1, CheckIdentifier.Trainer);
|
||||
}
|
||||
else if (pkm.Korean && StringConverter.GetIsG2Korean(str))
|
||||
{
|
||||
if (str.Length > 5)
|
||||
AddLine(Severity.Invalid, V38, CheckIdentifier.Trainer);
|
||||
}
|
||||
else
|
||||
{
|
||||
AddLine(Severity.Invalid, V422, CheckIdentifier.Trainer);
|
||||
|
||||
Reference in New Issue
Block a user