aboutsummaryrefslogtreecommitdiff
path: root/modes/dialoguemenu.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-08-27 17:04:54 +0200
committerAstatin <[email protected]>2025-08-27 17:04:54 +0200
commit09a173d2f1123b6ac203c247094c312473705802 (patch)
tree83be7ff3a2f804492a9edc7b7234399f12d11534 /modes/dialoguemenu.gbasm
parentfb897a615f65af2ff99dc6070067262c809a2ac4 (diff)
Fix health not updated on death, fix penguin freeze not working on bunny blink, fix entity initial spawn
Diffstat (limited to 'modes/dialoguemenu.gbasm')
-rw-r--r--modes/dialoguemenu.gbasm15
1 files changed, 14 insertions, 1 deletions
diff --git a/modes/dialoguemenu.gbasm b/modes/dialoguemenu.gbasm
index 126495b..76d7470 100644
--- a/modes/dialoguemenu.gbasm
+++ b/modes/dialoguemenu.gbasm
@@ -18,12 +18,25 @@ Dialogue_VBLANK_Entrypoint:
LD $reg_lyc, A
.top_bar.end:
- CALL $OAM_DMA_Transfer_routine
+ LD A, $mem_current_mode
+ CP $enum_dead_mode
+ JR NZ, =.update_health_mana.end
+ LD HL, $9d60
+ LD A, $mem_bunny_health
+ CALL =Print_8bit
+
+ LD HL, $9d64
+ LD A, $mem_bunny_mana
+ CALL =Print_8bit
+ .update_health_mana.end:
+
CALL =Dialogue_Arrow_Animation
CALL =Copy_Dialogue_Buffer
CALL =Display_dialogue_cursor
+ CALL $OAM_DMA_Transfer_routine
+
; LYC
LD A, $0a
LD $reg_lyc, A