Prevents TK moving objects with people in or buckled to it (#16160)

* Prevents TK moving objects with people in or buckled to it

* Better proc for mob checking

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2021-06-29 12:23:33 +01:00
committed by GitHub
co-authored by AffectedArc07
parent 0690c3dddd
commit ec967cbaa7
+6
View File
@@ -139,6 +139,12 @@
else
if(focus.buckled_mobs)
to_chat(user, "<span class='notice'>This object is too heavy to move with something buckled to it!</span>")
return
if(length(focus.client_mobs_in_contents))
to_chat(user, "<span class='notice'>This object is too heavy to move with something inside of it!</span>")
return
apply_focus_overlay()
focus.throw_at(target, 10, 1, user)
last_throw = world.time