Minor clean

This commit is contained in:
Kurt
2021-01-02 19:11:34 -08:00
parent 77a784a881
commit 4a52b349ff
3 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ internal static class BallUseLegality
8 => GameVersion.GO == game ? WildPokeballs8g : WildPokeballs8,
_ => Array.Empty<int>()
};
private static readonly int[] WildPokeBalls1 = { 4 };
private static readonly int[] WildPokeBalls2 = WildPokeBalls1;
@@ -35,7 +35,7 @@ internal static class BallUseLegality
private static readonly HashSet<int> WildPokeBalls4_HGSS = new(WildPokeBalls4_DPPt)
{
(int)Fast, (int)Level, (int)Lure, (int)Heavy, (int)Love, (int)Friend, (int)Moon,
(int)Fast, (int)Level, (int)Lure, (int)Heavy, (int)Love, (int)Friend, (int)Moon,
};
private static readonly HashSet<int> WildPokeBalls5 = WildPokeBalls4_DPPt;

View File

@@ -2,7 +2,7 @@ namespace PKHeX.Core
{
public sealed class PokeList2 : PokeListGB<PK2>
{
protected override byte GetSpeciesBoxIdentifier(PK2 pk) => pk.IsEgg ? (byte)0xFD : (byte)pk.Species;
protected override byte GetSpeciesBoxIdentifier(PK2 pk) => pk.IsEgg ? 0xFD : (byte)pk.Species;
protected override PK2 GetEntry(byte[] dat, byte[] otname, byte[] nick, bool egg) => new(dat, Japanese) { OT_Trash = otname, Nickname_Trash = nick, IsEgg = egg };
protected override int GetEntrySize() => GetEntrySize(IsFormatParty);

View File

@@ -18,7 +18,7 @@ internal static class SpeciesConverter
/// </summary>
/// <param name="species">National Dex ID.</param>
/// <returns>Generation 1 species ID.</returns>
public static byte SetG1Species(int species) => species >= table1_Internal.Length ? (byte)0 : table1_Internal[species];
public static byte SetG1Species(int species) => (uint)species >= table1_Internal.Length ? 0 : table1_Internal[species];
/// <summary>
/// Converts a National Dex ID to Generation 3 species ID.