mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-15 06:35:29 -05:00
@@ -257,7 +257,7 @@ private string getLegalityReport()
|
||||
|
||||
// Build result string...
|
||||
var outputLines = Parse.Where(chk => !chk.Valid); // Only invalid
|
||||
r += string.Join(Environment.NewLine, outputLines.Select(chk => string.Format(V196, chk.Judgement, chk.Comment)));
|
||||
r += string.Join(Environment.NewLine, outputLines.Select(chk => string.Format(V196, getString(chk.Judgement), chk.Comment)));
|
||||
|
||||
if (r.Length == 0)
|
||||
r = V190;
|
||||
@@ -285,7 +285,7 @@ private string getVerboseLegalityReport()
|
||||
r += Environment.NewLine;
|
||||
|
||||
var outputLines = Parse.Where(chk => chk != null && chk.Valid && chk.Comment != V).OrderBy(chk => chk.Judgement); // Fishy sorted to top
|
||||
r += string.Join(Environment.NewLine, outputLines.Select(chk => string.Format(V196, chk.Judgement, chk.Comment)));
|
||||
r += string.Join(Environment.NewLine, outputLines.Select(chk => string.Format(V196, getString(chk.Judgement), chk.Comment)));
|
||||
|
||||
r += Environment.NewLine;
|
||||
r += "===" + Environment.NewLine + Environment.NewLine;
|
||||
|
||||
@@ -2585,5 +2585,22 @@ private CheckResult verifyEggMoves()
|
||||
"Premier", "Event", "Birthday", "Special", "Souvenir",
|
||||
"Wishing", "Battle Champ", "Regional Champ", "National Champ", "World Champ"
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Converts a Check result Severity determination (Valid/Invalid/etc) to the localized string.
|
||||
/// </summary>
|
||||
/// <param name="s"><see cref="Severity"/> value to convert to string.</param>
|
||||
/// <returns>Localized <see cref="string"/>.</returns>
|
||||
private static string getString(Severity s)
|
||||
{
|
||||
switch (s)
|
||||
{
|
||||
case Severity.Indeterminate: return V500;
|
||||
case Severity.Invalid: return V501;
|
||||
case Severity.Fishy: return V502;
|
||||
case Severity.Valid: return V503;
|
||||
default: return V504;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,17 @@ public static class LegalityCheckStrings
|
||||
/// <summary>Format text for exporting the type of Encounter that was matched for the the <see cref="PKM"/></summary>
|
||||
public static string V195 {get; set;} = "Encounter Type: {0}";
|
||||
|
||||
/// <summary>Severity string for <see cref="Severity.Indeterminate"/></summary>
|
||||
public static string V500 { get; set; } = "Indeterminate";
|
||||
/// <summary>Severity string for <see cref="Severity.Invalid"/></summary>
|
||||
public static string V501 { get; set; } = "Invalid";
|
||||
/// <summary>Severity string for <see cref="Severity.Fishy"/></summary>
|
||||
public static string V502 { get; set; } = "Fishy";
|
||||
/// <summary>Severity string for <see cref="Severity.Valid"/></summary>
|
||||
public static string V503 { get; set; } = "Valid";
|
||||
/// <summary>Severity string for <see cref="Severity.NotImplemented"/></summary>
|
||||
public static string V504 { get; set; } = "Not Implemented";
|
||||
|
||||
/// <summary>Original Trainer string used in various string formats such as Memories.</summary>
|
||||
public static string V205 { get; set; } = "OT";
|
||||
/// <summary>Handling Trainer string used in various string formats such as Memories.</summary>
|
||||
|
||||
@@ -6,6 +6,11 @@ V196 = {0}: {1}
|
||||
V191 = {0} Move {1}: {2}
|
||||
V192 = {0} Relearn Move {1}: {2}
|
||||
V195 = Encounter Type: {0}
|
||||
V500 = Indeterminate
|
||||
V501 = Invalid
|
||||
V502 = Fishy
|
||||
V503 = Valid
|
||||
V504 = Not Implemented
|
||||
V205 = OT
|
||||
V206 = HT
|
||||
V167 = Empty Move.
|
||||
|
||||
@@ -6,6 +6,11 @@ V196 = {0}: {1}
|
||||
V191 = {0} 招式 {1}: {2}
|
||||
V192 = {0} 回忆招式 {1}: {2}
|
||||
V195 = 相遇方式: {0}
|
||||
V500 = 不定
|
||||
V501 = 无效
|
||||
V502 = 腥
|
||||
V503 = 有效
|
||||
V504 = 未实现
|
||||
V205 = 初训家
|
||||
V206 = 持有人
|
||||
V167 = 空招式。
|
||||
|
||||
Reference in New Issue
Block a user