Make creatures rotate when falling down chasms

This commit is contained in:
2026-04-10 10:25:09 +01:00
parent c861de8981
commit b197e22de7
4 changed files with 21 additions and 6 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
{-# LANGUAGE LambdaCase #-}
module Dodge.Creature.Update (updateCreature) where
import qualified Quaternion as Q
import Dodge.Creature.Picture
import Dodge.Base.You
import Control.Monad
@@ -127,9 +128,9 @@ startDeathTimer cr = cr
toDeathCarriage :: Carriage -> Carriage
toDeathCarriage = \case
Flying {} -> Falling
Flying {} -> Falling Q.qid Q.qid
Walking -> OnGround
_ -> Falling
_ -> Falling Q.qid Q.qid
-- could look at the amount of damage here (given by maxDamage) too
corpseOrGib :: Creature -> World -> World