LADX: define filler item, fix for extra golden leaves (#3918)
* set filler item also rename "Master Stalfos' Message" to "Nothing" as it shows up in game, and "Gel" to "Zol Attack" * fix for extra gold leaves * fix for start_inventory
This commit is contained in:
parent
1b15c6920d
commit
79942c09c2
|
@ -83,8 +83,8 @@ class ItemName:
|
|||
RUPEES_200 = "200 Rupees"
|
||||
RUPEES_500 = "500 Rupees"
|
||||
SEASHELL = "Seashell"
|
||||
MESSAGE = "Master Stalfos' Message"
|
||||
GEL = "Gel"
|
||||
MESSAGE = "Nothing"
|
||||
GEL = "Zol Attack"
|
||||
BOOMERANG = "Boomerang"
|
||||
HEART_PIECE = "Heart Piece"
|
||||
BOWWOW = "BowWow"
|
||||
|
|
|
@ -29,6 +29,7 @@ def fixGoldenLeaf(rom):
|
|||
rom.patch(0x03, 0x0980, ASM("ld a, [$DB15]"), ASM("ld a, [wGoldenLeaves]")) # If leaves >= 6 move richard
|
||||
rom.patch(0x06, 0x0059, ASM("ld a, [$DB15]"), ASM("ld a, [wGoldenLeaves]")) # If leaves >= 6 move richard
|
||||
rom.patch(0x06, 0x007D, ASM("ld a, [$DB15]"), ASM("ld a, [wGoldenLeaves]")) # Richard message if no leaves
|
||||
rom.patch(0x06, 0x00B8, ASM("ld [$DB15], a"), ASM("ld [wGoldenLeaves], a")) # Stores FF in the leaf counter if we opened the path
|
||||
rom.patch(0x06, 0x00B6, ASM("ld a, $FF"), ASM("ld a, $06"))
|
||||
rom.patch(0x06, 0x00B8, ASM("ld [$DB15], a"), ASM("ld [wGoldenLeaves], a")) # Stores 6 in the leaf counter if we opened the path (instead of FF, so that nothing breaks if we get more for some reason)
|
||||
# 6:40EE uses leaves == 6 to check if we have collected the key, but only to change the message.
|
||||
# rom.patch(0x06, 0x2AEF, ASM("ld a, [$DB15]"), ASM("ld a, [wGoldenLeaves]")) # Telephone message handler
|
||||
|
|
|
@ -216,7 +216,7 @@ class LinksAwakeningWorld(World):
|
|||
for _ in range(count):
|
||||
if item_name in exclude:
|
||||
exclude.remove(item_name) # this is destructive. create unique list above
|
||||
self.multiworld.itempool.append(self.create_item("Master Stalfos' Message"))
|
||||
self.multiworld.itempool.append(self.create_item("Nothing"))
|
||||
else:
|
||||
item = self.create_item(item_name)
|
||||
|
||||
|
@ -513,6 +513,9 @@ class LinksAwakeningWorld(World):
|
|||
state.prog_items[self.player]["RUPEES"] -= self.rupees[item.name]
|
||||
return change
|
||||
|
||||
def get_filler_item_name(self) -> str:
|
||||
return "Nothing"
|
||||
|
||||
def fill_slot_data(self):
|
||||
slot_data = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue