Update Chat System to use to_chat(src, "") instead of src << ""

This commit is contained in:
Atermonera
2019-11-05 13:31:35 -09:00
committed by VirgoBot
parent d3b07d3fb7
commit a45472b446
140 changed files with 1312 additions and 642 deletions

View File

@@ -9,13 +9,13 @@ mob/proc/airflow_stun()
if(last_airflow_stun > world.time - vsc.airflow_stun_cooldown) return 0
if(!(status_flags & CANSTUN) && !(status_flags & CANWEAKEN))
src << "<span class='notice'>You stay upright as the air rushes past you.</span>"
to_chat(src, "<span class='notice'>You stay upright as the air rushes past you.</span>")
return 0
if(buckled)
src << "<span class='notice'>Air suddenly rushes past you!</span>"
to_chat(src, "<span class='notice'>Air suddenly rushes past you!</span>")
return 0
if(!lying)
src << "<span class='warning'>The sudden rush of air knocks you over!</span>"
to_chat(src, "<span class='warning'>The sudden rush of air knocks you over!</span>")
Weaken(5)
last_airflow_stun = world.time

View File

@@ -10,10 +10,10 @@ client/proc/ZoneTick()
var/result = air_master.Tick()
if(result)
src << "Successfully Processed."
to_chat(src, "Successfully Processed.")
else
src << "Failed to process! ([air_master.tick_progress])"
to_chat(src, "Failed to process! ([air_master.tick_progress])")
*/
client/proc/Zone_Info(turf/T as null|turf)

View File

@@ -102,7 +102,8 @@ obj/var/contaminated = 0
if(vsc.plc.SKIN_BURNS && (species.breath_type != "phoron"))
if(!pl_head_protected() || !pl_suit_protected())
burn_skin(0.75)
if(prob(20)) src << "<span class='danger'>Your skin burns!</span>"
if(prob(20))
to_chat(src, "<span class='danger'>Your skin burns!</span>")
updatehealth()
//Burn eyes if exposed.
@@ -133,17 +134,18 @@ obj/var/contaminated = 0
if(vsc.plc.GENETIC_CORRUPTION && (species.breath_type != "phoron"))
if(rand(1,10000) < vsc.plc.GENETIC_CORRUPTION)
randmutb(src)
src << "<span class='danger'>High levels of toxins cause you to spontaneously mutate!</span>"
to_chat(src, "<span class='danger'>High levels of toxins cause you to spontaneously mutate!</span>")
domutcheck(src,null)
/mob/living/carbon/human/proc/burn_eyes()
var/obj/item/organ/internal/eyes/E = internal_organs_by_name[O_EYES]
if(E)
if(prob(20)) src << "<span class='danger'>Your eyes burn!</span>"
if(prob(20))
to_chat(src, "<span class='danger'>Your eyes burn!</span>")
E.damage += 2.5
eye_blurry = min(eye_blurry+1.5,50)
if (prob(max(0,E.damage - 15) + 1) &&!eye_blind)
src << "<span class='danger'>You are blinded!</span>"
to_chat(src, "<span class='danger'>You are blinded!</span>")
Blind(20)
/mob/living/carbon/human/proc/pl_head_protected()