From b254aa18c0c87fc372f75db3c7f70a25fcb05557 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Tue, 30 Jan 2024 00:39:55 +0100 Subject: [PATCH] Makes the reagent grinder shake (#23823) * Easy * Slight speed tweaks * Update code/modules/reagents/chemistry/machinery/reagentgrinder.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --- code/modules/reagents/chemistry/machinery/reagentgrinder.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm index 45f5c8cd089..352cd3e8515 100644 --- a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm +++ b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm @@ -440,9 +440,9 @@ return if(!beaker || (beaker && beaker.reagents.holder_full())) return - playsound(src.loc, 'sound/machines/blender.ogg', 50, 1) - var/offset = prob(50) ? -2 : 2 - animate(src, pixel_x = pixel_x + offset, time = 0.2, loop = 250) //start shaking + playsound(loc, 'sound/machines/blender.ogg', 50, 1) + animate(src, pixel_x = pick(-3, -2, 2, 3), pixel_y = pick(-3, -2, 2, 3), time = 1 DECISECONDS, loop = 20, easing = JUMP_EASING) + animate(pixel_x = 0, pixel_y = 0, time = 1 DECISECONDS, easing = JUMP_EASING) operating = TRUE SStgui.update_uis(src) spawn(60)