Cleanup
This commit is contained in:
@@ -112,7 +112,7 @@ crIsArmouredFrom = hasFrontArmour
|
||||
hasFrontArmour :: Point2 -> Creature -> Bool
|
||||
hasFrontArmour p cr = fromMaybe False $ do
|
||||
invid <- cr ^? crEquipment . ix OnChest
|
||||
ittype <- cr ^? crInv . ix invid . itType . iyBase
|
||||
ittype <- cr ^? crInv . ix invid . itType
|
||||
return $
|
||||
EQUIP FRONTARMOUR == ittype
|
||||
&& p /= _crOldPos cr
|
||||
|
||||
Reference in New Issue
Block a user