Remove external corpses, handle them as creatures
This commit is contained in:
@@ -79,7 +79,7 @@ epText Nothing = " @NOT.EQP"
|
||||
|
||||
introScanValue :: Creature -> IntroScanType -> Either Int String
|
||||
introScanValue cr = \case
|
||||
HEALTH -> Left $ cr ^. crHP
|
||||
HEALTH -> Left $ fromMaybe 0 $ cr ^? crHP . _HP
|
||||
MAXHEALTH -> Left $ crMaxHP $ cr ^. crType
|
||||
|
||||
itemExternalValue :: Item -> World -> Creature -> Maybe (Either Int String)
|
||||
|
||||
Reference in New Issue
Block a user