From 66289c79b1b358a11d83f06976f30ad25cdc0c0c Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 7 Jul 2024 22:13:16 -0400 Subject: [PATCH] add light ring, sword beam at -2 hearts --- Items/magic_rings.asm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Items/magic_rings.asm b/Items/magic_rings.asm index bc9000e..cd61a02 100644 --- a/Items/magic_rings.asm +++ b/Items/magic_rings.asm @@ -24,5 +24,28 @@ org $07E1BE pullpc ; Light - Sword beam at -2 hearts + +MagicRing_CheckForLight: +{ + PHA + LDA.l MAGICRINGS : AND.b #$04 : BEQ + + PLA + SEC + SBC.b #$10 + CMP.l $7EF36D + RTL + + + PLA + CMP.l $7EF36D + RTL +} + +pushpc + +org $079C77 + JSL MagicRing_CheckForLight + +pullpc + ; Blast - Bomb Damage up ; Heart - Slowly regenerate hearts \ No newline at end of file