Remove reified impulses from creature record
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
module Dodge.Creature.Update (updateCreature) where
|
||||
|
||||
import Dodge.Creature.Impulse
|
||||
import Linear
|
||||
import NewInt
|
||||
import Color
|
||||
@@ -47,8 +48,9 @@ updateCreature' cr =
|
||||
LampCrit{} -> updateLampoid cr
|
||||
BarrelCrit bt -> updateBarreloid bt cr
|
||||
AvatarDead -> id
|
||||
ChaseCrit {} -> crUpdate cid . updateHumanoid cr
|
||||
_ -> crUpdate cid . updateHumanoid cr
|
||||
ChaseCrit {} -> \w -> crUpdate cid . followImpulses cid
|
||||
$ over (cWorld . lWorld . creatures . ix cid) (chaseCritInternal w) w
|
||||
_ -> crUpdate cid
|
||||
where
|
||||
cid = cr ^. crID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user