you can make cream of mushroom.

This commit is contained in:
2014-10-16 20:56:32 -07:00
parent 5dbf134a43
commit 6c1e7bfafd
2 changed files with 10 additions and 5 deletions

View File

@@ -8,11 +8,15 @@
(def flask-1-with-mushrooms {:name "Flask with mushrooms" :value :flask-1-with-mushrooms :cursor :flask-with-contents})
(def flask-1-with-cream-of-mushroom {:name "Flask with cream of mushrooms soup" :value :flask-1-with-cream-of-mushroom :cursor :flask-with-contents})
(defn make-cream-of-mushroom-from [from]
(actions/get-script entities
(actions/remove-item entities from)
(actions/give entities flask-1-with-cream-of-mushroom)
(actions/talk entities :ego "It's just like cream of mushroom soup.")))
(def flask-1-with-milk {:name "Flask with milk" :value :flask-1-with-milk :cursor :flask-with-contents
:scripts {mushrooms (actions/get-script entities
(actions/remove-item entities flask-1-with-milk)
(actions/give entities flask-1-with-cream-of-mushroom)
(actions/talk entities :ego "It's just like cream of mushroom soup."))}})
:scripts {mushrooms (make-cream-of-mushroom-from flask-1-with-milk)}})
(def flask-1-strength {:name "Strength potion" :value :flask-1-strength :cursor :flask-with-contents})
(def flask-1 {:name "Flask" :value :flask-1 :cursor :flask

View File

@@ -183,7 +183,8 @@
(actions/remove-item entities items/flask-1)
(actions/give entities items/flask-1-with-milk)
(actions/talk entities :ego "Sheeps milk."))
(actions/talk entities :ego "She's too far away.")))}
(actions/talk entities :ego "She's too far away.")))
items/flask-1-with-mushrooms (items/make-cream-of-mushroom-from items/flask-1-with-mushrooms)}
:left {:walk (utils/flip sheep-walk)
:stand (utils/flip sheep-stand)}
:right {:walk sheep-walk