swap flask for milk.

This commit is contained in:
2014-10-16 20:04:02 -07:00
parent ec87413084
commit d06fe98465
4 changed files with 24 additions and 5 deletions

View File

@@ -178,10 +178,11 @@
(actions/walk-to entities :ego ego-sheep-loc)
(actions/talk entities :ego "Come on girl, get the carrot!")
(actions/walk-straight-to entities :sheep [95 150]))
items/flask (actions/get-script entities
items/flask-1 (actions/get-script entities
(if (is-sheep-close? @entities)
(do (actions/walk-to entities :ego ego-sheep-loc)
(actions/give entities items/flask-with-milk)
(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.")))}
:left {:walk (utils/flip sheep-walk)