mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
refactor: ore bag pickup (#26699)
This commit is contained in:
@@ -51,7 +51,8 @@
|
||||
OB = thing
|
||||
break
|
||||
if(OB && istype(F, /turf/simulated/floor/plating/asteroid))
|
||||
F.attackby(OB, AM)
|
||||
var/turf/simulated/floor/plating/asteroid/FA = F
|
||||
FA.attempt_ore_pickup(OB, AM)
|
||||
// Then, if the user is dragging an ore box, empty the satchel
|
||||
// into the box.
|
||||
var/mob/living/L = AM
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
S.hide_from(usr)
|
||||
for(var/obj/item/stack/ore/O in S.contents)
|
||||
S.remove_from_storage(O, src) //This will move the item to this item's contents
|
||||
CHECK_TICK
|
||||
to_chat(user, "<span class='notice'>You empty the satchel into the box.</span>")
|
||||
else
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user