Service borg tray no longer drap inventory version of items (stack count number) (#24521)

* Service borg trays no longer drop stack count items

Service borg trays no longer drop stack count items.
Therefore Fixes #23825

* fixing some indents

* Replace qdel with remove_from_storage

Deleting an item and replacing it with the same type is a terrible solution for this

* Update code/game/objects/items/weapons/storage/bags.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Update code/game/objects/items/weapons/storage/bags.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Update code/game/objects/items/weapons/storage/bags.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Fixing positions of items in the service tray

---------

Co-authored-by: Pierre-Louis <hernandezpierrelouis@protonmail.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
Pierre-Louis
2024-04-03 16:32:22 +02:00
committed by GitHub
parent fca9c82a2a
commit 509062db01
@@ -479,8 +479,9 @@
var/dropped_something = FALSE
for(var/obj/item/I in contents)
I.loc = dropspot
contents.Remove(I)
remove_from_storage(I)
// Set the properties of the new item here, e.g., stack count, hover highlight, tooltip
I.forceMove(target.loc)
dropped_something = TRUE
if(!found_table && isturf(dropspot))
// if no table, presume that the person just shittily dropped the tray on the ground and made a mess everywhere!