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/fox.gbasm | |
parent | 7284cc51dedb4f77fe6c1fa1da735b52609b1d4d (diff) |
I was adding the frog and then broke everything to fix the viewport thingy
Diffstat (limited to 'entity/fox.gbasm')
-rw-r--r-- | entity/fox.gbasm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/entity/fox.gbasm b/entity/fox.gbasm index ce6da24..8e72ab4 100644 --- a/entity/fox.gbasm +++ b/entity/fox.gbasm @@ -33,13 +33,31 @@ Fox_Turn: DEC A LD $mem_enemies_alive_count, A + ; Drop when deadged PUSH DE + LD E, $04 + CALL =Check_attack_already_learnt + CP $01 + JR Z, =.drops.ep_regen_item + + .drops.attack_item: LD D, $6C LD E, $06 CALL =RNG_Step AND $03 CP $00 CALL Z, =Spawn_object + JR =.drops.end + + .drops.ep_regen_item: + LD D, $68 + LD E, $03 + CALL =RNG_Step + AND $03 + CP $00 + CALL Z, =Spawn_object + + .drops.end: POP DE JP NZ, =.Skip_turn |