mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
refactors some item transfers to use transfer_item_to() (#28405)
This commit is contained in:
@@ -165,9 +165,8 @@
|
||||
return
|
||||
|
||||
var/obj/item/queen_bee/qb = I
|
||||
if(!user.drop_item_to_ground(qb))
|
||||
if(!user.transfer_item_to(qb, src))
|
||||
return
|
||||
qb.queen.forceMove(src)
|
||||
bees += qb.queen
|
||||
queen_bee = qb.queen
|
||||
qb.queen = null
|
||||
|
||||
@@ -161,10 +161,9 @@
|
||||
if(length(stored_plants) >= max_storable_plants)
|
||||
to_chat(user, "<span class='warning'>[src] can't hold any more plants!</span>")
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
if(!user.drop_item_to_ground(used))
|
||||
if(!user.transfer_item_to(used, src))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
used.forceMove(src)
|
||||
stored_plants += used
|
||||
to_chat(user, "<span class='notice'>You put [used] in [src].</span>")
|
||||
SStgui.update_uis(src)
|
||||
|
||||
@@ -107,10 +107,9 @@
|
||||
if(biomass >= biomass_capacity && potassium >= potassium_capacity)
|
||||
to_chat(user, "<span class='warning'>[src] can't hold any more biomass, and its contents are saturated with potassium!</span>")
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
if(!user.drop_item_to_ground(used))
|
||||
if(!user.transfer_item_to(used, src))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
used.forceMove(src)
|
||||
make_biomass(used)
|
||||
to_chat(user, "<span class='notice'>You put [used] in [src].</span>")
|
||||
SStgui.update_uis(src)
|
||||
|
||||
Reference in New Issue
Block a user