Core: fix start_inventory ignoring count
This commit is contained in:
parent
8e569a1d1f
commit
8db8c60e75
3
Main.py
3
Main.py
|
@ -112,7 +112,8 @@ def main(args, seed=None):
|
||||||
logger.info('')
|
logger.info('')
|
||||||
|
|
||||||
for player in world.player_ids:
|
for player in world.player_ids:
|
||||||
for item_name in world.start_inventory[player].value:
|
for item_name, count in world.start_inventory[player].value.items():
|
||||||
|
for _ in range(count):
|
||||||
world.push_precollected(world.create_item(item_name, player))
|
world.push_precollected(world.create_item(item_name, player))
|
||||||
|
|
||||||
for player in world.player_ids:
|
for player in world.player_ids:
|
||||||
|
|
Loading…
Reference in New Issue