Slight cleanup
This commit is contained in:
@@ -295,8 +295,8 @@ withRandomDirI acc f it cr w = f it (cr & crDir +~ a) $ set randGen g w
|
||||
withOldDir
|
||||
:: Float -- ^ The fraction of the old direction
|
||||
-> ChainEffect
|
||||
withOldDir aFrac eff item cr w
|
||||
= eff item (cr & crDir %~ tweenAngles aFrac (_crOldDir cr)) w
|
||||
withOldDir aFrac eff item cr
|
||||
= eff item (cr & crDir %~ tweenAngles aFrac (_crOldDir cr))
|
||||
{- | Apply the effect to a translated creature. -}
|
||||
withRandomOffsetI
|
||||
:: Float -- ^ Max possible translate
|
||||
|
||||
Reference in New Issue
Block a user