tweaked logic for bubba leaving. can't leave if you've got the slingshot.
This commit is contained in:
@@ -156,20 +156,29 @@
|
||||
:ego "Vote 'Yea' by signing below to pardon him of his crime."
|
||||
:ego "And vote 'Nay' to exact due justice.\""
|
||||
:ego "Let's see..."
|
||||
:ego "It looks like it's perfect tie! 34 to 34!")))
|
||||
:ego "It looks like it's perfect tie! 34 to 34!"))
|
||||
(actions/update-state entities #(assoc % :has-read-voting-sheet? true)))
|
||||
|
||||
(defn sign-note [entities]
|
||||
(actions/walk-to entities :ego [126 65] :face :left)
|
||||
(if (get-in @entities [:state :has-voted?])
|
||||
(actions/do-dialogue entities :ego "Looks like I've already voted.")
|
||||
(do
|
||||
(actions/do-dialogue entities
|
||||
:ego "It'd be a shame to have Took punished on my account!"
|
||||
:ego "I'll vote to give him a pardon.")
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/do-dialogue entities :ego "There, now the vote is 35 to 34!")
|
||||
(actions/update-state entities #(assoc % :has-voted? true))
|
||||
(steam/set-achievement "PARDON"))))
|
||||
(cond
|
||||
(not (get-in @entities [:state :has-read-voting-sheet?]))
|
||||
(do
|
||||
(actions/do-dialogue entities :ego "Let me read it first.")
|
||||
(look-at-note entities)
|
||||
(recur entities))
|
||||
|
||||
(get-in @entities [:state :has-voted?])
|
||||
(actions/do-dialogue entities :ego "Looks like I've already voted.")
|
||||
:else
|
||||
(do
|
||||
(actions/do-dialogue entities
|
||||
:ego "It'd be a shame to have Took punished on my account!"
|
||||
:ego "I'll vote to give him a pardon.")
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/do-dialogue entities :ego "There, now the vote is 35 to 34!")
|
||||
(actions/update-state entities #(assoc % :has-voted? true))
|
||||
(steam/set-achievement "PARDON"))))
|
||||
|
||||
(defn make-note []
|
||||
{:box [97 102 111 132]
|
||||
|
||||
@@ -277,7 +277,8 @@
|
||||
(actions/do-dialogue entities :frankie "That's only for people in the 'Super secret cool club'!"))
|
||||
:choices actions/previous-choices}
|
||||
|
||||
(when-not (get-in @entities [:state :bubba-gone?])
|
||||
(when (and (not (get-in @entities [:state :bubba-gone?]))
|
||||
(not (actions/has-item? entities :slingshot)))
|
||||
"I found your secret stash!")
|
||||
{:run #(do (actions/respond entities %
|
||||
:frankie "What?!"
|
||||
|
||||
Reference in New Issue
Block a user