mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Gen 4 Honey Trees Slots
This commit is contained in:
parent
2515e5a480
commit
771cb88589
|
|
@ -361,6 +361,10 @@ private static EncounterArea[] getTables2()
|
|||
var HG_Headbutt_Slots = EncounterArea.getArray4HGSS_Headbutt(Data.unpackMini(Resources.encunters_hb_hg, "hg"));
|
||||
var SS_Headbutt_Slots = EncounterArea.getArray4HGSS_Headbutt(Data.unpackMini(Resources.encunters_hb_ss, "ss"));
|
||||
|
||||
var D_HoneyTrees_Slots = SlotsD_HoneyTree.Clone(HoneyTreesLocation);
|
||||
var P_HoneyTrees_Slots = SlotsP_HoneyTree.Clone(HoneyTreesLocation);
|
||||
var Pt_HoneyTrees_Slots = SlotsPt_HoneyTree.Clone(HoneyTreesLocation);
|
||||
|
||||
MarkG4Slots(ref D_Slots);
|
||||
MarkG4Slots(ref P_Slots);
|
||||
MarkG4Slots(ref Pt_Slots);
|
||||
|
|
@ -369,9 +373,9 @@ private static EncounterArea[] getTables2()
|
|||
MarkG4Slots(ref HG_Headbutt_Slots);
|
||||
MarkG4Slots(ref SS_Headbutt_Slots);
|
||||
|
||||
SlotsD = addExtraTableSlots(D_Slots, SlotsDPPPtAlt);
|
||||
SlotsP = addExtraTableSlots(P_Slots, SlotsDPPPtAlt);
|
||||
SlotsPt = addExtraTableSlots(Pt_Slots, SlotsDPPPtAlt);
|
||||
SlotsD = addExtraTableSlots(addExtraTableSlots(D_Slots, D_HoneyTrees_Slots), SlotsDPPPtAlt);
|
||||
SlotsP = addExtraTableSlots(addExtraTableSlots(P_Slots, P_HoneyTrees_Slots), SlotsDPPPtAlt);
|
||||
SlotsPt = addExtraTableSlots(addExtraTableSlots(Pt_Slots, Pt_HoneyTrees_Slots), SlotsDPPPtAlt);
|
||||
SlotsHG = addExtraTableSlots(addExtraTableSlots(HG_Slots, HG_Headbutt_Slots), SlotsHGSSAlt);
|
||||
SlotsSS = addExtraTableSlots(addExtraTableSlots(SS_Slots, SS_Headbutt_Slots), SlotsHGSSAlt);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,28 @@ private EncounterArea(byte[] data)
|
|||
}
|
||||
}
|
||||
|
||||
public EncounterArea Clone(int location)
|
||||
{
|
||||
EncounterArea Areas = new EncounterArea();
|
||||
Areas.Location = location;
|
||||
Areas.Slots = new EncounterSlot[Slots.Length];
|
||||
for (int i = 0; i < Slots.Length; i++)
|
||||
{
|
||||
Areas.Slots[i] = Slots[i].Clone();
|
||||
}
|
||||
return Areas;
|
||||
}
|
||||
|
||||
public EncounterArea[] Clone(int[] locations)
|
||||
{
|
||||
EncounterArea[] Areas = new EncounterArea[locations.Length];
|
||||
for(int i=0;i<locations.Length;i++)
|
||||
{
|
||||
Areas[i] = Clone(locations[i]);
|
||||
}
|
||||
return Areas;
|
||||
}
|
||||
|
||||
private static EncounterSlot1[] getSlots1_GW(byte[] data, ref int ofs, SlotType t)
|
||||
{
|
||||
int rate = data[ofs++];
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ public enum SlotType
|
|||
SOS,
|
||||
Swarm,
|
||||
Headbutt,
|
||||
Pokeradar
|
||||
Pokeradar,
|
||||
HoneyTree
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -470,6 +470,60 @@ public static partial class Legal
|
|||
new EncounterSlot { Species = 201, LevelMin = 5, LevelMax = 5, Type = SlotType.Grass, Form = 26 }, // Unown ?
|
||||
},},
|
||||
};
|
||||
|
||||
private static readonly EncounterArea SlotsPt_HoneyTree =
|
||||
new EncounterArea
|
||||
{
|
||||
Slots = new[]
|
||||
{
|
||||
new EncounterSlot { Species = 190, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Aipom
|
||||
new EncounterSlot { Species = 214, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Heracross
|
||||
new EncounterSlot { Species = 265, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Wurmple
|
||||
new EncounterSlot { Species = 412, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Burmy
|
||||
new EncounterSlot { Species = 415, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Combee
|
||||
new EncounterSlot { Species = 420, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Cheruby
|
||||
new EncounterSlot { Species = 446, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Munchlax
|
||||
},
|
||||
};
|
||||
|
||||
private static readonly EncounterArea SlotsD_HoneyTree =
|
||||
new EncounterArea {
|
||||
Slots = SlotsPt_HoneyTree.Slots.Concat( new EncounterSlot[]
|
||||
{
|
||||
new EncounterSlot { Species = 266, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Silcoon
|
||||
}).ToArray()
|
||||
};
|
||||
|
||||
private static readonly EncounterArea SlotsP_HoneyTree =
|
||||
new EncounterArea
|
||||
{
|
||||
Slots = SlotsPt_HoneyTree.Slots.Concat(new EncounterSlot[]
|
||||
{
|
||||
new EncounterSlot { Species = 267, LevelMin = 5, LevelMax = 15, Type = SlotType.HoneyTree }, // Cascoon
|
||||
}).ToArray()
|
||||
};
|
||||
|
||||
private static readonly int[] HoneyTreesLocation = new int[]
|
||||
{
|
||||
20, // Route 205
|
||||
21, // Route 206
|
||||
22, // Route 207
|
||||
23, // Route 208
|
||||
24, // Route 209
|
||||
25, // Route 210
|
||||
26, // Route 211
|
||||
27, // Route 212
|
||||
28, // Route 213
|
||||
29, // Route 214
|
||||
30, // Route 215
|
||||
33, // Route 218
|
||||
36, // Route 221
|
||||
37, // Route 222
|
||||
47, // Valley Windworks
|
||||
49, // Fuego Ironworks
|
||||
58, //Floaroma Meadow
|
||||
};
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user