Move stride/footforward datatypes

This commit is contained in:
2026-04-03 11:21:09 +01:00
parent d65a4529be
commit b7b42f50a5
12 changed files with 238 additions and 248 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ updateCreatureStrides :: World -> World
updateCreatureStrides = cWorld . lWorld . creatures . each %~ updateCreatureStride
updateCreatureStride :: Creature -> Creature
updateCreatureStride cr = cr & crStance . carriage . strideAmount +~ d
updateCreatureStride cr = cr & crType . strideAmount +~ d
where
s = fromMaybe 0 $ crMvType cr ^? mvSpeed
-- d = min s . norm $ cr ^. crPos - cr ^. crOldPos