mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-28 19:47:23 -05:00
Fix Rock Smash slots
DexNav table derivation was reusing the same objects, just create new ones
This commit is contained in:
parent
c3ab1dcb92
commit
ce2b2949e8
|
|
@ -82,13 +82,12 @@ private static EncounterArea[] addXYAltTiles(EncounterArea[] GameSlots, Encounte
|
|||
}
|
||||
return GameSlots;
|
||||
}
|
||||
|
||||
private static EncounterArea[] getDexNavSlots(EncounterArea[] GameSlots, int smashSlot)
|
||||
{
|
||||
EncounterArea[] eA = new EncounterArea[GameSlots.Length];
|
||||
for (int i = 0; i < eA.Length; i++)
|
||||
{
|
||||
eA[i] = GameSlots[i];
|
||||
eA[i] = new EncounterArea {Location = GameSlots[i].Location, Slots = GameSlots[i].Slots};
|
||||
eA[i].Slots = eA[i].Slots.Take(smashSlot).Concat(eA[i].Slots.Skip(smashSlot+5)).ToArray(); // Skip 5 Rock Smash slots.
|
||||
}
|
||||
return eA;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user