mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user