Improve bee crit update

This commit is contained in:
2026-05-05 20:41:09 +01:00
parent 62a9f34a26
commit e927de6508
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -187,6 +187,7 @@ updateCalmBee cr cid w
& tocr . crActionPlan . apAction .~ NoAction
| Just (tcr,_) <- gettarg = w
& tocr . crActionPlan . apAction .~ PathTo (tcr ^. crPos . _xy) NoAction
| Just (HarvestFrom{}) <- cr ^? crActionPlan . apStrategy = startsearch
| Just (SearchTimed 0) <- cr ^? crActionPlan . apStrategy = starthivereturn
| Just PathTo{} <- cr ^? crActionPlan . apAction = w
& tocr . crActionPlan . apStrategy . searchTimer %~ (max 0 . subtract 1)
+2 -1
View File
@@ -48,7 +48,8 @@ isBee cr = case cr ^. crType of
_ -> False
testStringInit :: Universe -> [String]
testStringInit u = u ^.. tocrs . each . filtered isBee . crActionPlan . apStrategy . to show
testStringInit _ = mempty
--u = u ^.. tocrs . each . filtered isBee . crActionPlan . apStrategy . 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