peasant: hook up climb tree properly

This commit is contained in:
Vince Weaver 2021-12-06 00:22:13 -05:00
parent 3cb27864ab
commit 8e47f9b93e
2 changed files with 37 additions and 5 deletions

View File

@ -141,7 +141,16 @@ parse_common_climb:
jmp parse_common_unknown
climb_tree:
; FIXME: this changes after INN
lda GAME_STATE_1
and #NIGHT
beq climb_tree_day
climb_tree_night:
ldx #<climb_tree_night_message
ldy #>climb_tree_night_message
jmp finish_parse_message
climb_tree_day:
ldx #<climb_tree_message
ldy #>climb_tree_message
jmp finish_parse_message
@ -207,7 +216,7 @@ parse_common_drop:
ditch_baby:
lda INVENTORY_1
and INV1_BABY
and #INV1_BABY
beq no_baby
ldx #<ditch_baby_message
@ -238,6 +247,23 @@ parse_common_drink:
; drop/throw
;================
parse_common_throw:
lda CURRENT_NOUN
cmp #NOUN_BABY
beq throw_baby
jmp parse_common_unknown
throw_baby:
lda INVENTORY_1
and #INV1_BABY
beq throw_baby_no_baby
throw_baby_yes_baby:
ldx #<throw_baby_yes_message
ldy #>throw_baby_yes_message
jmp finish_parse_message
throw_baby_no_baby:
ldx #<no_baby_message
ldy #>no_baby_message
jmp finish_parse_message

View File

@ -184,12 +184,14 @@ climb_cliff_message:
.byte "have any carabeaners on",13
.byte "you.",0
; + climb tree
; + climb tree (day)
climb_tree_message:
.byte "But then your hands would",13
.byte "get all sappy.",0
; + climb tree (after getting room at inn)
; + climb tree (at night?)
; (wiki says: after getting room at inn but that doesn't seem to be right)
climb_tree_night_message:
.byte "Naw. That's dumb. Do better.",0
; ???? steal
@ -212,7 +214,9 @@ give_message:
.byte "that now.",0
; + throw baby (anywhere but the west side of the lake)
.byte "Hmmm. Maybe try someplace else.",0
throw_baby_yes_message:
.byte "Hmmm. Maybe try someplace",13
.byte "else.",0
; + talk
talk_noone_message:
@ -224,12 +228,14 @@ look_irrelevant_message:
.byte "You don't need to look at",13
.byte "that.",0
; TODO
; + look (at something previously in your inventory but now gone)
.byte "You used to have one,",13
.byte "before the great item",13
.byte "blight of 402. Check your",13
.byte "INVENTORY to read about it.",0
; TODO
; + look (at something currently in your inventory)
.byte "You've totally got one of",13
.byte "those! Check your",13