Skip to content

Commit 443a1ee

Browse files
committed
fix starting health in savecontext
1 parent 3c3b204 commit 443a1ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SaveContext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def give_health(self, health: float):
288288

289289
self.addresses['health_capacity'].value = int(health) * 0x10
290290
self.addresses['health'].value = int(health) * 0x10
291-
self.addresses['quest']['heart_pieces'].value = int((health % 1) * 4) * 0x10
291+
self.addresses['quest']['heart_pieces'].value = int((health % 1) * 4)
292292

293293
def give_item(self, world: World, item: str, count: int = 1) -> None:
294294
if item.endswith(')'):
@@ -689,7 +689,7 @@ def get_save_context_addresses() -> AddressesDict:
689689
'stone_of_agony' : Address(0x00A4, mask=0x00200000),
690690
'gerudos_card' : Address(0x00A4, mask=0x00400000),
691691
'gold_skulltula' : Address(0x00A4, mask=0x00800000),
692-
'heart_pieces' : Address(0x00A4, mask=0xFF000000),
692+
'heart_pieces' : Address(0x00A4, mask=0xF0000000),
693693
},
694694

695695
# Dungeon Items

0 commit comments

Comments
 (0)