mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 22:35:19 -05:00
Minor clean
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user