Continue ai refactor
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
module Dodge.Creature.ChooseTarget
|
||||
where
|
||||
import Dodge.Data
|
||||
import Dodge.Base
|
||||
|
||||
targetYouLOS :: Creature -> World -> Maybe Creature
|
||||
targetYouLOS cr w
|
||||
| hasLOS (_crPos cr) (_crPos $ you w) w = Just $ you w
|
||||
| otherwise = Nothing
|
||||
Reference in New Issue
Block a user