Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Offset reserve tank location from WRAM start
Browse files Browse the repository at this point in the history
  • Loading branch information
LegendaryLinux committed Jan 6, 2022
1 parent f1ff03f commit 378d2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games/Super Metroid/Super Metroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class GameInstance {
if (!this.deathLinkSurviveWithReserve) {
const emptyReserveTankData = new Uint8Array(2);
emptyReserveTankData.set([0, 0]);
await writeToAddress(0x09D6, emptyReserveTankData);
await writeToAddress(romData.WRAM_START + 0x09D6, emptyReserveTankData);
} else {
// The player is allowed to survive with reserve tanks. This prevents isPlayerDead from reporting her
// death. As a result, the client logic will continue to try to kill her because the deathLinkState
Expand Down

0 comments on commit 378d2de

Please sign in to comment.