Fix aiming creature direction when zooming
This commit is contained in:
@@ -4,7 +4,7 @@ import LensHelp
|
||||
|
||||
zoomLongGun :: Float -> Creature -> Item -> Item
|
||||
zoomLongGun x _
|
||||
| x > 0 = itScope . scopeZoomChange %~ (max 10 . (+3))
|
||||
| x < 0 = itScope . scopeZoomChange %~ (min (-10) . subtract 3)
|
||||
| x > 0 = itScope . scopeZoomChange %~ (max 15 . (+4))
|
||||
| x < 0 = itScope . scopeZoomChange %~ (min (-15) . subtract 4)
|
||||
| otherwise = id
|
||||
--zoomLongGun x _ = itScope . scopeZoomChange .~ round (signum x)
|
||||
|
||||
Reference in New Issue
Block a user