LttP: ensure non-native items are rendered as star in Shops (#486)

* LttP: ensure non-native items are rendered as star in Shops

* LttP: ensure non-native items are rendered as star in Shops - fix missing player number lookup
This commit is contained in:
Fabian Dill 2022-05-11 05:41:44 +02:00 committed by GitHub
parent 976f34c19f
commit 86933d8150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1723,7 +1723,7 @@ def write_custom_shops(rom, world, player):
price_data = get_price_data(item['price'], item["price_type"]) price_data = get_price_data(item['price'], item["price_type"])
replacement_price_data = get_price_data(item['replacement_price'], item['replacement_price_type']) replacement_price_data = get_price_data(item['replacement_price'], item['replacement_price_type'])
slot = 0 if shop.type == ShopType.TakeAny else index slot = 0 if shop.type == ShopType.TakeAny else index
if not item['item'] in item_table: # item not native to ALTTP if item['player'] and world.game[item['player']] != "A Link to the Past": # item not native to ALTTP
item_code = get_nonnative_item_sprite(item['item']) item_code = get_nonnative_item_sprite(item['item'])
else: else:
item_code = ItemFactory(item['item'], player).code item_code = ItemFactory(item['item'], player).code