CVCotM: Add a client safeguard in case the player doesn't have Dash Boots #5500

This commit is contained in:
LiquidCat64
2025-11-29 11:07:02 -07:00
committed by GitHub
parent d88fe99780
commit f1aca0fc46

View File

@@ -247,6 +247,10 @@ class CastlevaniaCotMClient(BizHawkClient):
await bizhawk.write(ctx.bizhawk_ctx, [(QUEUED_TEXTBOX_1_ADDRESS, [0 for _ in range(12)], "EWRAM")])
return
# If the player doesn't have Dash Boots for whatever reason, put them in their inventory now.
if not magic_items_array[0]:
await bizhawk.write(ctx.bizhawk_ctx, [(MAGIC_ITEMS_ARRAY_START, [1], "EWRAM")])
# Enable DeathLink if it's in our slot_data.
if "DeathLink" not in ctx.tags and ctx.slot_data["death_link"]:
await ctx.update_death_link(True)