aboutsummaryrefslogtreecommitdiff
path: root/entity/actions.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-12-17 18:42:11 +0900
committerAstatin <[email protected]>2024-12-17 18:42:11 +0900
commit2b0c6081d8a2c48c1f8412aefdcec6c2222e716c (patch)
tree9f1986c74b549856fcd566ea33c0de24b8483782 /entity/actions.gbasm
parentb4934d36f8a2f572c491a0d62f94b757221c6b68 (diff)
Respawn enemies in other rooms when less than 5 enemies alive
Diffstat (limited to 'entity/actions.gbasm')
-rw-r--r--entity/actions.gbasm3
1 files changed, 3 insertions, 0 deletions
diff --git a/entity/actions.gbasm b/entity/actions.gbasm
index 5bc8200..2616e49 100644
--- a/entity/actions.gbasm
+++ b/entity/actions.gbasm
@@ -182,6 +182,9 @@ Fox_Turn:
LD L, A
LD (HL), $00
+ LD A, $mem_enemies_alive_count
+ DEC A
+ LD $mem_enemies_alive_count, A
JP NZ, =Fox_Turn.Skip_turn
Fox_Turn.Health_check.end: