Fix skull woods for Location / Item players.
This commit is contained in:
parent
9d067b6f00
commit
ec1c7601b4
10
Dungeons.py
10
Dungeons.py
|
@ -52,6 +52,11 @@ def fill_dungeons(world):
|
||||||
world.push_item(pinball_room, ItemFactory('Small Key (Skull Woods)', player), False)
|
world.push_item(pinball_room, ItemFactory('Small Key (Skull Woods)', player), False)
|
||||||
pinball_room.event = True
|
pinball_room.event = True
|
||||||
pinball_room.locked = True
|
pinball_room.locked = True
|
||||||
|
else:
|
||||||
|
if not world.retro[player]:
|
||||||
|
world.itempool += [ItemFactory('Small Key (Skull Woods)', player)]
|
||||||
|
else:
|
||||||
|
world.itempool += [ItemFactory('Small Key (Universal)', player)]
|
||||||
|
|
||||||
dungeons = [(list(dungeon.regions), dungeon.big_key, list(dungeon.small_keys), list(dungeon.dungeon_items)) for dungeon in world.dungeons]
|
dungeons = [(list(dungeon.regions), dungeon.big_key, list(dungeon.small_keys), list(dungeon.dungeon_items)) for dungeon in world.dungeons]
|
||||||
|
|
||||||
|
@ -130,6 +135,11 @@ def fill_dungeons_restrictive(world, shuffled_locations):
|
||||||
pinball_room.event = True
|
pinball_room.event = True
|
||||||
pinball_room.locked = True
|
pinball_room.locked = True
|
||||||
shuffled_locations.remove(pinball_room)
|
shuffled_locations.remove(pinball_room)
|
||||||
|
else:
|
||||||
|
if not world.retro[player]:
|
||||||
|
world.itempool += [ItemFactory('Small Key (Skull Woods)', player)]
|
||||||
|
else:
|
||||||
|
world.itempool += [ItemFactory('Small Key (Universal)', player)]
|
||||||
|
|
||||||
# with shuffled dungeon items they are distributed as part of the normal item pool
|
# with shuffled dungeon items they are distributed as part of the normal item pool
|
||||||
for item in world.get_items():
|
for item in world.get_items():
|
||||||
|
|
Loading…
Reference in New Issue