Better mime support
system returns 0,1 or 2(0 failed, 1 for visible and 2 for audible)
cleaned up creating message
This commit is contained in:
VampyrBytes
2016-05-11 14:42:05 +01:00
parent 0633176893
commit 29152ceec0
4 changed files with 73 additions and 54 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
// All mobs should have custom emote, really..
/mob/proc/custom_emote(var/m_type=1,var/message = null)
emoteHandler.runEmote("me", null, message, m_type)
return emoteHandler.runEmote("me", null, message, m_type)
/* if(stat || !use_me && usr == src)
to_chat(usr, "You are unable to emote.")
+2 -2
View File
@@ -34,7 +34,7 @@
message = strip_html_properly(message)
set_typing_indicator(0)
emoteHandler.runEmote("me", null, message)
return emoteHandler.runEmote("me", null, message)
/mob/proc/say_dead(var/message)
if(!src.client.holder)
@@ -97,7 +97,7 @@
/mob/proc/emote(var/act, var/type, var/message)
act = lowertext(act)
emoteHandler.runEmote(act, message, type)
return emoteHandler.runEmote(act, message, type)