hit ore box with advanced mining scanner to interact with it

This commit is contained in:
uraniummeltdown
2017-02-05 09:30:01 +04:00
parent 632deebae3
commit 3d831b179b
+3
View File
@@ -10,6 +10,9 @@
pressure_resistance = 5*ONE_ATMOSPHERE
/obj/structure/ore_box/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
if(istype(W, /obj/item/device/t_scanner/adv_mining_scanner))
attack_hand(user)
return
if(istype(W, /obj/item/weapon/ore))
if(!user.drop_item())
return