Skip to content

Commit

Permalink
Ore satchel auto empties into ore box when dragged (#22228)
Browse files Browse the repository at this point in the history
🆑 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.
/🆑

Because convinience. Streamlining. Less pointless clicking.
  • Loading branch information
coiax authored and optimumtact committed Dec 18, 2016
1 parent 4b84e1d commit 2f521b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/mining/ores_coins.dm
Expand Up @@ -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
Expand Down

0 comments on commit 2f521b1

Please sign in to comment.