Skip to content

Commit

Permalink
Makes the reagent grinder shake (ParadiseSS13#23823)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
DGamerL and lewcc authored Jan 29, 2024
1 parent 540f530 commit b254aa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/reagents/chemistry/machinery/reagentgrinder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b254aa1

Please sign in to comment.