aboutsummaryrefslogtreecommitdiff
path: root/entity/fox.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-05-07 17:01:22 +0200
committerAstatin <[email protected]>2025-05-07 17:01:22 +0200
commit4b02238d88af30c98b2f8d44e5200fb80b04bcad (patch)
treed69861ff5fe1ebed41f9697335948bde512f10f4 /entity/fox.gbasm
parent7284cc51dedb4f77fe6c1fa1da735b52609b1d4d (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.gbasm18
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