summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-06 19:36:12 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-06 19:36:12 +0200
commit635e2dac8e4db3f0d785537d55002540ae2aaa11 (patch)
tree527a690ed78a547e6c6b622557f677363ebafd27 /src
parent26ff5b85f3a2d27f3b9a82dca632bc58d2dfa1f1 (diff)
download2017-01-16_17:13:37-635e2dac8e4db3f0d785537d55002540ae2aaa11.tar
2017-01-16_17:13:37-635e2dac8e4db3f0d785537d55002540ae2aaa11.tar.gz
2017-01-16_17:13:37-635e2dac8e4db3f0d785537d55002540ae2aaa11.tar.bz2
2017-01-16_17:13:37-635e2dac8e4db3f0d785537d55002540ae2aaa11.tar.xz
2017-01-16_17:13:37-635e2dac8e4db3f0d785537d55002540ae2aaa11.zip
Ask for seqVal if we donĀ“t have a formula
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs
index b056aff..bddc85e 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -287,7 +287,7 @@ factionSeqVal = withArg $ \qFaction -> use gEntities >>= mapM_ (entitySeqVal') .
287entitySeqVal' :: EntityIdentifier -> Sh GameState () 287entitySeqVal' :: EntityIdentifier -> Sh GameState ()
288entitySeqVal' ident = void . runMaybeT $ do 288entitySeqVal' ident = void . runMaybeT $ do
289 entity <- MaybeT $ preuse (gEntities . ix ident) 289 entity <- MaybeT $ preuse (gEntities . ix ident)
290 sVal <- MaybeT . return $ preview (eStats . sSeqVal) entity 290 let sVal = fromMaybe (val ignored ["Sequenzwert"] False) $ preview (eStats . sSeqVal) entity
291 name <- toName ident 291 name <- toName ident
292 round <- use gRound 292 round <- use gRound
293 (newEntity, sNum) <- evalFormula [name] entity sVal 293 (newEntity, sNum) <- evalFormula [name] entity sVal