Miming Refactor

This commit is contained in:
Fox-McCloud
2016-02-28 22:40:00 -05:00
parent 38075f4beb
commit e2bb00a5b1
15 changed files with 103 additions and 68 deletions
+9 -3
View File
@@ -19,13 +19,19 @@
if(!ishuman(user))
user << "\red You don't know how to use this!"
return
if(user:miming || user.silent)
user << "\red You find yourself unable to speak at all."
if(user.silent)
user << "<span class='warning'>You find yourself unable to speak at all.</span>"
return
if(ishuman(user))
var/mob/living/carbon/human/H = user
if(H & H.mind)
if(H.mind.miming)
user << "<span class='warning'>Your vow of silence prevents you from speaking.</span>"
return
if(spamcheck)
user << "\red \The [src] needs to recharge!"
return
var/message = input(user, "Shout a message:", "Megaphone") as text|null
if(!message)
return
@@ -285,6 +285,9 @@ var/global/list/default_medbay_channels = list(
if(wires.IsIndexCut(WIRE_TRANSMIT)) // The device has to have all its wires and shit intact
return 0
if(!M.IsVocal())
return 0
M.last_target_click = world.time
/* Quick introduction: