|
10 | 10 | from worlds.dk64.DK64R.randomizer.Enums.Levels import Levels |
11 | 11 | from worlds.dk64.DK64R.randomizer.Enums.Locations import Locations |
12 | 12 | from worlds.dk64.DK64R.randomizer.Enums.Regions import Regions |
13 | | -from worlds.dk64.DK64R.randomizer.Enums.Settings import HelmSetting, FungiTimeSetting |
| 13 | +from worlds.dk64.DK64R.randomizer.Enums.Settings import HelmSetting, FungiTimeSetting, FasterChecksSelected |
14 | 14 | from worlds.dk64.DK64R.randomizer.Enums.Types import Types |
15 | 15 | from worlds.dk64.DK64R.randomizer.Lists import Location as DK64RLocation, Item as DK64RItem |
16 | 16 | from worlds.dk64.DK64R.randomizer.LogicClasses import Collectible, Event, LocationLogic, TransitionFront, Region as DK64Region |
@@ -130,6 +130,12 @@ def create_region(multiworld: MultiWorld, player: int, region_name: str, level: |
130 | 130 | location_logics = [] |
131 | 131 | for location_logic in location_logics: |
132 | 132 | location_obj = DK64RLocation.LocationListOriginal[location_logic.id] |
| 133 | + # DK Arcade Round 1 is dependent on a setting - don't create the inaccessible location depending on that Faster Checks toggle |
| 134 | + if location_logic.id == Locations.FactoryDonkeyDKArcade: |
| 135 | + if logic_holder.checkFastCheck(FasterChecksSelected.factory_arcade_round_1) and region_name == "FactoryArcadeTunnel": |
| 136 | + continue |
| 137 | + elif not logic_holder.checkFastCheck(FasterChecksSelected.factory_arcade_round_2) and region_name == "FactoryBaboonBlast": |
| 138 | + continue |
133 | 139 | # Starting move locations and Kongs may be shuffled but their locations are not relevant ever due to item placement restrictions |
134 | 140 | if location_obj.type in (Types.TrainingBarrel, Types.PreGivenMove, Types.Kong): |
135 | 141 | continue |
@@ -187,7 +193,7 @@ def create_region(multiworld: MultiWorld, player: int, region_name: str, level: |
187 | 193 | elif collectible.type == Collectibles.balloon: |
188 | 194 | quantity *= 10 |
189 | 195 | location.place_locked_item(DK64Item("Collectible CBs, " + collectible.kong.name + ", " + level.name + ", " + str(quantity), ItemClassification.progression, None, player)) |
190 | | - print("Collectible CBs, " + collectible.kong.name + ", " + level.name + ", " + str(quantity)) |
| 196 | + # print("Collectible CBs, " + collectible.kong.name + ", " + level.name + ", " + str(quantity)) |
191 | 197 | new_region.locations.append(location) |
192 | 198 |
|
193 | 199 | for event in events: |
|
0 commit comments