diff options
author | Astatin <[email protected]> | 2025-05-07 17:01:22 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-05-07 17:01:22 +0200 |
commit | 4b02238d88af30c98b2f8d44e5200fb80b04bcad (patch) | |
tree | d69861ff5fe1ebed41f9697335948bde512f10f4 /entity/cat.gbasm | |
parent | 7284cc51dedb4f77fe6c1fa1da735b52609b1d4d (diff) |
I was adding the frog and then broke everything to fix the viewport thingy
Diffstat (limited to 'entity/cat.gbasm')
-rw-r--r-- | entity/cat.gbasm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/entity/cat.gbasm b/entity/cat.gbasm index 837dd39..655fd1b 100644 --- a/entity/cat.gbasm +++ b/entity/cat.gbasm @@ -33,13 +33,31 @@ Cat_Turn: DEC A LD $mem_enemies_alive_count, A + ; Drop when deadged PUSH DE + LD E, $02 + CALL =Check_attack_already_learnt + CP $01 + JR Z, =.drops.hp_regen_item + + .drops.attack_item: LD D, $6C LD E, $04 CALL =RNG_Step AND $03 CP $00 CALL Z, =Spawn_object + JR =.drops.end + + .drops.hp_regen_item: + LD D, $64 + LD E, $02 + CALL =RNG_Step + AND $03 + CP $00 + CALL Z, =Spawn_object + + .drops.end: POP DE JP =.Skip_turn |