Continue to work on pathfinding
This commit is contained in:
@@ -48,7 +48,8 @@ doCrWdAc :: CrWdAc -> Creature -> World -> Action
|
||||
doCrWdAc cw = case cw of
|
||||
CrWdBFSThenReturn t -> \cr w -> fromMaybe NoAction $ do
|
||||
n <- walkableNodeNear w (cr ^. crPos . _xy)
|
||||
let as = take 20 $ map PathTo $ bfsNodePoints n w
|
||||
-- let as = take 20 $ map PathTo $ bfsNodePoints n w
|
||||
let as = []
|
||||
return $ DoActionThen (DoImpulses [ChangeStrategy Search])
|
||||
$
|
||||
DoReplicate t $
|
||||
|
||||
Reference in New Issue
Block a user