summaryrefslogtreecommitdiff
path: root/src/Sequence/Contact
diff options
context:
space:
mode:
Diffstat (limited to 'src/Sequence/Contact')
-rw-r--r--src/Sequence/Contact/Types.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Sequence/Contact/Types.hs b/src/Sequence/Contact/Types.hs
index 9854d92..80d4360 100644
--- a/src/Sequence/Contact/Types.hs
+++ b/src/Sequence/Contact/Types.hs
@@ -181,4 +181,10 @@ sDead :: Fold Stats (FormulaM Stats Bool)
181sDead = folding $ do 181sDead = folding $ do
182 maxVitality <- preview sMaxVitality 182 maxVitality <- preview sMaxVitality
183 damage <- view sTotalDamage 183 damage <- view sTotalDamage
184 return $ liftM2 (>) <$> Just (return damage) <*> maxVitality 184 return $ liftM2 (>=) <$> Just (return damage) <*> maxVitality
185
186sUnconscious :: Fold Stats (FormulaM Stats Bool)
187sUnconscious = folding $ do
188 maxVitality <- preview sMaxVitality
189 damage <- view sFatigue
190 return $ liftM2 (>=) <$> Just (return damage) <*> maxVitality