Emote fixes, most of it's still insane

This commit is contained in:
Tigercat2000
2015-09-19 08:47:53 -07:00
parent bec780b512
commit bab04c669e
3 changed files with 33 additions and 7 deletions
+15
View File
@@ -264,3 +264,18 @@ proc/get_radio_key_from_channel(var/channel)
/mob/living/proc/GetVoice()
return name
/mob/living/emote(var/act, var/type, var/message) //emote code is terrible, this is so that anything that isn't
if(stat) return 0 //already snowflaked to shit can call the parent and handle emoting sanely
if(..(act, type, message))
return 1
if(act && type && message) //parent call
switch(type)
if(1) //Visible
visible_message(message)
return 1
if(2) //Audible
audible_message(message)
return 1
@@ -246,4 +246,14 @@
/mob/living/simple_animal/diona/put_in_active_hand(obj/item/W)
src << "<span class='warning'>You don't have any hands!</span>"
return
return
/mob/living/simple_animal/diona/emote(var/act, var/m_type=1, var/message = null)
if(stat) return
switch(act) //IMPORTANT: Emotes MUST NOT CONFLICT anywhere along the chain.
if("chirp")
message = "<B>\The [src]</B> chirps!"
m_type = 2 //audible
..(act, m_type, message)
@@ -257,14 +257,15 @@
adjustBruteLoss(20)
return
/mob/living/simple_animal/emote(var/act,var/m_type=1,var/message = null)
if(stat)
return
switch(act)
/mob/living/simple_animal/emote(var/act, var/m_type=1, var/message = null)
if(stat) return
switch(act) //IMPORTANT: Emotes MUST NOT CONFLICT anywhere along the chain.
if("scream")
message = "<B>The [src.name]</B> whimpers."
message = "<B>\The [src]</B> whimpers."
m_type = 2
..()
..(act, m_type, message)
/mob/living/simple_animal/attack_animal(mob/living/simple_animal/M as mob)
if(M.melee_damage_upper == 0)