Skip to content

Fix Starting Health in SaveContext#2515

Merged
fenhl merged 1 commit into
OoTRandomizer:Devfrom
jdunn596:fix-health-save-context
Feb 2, 2026
Merged

Fix Starting Health in SaveContext#2515
fenhl merged 1 commit into
OoTRandomizer:Devfrom
jdunn596:fix-health-save-context

Conversation

@jdunn596

@jdunn596 jdunn596 commented Jan 5, 2026

Copy link
Copy Markdown

Fixes #2514

After a discussion in #dev-bug-reports (thanks @flagrama @GSKirox, @aofengen) we've uncovered the issue where starting health was miscalcuated due to a bug in determining how much health to add relative to the number of currently collected heart pieces in save context. This change corrects this miscalcuation, while also updating the mask value to mirror decomp

Testing

Rolled a few seeds with a bunch of starting health items, both Pieces of Heart and Heart Containers, and observed the health value written to save context during generation. Also tested in-game to make sure the correct health value was written.

@fenhl fenhl added Type: Bug Something isn't working Component: Patching Affects the patching of the ROM labels Jan 5, 2026
@fenhl fenhl added this to the next milestone Feb 2, 2026
@fenhl fenhl merged commit 3cc059f into OoTRandomizer:Dev Feb 2, 2026
6 checks passed
@jdunn596 jdunn596 deleted the fix-health-save-context branch February 3, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Patching Affects the patching of the ROM Type: Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Starting Health Not Calculated Correctly

4 participants