makes people with clumsy sometimes play special sounds when doing surgery (#31945)

* clown

* quack

* john carbenter
This commit is contained in:
rob
2022-02-04 15:57:36 -05:00
committed by GitHub
parent 22a0adfde0
commit 310002f698
3 changed files with 11 additions and 3 deletions

View File

@@ -82,10 +82,18 @@
spawn(duration * tool.toolspeed)//in case the player doesn't go all the way through the step (if he moves away, puts the tool away,...)
tool.icon_state = "[initial(tool.icon_state)]_off"
if(digging)
playsound(target, 'sound/items/hemostatdig.ogg', 75, 1)
if((M_CLUMSY in user.mutations) && prob(20))
if ((istype(tool, /obj/item/tool/circular_saw)) || (istype(tool, /obj/item/tool/surgicaldrill)))
return
else
var/clownsound = null
clownsound = pick("toysqueak","partyhorn","bikehorn","quack")
playsound(target, "sound/items/[clownsound].ogg", 75, 2)
else
tool.playsurgerysound(target, 75, 1)
if(digging)
playsound(target, 'sound/items/hemostatdig.ogg', 75, 1)
else
tool.playsurgerysound(target, 75, 1)
return

BIN
sound/items/partyhorn.ogg Normal file

Binary file not shown.

BIN
sound/items/toysqueak.ogg Normal file

Binary file not shown.