From fdbc1c05f23e4736b86bb8c488bf4e7b7b69bcd8 Mon Sep 17 00:00:00 2001 From: CHOMPStation2 <58959929+CHOMPStation2@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:04:39 -0700 Subject: [PATCH] [MIRROR] Spin The Bottle (#8550) Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com> Co-authored-by: CHOMPStation2 --- code/modules/food/food/drinks/bottle.dm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/code/modules/food/food/drinks/bottle.dm b/code/modules/food/food/drinks/bottle.dm index bb60f14510..33c28ff11a 100644 --- a/code/modules/food/food/drinks/bottle.dm +++ b/code/modules/food/food/drinks/bottle.dm @@ -180,6 +180,25 @@ var/obj/item/weapon/broken_bottle/B = smash(target.loc, target) user.put_in_active_hand(B) +/obj/item/weapon/reagent_containers/food/drinks/bottle/verb/spin_bottle() + set name = "Spin The Bottle" + set category = "Object" + set src in view(1) + + if(isobserver(usr) || usr.stat) + return + + if(!isturf(src.loc)) + to_chat(usr, "\The [src] needs to be on the floor to spin.") + return + + var/spin_rotation = (rand(0,359)) + usr.visible_message("\The [usr] spins \the [src]!","You spin \the [src]!") + SpinAnimation(3,10) + spawn(30) + icon_rotation = spin_rotation + update_transform() + //Keeping this here for now, I'll ask if I should keep it here. /obj/item/weapon/broken_bottle name = "Broken Bottle"