more failure interactions.
This commit is contained in:
@@ -90,10 +90,13 @@
|
||||
(defn put-something-in-cauldron [item]
|
||||
(condp = item
|
||||
:money (actions/get-script entities
|
||||
(actions/walk-to entities :ego [141 90] :face :right)
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/remove-item entities :money)
|
||||
(actions/talk entities :ego "I guess that's what you could call 'money in the pot'."))
|
||||
(if (actions/has-item? entities :note-2)
|
||||
(do
|
||||
(actions/walk-to entities :ego [141 90] :face :right)
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/remove-item entities :money)
|
||||
(actions/talk entities :ego "I guess that's what you could call 'money in the pot'."))
|
||||
(actions/talk entities :ego "I don't want to put something in there unless I'm sure I need to.")))
|
||||
:slingshot (actions/get-script entities
|
||||
(if (is-ready-for-slingshot entities)
|
||||
(do
|
||||
@@ -128,10 +131,13 @@
|
||||
(Thread/sleep 500)
|
||||
(actions/walk-straight-to entities :ego [35 45] :override-dir :right :speed 3.0))))
|
||||
:broken-clock (actions/get-script entities
|
||||
(actions/walk-to entities :ego [141 90] :face :right)
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/remove-item entities :broken-clock)
|
||||
(actions/talk entities :ego "Just in the nick of time."))
|
||||
(if (actions/has-item? entities :note-2)
|
||||
(do
|
||||
(actions/walk-to entities :ego [141 90] :face :right)
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/remove-item entities :broken-clock)
|
||||
(actions/talk entities :ego "Just in the nick of time."))
|
||||
(actions/talk entities :ego "I don't want to put something in there unless I'm sure I need to.")))
|
||||
:recipe (actions/get-script entities
|
||||
(actions/walk-to entities :ego [151 90] :face :right)
|
||||
(actions/play-animation entities :ego :squat)
|
||||
|
||||
Reference in New Issue
Block a user