Rename Perception datatype/fields
This commit is contained in:
@@ -15,7 +15,7 @@ targetYouLOS cr w
|
||||
targetYouCognizant :: Creature -> World -> Maybe Creature
|
||||
targetYouCognizant cr w
|
||||
| hasLOS (_crPos cr) (_crPos $ you w) w
|
||||
&& isCog (cr ^? crPerception . crAwarenessLevel . ix 0)
|
||||
&& isCog (cr ^? crPerception . cpAwareness . ix 0)
|
||||
= Just $ you w
|
||||
| otherwise = Nothing
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user