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:
parent
976f34c19f
commit
86933d8150
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue