From 25dd449e6fff04570dff3bd3dafccd1514acf486 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 26 Jul 2024 18:26:29 +0300 Subject: [PATCH] Custom dog-action --- game.z80 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/game.z80 b/game.z80 index e77a61a..433cda1 100644 --- a/game.z80 +++ b/game.z80 @@ -2739,6 +2739,9 @@ NEWLINE: db 0x0d, "$" TAB: db " $" +kill_dog: + db 0x0d, "We've all been there, we've all had that thought, but that's not the answer.", 0x0d + db "I'm sorry, I really am, but nobody ever dies in Paw Patrol, sadly.", 0x0d, "$" invalid_msg: db 0x0d, "I did not understand your input.", 0x0d, 0x0d db "Enter 'HELP' to see some of our commands.", 0x0d, "$" @@ -3224,6 +3227,11 @@ book_actions: DEFW read_book_function DEFB 0 +dog_actions: + DEFB 4, 'KILL', 0 + DEFW kill_dog_function + DEFB 0 + rug_actions: DEFB 4, 'MOVE', 0 DEFW move_rug_function @@ -3264,6 +3272,12 @@ read_book_function: call bios_output_string ret +;; Custom function "KILL DOG" +kill_dog_function: + ld de, kill_dog + call bios_output_string + ret + ;; Custom function "MOVE RUG" move_rug_function: call make_trapdoor_visible @@ -3449,7 +3463,7 @@ torch_item_long: DEFB 0 ; item state DEFB 0 ; this item cannot be picked up DEFB 0x01 ; middle-floor - DEFB 0,0 ; no custom actions + DEFW dog_actions ; no custom actions DEFW item_6_name ; painting DEFB 0,0 ; NO DESCRIPTION - hidden item