Merge pull request #11889 from Couls/hecking-orebox

Automatically offload ore to orebox when pulling one
This commit is contained in:
Fox McCloud
2019-08-11 16:51:05 -04:00
committed by GitHub
+6
View File
@@ -50,6 +50,12 @@
break
if(OB && istype(F, /turf/simulated/floor/plating/asteroid))
F.attackby(OB, AM)
// Then, if the user is dragging an ore box, empty the satchel
// into the box.
var/mob/living/L = AM
if(istype(L.pulling, /obj/structure/ore_box))
var/obj/structure/ore_box/box = L.pulling
box.attackby(OB, AM)
return ..()
/obj/item/stack/ore/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume, global_overlay = TRUE)