Work on chase crit corpse

This commit is contained in:
2026-04-05 10:16:20 +01:00
parent 73dfd1f319
commit 22a1162e14
4 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ hoverCrit :: Creature
hoverCrit =
defaultCreature
& crName .~ "hoverCrit"
& crHP .~ HP 500
& crHP .~ HP 150
& crType .~ HoverCrit 0
& crFaction .~ ColorFaction blue
& crStance . carriage .~ Flying 15 0.975
+1 -1
View File
@@ -5,7 +5,7 @@ import Dodge.Data.Creature.Misc
crMass :: CreatureType -> Float
crMass = \case
Avatar {} -> 10
ChaseCrit {} -> 10
ChaseCrit {} -> 12
HoverCrit {} -> 5
SwarmCrit -> 2
AutoCrit -> 10
+1 -1
View File
@@ -46,7 +46,7 @@ updateCarriage' cid cr w = \case
& cWorld . lWorld . creatures . ix cid . crStance . carriage .~ OnGround
else w & cWorld . lWorld . creatures . ix cid . crPos .~ ep
OnGround {} -> w
& tocr . crPos +~ 0.8 *^ (cr ^. crOldPos - oop)
& tocr . crPos . _xy +~ 0.8 *^ (cr ^. crOldPos . _xy - oop ^. _xy)
where
tocr = cWorld . lWorld . creatures . ix cid
oop = cr ^. crOldOldPos