diff options
author | Astatin <[email protected]> | 2025-04-11 16:20:31 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-04-11 16:20:31 +0200 |
commit | a846ccc0cc20fe49b5ee07e252b370dc005b38cd (patch) | |
tree | 7996f4fdbca1e054bac3d87dd565178da9ba9191 /entity | |
parent | 690ff7c09726d9e760b52b717c70e9567531175c (diff) |
Make hop the only default attack and make cats drop heal
Diffstat (limited to 'entity')
-rw-r--r-- | entity/cat.gbasm | 36 | ||||
-rw-r--r-- | entity/list.gbasm | 2 |
2 files changed, 37 insertions, 1 deletions
diff --git a/entity/cat.gbasm b/entity/cat.gbasm index 35d0b0c..1ddaac0 100644 --- a/entity/cat.gbasm +++ b/entity/cat.gbasm @@ -32,6 +32,42 @@ Cat_Turn: LD A, $mem_enemies_alive_count 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: + JP NZ, =.Skip_turn .Health_check.end: diff --git a/entity/list.gbasm b/entity/list.gbasm index 0e2ba86..762f43f 100644 --- a/entity/list.gbasm +++ b/entity/list.gbasm @@ -19,7 +19,7 @@ Entity_list: .DB $05 ; Spawning rate (2 lsb) - .DB 0b11 + .DB 0b10 .PADTO =.Fox+8 |