Add debug to copy to clipboard any clicked-on creature

This commit is contained in:
2026-05-04 21:17:22 +01:00
parent 6b3d75cbb2
commit 5d5d0a539b
13 changed files with 212 additions and 207 deletions
+6 -1
View File
@@ -42,8 +42,13 @@ tocrs :: (IM.IntMap Creature
-> Universe -> Const (Endo [String]) Universe
tocrs = uvWorld . cWorld . lWorld . creatures
isBee :: Creature -> Bool
isBee cr = case cr ^. crType of
BeeCrit{} -> True
_ -> False
testStringInit :: Universe -> [String]
testStringInit _ = mempty -- u ^.. tocrs . each . crActionPlan . apStrategy . to show
testStringInit 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