summaryrefslogtreecommitdiff
path: root/src/Sequence
diff options
context:
space:
mode:
Diffstat (limited to 'src/Sequence')
-rw-r--r--src/Sequence/Contact/Types.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Sequence/Contact/Types.hs b/src/Sequence/Contact/Types.hs
index 4bd9790..2e8adcb 100644
--- a/src/Sequence/Contact/Types.hs
+++ b/src/Sequence/Contact/Types.hs
@@ -194,7 +194,8 @@ absorb armor = absorb' Map.empty
194 return . Map.unionWith (+) (leftover mass dType . clamp $ dmg - armor') $ if old /= current then new else current 194 return . Map.unionWith (+) (leftover mass dType . clamp $ dmg - armor') $ if old /= current then new else current
195 195
196 wArmor :: DamageType -> Formula Stats 196 wArmor :: DamageType -> Formula Stats
197 wArmor Passthrough = return $ 0 197 wArmor Passthrough = 0
198 wArmor Fatigue = 0
198 wArmor Electric = (2 *) . maximum <$> mapM wArmor ([minBound..maxBound] \\ [Electric] :: [DamageType]) 199 wArmor Electric = (2 *) . maximum <$> mapM wArmor ([minBound..maxBound] \\ [Electric] :: [DamageType])
199 wArmor x = armor x 200 wArmor x = armor x
200 201