From 7f16f8abf87d9ef7cfb8d2858eb265033b85370c Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 30 Sep 2020 14:16:36 +0200 Subject: [PATCH] [MIRROR] You can now throw things over raillings. (#1075) * You can now throw things over raillings. (#54062) Any movable atom with an attached thrownthing datum can now pass harmlessly over railings, and potentially fall safe down to the z-level below. * You can now throw things over raillings. Co-authored-by: Timberpoes --- code/game/objects/structures/railings.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/structures/railings.dm b/code/game/objects/structures/railings.dm index 27ef38a70d2..09e42276973 100644 --- a/code/game/objects/structures/railings.dm +++ b/code/game/objects/structures/railings.dm @@ -70,7 +70,7 @@ . = ..() if(get_dir(loc, target) & dir) var/checking = FLYING | FLOATING - return . || mover.movement_type & checking + return . || mover.throwing || mover.movement_type & checking return TRUE /obj/structure/railing/corner/CanPass() @@ -81,7 +81,7 @@ ..() if(get_dir(loc, target) & dir) var/checking = UNSTOPPABLE | FLYING | FLOATING - return !density || mover.movement_type & checking || mover.move_force >= MOVE_FORCE_EXTREMELY_STRONG + return !density || mover.throwing || mover.movement_type & checking || mover.move_force >= MOVE_FORCE_EXTREMELY_STRONG return TRUE /obj/structure/railing/corner/CheckExit()