only daydream once

This commit is contained in:
Bryce Covert
2016-03-14 20:15:24 -05:00
parent 9b051fcbf3
commit 1055efd223

View File

@@ -246,10 +246,12 @@
(actions/do-dialogue entities
:ego "What a peaceful night."
:ego "Oh my sweet Georgia McGorgeous. How will I ever save you now?")
(actions/georgia-say entities "You gotta find a way out of there, Tick!")
(actions/do-dialogue entities
:ego "She's right."
:ego "I have to escape."))
(when-not (get-in @entities [:state :daydreamed-georgia-night])
(actions/update-state entities #(assoc % :daydreamed-georgia-night true))
(actions/georgia-say entities "You gotta find a way out of there, Tick!")
(actions/do-dialogue entities
:ego "She's right."
:ego "I have to escape.")))
:scripts {:crowbar (actions/get-script entities
(if (get-in @entities [:state :bent-bars?])
(actions/do-dialogue entities :ego "They're bent as far as they can go.")