mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Merge pull request #16766 from S34NW/spin_the_drinks
Allows rotating booze and soda dispensers with alt click
This commit is contained in:
@@ -319,6 +319,19 @@
|
||||
return
|
||||
ui_interact(user)
|
||||
|
||||
/obj/machinery/chem_dispenser/AltClick(mob/user)
|
||||
if(!is_drink || !Adjacent(user))
|
||||
return
|
||||
if(user.incapacitated())
|
||||
to_chat(user, "<span class='warning'>You can't do that right now!</span>")
|
||||
return
|
||||
if(anchored)
|
||||
to_chat(user, "<span class='warning'>[src] is anchored to the floor!</span>")
|
||||
return
|
||||
pixel_x = 0
|
||||
pixel_y = 0
|
||||
setDir(turn(dir, 90))
|
||||
|
||||
/obj/machinery/chem_dispenser/soda
|
||||
icon_state = "soda_dispenser"
|
||||
name = "soda fountain"
|
||||
|
||||
Reference in New Issue
Block a user