Refactor creature ai
This commit is contained in:
@@ -48,7 +48,6 @@ sentinelAI = sentinelExtraWatchUpdate
|
||||
)
|
||||
]
|
||||
>=> reloadOverrideR
|
||||
where
|
||||
|
||||
sentinelFireType
|
||||
:: (Int -> Action)
|
||||
@@ -66,8 +65,9 @@ sentinelFireType f = performActionsR
|
||||
>=> doStrategyActionsR
|
||||
>=> reloadOverrideR
|
||||
>=> targetYouWhenCognizantR
|
||||
>=> (overrideInternalR (onBoth (&&) crHasTarget (crStratConMatches (GetTo (0,0))))
|
||||
$ \ _ -> crActionPlan . crStrategy .~ WatchAndWait)
|
||||
>=> overrideInternalR
|
||||
(onBoth (&&) crHasTarget (crStratConMatches (GetTo (0,0))))
|
||||
(\ _ -> crActionPlan . crStrategy .~ WatchAndWait)
|
||||
where
|
||||
drawwp = DoActionIfElse NoAction crIsAiming (DoActionThen drawWeapon (WaitThen 50 NoAction))
|
||||
aiming = AimAtCloseSlow
|
||||
@@ -89,8 +89,8 @@ sentinelExtraWatchUpdate xs = performActionsR
|
||||
>=> doStrategyActionsR
|
||||
-- >=> reloadOverrideR
|
||||
>=> targetYouWhenCognizantR
|
||||
>=> (overrideInternalR (onBoth (&&) crHasTarget (crStratConMatches (GetTo (0,0))))
|
||||
$ \ _ -> crActionPlan . crStrategy .~ WatchAndWait)
|
||||
>=> overrideInternalR (onBoth (&&) crHasTarget (crStratConMatches (GetTo (0,0))))
|
||||
(\ _ -> crActionPlan . crStrategy .~ WatchAndWait)
|
||||
|
||||
|
||||
shootAtAdvance :: Int -> [Action]
|
||||
|
||||
Reference in New Issue
Block a user