refactor: ore bag pickup (#26699)

This commit is contained in:
warriorstar-orion
2024-09-18 16:56:33 +00:00
committed by GitHub
parent 9adbe3948a
commit 89fd8c6454
3 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -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
-1
View File
@@ -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 ..()