diff --git a/games/peasant/Makefile b/games/peasant/Makefile index 8340e70e..be616e39 100644 --- a/games/peasant/Makefile +++ b/games/peasant/Makefile @@ -589,6 +589,9 @@ graphics_trogdor/trogdor_graphics.inc: graphics_end/ending_graphics.inc: cd graphics_end && make +graphics_inside/graphics_inside.inc: + cd graphics_inside && make + sprites/inventory_sprites.inc: cd sprites && make diff --git a/games/peasant/peasant4_actions.s b/games/peasant/peasant4_actions.s index dbfed05e..a0dd031a 100644 --- a/games/peasant/peasant4_actions.s +++ b/games/peasant/peasant4_actions.s @@ -443,6 +443,10 @@ ned_tree_look_at_tree: lady_cottage_verb_table: .byte VERB_LOOK .word lady_cottage_look-1 + .byte VERB_KNOCK + .word lady_cottage_knock-1 + .byte VERB_OPEN + .word lady_cottage_open-1 .byte 0 ;================= @@ -492,6 +496,63 @@ lady_cottage_look_at_bushes: jmp finish_parse_message + ;================ + ; knock + ;================ +lady_cottage_knock: + lda CURRENT_NOUN + + cmp #NOUN_DOOR + beq lady_cottage_knock_door + cmp #NOUN_NONE + beq lady_cottage_knock_door + + jmp parse_common_unknown + +lady_cottage_knock_door: + + lda GAME_STATE_0 + and #LADY_GONE + bne lady_cottage_knock_door_gone + + ldx #lady_cottage_knock_door_message + jmp finish_parse_message + +lady_cottage_knock_door_gone: + ldx #lady_cottage_knock_door_gone_message + jmp finish_parse_message + + + ;================ + ; open + ;================ +lady_cottage_open: + lda CURRENT_NOUN + + cmp #NOUN_DOOR + beq lady_cottage_open_door + cmp #NOUN_NONE + beq lady_cottage_open_door + + jmp parse_common_unknown + +lady_cottage_open_door: + + ldx #lady_cottage_open_door_message + + jsr partial_message_step + + lda #LOCATION_INSIDE_LADY + jsr update_map_location + + rts + + + + ;======================= ;======================= ;======================= diff --git a/games/peasant/text/peasant4.inc b/games/peasant/text/peasant4.inc index ff345d50..6e00db75 100644 --- a/games/peasant/text/peasant4.inc +++ b/games/peasant/text/peasant4.inc @@ -308,15 +308,21 @@ lady_cottage_look_at_bushes_message: ;.byte "more press 'reload' on the browser ; + knock (walks to door) +lady_cottage_knock_door_message: .byte 34,"It's open,",34," says a female",13 .byte "voice from inside. Um, it's",13 .byte "NOT open, but you get her",13 .byte "drift.",0 ; + knock (after she leaves) -.byte "No one answers. That crazy lady took off. How ever will you get past this closed door now?",0 +lady_cottage_knock_door_gone_message: +.byte "No one answers. That crazy",13 +.byte "lady took off. How ever",13 +.byte "will you get past this",13 +.byte "closed door now?",0 ; + open door +lady_cottage_open_door_message: .byte "You open er up and head on",13 .byte "in.",0