mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 20:52:41 +00:00
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
65 lines
1.9 KiB
Plaintext
65 lines
1.9 KiB
Plaintext
/datum/disease/cold
|
|
name = "The Cold"
|
|
max_stages = 3
|
|
spread_text = "Airborne"
|
|
spread_flags = AIRBORNE
|
|
cure_text = "Rest & Spaceacilin"
|
|
cures = list("spaceacilin")
|
|
agent = "XY-rhinovirus"
|
|
viable_mobtypes = list(/mob/living/carbon/human, /mob/living/carbon/human/monkey)
|
|
permeability_mod = 0.5
|
|
desc = "If left untreated the subject will contract the flu."
|
|
severity = MINOR
|
|
|
|
/datum/disease/cold/stage_act()
|
|
if(!..())
|
|
return FALSE
|
|
switch(stage)
|
|
if(2)
|
|
if(affected_mob.stat == UNCONSCIOUS && prob(40))
|
|
to_chat(affected_mob, span_notice("You feel better."))
|
|
cure()
|
|
return
|
|
if(affected_mob.lying && prob(10))
|
|
to_chat(affected_mob, span_notice("You feel better."))
|
|
cure()
|
|
return
|
|
if(prob(1) && prob(5))
|
|
to_chat(affected_mob, span_notice("You feel better."))
|
|
cure()
|
|
return
|
|
if(prob(1))
|
|
affected_mob.emote("sneeze")
|
|
if(prob(1))
|
|
affected_mob.emote("cough")
|
|
if(prob(1))
|
|
to_chat(affected_mob, span_notice("Your throat feels sore."))
|
|
if(prob(1))
|
|
to_chat(affected_mob, span_notice("Mucous runs down the back of your throat."))
|
|
if(3)
|
|
if(affected_mob.stat == UNCONSCIOUS && prob(25))
|
|
to_chat(affected_mob, span_notice("You feel better."))
|
|
cure()
|
|
return
|
|
if(affected_mob.lying && prob(5))
|
|
to_chat(affected_mob, span_notice("You feel better."))
|
|
cure()
|
|
return
|
|
if(prob(1) && prob(1))
|
|
to_chat(affected_mob, span_notice("You feel better."))
|
|
cure()
|
|
return
|
|
if(prob(1))
|
|
affected_mob.emote("sneeze")
|
|
if(prob(1))
|
|
affected_mob.emote("cough")
|
|
if(prob(1))
|
|
to_chat(affected_mob, span_notice("Your throat feels sore."))
|
|
if(prob(1))
|
|
to_chat(affected_mob, span_notice("Mucous runs down the back of your throat."))
|
|
if(prob(1) && prob(50))
|
|
if(!affected_mob.resistances.Find(/datum/disease/flu))
|
|
var/datum/disease/Flu = new /datum/disease/flu(0)
|
|
affected_mob.ContractDisease(Flu)
|
|
cure()
|