mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SNIClient, ALttP: expose death_text to SNI client, add message to alttp (#1793)
This commit is contained in:
@@ -520,7 +520,8 @@ class ALTTPSNIClient(SNIClient):
|
||||
gamemode = await snes_read(ctx, WRAM_START + 0x10, 1)
|
||||
if "DeathLink" in ctx.tags and gamemode and ctx.last_death_link + 1 < time.time():
|
||||
currently_dead = gamemode[0] in DEATH_MODES
|
||||
await ctx.handle_deathlink_state(currently_dead)
|
||||
await ctx.handle_deathlink_state(currently_dead,
|
||||
ctx.player_names[ctx.slot] + " ran out of hearts." if ctx.slot else "")
|
||||
|
||||
gameend = await snes_read(ctx, SAVEDATA_START + 0x443, 1)
|
||||
game_timer = await snes_read(ctx, SAVEDATA_START + 0x42E, 4)
|
||||
|
Reference in New Issue
Block a user