peasant: can go inside the lady cottage now

This commit is contained in:
Vince Weaver 2021-10-27 19:50:35 -04:00
parent e0d0fcda2b
commit 7aef684870
3 changed files with 71 additions and 1 deletions

View File

@ -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

View File

@ -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
ldy #>lady_cottage_knock_door_message
jmp finish_parse_message
lady_cottage_knock_door_gone:
ldx #<lady_cottage_knock_door_gone_message
ldy #>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
ldy #>lady_cottage_open_door_message
jsr partial_message_step
lda #LOCATION_INSIDE_LADY
jsr update_map_location
rts
;=======================
;=======================
;=======================

View File

@ -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