Prevent rooted creatures from being pushed by other creatures
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user