mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user