you can shake drink shakers to make a shaking sound to simulate shaking the drink (#8399)

This commit is contained in:
Wowzewow (Wezzy)
2020-03-11 03:00:27 -03:00
committed by GitHub
parent b82c2bbb0a
commit 4d51fdc72a
4 changed files with 57 additions and 11 deletions
@@ -300,6 +300,14 @@
amount_per_transfer_from_this = 10
volume = 120
center_of_mass = list("x"=16, "y"=8)
var/last_shake = 0
/obj/item/reagent_containers/food/drinks/shaker/attack_self(mob/user)
if(last_shake <= world.time - 10) //Spam limiter.
last_shake = world.time
playsound(src.loc, 'sound/items/soda_shaking.ogg', 50, 1)
src.add_fingerprint(user)
return
/obj/item/reagent_containers/food/drinks/teapot
name = "teapot"