Make AP items into Zelda's Letter, with custom text and proper sfx for advancement

This commit is contained in:
espeon65536
2021-09-10 10:04:56 -05:00
committed by Fabian Dill
parent 2d27665369
commit 9c09d84c71
4 changed files with 2150 additions and 2132 deletions

View File

@@ -1808,8 +1808,11 @@ def get_override_entry(location):
player_id = location.item.player
if location.item.game != 'Ocarina of Time':
# This is an AP sendable. It's guaranteed to not be None.
item_id = 0x0C # Ocarina of Time item, otherwise unused
looks_like_item_id = 0
if location.item.advancement:
item_id = 0xCB
else:
item_id = 0xCC
else:
item_id = location.item.index
if None in [scene, default, item_id]:
@@ -2057,7 +2060,10 @@ def place_shop_items(rom, world, shop_items, messages, locations, init_shop_id=F
else:
if location.item.game != "Ocarina of Time":
item_display = location.item
item_display.index = 0x0C # Ocarina of Time item
if location.item.advancement:
item_display.index = 0xEF
else:
item_display.index = 0xEF # these will be different later
item_display.special = {}
elif location.item.looks_like_item is not None:
item_display = location.item.looks_like_item