Remove external corpses, handle them as creatures
This commit is contained in:
@@ -33,5 +33,5 @@ applyPiercingDamage cr dm w
|
||||
|
||||
damageHP :: Creature -> Int -> World -> World
|
||||
damageHP cr x =
|
||||
(cWorld . lWorld . creatures . ix (_crID cr) . crHP -~ x)
|
||||
(cWorld . lWorld . creatures . ix (_crID cr) . crHP . _HP -~ x)
|
||||
. (cWorld . lWorld . creatures . ix (_crID cr) . crPain +~ x)
|
||||
|
||||
Reference in New Issue
Block a user