Skip to content

Commit 25dd449

Browse files
committed
Custom dog-action
1 parent 0ee8057 commit 25dd449

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

game.z80

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2739,6 +2739,9 @@ NEWLINE:
27392739
db 0x0d, "$"
27402740
TAB:
27412741
db " $"
2742+
kill_dog:
2743+
db 0x0d, "We've all been there, we've all had that thought, but that's not the answer.", 0x0d
2744+
db "I'm sorry, I really am, but nobody ever dies in Paw Patrol, sadly.", 0x0d, "$"
27422745
invalid_msg:
27432746
db 0x0d, "I did not understand your input.", 0x0d, 0x0d
27442747
db "Enter 'HELP' to see some of our commands.", 0x0d, "$"
@@ -3224,6 +3227,11 @@ book_actions:
32243227
DEFW read_book_function
32253228
DEFB 0
32263229

3230+
dog_actions:
3231+
DEFB 4, 'KILL', 0
3232+
DEFW kill_dog_function
3233+
DEFB 0
3234+
32273235
rug_actions:
32283236
DEFB 4, 'MOVE', 0
32293237
DEFW move_rug_function
@@ -3264,6 +3272,12 @@ read_book_function:
32643272
call bios_output_string
32653273
ret
32663274

3275+
;; Custom function "KILL DOG"
3276+
kill_dog_function:
3277+
ld de, kill_dog
3278+
call bios_output_string
3279+
ret
3280+
32673281
;; Custom function "MOVE RUG"
32683282
move_rug_function:
32693283
call make_trapdoor_visible
@@ -3449,7 +3463,7 @@ torch_item_long:
34493463
DEFB 0 ; item state
34503464
DEFB 0 ; this item cannot be picked up
34513465
DEFB 0x01 ; middle-floor
3452-
DEFB 0,0 ; no custom actions
3466+
DEFW dog_actions ; no custom actions
34533467

34543468
DEFW item_6_name ; painting
34553469
DEFB 0,0 ; NO DESCRIPTION - hidden item

0 commit comments

Comments
 (0)