improving the story a bit.
This commit is contained in:
@@ -133,19 +133,24 @@
|
||||
:wizard "There's only one way to neutralize it:"
|
||||
:wizard "The Slinger's Shot."
|
||||
:wizard "It's a magical slingshot that has long lost its power."
|
||||
:wizard "Here, take it.")
|
||||
(actions/give entities :slingshot)
|
||||
(actions/do-dialogue entities
|
||||
:wizard "Whatever happens, do not lose that slingshot!"
|
||||
:wizard "You and me, boy, we're going to return it to its powerful state."
|
||||
:wizard "Then you can beat Blergh, come sunrise."
|
||||
:wizard "Now, time is of the essence."
|
||||
:wizard "Take this flask. Fill it with water from the fountain.")
|
||||
:wizard "Take this flask. Fill it with water from the fountain."
|
||||
:wizard "And remember. Don't lose the slingshot.")
|
||||
(actions/give entities :flask-2))))
|
||||
|
||||
(defn add-wizard-if-necessary [entities]
|
||||
(if (actions/has-obtained? entities :flask-water)
|
||||
(if (actions/has-obtained? entities :money)
|
||||
entities
|
||||
(update-in entities [:room :entities] #(assoc % :wizard (get-in entities [:room :wizard])))))
|
||||
|
||||
(defn add-note-if-necessary [entities]
|
||||
(if (and (actions/has-obtained? entities :flask-water)
|
||||
(if (and (actions/has-obtained? entities :money)
|
||||
(not (actions/has-obtained? entities :note-1)))
|
||||
(update-in entities [:room :entities] #(assoc % :note (get-in entities [:room :note])))
|
||||
entities))
|
||||
|
||||
Reference in New Issue
Block a user