diff options
author | Astatin <[email protected]> | 2025-04-29 09:27:37 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-04-29 09:27:37 +0200 |
commit | fb689cdc68b8d1da3d988da43671bd0ddb063e88 (patch) | |
tree | 25a93ebea1809c814e3780bc9b3d8dd092522683 /entity/cat.gbasm | |
parent | a846ccc0cc20fe49b5ee07e252b370dc005b38cd (diff) |
add earcopter + freeze as learned items + fix collision after item pick up
Diffstat (limited to 'entity/cat.gbasm')
-rw-r--r-- | entity/cat.gbasm | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/entity/cat.gbasm b/entity/cat.gbasm index 1ddaac0..23d1510 100644 --- a/entity/cat.gbasm +++ b/entity/cat.gbasm @@ -33,42 +33,13 @@ Cat_Turn: DEC A LD $mem_enemies_alive_count, A - CALL =RNG_Step - AND $07 - CP $00 - JR NZ, =.skip_spawn_loot - PUSH HL - CALL =Find_Free_Object_slot - LD A, $80 - CP L - JR Z, =.skip_spawn_loot_pop_hl - - LD A, $6C - LD (HL+), A - LD A, B - LD (HL+), A - LD A, C - LD (HL+), A - CALL =Check_other_object_collision - CP $00 - JR NZ, =.skip_spawn_loot_pop_hl - LD A, L - AND $f8 - ADD $03 - LD L, A - LD (HL), $04 - LD A, L - SRA A - SRA A - SRA A - SUB $01 - LD $mem_object_load_counter, A - - .skip_spawn_loot_pop_hl: - POP HL - .skip_spawn_loot: + PUSH DE + LD D, $6C + LD E, $04 + CALL =Spawn_object + POP DE - JP NZ, =.Skip_turn + JP =.Skip_turn .Health_check.end: .Freeze_shiver: |