Remove drop_item, drop_item_v, put_in_hands_or_del
This commit is contained in:
committed by
CitadelStationBot
parent
5f4b3594d0
commit
075cb673c0
@@ -449,9 +449,8 @@
|
||||
if (stat & MAINT)
|
||||
to_chat(user, "<span class='warning'>There is no connector for your power cell!</span>")
|
||||
return
|
||||
if(!user.drop_item())
|
||||
if(!user.transferItemToLoc(W, src))
|
||||
return
|
||||
W.forceMove(src)
|
||||
cell = W
|
||||
user.visible_message(\
|
||||
"[user.name] has inserted the power cell to [src.name]!",\
|
||||
|
||||
@@ -315,7 +315,7 @@
|
||||
src.add_fingerprint(user)
|
||||
var/obj/item/light/L = W
|
||||
if(istype(L, light_type))
|
||||
if(!user.drop_item())
|
||||
if(!user.temporarilyRemoveItemFromInventory())
|
||||
return
|
||||
|
||||
src.add_fingerprint(user)
|
||||
|
||||
@@ -87,10 +87,9 @@ GLOBAL_LIST_EMPTY(rad_collectors)
|
||||
if(loaded_tank)
|
||||
to_chat(user, "<span class='warning'>There's already a plasma tank loaded!</span>")
|
||||
return TRUE
|
||||
if(!user.drop_item())
|
||||
return TRUE
|
||||
if(!user.transferItemToLoc(W, src))
|
||||
return
|
||||
loaded_tank = W
|
||||
W.forceMove(src)
|
||||
update_icons()
|
||||
else if(istype(W, /obj/item/crowbar))
|
||||
if(loaded_tank)
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
|
||||
if(!tracker)
|
||||
if(istype(W, /obj/item/electronics/tracker))
|
||||
if(!user.drop_item())
|
||||
if(!user.temporarilyRemoveItemFromInventory(W))
|
||||
return
|
||||
tracker = 1
|
||||
qdel(W)
|
||||
|
||||
Reference in New Issue
Block a user