mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user