mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-24 17:10:10 -05:00
Fix gen4 encoding of ?
This commit is contained in:
parent
3b1f8b225f
commit
560320e2cc
|
|
@ -68,7 +68,7 @@ private static EvoCriteria Create(ushort species, byte form, EvolutionMethod met
|
|||
Method = method.Method,
|
||||
|
||||
// Temporarily store these and overwrite them when we clean the list.
|
||||
LevelMin = Math.Max(min, method.Level),
|
||||
LevelMin = Math.Max((byte)(min + method.LevelUp), method.Level),
|
||||
LevelUpRequired = GetLevelUp(method.LevelUp, currentMaxLevel, tweak),
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ private static EvoCriteria Create(ushort species, byte form, EvolutionMethod met
|
|||
Method = method.Method,
|
||||
|
||||
// Temporarily store these and overwrite them when we clean the list.
|
||||
LevelMin = Math.Max(min, method.Level),
|
||||
LevelMin = Math.Max((byte)(min + method.LevelUp), method.Level),
|
||||
LevelUpRequired = method.LevelUp, // No need to tweak this, all games of this Type have the same default behavior.
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace PKHeX.Core;
|
|||
/// </summary>
|
||||
public static class StringConverter4
|
||||
{
|
||||
private const ushort Terminator = 0xFFFF;
|
||||
public const ushort Terminator = 0xFFFF;
|
||||
|
||||
/// <summary>Converts Generation 4 encoded data to decoded string.</summary>
|
||||
/// <param name="data">Encoded data</param>
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ public static void StripDiacriticsFR4(Span<char> input)
|
|||
private const int TableKORStart = 0x400;
|
||||
private const int TableKOREnd = 0xD65;
|
||||
|
||||
private const ushort SaveInvalidAs = 0x0428; // '?'
|
||||
private const char NUL = '?';
|
||||
private const ushort SaveInvalidAs = 0x1AC; // '?'
|
||||
private const char NUL = (char)StringConverter4.Terminator;
|
||||
private const char EMP = NUL; // Empty, not available on keyboard.
|
||||
private const char YEN = NUL; // Yen, not available on keyboard.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user