Deprecate the stream operator

This commit is contained in:
Arokha Sieyes
2020-02-12 17:26:44 -05:00
committed by Leshana
parent c8a8987610
commit 47ccc655db
762 changed files with 4492 additions and 4464 deletions
+3 -3
View File
@@ -29,11 +29,11 @@
if(inflamed == 1)
if(prob(5))
owner << "<span class='warning'>You feel a stinging pain in your abdomen!</span>"
to_chat(owner, "<span class='warning'>You feel a stinging pain in your abdomen!</span>")
owner.emote("me", 1, "winces slightly.")
if(inflamed > 1)
if(prob(3))
owner << "<span class='warning'>You feel a stabbing pain in your abdomen!</span>"
to_chat(owner, "<span class='warning'>You feel a stabbing pain in your abdomen!</span>")
owner.emote("me", 1, "winces painfully.")
owner.adjustToxLoss(1)
if(inflamed > 2)
@@ -41,7 +41,7 @@
owner.vomit()
if(inflamed > 3)
if(prob(1))
owner << "<span class='danger'>Your abdomen is a world of pain!</span>"
to_chat(owner, "<span class='danger'>Your abdomen is a world of pain!</span>")
owner.Weaken(10)
var/obj/item/organ/external/groin = owner.get_organ(BP_GROIN)
+3 -3
View File
@@ -92,15 +92,15 @@ GLOBAL_LIST_BOILERPLATE(all_brain_organs, /obj/item/organ/internal/brain)
brainmob.languages = H.languages
brainmob << "<span class='notice'>You feel slightly disoriented. That's normal when you're just \a [initial(src.name)].</span>"
to_chat(brainmob, "<span class='notice'>You feel slightly disoriented. That's normal when you're just \a [initial(src.name)].</span>")
callHook("debrain", list(brainmob))
/obj/item/organ/internal/brain/examine(mob/user) // -- TLE
..(user)
if(brainmob && brainmob.client)//if thar be a brain inside... the brain.
user << "You can feel the small spark of life still left in this one."
to_chat(user, "You can feel the small spark of life still left in this one.")
else
user << "This one seems particularly lifeless. Perhaps it will regain some of its luster later.."
to_chat(user, "This one seems particularly lifeless. Perhaps it will regain some of its luster later..")
/obj/item/organ/internal/brain/removed(var/mob/living/user)
+1 -1
View File
@@ -75,7 +75,7 @@
var/oldbroken = is_broken()
..()
if(is_broken() && !oldbroken && owner && !owner.stat)
owner << "<span class='danger'>You go blind!</span>"
to_chat(owner, "<span class='danger'>You go blind!</span>")
/obj/item/organ/internal/eyes/process() //Eye damage replaces the old eye_stat var.
..()
+1 -1
View File
@@ -55,7 +55,7 @@
owner.custom_pain("There's a sharp pain in your upper-right abdomen!",1)
if (. >= 2)
if(prob(1) && owner.getToxLoss() < owner.getMaxHealth()*0.3)
//owner << "" //Toxins provide their own messages for pain
//to_chat(owner, "") //Toxins provide their own messages for pain
owner.adjustToxLoss(5) //Not realistic to PA but there are basically no 'real' liver infections
/obj/item/organ/internal/liver/grey
+2 -2
View File
@@ -159,7 +159,7 @@ var/list/organ_cache = list()
/obj/item/organ/examine(mob/user)
..(user)
if(status & ORGAN_DEAD)
user << "<span class='notice'>The decay has set in.</span>"
to_chat(user, "<span class='notice'>The decay has set in.</span>")
//A little wonky: internal organs stop calling this (they return early in process) when dead, but external ones cause further damage when dead
/obj/item/organ/proc/handle_germ_effects()
@@ -398,7 +398,7 @@ var/list/organ_cache = list()
if(robotic >= ORGAN_ROBOT)
return
user << "<span class='notice'>You take an experimental bite out of \the [src].</span>"
to_chat(user, "<span class='notice'>You take an experimental bite out of \the [src].</span>")
var/datum/reagent/blood/B = locate(/datum/reagent/blood) in reagents.reagent_list
blood_splatter(src,B,1)
+6 -6
View File
@@ -151,7 +151,7 @@
for(var/obj/item/I in contents)
if(istype(I, /obj/item/organ))
continue
usr << "<span class='danger'>There is \a [I] sticking out of it.</span>"
to_chat(usr, "<span class='danger'>There is \a [I] sticking out of it.</span>")
return
/obj/item/organ/external/attackby(obj/item/weapon/W as obj, mob/living/user as mob)
@@ -411,11 +411,11 @@
else return 0
if(!damage_amount)
user << "<span class='notice'>Nothing to fix!</span>"
to_chat(user, "<span class='notice'>Nothing to fix!</span>")
return 0
if(brute_dam + burn_dam >= min_broken_damage) //VOREStation Edit - Makes robotic limb damage scalable
user << "<span class='danger'>The damage is far too severe to patch over externally.</span>"
to_chat(user, "<span class='danger'>The damage is far too severe to patch over externally.</span>")
return 0
if(user == src.owner)
@@ -426,12 +426,12 @@
grasp = "r_hand"
if(grasp)
user << "<span class='warning'>You can't reach your [src.name] while holding [tool] in your [owner.get_bodypart_name(grasp)].</span>"
to_chat(user, "<span class='warning'>You can't reach your [src.name] while holding [tool] in your [owner.get_bodypart_name(grasp)].</span>")
return 0
user.setClickCooldown(user.get_attack_speed(tool))
if(!do_mob(user, owner, 10))
user << "<span class='warning'>You must stand still to do that.</span>"
to_chat(user, "<span class='warning'>You must stand still to do that.</span>")
return 0
switch(damage_type)
@@ -690,7 +690,7 @@ Note that amputating the affected organ does in fact remove the infection from t
if(. >= 3 && antibiotics < ANTIBIO_OD) //INFECTION_LEVEL_THREE
if (!(status & ORGAN_DEAD))
status |= ORGAN_DEAD
owner << "<span class='notice'>You can't feel your [name] anymore...</span>"
to_chat(owner, "<span class='notice'>You can't feel your [name] anymore...</span>")
owner.update_icons_body()
for (var/obj/item/organ/external/child in children)
child.germ_level += 110 //Burst of infection from a parent organ becoming necrotic
+1 -1
View File
@@ -18,7 +18,7 @@ mob/living/carbon/proc/custom_pain(message, power, force)
// Anti message spam checks
if(force || (message != last_pain_message) || (world.time >= next_pain_time))
last_pain_message = message
src << message
to_chat(src,message)
next_pain_time = world.time + (100-power)
mob/living/carbon/human/proc/handle_pain()