Defunction-ify item modules, requires more cleanup
This commit is contained in:
@@ -15,7 +15,7 @@ strFromEquipment :: Creature -> Int
|
||||
strFromEquipment = sum . fmap equipmentStrValue . crCurrentEquipment
|
||||
|
||||
equipmentStrValue :: Item -> Int
|
||||
equipmentStrValue itm = case _itType itm of
|
||||
equipmentStrValue itm = case _iyBase $ _itType itm of
|
||||
FRONTARMOUR -> negate 3
|
||||
POWERLEGS -> 3
|
||||
_ -> 0
|
||||
|
||||
Reference in New Issue
Block a user