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
+1 -2
View File
@@ -203,8 +203,7 @@
/obj/item/food/grown/ash_flora/Initialize(mapload)
. = ..()
pixel_x = rand(-4, 4)
pixel_y = rand(-4, 4)
scatter_atom()
/// for actual crafting
/obj/item/food/grown/ash_flora/shavings
+5 -2
View File
@@ -19,8 +19,11 @@
/obj/item/stack/ore/Initialize(mapload, new_amount, merge = TRUE)
. = ..()
pixel_x = rand(0, 16) - 8
pixel_y = rand(0, 8) - 8
scatter_atom()
/obj/item/stack/ore/scatter_atom(x_offset, y_offset)
pixel_x = rand(-8, 8) + x_offset
pixel_y = rand(-8, 0) + y_offset
/obj/item/stack/ore/welder_act(mob/user, obj/item/I)
. = TRUE