Fixed issue with In-dungeon Prize shuffle placing multiple prizes within the same dungeon
This commit is contained in:
4
Fill.py
4
Fill.py
@@ -36,6 +36,10 @@ def dungeon_tracking(world):
|
||||
for dungeon in world.dungeons:
|
||||
layout = world.dungeon_layouts[dungeon.player][dungeon.name]
|
||||
layout.dungeon_items = len([i for i in dungeon.all_items if i.is_inside_dungeon_item(world)])
|
||||
if world.prizeshuffle[dungeon.player] in ['dungeon', 'district'] and not dungeon.prize:
|
||||
from Dungeons import dungeon_table
|
||||
if dungeon_table[dungeon.name].prize:
|
||||
layout.dungeon_items += 1
|
||||
layout.free_items = layout.location_cnt - layout.dungeon_items
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user