Move towards a simplified creature update

This commit is contained in:
2021-12-09 18:16:31 +00:00
parent e1a9327c06
commit bd94044445
14 changed files with 50 additions and 39 deletions
+5 -5
View File
@@ -11,7 +11,7 @@ module Dodge.Creature
, smallChaseCrit
)
where
--import Dodge.Creature.Stance.Data
import Dodge.RemoveCreatureEndo
import Dodge.Creature.State.Data
--import Dodge.Item.Weapon.Grenade
import Dodge.Item.Weapon.Booster
@@ -70,7 +70,7 @@ spawnerCrit = defaultCreature
miniGunCrit :: Creature
miniGunCrit = defaultCreature
{ _crPict = basicCrPict red
, _crUpdate = stateUpdate $ impulsiveAIR $
, _crUpdate = toCrUpdate $ stateUpdate $ impulsiveAIR $
sentinelFireType (const shootTillEmpty)
, _crActionPlan = ActionPlan
{ _crImpulse = []
@@ -89,7 +89,7 @@ longCrit :: Creature
longCrit = defaultCreature
{ _crPict = basicCrPict red
-- , _crUpdate = stateUpdate sniperAI
, _crUpdate = stateUpdate $ impulsiveAIR $ sentinelFireType $ const shootTillEmpty
, _crUpdate = toCrUpdate $ stateUpdate $ impulsiveAIR $ sentinelFireType $ const shootTillEmpty
, _crActionPlan = ActionPlan
{ _crImpulse = []
, _crAction = []
@@ -109,7 +109,7 @@ multGunCrit = defaultCreature
, _crInvSel = 0
, _crRad = 10
, _crHP = 300
, _crUpdate = stateUpdate $ impulsiveAIR $ sentinelExtraWatchUpdate
, _crUpdate = toCrUpdate $ stateUpdate $ impulsiveAIR $ sentinelExtraWatchUpdate
[ ( not . crHasAmmo
, \_ _ -> StrategyActions Reload reloadActions
)
@@ -150,7 +150,7 @@ startCr = defaultCreature
, _crMvDir = pi/2
, _crID = 0
, _crPict = basicCrPict black
, _crUpdate = stateUpdate yourControl
, _crUpdate = toCrUpdate $ stateUpdate yourControl
, _crRad = 10
, _crMass = 10
, _crHP = 1000