peasant: have jhonka ready except for hay bale

This commit is contained in:
Vince Weaver
2021-11-26 22:59:05 -05:00
parent e27a82f37c
commit b4d2a13229
4 changed files with 102 additions and 18 deletions

View File

@@ -141,7 +141,7 @@ really_enter_hay_muddy:
; get in hay ; get in hay
lda GAME_STATE_1 lda GAME_STATE_1
ora #HAY_BALE ora #IN_HAY_BALE
sta GAME_STATE_1 sta GAME_STATE_1
ldx #<hay_enter_hay_muddy_message2 ldx #<hay_enter_hay_muddy_message2

View File

@@ -30,6 +30,12 @@ jhonka_cave_verb_table:
.word jhonka_knock-1 .word jhonka_knock-1
.byte VERB_ASK .byte VERB_ASK
.word jhonka_ask-1 .word jhonka_ask-1
.byte VERB_TALK
.word jhonka_talk-1
.byte VERB_GIVE
.word jhonka_give-1
.byte VERB_KILL
.word jhonka_kill-1
.byte 0 .byte 0
@@ -78,6 +84,16 @@ jhonka_get_kerrek_dead:
jhonka_get_riches: jhonka_get_riches:
lda GAME_STATE_1
and #IN_HAY_BALE
bne jhonka_get_riches_in_hay
jhonka_get_riches_no_hay:
ldx #<jhonka_get_riches_no_hay_message
ldy #>jhonka_get_riches_no_hay_message
jmp finish_parse_message
jhonka_get_riches_in_hay:
; TODO: see if in hay ; TODO: see if in hay
ldx #<jhonka_steal_riches_message ldx #<jhonka_steal_riches_message
@@ -404,6 +420,74 @@ jhonka_ask_kerrek_alive:
;================
; talk
;================
jhonka_talk:
; check if kerrek alive
lda KERREK_STATE
and #$f
beq jhonka_cant_talk
lda CURRENT_NOUN
cmp #NOUN_JHONKA
beq jhonka_talk_to
cmp #NOUN_NONE
beq jhonka_talk_to
jhonka_cant_talk:
jmp parse_common_talk
jhonka_talk_to:
; check if in hay
lda GAME_STATE_1
and #IN_HAY_BALE
beq jhonka_ask_jhonka ; same as ask about jhonka
jhonka_talk_in_hay:
ldx #<jhonka_talk_in_hay_message
ldy #>jhonka_talk_in_hay_message
jmp finish_parse_message
;================
; give
;================
jhonka_give:
; check if kerrek alive
lda KERREK_STATE
and #$f
bne jhonka_do_give
jmp parse_common_give
jhonka_do_give:
ldx #<jhonka_give_message
ldy #>jhonka_give_message
jmp finish_parse_message
;================
; kill
;================
jhonka_kill:
; check if kerrek alive
lda KERREK_STATE
and #$f
bne jhonka_do_kill
jmp parse_common_unknown
jhonka_do_kill:
ldx #<jhonka_kill_message
ldy #>jhonka_kill_message
jmp finish_parse_message
;======================= ;=======================
;======================= ;=======================

View File

@@ -84,12 +84,6 @@ jhonka_climb_fence_message:
;================================ ;================================
; kerrek dead ; kerrek dead
; TODO
; + Type any command other than "yes" or "no"
; after the Jhonka asks if you stole the riches
; you can't walk while waiting here
.byte "Just answer him, yes or no,",13
.byte "you fool!",0
; + look (kerrek dead, before riches) ; + look (kerrek dead, before riches)
jhonka_look_at_with_riches_message: jhonka_look_at_with_riches_message:
@@ -116,11 +110,11 @@ jhonka_look_at_club_message:
; + look cave ; + look cave
; same as alive ; same as alive
; + look door (after kerrek?) ; not in WIKI ; + look door (after kerrek) ; not in WIKI
jhonka_look_at_door_out_message: jhonka_look_at_door_out_message:
.byte "Just a door, nothing more.",0 .byte "Just a door, nothing more.",0
; + look riches ; + look riches (if riches are there)
jhonka_look_at_riches_message: jhonka_look_at_riches_message:
.byte "That's one fat pile of",13 .byte "That's one fat pile of",13
.byte "riches alright.",0 .byte "riches alright.",0
@@ -146,14 +140,14 @@ jhonka_get_club_message:
.byte "Now there's a surefire way",13 .byte "Now there's a surefire way",13
.byte "to get yourself killed.",0 .byte "to get yourself killed.",0
; TODO
; + get riches (before jumping in hay) ; + get riches (before jumping in hay)
jhonka_get_riches_no_hay_message:
.byte "The Jhonka will see you!",13 .byte "The Jhonka will see you!",13
.byte "And rip out your jugular",13 .byte "And rip out your jugular",13
.byte "with his teeth or something",13 .byte "with his teeth or something",13
.byte "equally horrible.",0 .byte "equally horrible.",0
; + steal/get riches ; + steal/get riches (in hay)
jhonka_steal_riches_message: jhonka_steal_riches_message:
.byte "Oh OH! A stiff breeze blew",13 .byte "Oh OH! A stiff breeze blew",13
.byte "all the hay and,",13 .byte "all the hay and,",13
@@ -182,6 +176,13 @@ jhonka_steal_riches_message:
.byte "was holding. You dead.",13 .byte "was holding. You dead.",13
.byte "Thanks for playing!",0 .byte "Thanks for playing!",0
; TODO
; + Type any command other than "yes" or "no"
; after the Jhonka asks if you stole the riches
; you can't walk while waiting here
.byte "Just answer him, yes or no,",13
.byte "you fool!",0
; + ask about fire ; + ask about fire
jhonka_ask_about_fire_message: jhonka_ask_about_fire_message:
@@ -195,7 +196,7 @@ jhonka_ask_about_jhonka_message:
.byte "more. You wonder how",13 .byte "more. You wonder how",13
.byte "someone this primitive",13 .byte "someone this primitive",13
.byte "could have made that much",13 .byte "could have made that much",13
.byte " dough.",0 .byte "dough.",0
; + ask about naked ned (or) robe ; + ask about naked ned (or) robe
jhonka_ask_about_ned_message: jhonka_ask_about_ned_message:
@@ -227,25 +228,24 @@ jhonka_ask_about_unknown_message:
.byte 34,"Jhonka don't know nothing",13 .byte 34,"Jhonka don't know nothing",13
.byte "bout that!",34,0 .byte "bout that!",34,0
; open door?
; TODO
; + kill jhonka (outside) ; + kill jhonka (outside)
jhonka_kill_message:
.byte "No way! Jhonka's are born",13 ; [sic] .byte "No way! Jhonka's are born",13 ; [sic]
.byte "scrappers. He may be",13 .byte "scrappers. He may be",13
.byte "little, but he'll crawl ya.",0 .byte "little, but he'll crawl ya.",0
; + give / give {anything} ; + give / give {anything}
jhonka_give_message:
.byte 34,"Don't need nothing from no",13 .byte 34,"Don't need nothing from no",13
.byte "filthy peasantses!!",34,0 .byte "filthy peasantses!!",34,0
; TODO
; + talk jhonka (while inside the hay) ; + talk jhonka (while inside the hay)
jhonka_talk_in_hay_message:
.byte "Not now! You'll blow your cover!",0 .byte "Not now! You'll blow your cover!",0
; + talk ; + talk
; + talk jhonka (jhonka there, not in hay) ; + talk jhonka (jhonka there, not in hay)
; same as look jhonka? ; same as ask about jhonka
;.byte 34,"The Kerrek is dead!",34," he",13 ;.byte 34,"The Kerrek is dead!",34," he",13
;.byte "cries and hops around some",13 ;.byte "cries and hops around some",13
;.byte "more. You wonder how",13 ;.byte "more. You wonder how",13

View File

@@ -136,7 +136,7 @@ GAME_STATE_0 = $97
GAME_STATE_1 = $98 GAME_STATE_1 = $98
FISH_FED=$01 ; also implies man gone and inn open FISH_FED=$01 ; also implies man gone and inn open
PUDDLE_WET=$02 PUDDLE_WET=$02
HAY_BALE=$04 IN_HAY_BALE=$04
JHONKA_OUT=$08 JHONKA_OUT=$08
RAINING=$10 RAINING=$10
NIGHT=$20 NIGHT=$20