From ce7e7be3d57faffad988a60d990c7c3087083023 Mon Sep 17 00:00:00 2001 From: Couls Date: Thu, 18 Jul 2019 18:29:15 -0400 Subject: [PATCH] Automatically offload ore to orebox when pulling one --- code/modules/mining/ore.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/mining/ore.dm b/code/modules/mining/ore.dm index c1f474ccd64..dc3f2554005 100644 --- a/code/modules/mining/ore.dm +++ b/code/modules/mining/ore.dm @@ -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)