Move creature speed parameters into explicit data
This commit is contained in:
@@ -145,16 +145,16 @@ upperBody col cr = color (light4 col) $ pictures
|
||||
, shoulderH $ torso cr
|
||||
]
|
||||
|
||||
naked :: Color -> Creature -> Picture
|
||||
naked _ cr
|
||||
| strikeMelee = shoulderH . color white $ circleSolid $ _crRad cr
|
||||
| pdam > 200 = shoulderH . color red $ circleSolid $ _crRad cr
|
||||
| pdam > 99 = shoulderH . color white $ circleSolid $ _crRad cr
|
||||
| otherwise = []
|
||||
where
|
||||
strikeMelee = _crMeleeCooldown cr > 5
|
||||
pdam = sum $ concatMap (map _dmAmount) pastDams
|
||||
pastDams = _crPastDamage $ _crState cr
|
||||
--naked :: Color -> Creature -> Picture
|
||||
--naked _ cr
|
||||
-- | strikeMelee = shoulderH . color white $ circleSolid $ _crRad cr
|
||||
-- | pdam > 200 = shoulderH . color red $ circleSolid $ _crRad cr
|
||||
-- | pdam > 99 = shoulderH . color white $ circleSolid $ _crRad cr
|
||||
-- | otherwise = []
|
||||
-- where
|
||||
-- strikeMelee = _crMeleeCooldown cr > 5
|
||||
-- pdam = sum $ concatMap (map _dmAmount) pastDams
|
||||
-- pastDams = _crPastDamage $ _crState cr
|
||||
|
||||
shoulderH :: Picture -> Picture
|
||||
shoulderH = setDepth 20
|
||||
|
||||
Reference in New Issue
Block a user