fixed achievement to actually show.

This commit is contained in:
Bryce Covert
2015-11-18 23:13:46 -08:00
parent 47aab81ed6
commit c96e864e35
5 changed files with 41 additions and 6 deletions

View File

@@ -99,12 +99,14 @@
(actions/update-entity entities :peeling #(assoc % :opacity 0))
(actions/update-state entities (fn [state] (assoc state :opened-crack? true))))))
:scripts {:stick (actions/get-script entities
(if (get-in @entities [:state :opened-crack?])
(actions/talk entities :ego "I could shove the stick in that hole, but why?")
(actions/do-dialogue entities
:ego "It looks like that wall is crumbling."
:ego "I can probably scratch it off with my hand.")))
:sword (actions/get-script entities
(actions/do-dialogue entities
:ego "I should be careful with this sword."
:ego "It's sharp!"))})