mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[MIRROR] adds #cargobus and gauntlets (also modernizes ntchat) (#5458)
* adds #cargobus and gauntlets (also modernizes ntchat) * Update quartermaster.dm * Update DeltaStation2_skyrat.dmm * mirrors changes Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com> Co-authored-by: KathrinBailey <53862927+KathrinBailey@users.noreply.github.com> Co-authored-by: KathrinBailey <evesovereign@hotmail.co.uk>
This commit is contained in:
co-authored by
tralezab
KathrinBailey
KathrinBailey
parent
cce7d58a9b
commit
1ca81d9b86
@@ -41,6 +41,8 @@
|
||||
var/icon_welded = "welded"
|
||||
/// Whether a skittish person can dive inside this closet. Disable if opening the closet causes "bad things" to happen or that it leads to a logical inconsistency.
|
||||
var/divable = TRUE
|
||||
/// true whenever someone with the strong pull component is dragging this, preventing opening
|
||||
var/strong_grab = FALSE
|
||||
|
||||
/obj/structure/closet/Initialize(mapload)
|
||||
if(mapload && !opened) // if closed, any item at the crate's loc is put in the contents
|
||||
@@ -115,11 +117,14 @@
|
||||
return TRUE
|
||||
if(welded || locked)
|
||||
return FALSE
|
||||
if(strong_grab)
|
||||
to_chat(user, "<span class='danger'>[pulledby] has an incredibly strong grip on [src], preventing it from opening.</span>")
|
||||
return FALSE
|
||||
var/turf/T = get_turf(src)
|
||||
for(var/mob/living/L in T)
|
||||
if(L.anchored || horizontal && L.mob_size > MOB_SIZE_TINY && L.density)
|
||||
if(user)
|
||||
to_chat(user, "<span class='danger'>There's something large on top of [src], preventing it from opening.</span>" )
|
||||
to_chat(user, "<span class='danger'>There's something large on top of [src], preventing it from opening.</span>")
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user