This commit is contained in:
2025-11-09 16:42:55 +00:00
parent 658da193b7
commit 7ae50adb55
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
module Dodge.Creature.ChainUpdates where
module Dodge.Creature.ChainUpdates (chainCreatureUpdates) where
import Data.Foldable
import Dodge.Data.World
+2 -1
View File
@@ -67,7 +67,8 @@ setMvPos w cr = cr & crIntention . mvToPoint .~ mpos
mpos = mtpos <|> _mvToPoint int
setViewPos :: World -> Creature -> Creature
setViewPos w cr = cr & crIntention . viewPoint %~ ((<|> mpos) . (attentionViewPoint w cr <|>))
setViewPos w cr = cr
& crIntention . viewPoint %~ ((<|> mpos) . (attentionViewPoint w cr <|>))
where
mpos = listToMaybe (_soundsToInvestigate $ _crMemory cr)
+1 -1
View File
@@ -39,7 +39,7 @@ putDoubleDoorThen wl cond soff a b speed cont =
doorBetween wl cond soff b half speed $
\pl2 -> cont pl1 pl2
where
half = 0.5 *.* (a +.+ b)
half = 0.5 *^ (a + b)
doorBetween ::
Wall ->