Refactor creature ai
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ wheelDownEvent w = case _carteDisplay w of
|
||||
|
||||
upInvPos :: World -> World
|
||||
upInvPos w = stopSoundFrom (CrReloadSound 0) $ w
|
||||
& creatures . ix (_yourID w) . crInvSel %~ (`mod` n) . (subtract 1)
|
||||
& creatures . ix (_yourID w) . crInvSel %~ (`mod` n) . subtract 1
|
||||
where
|
||||
n = length $ IM.keys $ _crInv $ _creatures w IM.! _yourID w
|
||||
downInvPos :: World -> World
|
||||
|
||||
Reference in New Issue
Block a user