Files
Bubberstation/code/datums/diseases/cold.dm
SkyratBot 4e172e8901 [MIRROR] Fixes absent spread_text instances [MDB IGNORE] (#17625)
* Fixes absent spread_text instances  (#71386)

## About The Pull Request

spread_text dictates the readout next to "type" on a health analyzer's
output. It was absent from some special diseases (and also the common
cold), leading to the field being blank on the analyzer results.
## Why It's Good For The Game

Closes #71379.
## Changelog
🆑
spellcheck: Adds spread text to some diseases that lacked it.
/🆑

* Fixes absent spread_text instances

Co-authored-by: Rhials <Datguy33456@gmail.com>
2022-11-21 18:18:25 -05:00

51 lines
1.9 KiB
Plaintext

/datum/disease/cold
name = "The Cold"
desc = "If left untreated the subject will contract the flu."
max_stages = 3
cure_text = "Rest & Spaceacillin"
cures = list(/datum/reagent/medicine/spaceacillin)
agent = "XY-rhinovirus"
viable_mobtypes = list(/mob/living/carbon/human)
spreading_modifier = 0.5
spread_text = "Airborne"
severity = DISEASE_SEVERITY_NONTHREAT
/datum/disease/cold/stage_act(delta_time, times_fired)
. = ..()
if(!.)
return
switch(stage)
if(2)
if(DT_PROB(0.5, delta_time))
affected_mob.emote("sneeze")
if(DT_PROB(0.5, delta_time))
affected_mob.emote("cough")
if(DT_PROB(0.5, delta_time))
to_chat(affected_mob, span_danger("Your throat feels sore."))
if(DT_PROB(0.5, delta_time))
to_chat(affected_mob, span_danger("Mucous runs down the back of your throat."))
if((affected_mob.body_position == LYING_DOWN && DT_PROB(23, delta_time)) || DT_PROB(0.025, delta_time)) //changed FROM prob(10) until sleeping is fixed // Has sleeping been fixed yet?
to_chat(affected_mob, span_notice("You feel better."))
cure()
return FALSE
if(3)
if(DT_PROB(0.5, delta_time))
affected_mob.emote("sneeze")
if(DT_PROB(0.5, delta_time))
affected_mob.emote("cough")
if(DT_PROB(0.5, delta_time))
to_chat(affected_mob, span_danger("Your throat feels sore."))
if(DT_PROB(0.5, delta_time))
to_chat(affected_mob, span_danger("Mucous runs down the back of your throat."))
if(DT_PROB(0.25, delta_time) && !LAZYFIND(affected_mob.disease_resistances, /datum/disease/flu))
var/datum/disease/Flu = new /datum/disease/flu()
affected_mob.ForceContractDisease(Flu, FALSE, TRUE)
cure()
return FALSE
if((affected_mob.body_position == LYING_DOWN && DT_PROB(12.5, delta_time)) || DT_PROB(0.005, delta_time)) //changed FROM prob(5) until sleeping is fixed
to_chat(affected_mob, span_notice("You feel better."))
cure()
return FALSE