no premature potions.

This commit is contained in:
Bryce Covert
2015-09-05 18:13:33 -07:00
parent 9a6638964d
commit e6de6660e5
2 changed files with 73 additions and 51 deletions

View File

@@ -561,7 +561,7 @@
(actions/has-item? entities :note-1)
(actions/do-dialogue entities :ego "According to Gandarf's note..."
:ego "I need to some stuff up in a flask and dump it in here.")
:ego "I need to mix some stuff up in a flask and dump it in here.")
:else
(actions/talk entities :ego "That's a big cauldron!"))))
@@ -681,14 +681,16 @@
(actions/update-state entities (fn [s] (assoc s :coaxed-sheep? true)))
(leave-sheep entities))
:flask-1 (actions/get-script entities
(if (is-sheep-close? @entities)
(do (walk-to-sheep entities)
(actions/play-animation entities :ego :milk)
(actions/remove-item entities :flask-1)
(actions/give entities :flask-1-with-milk)
(actions/talk entities :ego "Sheeps milk.")
(leave-sheep entities))
(actions/talk entities :ego "She's too far away.")))
(if (actions/has-item? entities :recipe)
(if (is-sheep-close? @entities)
(do (walk-to-sheep entities)
(actions/play-animation entities :ego :milk)
(actions/remove-item entities :flask-1)
(actions/give entities :flask-1-with-milk)
(actions/talk entities :ego "Sheeps milk.")
(leave-sheep entities))
(actions/talk entities :ego "She's too far away."))
(actions/talk entities :ego "I don't need any milk.")))
:flask-1-with-mushrooms
(actions/get-script entities
(if (is-sheep-close? @entities)