Remove all AI code from AI file
This commit is contained in:
@@ -7,10 +7,11 @@ import Dodge.Data
|
||||
import Dodge.Creature.AlertLevel.Data
|
||||
|
||||
import Control.Lens
|
||||
import qualified Data.IntMap.Strict as IM
|
||||
targetYouWhenCognizant
|
||||
:: World
|
||||
-> Creature
|
||||
-> Creature
|
||||
targetYouWhenCognizant w cr = case cr ^? crAwarenessLevel . ix 0 of
|
||||
Just (Cognizant _) -> cr & crTarget .~ Just 0
|
||||
Just (Cognizant _) -> cr & crTarget .~ Just (_creatures w IM.! 0)
|
||||
_ -> cr & crTarget .~ Nothing
|
||||
|
||||
Reference in New Issue
Block a user