mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
Prevent non-adjacent mobs from spinning the roulette. (#31161)
This commit is contained in:
@@ -18,9 +18,11 @@
|
||||
. += "<span class='notice'>Interact to customise it and spin with <b>Alt-Click</b>.</span>"
|
||||
. += "The options are: \n[options.Join(".\n")]"
|
||||
|
||||
/obj/structure/roulette/AltClick()
|
||||
/obj/structure/roulette/AltClick(mob/user)
|
||||
if(spinning)
|
||||
return
|
||||
if(!Adjacent(user))
|
||||
return
|
||||
playsound(src, 'sound/items/roulette_spin.ogg', 50, TRUE)
|
||||
icon_state = "roulette_on"
|
||||
spinning = TRUE
|
||||
|
||||
Reference in New Issue
Block a user