PKHeX/PKHeX.Core/Legality/Encounters/Data/Encounters6.cs

253 lines
18 KiB
C#
Raw Normal View History

using static PKHeX.Core.EncounterUtil;
namespace PKHeX.Core
{
/// <summary>
/// Generation 6 Encounters
/// </summary>
internal static class Encounters6
{
2020-12-22 01:17:56 +00:00
private static readonly EncounterArea6XY FriendSafari = new(Legal.FriendSafari);
internal static readonly EncounterArea6XY[] SlotsX = EncounterArea6XY.GetAreas(Get("x", "xy"), GameVersion.X, FriendSafari);
internal static readonly EncounterArea6XY[] SlotsY = EncounterArea6XY.GetAreas(Get("y", "xy"), GameVersion.Y, FriendSafari);
Offload EncounterSlot loading logic to reduce complexity (#2980) * Rework gen1 slot loading Slot templates are precomputed from ROM data and just loaded straight in, with tight coupling to the encounter area (grouped by slot types). * Revise fuzzy met check for underleveled wild evos Example: Level 23 poliwhirl in RBY as a level 50 poliwhirl, will assume the chain is 25-50 for poliwhirl (as poliwag evolves at 25). Instead of revising the origin chain, just ignore the evo min level in the comparison. Previous commit fixed it for gen1. * Rework gen2-4 slot loading Gen4 not finished, Type Encounter data and some edge encounters not recognizing yet... * Add feebas slots for old/good encounters * Begin moving properties Great news! Gen5-7 need to be de-dumbed like Gen1-4. Then I can remove the bang (!) on the Area accessor and ensure that it's never null! * Split off XD pokespot slot encounter table type * Set area in constructor * Deduplicate g3 roaming encounters * Deduplicate xd encounter locations (rebattle) Only difference is met location; no need to create 500 extra encounter objects. A simple contains check is ok (rarely in gen3 format). * Make all slots have a readonly reference to their parent area * Minor clean * Remove "Safari" slot type flag Can be determined via other means (generation-location), allows us to reduce the size of SlotType member to a byte Output of slot binaries didn't preserve the Safari flag anyway. * Update SlotType.cs * Handle type encounters correctly * Merge safari area into regular xy area * Merge dexnav accessor logic * fix some logic so that tests pass again rearrange g5 dw init to be done outside of static constructor (initializer instead) PIDGenerator: friend safari slots now generate with required flawless IV count * Add cianwood tentacool gift encounter * Remove unnecessary abstractions Fake area just returned a slot; since Slots have a non-null reference to the area, we can just return the slot and use the API to grab a list of possible slots for the chain. Increase restrictiveness of location/type get-set operations * Minor tweaks, pass parameters DexNav observed state isn't necessary to use, only need to see if it's possible to dexnav. Now that we have metadata for slots, we can. * Remove unused legality tables
2020-08-30 17:23:22 +00:00
internal static readonly EncounterArea6AO[] SlotsA = EncounterArea6AO.GetAreas(Get("a", "ao"), GameVersion.AS);
internal static readonly EncounterArea6AO[] SlotsO = EncounterArea6AO.GetAreas(Get("o", "ao"), GameVersion.OR);
private static byte[][] Get(string resource, string ident) => BinLinker.Unpack(Util.GetBinaryResource($"encounter_{resource}.pkl"), ident);
static Encounters6()
{
MarkEncounterTradeStrings(TradeGift_XY, TradeXY);
MarkEncounterTradeStrings(TradeGift_AO, TradeAO);
Encounter_XY.SetVersion(GameVersion.XY);
Encounter_AO.SetVersion(GameVersion.ORAS);
}
private const string tradeXY = "tradexy";
private const string tradeAO = "tradeao";
private static readonly string[][] TradeXY = Util.GetLanguageStrings8(tradeXY);
private static readonly string[][] TradeAO = Util.GetLanguageStrings8(tradeAO);
#region Static Encounter/Gift Tables
private static readonly EncounterStatic6[] Encounter_XY =
{
2019-06-25 17:55:35 +00:00
// Kalos Starters @ Aquacorde Town
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 650, Level = 5, Location = 10, }, // Chespin
new() { Gift = true, Species = 653, Level = 5, Location = 10, }, // Fennekin
new() { Gift = true, Species = 656, Level = 5, Location = 10, }, // Froakie
2019-06-25 17:55:35 +00:00
// Kanto Starters @ Lumiose City
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 1, Level = 10, Location = 22, }, // Bulbasaur
new() { Gift = true, Species = 4, Level = 10, Location = 22, }, // Charmander
new() { Gift = true, Species = 7, Level = 10, Location = 22, }, // Squirtle
2019-06-25 17:55:35 +00:00
// Fossils @ Ambrette Town
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 138, Level = 20, Location = 44, }, // Omanyte
new() { Gift = true, Species = 140, Level = 20, Location = 44, }, // Kabuto
new() { Gift = true, Species = 142, Level = 20, Location = 44, }, // Aerodactyl
new() { Gift = true, Species = 345, Level = 20, Location = 44, }, // Lileep
new() { Gift = true, Species = 347, Level = 20, Location = 44, }, // Anorith
new() { Gift = true, Species = 408, Level = 20, Location = 44, }, // Cranidos
new() { Gift = true, Species = 410, Level = 20, Location = 44, }, // Shieldon
new() { Gift = true, Species = 564, Level = 20, Location = 44, }, // Tirtouga
new() { Gift = true, Species = 566, Level = 20, Location = 44, }, // Archen
new() { Gift = true, Species = 696, Level = 20, Location = 44, }, // Tyrunt
new() { Gift = true, Species = 698, Level = 20, Location = 44, }, // Amaura
2019-06-25 17:55:35 +00:00
// Gift
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 448, Level = 32, Location = 60, Ability = 1, IVs = new[] {06,25,16,31,25,19}, Nature = Nature.Hasty, Gender = 0, Shiny = Shiny.Never }, // Lucario
new() { Gift = true, Species = 131, Level = 30, Location = 62, Ability = 1, IVs = new[] {31,20,20,20,20,20}, Nature = Nature.Docile, }, // Lapras
2018-05-12 15:13:39 +00:00
2019-06-25 17:55:35 +00:00
// Stationary
2020-12-22 01:17:56 +00:00
new() { Species = 143, Level = 15, Location = 038, Shiny = Shiny.Never, }, // Snorlax
2019-06-25 17:55:35 +00:00
// Shaking Trash Cans @ Lost Hotel
2020-12-22 01:17:56 +00:00
new() { Species = 568, Level = 35, Location = 142 }, // Trubbish
new() { Species = 569, Level = 36, Location = 142 }, // Garbodor
new() { Species = 569, Level = 37, Location = 142 }, // Garbodor
new() { Species = 569, Level = 38, Location = 142 }, // Garbodor
new() { Species = 479, Level = 38, Location = 142 }, // Rotom
2019-06-25 17:55:35 +00:00
// Shaking Trash Cans @ Pokemon Village
2020-12-22 01:17:56 +00:00
new() { Species = 569, Level = 46, Location = 98 }, // Garbodor
new() { Species = 569, Level = 47, Location = 98 }, // Garbodor
new() { Species = 569, Level = 48, Location = 98 }, // Garbodor
new() { Species = 569, Level = 49, Location = 98 }, // Garbodor
new() { Species = 569, Level = 50, Location = 98 }, // Garbodor
new() { Species = 354, Level = 46, Location = 98 }, // Banette
new() { Species = 354, Level = 47, Location = 98 }, // Banette
new() { Species = 354, Level = 48, Location = 98 }, // Banette
new() { Species = 354, Level = 49, Location = 98 }, // Banette
new() { Species = 354, Level = 50, Location = 98 }, // Banette
2018-05-12 15:13:39 +00:00
2019-06-25 17:55:35 +00:00
// Stationary Legendary
2020-12-22 01:17:56 +00:00
new() { Species = 716, Level = 50, Location = 138, Ability = 1, Version = GameVersion.X, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Xerneas
new() { Species = 717, Level = 50, Location = 138, Ability = 1, Version = GameVersion.Y, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Yveltal
new() { Species = 718, Level = 70, Location = 140, Ability = 1, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Zygarde
new() { Species = 150, Level = 70, Location = 168, Ability = 1, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Mewtwo
new() { Species = 144, Level = 70, Location = 146, Ability = 1, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Articuno
new() { Species = 145, Level = 70, Location = 146, Ability = 1, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Zapdos
new() { Species = 146, Level = 70, Location = 146, Ability = 1, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Moltres
};
private static readonly int[] CosplayPikachuIVs = {70, 70, 70, 70, 70, 0};
private static EncounterStatic6 GetCosplayPikachu(int form) => new()
{
Location = 178, // Or 180, 186, 194
Form = form,
Species = 025,
Level = 20,
Gender = 1,
Ability = 4,
FlawlessIVCount = 3,
Contest = CosplayPikachuIVs,
Gift = true,
Shiny = Shiny.Never
};
private static readonly EncounterStatic6[] Encounter_AO_Regular =
{
2019-06-25 17:55:35 +00:00
// Starters @ Route 101
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 252, Level = 5, Location = 204, }, // Treeko
new() { Gift = true, Species = 255, Level = 5, Location = 204, }, // Torchic
new() { Gift = true, Species = 258, Level = 5, Location = 204, }, // Mudkip
2018-05-12 15:13:39 +00:00
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 152, Level = 5, Location = 204, }, // Chikorita
new() { Gift = true, Species = 155, Level = 5, Location = 204, }, // Cyndaquil
new() { Gift = true, Species = 158, Level = 5, Location = 204, }, // Totodile
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 387, Level = 5, Location = 204, }, // Turtwig
new() { Gift = true, Species = 390, Level = 5, Location = 204, }, // Chimchar
new() { Gift = true, Species = 393, Level = 5, Location = 204, }, // Piplup
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 495, Level = 5, Location = 204, }, // Snivy
new() { Gift = true, Species = 498, Level = 5, Location = 204, }, // Tepig
new() { Gift = true, Species = 501, Level = 5, Location = 204, }, // Oshawott
2018-05-12 15:13:39 +00:00
2019-06-25 17:55:35 +00:00
// Fossils @ Rustboro City
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 138, Level = 20, Location = 190, }, // Omanyte
new() { Gift = true, Species = 140, Level = 20, Location = 190, }, // Kabuto
new() { Gift = true, Species = 142, Level = 20, Location = 190, }, // Aerodactyl
new() { Gift = true, Species = 345, Level = 20, Location = 190, }, // Lileep
new() { Gift = true, Species = 347, Level = 20, Location = 190, }, // Anorith
new() { Gift = true, Species = 408, Level = 20, Location = 190, }, // Cranidos
new() { Gift = true, Species = 410, Level = 20, Location = 190, }, // Shieldon
new() { Gift = true, Species = 564, Level = 20, Location = 190, }, // Tirtouga
new() { Gift = true, Species = 566, Level = 20, Location = 190, }, // Archen
new() { Gift = true, Species = 696, Level = 20, Location = 190, }, // Tyrunt
new() { Gift = true, Species = 698, Level = 20, Location = 190, }, // Amaura
2019-06-25 17:55:35 +00:00
// Hot Springs Eggs
2020-12-22 01:17:56 +00:00
new() { Gift = true, Species = 360, Level = 1, EggLocation = 60004, Ability = 1, EggCycles = 70 }, // Wynaut
new() { Gift = true, Species = 175, Level = 1, EggLocation = 60004, Ability = 1, EggCycles = 70 }, // Togepi
2018-05-12 15:13:39 +00:00
2019-06-25 17:55:35 +00:00
// Gift
2020-12-22 01:17:56 +00:00
new() { Species = 374, Level = 01, Location = 196, Ability = 1, IVs = new[] {-1,-1,31,-1,-1,31}, Gift = true }, // Beldum
new() { Species = 351, Level = 30, Location = 240, Ability = 1, IVs = new[] {-1,-1,-1,-1,31,-1}, Contest = new[] {0,100,0,0,0,0}, Gender = 1, Nature = Nature.Lax, Gift = true }, // Castform
new() { Species = 319, Level = 40, Location = 318, Ability = 1, Gender = 1, Nature = Nature.Adamant, Gift = true }, // Sharpedo
new() { Species = 323, Level = 40, Location = 318, Ability = 1, Gender = 1, Nature = Nature.Quiet, Gift = true }, // Camerupt
new() { Species = 380, Level = 30, Location = 320, Ability = 1, Version = GameVersion.AS, Gift = true, FlawlessIVCount = 3 }, // Latias
new() { Species = 381, Level = 30, Location = 320, Ability = 1, Version = GameVersion.OR, Gift = true, FlawlessIVCount = 3 }, // Latios
2019-06-25 17:55:35 +00:00
// Stationary Legendary
2020-12-22 01:17:56 +00:00
new() { Species = 377, Level = 40, Location = 278, FlawlessIVCount = 3 }, // Regirock
new() { Species = 378, Level = 40, Location = 306, FlawlessIVCount = 3 }, // Regice
new() { Species = 379, Level = 40, Location = 308, FlawlessIVCount = 3 }, // Registeel
new() { Species = 486, Level = 50, Location = 306, FlawlessIVCount = 3 }, // Regigigas
new() { Species = 382, Level = 45, Location = 296, Version = GameVersion.AS, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Kyogre
new() { Species = 383, Level = 45, Location = 296, Version = GameVersion.OR, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Groudon
new() { Species = 384, Level = 70, Location = 316, Shiny = Shiny.Never, FlawlessIVCount = 3 }, // Rayquaza
new() { Species = 386, Level = 80, Location = 316, Shiny = Shiny.Never, FlawlessIVCount = 3, Fateful = true }, // Deoxys
2018-05-12 15:13:39 +00:00
2019-06-25 17:55:35 +00:00
// Hoopa Rings
2020-12-22 01:17:56 +00:00
new() { Species = 249, Level = 50, Location = 304, Version = GameVersion.AS, FlawlessIVCount = 3 }, // Lugia
new() { Species = 250, Level = 50, Location = 304, Version = GameVersion.OR, FlawlessIVCount = 3 }, // Ho-Oh
new() { Species = 483, Level = 50, Location = 348, Version = GameVersion.AS, FlawlessIVCount = 3 }, // Dialga
new() { Species = 484, Level = 50, Location = 348, Version = GameVersion.OR, FlawlessIVCount = 3 }, // Palkia
new() { Species = 644, Level = 50, Location = 340, Version = GameVersion.AS, FlawlessIVCount = 3 }, // Zekrom
new() { Species = 643, Level = 50, Location = 340, Version = GameVersion.OR, FlawlessIVCount = 3 }, // Reshiram
new() { Species = 642, Level = 50, Location = 348, Version = GameVersion.AS, FlawlessIVCount = 3 }, // Thundurus
new() { Species = 641, Level = 50, Location = 348, Version = GameVersion.OR, FlawlessIVCount = 3 }, // Tornadus
new() { Species = 243, Level = 50, Location = 334, FlawlessIVCount = 3 }, // Raikou
new() { Species = 244, Level = 50, Location = 334, FlawlessIVCount = 3 }, // Entei
new() { Species = 245, Level = 50, Location = 334, FlawlessIVCount = 3 }, // Suicune
new() { Species = 480, Level = 50, Location = 338, FlawlessIVCount = 3 }, // Uxie
new() { Species = 481, Level = 50, Location = 338, FlawlessIVCount = 3 }, // Mesprit
new() { Species = 482, Level = 50, Location = 338, FlawlessIVCount = 3 }, // Azelf
new() { Species = 485, Level = 50, Location = 312, FlawlessIVCount = 3 }, // Heatran
new() { Species = 487, Level = 50, Location = 348, FlawlessIVCount = 3 }, // Giratina
new() { Species = 488, Level = 50, Location = 344, FlawlessIVCount = 3 }, // Cresselia
new() { Species = 638, Level = 50, Location = 336, FlawlessIVCount = 3 }, // Cobalion
new() { Species = 639, Level = 50, Location = 336, FlawlessIVCount = 3 }, // Terrakion
new() { Species = 640, Level = 50, Location = 336, FlawlessIVCount = 3 }, // Virizion
new() { Species = 645, Level = 50, Location = 348, FlawlessIVCount = 3 }, // Landorus
new() { Species = 646, Level = 50, Location = 342, FlawlessIVCount = 3 }, // Kyurem
2018-05-12 15:13:39 +00:00
2019-06-25 17:55:35 +00:00
// Devon Scope Kecleon
//new EncounterStatic { Species = 352, Level = 30, Location = 240 }, // Kecleon @ Route 119 -- dexnav encounter slot collision; prefer EncounterSlot
//new EncounterStatic { Species = 352, Level = 30, Location = 242 }, // Kecleon @ Route 120 -- dexnav encounter slot collision; prefer EncounterSlot
2020-12-22 01:17:56 +00:00
new() { Species = 352, Level = 40, Location = 176, Gender = 1, }, // Kecleon @ Lavaridge
new() { Species = 352, Level = 45, Location = 196, Ability = 4, }, // Kecleon @ Mossdeep City
2019-06-25 17:55:35 +00:00
// Eon Ticket Lati@s
2020-12-22 01:17:56 +00:00
new() { Species = 381, Level = 30, Location = 320, Version = GameVersion.AS, FlawlessIVCount = 3 }, // Latios
new() { Species = 380, Level = 30, Location = 320, Version = GameVersion.OR, FlawlessIVCount = 3 }, // Latias
2018-05-12 15:13:39 +00:00
2019-06-25 17:55:35 +00:00
// Stationary
2020-12-22 01:17:56 +00:00
new() { Species = 101, Level = 40, Location = 292, Version = GameVersion.AS }, // Electrode
new() { Species = 101, Level = 40, Location = 314, Version = GameVersion.OR }, // Electrode
new() { Species = 100, Level = 20, Location = 302 }, // Voltorb @ Route 119
new() { Species = 442, Level = 50, Location = 304 }, // Spiritomb @ Route 120
// Soaring in the Sky
2020-12-22 01:17:56 +00:00
new() { Species = 198, Level = 45, Location = 348 }, // Murkrow
new() { Species = 276, Level = 40, Location = 348 }, // Taillow
new() { Species = 278, Level = 40, Location = 348 }, // Wingull
new() { Species = 279, Level = 40, Location = 348 }, // Pelipper
new() { Species = 333, Level = 40, Location = 348 }, // Swablu
new() { Species = 425, Level = 45, Location = 348 }, // Drifloon
new() { Species = 628, Level = 45, Location = 348 }, // Braviary
GetCosplayPikachu(1),
GetCosplayPikachu(2),
GetCosplayPikachu(3),
GetCosplayPikachu(4),
GetCosplayPikachu(5),
GetCosplayPikachu(6),
};
private static readonly EncounterStatic6[] Encounter_AO = Encounter_AO_Regular;
#endregion
#region Trade Tables
internal static readonly EncounterTrade[] TradeGift_XY =
{
new EncounterTrade6(01,3,23,049) { Species = 129, Level = 05, Ability = 1, TID = 44285, Version = GameVersion.XY, IVs = new[] {-1,31,-1,-1,31,-1}, Gender = 0, Nature = Nature.Adamant, }, // Magikarp
new EncounterTrade6(10,3,00,000) { Species = 133, Level = 05, Ability = 1, TID = 29294, Version = GameVersion.XY, Gender = 1, Nature = Nature.Docile, }, // Eevee
new EncounterTrade6(15,4,13,017) { Species = 083, Level = 10, Ability = 1, TID = 00185, Version = GameVersion.XY, IVs = new[] {-1,-1,-1,31,-1,-1}, Gender = 0, Nature = Nature.Jolly, }, // Farfetch'd
new EncounterTrade6(17,5,08,025) { Species = 208, Level = 20, Ability = 1, TID = 19250, Version = GameVersion.XY, IVs = new[] {-1,-1,31,-1,-1,-1}, Gender = 1, Nature = Nature.Impish, }, // Steelix
new EncounterTrade6(18,7,20,709) { Species = 625, Level = 50, Ability = 1, TID = 03447, Version = GameVersion.XY, IVs = new[] {-1,31,-1,-1,-1,-1}, Gender = 0, Nature = Nature.Adamant, }, // Bisharp
new EncounterTrade6(02,3,11,005) { Species = 656, Level = 05, Ability = 1, TID = 00037, Version = GameVersion.XY, IVs = new[] {20,20,20,31,20,20}, Gender = 0, Nature = Nature.Jolly, }, // Froakie
new EncounterTrade6(02,3,09,005) { Species = 650, Level = 05, Ability = 1, TID = 00037, Version = GameVersion.XY, IVs = new[] {20,31,20,20,20,20}, Gender = 0, Nature = Nature.Adamant, }, // Chespin
new EncounterTrade6(02,3,18,005) { Species = 653, Level = 05, Ability = 1, TID = 00037, Version = GameVersion.XY, IVs = new[] {20,20,20,20,31,20}, Gender = 0, Nature = Nature.Modest, }, // Fennekin
new EncounterTrade6(51,4,04,033) { Species = 280, Level = 05, Ability = 1, TID = 37110, Version = GameVersion.XY, IVs = new[] {20,20,20,31,31,20}, Gender = 1, Nature = Nature.Modest, IsNicknamed = false, }, // Ralts
};
internal static readonly EncounterTrade[] TradeGift_AO =
{
new EncounterTrade6(01,3,05,040) { Species = 296, Level = 09, Ability = 2, TID = 30724, Version = GameVersion.ORAS, IVs = new[] {-1,31,-1,-1,-1,-1}, Gender = 0, Nature = Nature.Brave, }, // Makuhita
new EncounterTrade6(34,3,13,176) { Species = 300, Level = 30, Ability = 1, TID = 03239, Version = GameVersion.ORAS, IVs = new[] {-1,-1,-1,31,-1,-1}, Gender = 1, Nature = Nature.Naughty, }, // Skitty
new EncounterTrade6(07,4,10,319) { Species = 222, Level = 50, Ability = 4, TID = 00325, Version = GameVersion.ORAS, IVs = new[] {31,-1,-1,-1,-1,31}, Gender = 1, Nature = Nature.Calm, }, // Corsola
};
#endregion
Offload EncounterSlot loading logic to reduce complexity (#2980) * Rework gen1 slot loading Slot templates are precomputed from ROM data and just loaded straight in, with tight coupling to the encounter area (grouped by slot types). * Revise fuzzy met check for underleveled wild evos Example: Level 23 poliwhirl in RBY as a level 50 poliwhirl, will assume the chain is 25-50 for poliwhirl (as poliwag evolves at 25). Instead of revising the origin chain, just ignore the evo min level in the comparison. Previous commit fixed it for gen1. * Rework gen2-4 slot loading Gen4 not finished, Type Encounter data and some edge encounters not recognizing yet... * Add feebas slots for old/good encounters * Begin moving properties Great news! Gen5-7 need to be de-dumbed like Gen1-4. Then I can remove the bang (!) on the Area accessor and ensure that it's never null! * Split off XD pokespot slot encounter table type * Set area in constructor * Deduplicate g3 roaming encounters * Deduplicate xd encounter locations (rebattle) Only difference is met location; no need to create 500 extra encounter objects. A simple contains check is ok (rarely in gen3 format). * Make all slots have a readonly reference to their parent area * Minor clean * Remove "Safari" slot type flag Can be determined via other means (generation-location), allows us to reduce the size of SlotType member to a byte Output of slot binaries didn't preserve the Safari flag anyway. * Update SlotType.cs * Handle type encounters correctly * Merge safari area into regular xy area * Merge dexnav accessor logic * fix some logic so that tests pass again rearrange g5 dw init to be done outside of static constructor (initializer instead) PIDGenerator: friend safari slots now generate with required flawless IV count * Add cianwood tentacool gift encounter * Remove unnecessary abstractions Fake area just returned a slot; since Slots have a non-null reference to the area, we can just return the slot and use the API to grab a list of possible slots for the chain. Increase restrictiveness of location/type get-set operations * Minor tweaks, pass parameters DexNav observed state isn't necessary to use, only need to see if it's possible to dexnav. Now that we have metadata for slots, we can. * Remove unused legality tables
2020-08-30 17:23:22 +00:00
internal static readonly EncounterStatic6[] StaticX = GetEncounters(Encounter_XY, GameVersion.X);
internal static readonly EncounterStatic6[] StaticY = GetEncounters(Encounter_XY, GameVersion.Y);
internal static readonly EncounterStatic6[] StaticA = GetEncounters(Encounter_AO, GameVersion.AS);
internal static readonly EncounterStatic6[] StaticO = GetEncounters(Encounter_AO, GameVersion.OR);
}
}