Fixes buckling to chairs (#21444)

Title. RIP.
This commit is contained in:
Batrachophreno
2025-10-04 23:33:24 +00:00
committed by GitHub
parent 8f8c7b1633
commit cf503256fc
3 changed files with 64 additions and 3 deletions
+3 -1
View File
@@ -96,6 +96,8 @@
animate(src, pixel_x = shift_pixel_x, pixel_y = shift_pixel_y, time = 1)
if(direction == NORTH)
src.add_filter("cutout", 1, alpha_mask_filter(icon = icon('icons/effects/effects.dmi', "cutout")))
if(direction == SOUTH)
src.layer = ABOVE_DOOR_LAYER
set_density(FALSE)
ADD_TRAIT(src, TRAIT_UNDENSE, TRAIT_SOURCE_WALL_LEANING)
ADD_TRAIT(src, TRAIT_LEANING, TRAIT_SOURCE_WALL_LEANING)
@@ -107,7 +109,7 @@
/mob/living/proc/stop_leaning()
SIGNAL_HANDLER
set_density(FALSE)
set_density(TRUE)
pixel_x = initial(pixel_x)
pixel_y = initial(pixel_y)
layer = initial(layer)