Make _targetCr an Int id rather than a full creature
This commit is contained in:
@@ -38,10 +38,9 @@ sentinelAI =
|
||||
]
|
||||
)
|
||||
]
|
||||
-- w
|
||||
where
|
||||
advanceShoot = DoImpulses [UseItem, MoveForward 3]
|
||||
tcid cr = _crID <$> _targetCr (_crIntention cr)
|
||||
tcid cr = _targetCr (_crIntention cr)
|
||||
lostest = WdCrLOSTarget -- w' cr = maybe False (\cid -> canSee (_crID cr) cid w') (tcid cr)
|
||||
|
||||
--chainCreatureUpdates :: [World -> Creature -> Creature] -> World -> Creature -> Creature
|
||||
|
||||
Reference in New Issue
Block a user