Randomize spark movement

This commit is contained in:
2025-06-08 21:15:05 +01:00
parent feb9ce08cc
commit 7e8eaaa34e
4 changed files with 7 additions and 12 deletions
+1 -6
View File
@@ -43,11 +43,7 @@ import Shape
import ShapePicture
-- this can almost certainly be made more efficient
foldCr ::
[Creature -> World -> World] ->
Creature ->
World ->
World
foldCr :: [Creature -> World -> World] -> Creature -> World -> World
foldCr xs cr w = foldl' f w xs
where
f w' g = case w' ^? cWorld . lWorld . creatures . ix (_crID cr) of
@@ -256,7 +252,6 @@ trySynthBullet loc w = fromMaybe w $ do
where
itm = loc ^. locLDT . ldtValue . _1
updateHeldRootItem :: Creature -> World -> World
updateHeldRootItem cr = fromMaybe id $ do
invid <- cr ^? crManipulation . manObject . imRootSelectedItem