Allow bees to target chase crits

This commit is contained in:
2026-04-27 22:29:57 +01:00
parent 259325f81f
commit 284ea32333
2 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -138,8 +138,13 @@ updateAggroBee cr cid w
vdir = unitVectorAtAngle (cr ^. crDir)
cxy = cr ^. crPos . _xy
tocr = cWorld . lWorld . creatures . ix cid
istarget tcr = tcr ^. crID == 0
istarget tcr = t (tcr ^. crType)
&& isJust (tcr ^? crHP . _HP)
&& hasLOS cxy (tcr ^. crPos . _xy) w
t = \case
Avatar{} -> True
ChaseCrit{} -> True
_ -> False
-- do bees need to be able to see slime targets?
-- if no path can be made, reset harvest action