Commit before generalising picture transformation to alternative
This commit is contained in:
@@ -98,7 +98,7 @@ defaultConsumable = Consumable
|
||||
, _itAimStance = LeaveHolstered
|
||||
}
|
||||
defaultApplyDamage :: [DamageType] -> Creature -> (World -> World, Creature)
|
||||
defaultApplyDamage ds cr = (id, doPoisonDam $ foldr (\d c -> snd $ applyIndividualDamage d c) cr ds')
|
||||
defaultApplyDamage ds cr = (id, doPoisonDam $ foldl' (flip $ \d c -> snd $ applyIndividualDamage d c) cr ds')
|
||||
where
|
||||
(ps,ds') = partition isPoison ds
|
||||
isPoison PoisonDam{} = True
|
||||
|
||||
Reference in New Issue
Block a user