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
@@ -409,11 +409,10 @@
to_chat(user, "The headset can't hold another key!")
return
if(!user.drop_item_to_ground(key))
if(!user.transfer_item_to(key, src, FALSE, FALSE))
to_chat(user, "<span class='warning'>[key] is stuck to your hand, you can't insert it in [src].</span>")
return
key.forceMove(src)
if(!keyslot1)
keyslot1 = key
else