Prevent rooted creatures from being pushed by other creatures
This commit is contained in:
@@ -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