Makes CanReach default to blocking. (#52115)

This commit is contained in:
AnturK
2020-07-12 04:25:27 +10:00
committed by GitHub
parent 145944d1f6
commit f4af5ed28c
5 changed files with 4 additions and 15 deletions
-7
View File
@@ -45,10 +45,6 @@
w_class = WEIGHT_CLASS_SMALL
item_flags = NO_MAT_REDEMPTION
/obj/item/bodybag/bluespace/Initialize()
. = ..()
RegisterSignal(src, COMSIG_ATOM_CANREACH, .proc/CanReachReact)
/obj/item/bodybag/bluespace/examine(mob/user)
. = ..()
if(contents.len)
@@ -62,9 +58,6 @@
to_chat(A, "<span class='notice'>You suddenly feel the space around you torn apart! You're free!</span>")
return ..()
/obj/item/bodybag/bluespace/proc/CanReachReact(atom/movable/source, list/next)
return COMPONENT_BLOCK_REACH
/obj/item/bodybag/bluespace/deploy_bodybag(mob/user, atom/location)
var/obj/structure/closet/body_bag/R = new unfoldedbag_path(location)
for(var/atom/movable/A in contents)
@@ -46,11 +46,6 @@
update_icon()
PopulateContents()
RegisterSignal(src, COMSIG_ATOM_CANREACH, .proc/canreach_react)
/obj/structure/closet/proc/canreach_react(datum/source, list/next)
return COMPONENT_BLOCK_REACH //closed block, open have nothing inside.
//USE THIS TO FILL IT, NOT INITIALIZE OR NEW
/obj/structure/closet/proc/PopulateContents()
return