summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-06-26 16:00:17 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-06-26 16:00:17 +0200
commit6d9a72b9c893d02649c7336c8defbc0282acaf8c (patch)
treeac5b23233758b7921abf3de5cbb01ea320f07be5 /src
parent266c90da6b94a928d6e02241e8ae1ffda7913dc4 (diff)
download2017-01-16_17:13:37-6d9a72b9c893d02649c7336c8defbc0282acaf8c.tar
2017-01-16_17:13:37-6d9a72b9c893d02649c7336c8defbc0282acaf8c.tar.gz
2017-01-16_17:13:37-6d9a72b9c893d02649c7336c8defbc0282acaf8c.tar.bz2
2017-01-16_17:13:37-6d9a72b9c893d02649c7336c8defbc0282acaf8c.tar.xz
2017-01-16_17:13:37-6d9a72b9c893d02649c7336c8defbc0282acaf8c.zip
fixed delay
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 3576a7a..b056aff 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -312,6 +312,7 @@ delay = withFocus $ fmap (\_ -> ()) . runMaybeT . delay'
312 guard $ focusSeq >= tipSeq 312 guard $ focusSeq >= tipSeq
313 tipName <- toName tipId 313 tipName <- toName tipId
314 lift $ spendSeq (focusSeq - tipSeq) ("Wait for " ++ tipName) 314 lift $ spendSeq (focusSeq - tipSeq) ("Wait for " ++ tipName)
315 gFocus ?= tipId
315 316
316addNote :: String -> Sh GameState () 317addNote :: String -> Sh GameState ()
317addNote note = withFocus $ \focusId -> gEntities . ix focusId . eNotes %= (note :) 318addNote note = withFocus $ \focusId -> gEntities . ix focusId . eNotes %= (note :)