refactors some item transfers to use transfer_item_to() (#28405)

This commit is contained in:
chuga-git
2025-02-18 10:38:09 +00:00
committed by GitHub
parent e72967152b
commit 570b45a903
10 changed files with 10 additions and 20 deletions
+1 -2
View File
@@ -386,9 +386,8 @@ GLOBAL_LIST_EMPTY(allNewscasters)
return
if(ishuman(usr))
var/obj/item/photo/P = usr.get_active_hand()
if(istype(P) && usr.drop_item_to_ground(P))
if(istype(P) && usr.transfer_item_to(P, src))
photo = P
P.forceMove(src)
usr.visible_message("<span class='notice'>[usr] inserts [P] into [src]'s photo slot.</span>",\
"<span class='notice'>You insert [P] into [src]'s photo slot.</span>")
playsound(loc, 'sound/machines/terminal_insert_disc.ogg', 30, TRUE)