animation for fire mint.
This commit is contained in:
@@ -135,6 +135,7 @@
|
||||
(actions/talk entities :ego "I'll just try one of these mints.")
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/update-state entities (fn [s] (assoc s :mints-eaten (inc (s :mints-eaten)))))
|
||||
(actions/play-animation entities :ego [:fire (get-in @entities [:state :mints-eaten])])
|
||||
(actions/talk entities :ego "WOWZA! Those are hot.")
|
||||
(when (= 3 (get-in @entities [:state :mints-eaten]))
|
||||
(actions/talk entities :shopkeep "You brat! You ate the last mint.")
|
||||
|
||||
Reference in New Issue
Block a user