Show language name instead of index

prefer to keep the '0' case as zero
This commit is contained in:
Kurt
2018-07-06 17:22:56 -07:00
parent 0c2d302997
commit fe82fe8eab
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ public override void Verify(LegalityAnalysis data)
if (!IsValidLanguageID(currentLanguage, maxLanguageID, pkm))
{
data.AddLine(GetInvalid(string.Format(V5, $"<={(LanguageID)maxLanguageID}", currentLanguage)));
data.AddLine(GetInvalid(string.Format(V5, $"<={(LanguageID)maxLanguageID}", (LanguageID)currentLanguage)));
return;
}
@@ -35,7 +35,7 @@ public override void Verify(LegalityAnalysis data)
// Korean Crystal does not exist, neither do VC1
if (originalGeneration <= 2 && pkm.Korean && !GameVersion.GS.Contains((GameVersion)pkm.Version))
{
data.AddLine(GetInvalid(string.Format(V5, $"!={(LanguageID)currentLanguage}", currentLanguage)));
data.AddLine(GetInvalid(string.Format(V5, $"!={(LanguageID)currentLanguage}", (LanguageID)currentLanguage)));
}
}

View File

@@ -305,7 +305,7 @@ private void VerifyTrade5(LegalityAnalysis data)
{
int lang = pkm.Language;
if (pkm.Format == 5 && lang == (int)LanguageID.Japanese)
data.AddLine(GetInvalid(string.Format(V5, 0, (int)LanguageID.Japanese), CheckIdentifier.Language));
data.AddLine(GetInvalid(string.Format(V5, 0, LanguageID.Japanese), CheckIdentifier.Language));
lang = Math.Max(lang, 1);
VerifyTradeTable(data, Encounters5.TradeBW, Encounters5.TradeGift_BW, lang);