Data-ify creature drawing (partially)
This commit is contained in:
@@ -80,7 +80,7 @@ checkDeath cr w
|
||||
where
|
||||
removecr
|
||||
| _crID cr == 0 = (creatures . ix (_crID cr) . crUpdate .~ const id)
|
||||
. (creatures . ix (_crID cr) . crPict .~ const mempty)
|
||||
. (creatures . ix (_crID cr) . crType .~ DrawnCreature (const mempty))
|
||||
. (creatures . ix (_crID cr) . crHP .~ 0)
|
||||
-- hack to get around player creature being killed but left with more than 0 hp
|
||||
| otherwise = creatures . at (_crID cr) .~ Nothing
|
||||
|
||||
Reference in New Issue
Block a user