Fix: No longer allow setting starting items from other games
This commit is contained in:
parent
4feb3bf411
commit
38bc3d47ad
6
Main.py
6
Main.py
|
@ -22,7 +22,7 @@ from worlds.alttp.Shops import create_shops, ShopSlotFill, SHOP_ID_START, total_
|
||||||
from worlds.alttp.ItemPool import generate_itempool, difficulties, fill_prizes
|
from worlds.alttp.ItemPool import generate_itempool, difficulties, fill_prizes
|
||||||
from Utils import output_path, parse_player_names, get_options, __version__, version_tuple
|
from Utils import output_path, parse_player_names, get_options, __version__, version_tuple
|
||||||
from worlds.generic.Rules import locality_rules
|
from worlds.generic.Rules import locality_rules
|
||||||
from worlds import lookup_any_item_name_to_id, AutoWorld
|
from worlds import AutoWorld
|
||||||
import Patch
|
import Patch
|
||||||
|
|
||||||
seeddigits = 20
|
seeddigits = 20
|
||||||
|
@ -162,9 +162,7 @@ def main(args, seed=None):
|
||||||
|
|
||||||
for player in world.player_ids:
|
for player in world.player_ids:
|
||||||
for item_name in args.startinventory[player]:
|
for item_name in args.startinventory[player]:
|
||||||
item = Item(item_name, True, lookup_any_item_name_to_id[item_name], player)
|
world.push_precollected(world.create_item(item_name, player))
|
||||||
item.game = world.game[player]
|
|
||||||
world.push_precollected(item)
|
|
||||||
|
|
||||||
for player in world.player_ids:
|
for player in world.player_ids:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue