Core: fix start_inventory ignoring count
This commit is contained in:
parent
8e569a1d1f
commit
8db8c60e75
5
Main.py
5
Main.py
|
@ -112,8 +112,9 @@ 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():
|
||||||
world.push_precollected(world.create_item(item_name, player))
|
for _ in range(count):
|
||||||
|
world.push_precollected(world.create_item(item_name, player))
|
||||||
|
|
||||||
for player in world.player_ids:
|
for player in world.player_ids:
|
||||||
if player in world.get_game_players("A Link to the Past"):
|
if player in world.get_game_players("A Link to the Past"):
|
||||||
|
|
Loading…
Reference in New Issue