mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Precompute gen3 personaltable shuffling
Less convoluted & faster loading
This commit is contained in:
parent
025b817e49
commit
248031a45c
7 changed files with 4 additions and 7 deletions
|
@ -35,8 +35,6 @@ namespace PKHeX.Core
|
|||
private static readonly Learnset[] LevelUpFR = Learnset6.getArray(Data.unpackMini(Resources.lvlmove_fr, "fr"));
|
||||
private static readonly Learnset[] LevelUpLG = Learnset6.getArray(Data.unpackMini(Resources.lvlmove_lg, "lg"));
|
||||
private static readonly EggMoves[] EggMovesRS = EggMoves6.getArray(Data.unpackMini(Resources.eggmove_rs, "rs"));
|
||||
//private static readonly TMHMTutorMoves[] TutorsG3 = TMHMTutorMoves.getArray(Data.unpackMini(Properties.Resources.tutors_g3, "g3"));
|
||||
//private static readonly TMHMTutorMoves[] HMTMG3 = TMHMTutorMoves.getArray(Data.unpackMini(Properties.Resources.hmtm_g3, "g3"));
|
||||
private static readonly EvolutionTree Evolves3;
|
||||
private static readonly EncounterArea[] SlotsR, SlotsS, SlotsE, SlotsFR, SlotsLG;
|
||||
private static readonly EncounterStatic[] StaticR, StaticS, StaticE, StaticFR, StaticLG;
|
||||
|
|
|
@ -1395,7 +1395,7 @@ namespace PKHeX.Core
|
|||
}
|
||||
}
|
||||
#region Gen 3 Species Table
|
||||
public static int[] newindex => new[]
|
||||
private static readonly int[] newindex =
|
||||
{
|
||||
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,
|
||||
31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,
|
||||
|
@ -1417,7 +1417,7 @@ namespace PKHeX.Core
|
|||
385,386,358,
|
||||
};
|
||||
|
||||
public static int[] oldindex => new[]
|
||||
private static readonly int[] oldindex =
|
||||
{
|
||||
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,
|
||||
31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,
|
||||
|
|
|
@ -74,9 +74,8 @@ namespace PKHeX.Core
|
|||
case GameVersion.E:
|
||||
case GameVersion.FR:
|
||||
case GameVersion.LG:
|
||||
Array.Resize(ref d, 387);
|
||||
for (int i = 0; i < d.Length; i++) // entries are not in order of natdexID
|
||||
d[i] = new PersonalInfoG3(entries[PKX.getG3Species(i)]);
|
||||
for (int i = 0; i < d.Length; i++)
|
||||
d[i] = new PersonalInfoG3(entries[i]);
|
||||
break;
|
||||
case GameVersion.DP:
|
||||
case GameVersion.Pt:
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue