// Setup static Legal() { // Gen 6 { StaticX = getStaticEncounters(GameVersion.X); StaticY = getStaticEncounters(GameVersion.Y); StaticA = getStaticEncounters(GameVersion.AS); StaticO = getStaticEncounters(GameVersion.OR); var XSlots = getEncounterTables(GameVersion.X); var YSlots = getEncounterTables(GameVersion.Y); MarkG6XYSlots(ref XSlots); MarkG6XYSlots(ref YSlots); SlotsX = addXYAltTiles(XSlots, SlotsXYAlt); SlotsY = addXYAltTiles(YSlots, SlotsXYAlt); SlotsA = getEncounterTables(GameVersion.AS); SlotsO = getEncounterTables(GameVersion.OR); MarkG6AOSlots(ref SlotsA); MarkG6AOSlots(ref SlotsO); Evolves6 = new EvolutionTree(Data.unpackMini(Properties.Resources.evos_ao, "ao"), GameVersion.ORAS, PersonalTable.AO, 721); } // Gen 7 { StaticSN = getStaticEncounters(GameVersion.SN); StaticMN = getStaticEncounters(GameVersion.MN); SlotsSN = getEncounterTables(GameVersion.SN); SlotsMN = getEncounterTables(GameVersion.MN); Evolves7 = new EvolutionTree(Data.unpackMini(Properties.Resources.evos_sm, "sm"), GameVersion.SM, PersonalTable.SM, 802); } }
static Legal() // Setup { // Gen 6 { StaticX = getStaticEncounters(GameVersion.X); StaticY = getStaticEncounters(GameVersion.Y); StaticA = getStaticEncounters(GameVersion.AS); StaticO = getStaticEncounters(GameVersion.OR); var XSlots = getEncounterTables(GameVersion.X); var YSlots = getEncounterTables(GameVersion.Y); MarkG6XYSlots(ref XSlots); MarkG6XYSlots(ref YSlots); SlotsX = addExtraTableSlots(XSlots, SlotsXYAlt); SlotsY = addExtraTableSlots(YSlots, SlotsXYAlt); SlotsA = getEncounterTables(GameVersion.AS); SlotsO = getEncounterTables(GameVersion.OR); MarkG6AOSlots(ref SlotsA); MarkG6AOSlots(ref SlotsO); Evolves6 = new EvolutionTree(Data.unpackMini(Properties.Resources.evos_ao, "ao"), GameVersion.ORAS, PersonalTable.AO, 721); } // Gen 7 { StaticSN = getStaticEncounters(GameVersion.SN); StaticMN = getStaticEncounters(GameVersion.MN); var REG_SN = getEncounterTables(GameVersion.SN); var REG_MN = getEncounterTables(GameVersion.MN); var SOS_SN = getEncounterTables(Properties.Resources.encounter_sn_sos, "sm"); var SOS_MN = getEncounterTables(Properties.Resources.encounter_mn_sos, "sm"); MarkG7SMSlots(ref SOS_SN); MarkG7SMSlots(ref SOS_MN); SlotsSN = addExtraTableSlots(REG_SN, SOS_SN); SlotsMN = addExtraTableSlots(REG_MN, SOS_MN); Evolves7 = new EvolutionTree(Data.unpackMini(Properties.Resources.evos_sm, "sm"), GameVersion.SM, PersonalTable.SM, 802); } }