Dragging storage bags now drops items around the mouse pointer (#27790)

* Standardize attom scatter and make bag drops offset it based on mouse position

* Init sanity

* Update code/game/atoms_movable.dm

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Charlie Nolan
2025-01-06 18:02:09 +00:00
committed by GitHub
co-authored by DGamerL
parent a387c18e16
commit 8e60888659
39 changed files with 94 additions and 94 deletions
@@ -571,8 +571,7 @@
var/obj/item/reagent_containers/P = new item_type(location)
if(!isnull(medicine_name))
P.name = "[medicine_name][name_suffix]"
P.pixel_x = rand(-7, 7) // Random position
P.pixel_y = rand(-7, 7)
P.scatter_atom()
configure_item(data, reagents, P)
reagents.trans_to(P, amount_per_item)
@@ -82,8 +82,7 @@
/obj/machinery/computer/pandemic/proc/create_culture(name, bottle_type = "culture", cooldown = 50)
var/obj/item/reagent_containers/glass/bottle/B = new/obj/item/reagent_containers/glass/bottle(loc)
B.icon_state = "bottle"
B.pixel_x = rand(-3, 3)
B.pixel_y = rand(-3, 3)
B.scatter_atom()
replicator_cooldown(cooldown)
B.name = "[name] [bottle_type] bottle"
return B