My bad, my bad.

This commit is contained in:
Ghommie
2019-07-14 14:21:28 +02:00
parent 129ca9d71f
commit a3a2fb03b6

View File

@@ -171,6 +171,7 @@
if(++mobs_stored >= mob_storage_capacity)
return FALSE
L.stop_pulling()
else if(istype(AM, /obj/structure/closet))
return FALSE
@@ -179,14 +180,16 @@
else if(isobj(AM))
if((!allow_dense && AM.density) || AM.anchored || AM.has_buckled_mobs())
return TRUE
if(isitem(AM) && HAS_TRAIT(AM, TRAIT_NODROP))
return FALSE
if(isitem(AM) && !HAS_TRAIT(AM, TRAIT_NODROP))
return TRUE
else if(!allow_objects && !istype(AM, /obj/effect/dummy/chameleon))
return FALSE
else
return FALSE
return TRUE
/obj/structure/closet/proc/close(mob/living/user)
if(!opened || !can_close(user))
return FALSE