mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
refactors some item transfers to use transfer_item_to() (#28405)
This commit is contained in:
@@ -41,10 +41,9 @@
|
||||
/obj/machinery/computer/rnd_backup/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
if(istype(used, /obj/item/disk/rnd_backup_disk) && istype(user, /mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(!H.drop_item_to_ground(used))
|
||||
if(!H.transfer_item_to(used, src))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
used.forceMove(src)
|
||||
inserted_disk = used
|
||||
to_chat(user, "<span class='notice'>You insert [used] into [src].</span>")
|
||||
SStgui.update_uis(src)
|
||||
|
||||
@@ -83,13 +83,12 @@ Note: Must be placed within 3 tiles of the R&D Console
|
||||
to_chat(user, "<span class='warning'>You cannot deconstruct this item!</span>")
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(!user.drop_item())
|
||||
if(!user.transfer_item_to(used, src))
|
||||
to_chat(user, "<span class='warning'>[used] is stuck to your hand, you cannot put it in [src]!</span>")
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
busy = TRUE
|
||||
loaded_item = used
|
||||
used.loc = src
|
||||
to_chat(user, "<span class='notice'>You add [used] to [src]!</span>")
|
||||
SStgui.update_uis(linked_console)
|
||||
flick("s_analyzer_la", src)
|
||||
|
||||
Reference in New Issue
Block a user