Pitted creatures lose all items

This commit is contained in:
2025-08-05 21:47:32 +01:00
parent f69956750a
commit af5bdf59b9
3 changed files with 61 additions and 57 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ module Dodge.Creature.Update (
updateCreature,
) where
import Dodge.Inventory
import LensHelp
import Geometry
import Dodge.SoundLogic
@@ -18,7 +19,7 @@ import qualified Data.List as List
updateCreature :: Creature -> World -> World
updateCreature cr
| _crZ cr < negate 100 = id -- can remove creature and all items
| _crZ cr < negate 100 = destroyAllInvItems cr
| _crZ cr < 0 = (tocr . crZVel -~ 0.5)
. (tocr . crZ +~ _crZVel cr)
| otherwise = updateCreature' cr