Improve bullet hit detection
This commit is contained in:
@@ -29,15 +29,15 @@ chaseCritInternal w cr =
|
||||
crabCritInternal :: Int -> World -> World
|
||||
crabCritInternal cid w =
|
||||
-- (crVocalization %~ updateVocTimer)
|
||||
(tocr %~ ((crType . meleeCooldownL %~ max 0 . subtract 1)))
|
||||
. (tocr %~ ((crType . meleeCooldownR %~ max 0 . subtract 1)))
|
||||
. (tocr %~ ((crType . dodgeCooldown %~ max 0 . subtract 1)))
|
||||
. (tocr %~ (searchIfDamaged))
|
||||
. (tocr %~ (targetYouWhenCognizant w))
|
||||
. (tocr %~ (perceptionUpdate [0] w))
|
||||
(tocr %~ (crType . meleeCooldownL %~ max 0 . subtract 1))
|
||||
. (tocr %~ (crType . meleeCooldownR %~ max 0 . subtract 1))
|
||||
. (tocr %~ (crType . dodgeCooldown %~ max 0 . subtract 1))
|
||||
. (tocr %~ searchIfDamaged)
|
||||
. (tocr %~ targetYouWhenCognizant w)
|
||||
. (tocr %~ perceptionUpdate [0] w)
|
||||
. crabActionUpdate cid
|
||||
. (tocr %~ (setMvPosToTargetCr w))
|
||||
. (tocr %~ (setViewPos w))
|
||||
. (tocr %~ setMvPosToTargetCr w)
|
||||
. (tocr %~ setViewPos w)
|
||||
-- . overrideMeleeCloseTarget w
|
||||
$ (tocr %~ doStrategyActions) w
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user