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