Fixed errors with starting equipment containing bottles
This commit is contained in:
@@ -1245,7 +1245,7 @@ def modify_pool_for_start_inventory(start_inventory, world, player):
|
|||||||
world.itempool.remove(alt_item)
|
world.itempool.remove(alt_item)
|
||||||
i = i-1
|
i = i-1
|
||||||
elif 'Bottle' in item.name:
|
elif 'Bottle' in item.name:
|
||||||
bottle_item = next((x for x in world.itempool if 'Bottle' in item.name and x.player == player), None)
|
bottle_item = next((x for x in world.itempool if 'Bottle' in x.name and x.player == player), None)
|
||||||
if bottle_item is not None:
|
if bottle_item is not None:
|
||||||
world.itempool.remove(bottle_item)
|
world.itempool.remove(bottle_item)
|
||||||
if item.dungeon:
|
if item.dungeon:
|
||||||
|
|||||||
3
Main.py
3
Main.py
@@ -429,6 +429,9 @@ def export_yaml(args, fish):
|
|||||||
for k,v in {"DR":__version__,"OR":ORVersion}.items():
|
for k,v in {"DR":__version__,"OR":ORVersion}.items():
|
||||||
logger.info((k + ' Version:').ljust(16) + '%s' % v)
|
logger.info((k + ' Version:').ljust(16) + '%s' % v)
|
||||||
|
|
||||||
|
for player in range(1, world.players + 1):
|
||||||
|
world.difficulty_requirements[player] = difficulties[world.difficulty[player]]
|
||||||
|
|
||||||
set_starting_inventory(world, args)
|
set_starting_inventory(world, args)
|
||||||
|
|
||||||
world.settings = CustomSettings()
|
world.settings = CustomSettings()
|
||||||
|
|||||||
Reference in New Issue
Block a user