Prevent rooted creatures from being pushed by other creatures

This commit is contained in:
2026-04-25 09:04:01 +01:00
parent e0e346aade
commit 264651d34a
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ tutAnoTree :: State LayoutVars MTRS
tutAnoTree = do
foldMTRS
[ tToBTree "TutStartRez" . return . cleatOnward <$> tutRezBox
, corDoor
, tToBTree "" . return . cleatOnward <$> slowDoorRoom
-- , corDoor
-- , tToBTree "" . return . cleatOnward <$> slowDoorRoom
, corDoor
--, tToBTree "" . return . cleatOnward <$> (xChasm 200 200
, tToBTree "" . return . cleatOnward <$> ((putSingleLight =<< roomRectAutoLights 300 300)
+4
View File
@@ -1015,6 +1015,10 @@ crCrSpring c1 c2
| vec == V2 0 0 = id
| diff >= comRad = id
| diffheight = id
| Rooted <- c2 ^. crStance . carriage = id
| Rooted <- c1 ^. crStance . carriage
= cWorld . lWorld . creatures . ix id2 . crPos . _xy +~
(diff - comRad) *^ signorm vec
| SlimeCrit{} <- c1 ^. crType
, SlimeCrit{} <- c2 ^. crType
, id2 > id1