Speed up slime rad change
This commit is contained in:
@@ -301,8 +301,8 @@ setSlimeDir cid cr w = do
|
||||
doSlimeRadChange :: Creature -> Creature
|
||||
doSlimeRadChange = crType . slimeSlimeChange %~ f
|
||||
where
|
||||
f x | x > 100 = x - 100
|
||||
| x < -100 = x + 100
|
||||
f x | x > 1000 = x - 1000
|
||||
| x < -1000 = x + 1000
|
||||
| otherwise = 0
|
||||
|
||||
splitSlimeCrit' :: Point2 -> Point2 -> Int -> Creature -> World -> Maybe World
|
||||
|
||||
@@ -58,8 +58,8 @@ crs :: Universe -> [Creature]
|
||||
crs u = u ^.. uvWorld . cWorld . lWorld . creatures . each
|
||||
|
||||
testStringInit :: Universe -> [String]
|
||||
testStringInit u = [show . getSum $ foldMap (Sum . crslime) (crs u)]
|
||||
--u = u ^.. tocrs . each . filtered isBee . crActionPlan . apStrategy . to show
|
||||
testStringInit u = -- [show . getSum $ foldMap (Sum . crslime) (crs u)]
|
||||
u ^.. tocrs . each . crType . slimeSlimeChange . to show
|
||||
-- u ^.. tocrs . ix 1 . crPos . _xy . to show
|
||||
-- <> u ^.. tocrs . ix 1 . crType . slimeCompression . to show
|
||||
-- <> u ^.. tocrs . ix 1 . crType . slimeCompression . to norm . to show
|
||||
|
||||
Reference in New Issue
Block a user