From 2f521b1f5fe11a9f0752f9d10459c81cd3cf1ad3 Mon Sep 17 00:00:00 2001 From: coiax Date: Sun, 18 Dec 2016 06:53:27 +0000 Subject: [PATCH] Ore satchel auto empties into ore box when dragged (#22228) :cl: coiax add: Whenever you automatically pick up ore with an ore satchel, if you are dragging a wooden ore box, the satchel automatically empties into the box. /:cl: Because convinience. Streamlining. Less pointless clicking. --- code/modules/mining/ores_coins.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/mining/ores_coins.dm b/code/modules/mining/ores_coins.dm index 88390206ffbd72..3b833d7a0e1b8a 100644 --- a/code/modules/mining/ores_coins.dm +++ b/code/modules/mining/ores_coins.dm @@ -39,6 +39,12 @@ break if(OB) 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/weapon/ore/uranium