Crafting can now pull stuff from your pockets and also put it into your hands. (#46045)

That's pretty cool right?
This commit is contained in:
nemvar
2019-08-24 01:08:58 -07:00
committed by Rob Bailey
parent ec25ffc334
commit 91c146a00e
@@ -102,6 +102,8 @@
if(AM.flags_1 & HOLOGRAM_1)
continue
. += AM
for(var/slot in list(SLOT_R_STORE, SLOT_L_STORE))
. += user.get_item_by_slot(slot)
/datum/component/personal_crafting/proc/get_surroundings(mob/user)
. = list()
@@ -169,6 +171,8 @@
var/list/parts = del_reqs(R, user)
var/atom/movable/I = new R.result (get_turf(user.loc))
I.CheckParts(parts, R)
if(isitem(I))
user.put_in_hands(I)
if(send_feedback)
SSblackbox.record_feedback("tally", "object_crafted", 1, I.type)
return 0