Merge pull request #11178 from Mewchild/MC-TtSQoL

TTS Devices can now be used in chairs, and by alt clicking from pockets
This commit is contained in:
Aronai Sieyes
2021-07-20 17:27:42 -04:00
committed by GitHub
@@ -7,7 +7,7 @@
var/named
/obj/item/device/text_to_speech/attack_self(mob/user as mob)
if(user.incapacitated(INCAPACITATION_ALL)) //Are you in a state to actual use the device?
if(user.incapacitated(INCAPACITATION_KNOCKDOWN|INCAPACITATION_DISABLED)) // EDIT: We can use the device only if we are not in certain types of incapacitation. We don't want chairs stopping us from texting!!
to_chat(user, "You cannot activate the device in your state.")
return
@@ -27,3 +27,6 @@
audible_message("[bicon(src)] \The [src.name] states, \"[message]\"", runemessage = "synthesized speech")
if(ismob(loc))
loc.audible_message("", runemessage = "\[TTS Voice\] [message]")
/obj/item/device/text_to_speech/AltClick(mob/user) // QOL Change
attack_self(user)