Refactor creature ai
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ f = incidenceToFunction $ pairsToIncidence
|
||||
-- ]
|
||||
|
||||
pathBetween :: Point2 -> Point2 -> World -> Maybe [Point2]
|
||||
pathBetween a b w = (makePath' $ \p -> _pathInc w M.! p) <$> a' <*> b'
|
||||
pathBetween a b w = makePath' (\p -> _pathInc w M.! p) <$> a' <*> b'
|
||||
where
|
||||
nsa :: [Point2]
|
||||
nsa = map snd $ concat $ lookLookups (zoneAroundPoint a) (_pathPoints w)
|
||||
|
||||
Reference in New Issue
Block a user