Files
Bubberstation/code/datums/diseases/cold.dm
SkyratBot d0dc199815 [MIRROR] /mob/living/proc/Life(delta_time) (#3509)
* /mob/living/proc/Life(delta_time)

* a

Co-authored-by: TemporalOroboros <TemporalOroboros@gmail.com>
Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
2021-02-19 16:55:52 +00:00

50 lines
1.9 KiB
Plaintext

/datum/disease/cold
name = "The Cold"
max_stages = 3
cure_text = "Rest & Spaceacillin"
cures = list(/datum/reagent/medicine/spaceacillin)
agent = "XY-rhinovirus"
viable_mobtypes = list(/mob/living/carbon/human)
permeability_mod = 0.5
desc = "If left untreated the subject will contract the flu."
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 class='danger'>Your throat feels sore.</span>")
if(DT_PROB(0.5, delta_time))
to_chat(affected_mob, "<span class='danger'>Mucous runs down the back of your throat.</span>")
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 class='notice'>You feel better.</span>")
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 class='danger'>Your throat feels sore.</span>")
if(DT_PROB(0.5, delta_time))
to_chat(affected_mob, "<span class='danger'>Mucous runs down the back of your throat.</span>")
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 class='notice'>You feel better.</span>")
cure()
return FALSE