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>
This commit is contained in:
DGamerL
2024-01-29 18:39:55 -05:00
committed by GitHub
co-authored by Luc
parent 540f530f24
commit b254aa18c0
@@ -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)