Cleanup
This commit is contained in:
@@ -135,10 +135,8 @@ doAimTwist :: Float -> Creature -> Creature
|
||||
doAimTwist x cr = fromMaybe cr $ do
|
||||
itRef <- cr ^? crManipulation . manObject . imRootSelectedItem
|
||||
astance <- cr ^? crInv . ix itRef . itUse . heldAim . aimStance
|
||||
return $ case astance of
|
||||
TwoHandUnder -> cr & crDir +~ x
|
||||
TwoHandOver -> cr & crDir +~ x
|
||||
_ -> cr
|
||||
guard $ astance == TwoHandOver || astance == TwoHandUnder
|
||||
return $ cr & crDir +~ x
|
||||
|
||||
removeAimPosture :: Creature -> Creature
|
||||
removeAimPosture = (crStance . posture .~ AtEase) . doAimTwist twoHandTwistAmount
|
||||
|
||||
Reference in New Issue
Block a user