Files
Bubberstation/code/datums/diseases/cold.dm
Time-Green defa91010a Reverts projectile sneezing :( (#89292)
## About The Pull Request

Reverts #83361

## Why It's Good For The Game

I PR'd the original with the intent of making disease battling more
engaging by adding warnings and sneeze dodging, but this was rejected
and instead we got a very awkward middle ground where no one is happy
and the original PR didnt accomplish what it set out to accomplish. You
can't dodge the sneeze because it's a shotgun spread and invisible :/.
The sneeze catchers are even somewhat buggy and the sneeze warning leads
to extra chat clutter
2025-02-09 18:47:25 -06:00

52 lines
2.0 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
required_organ = ORGAN_SLOT_LUNGS
/datum/disease/cold/stage_act(seconds_per_tick, times_fired)
. = ..()
if(!.)
return
switch(stage)
if(2)
if(SPT_PROB(0.5, seconds_per_tick))
affected_mob.emote("sneeze")
if(SPT_PROB(0.5, seconds_per_tick))
affected_mob.emote("cough")
if(SPT_PROB(0.5, seconds_per_tick))
to_chat(affected_mob, span_danger("Your throat feels sore."))
if(SPT_PROB(0.5, seconds_per_tick))
to_chat(affected_mob, span_danger("Mucous runs down the back of your throat."))
if((affected_mob.body_position == LYING_DOWN && SPT_PROB(23, seconds_per_tick)) || SPT_PROB(0.025, seconds_per_tick)) //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(SPT_PROB(0.5, seconds_per_tick))
affected_mob.emote("sneeze")
if(SPT_PROB(0.5, seconds_per_tick))
affected_mob.emote("cough")
if(SPT_PROB(0.5, seconds_per_tick))
to_chat(affected_mob, span_danger("Your throat feels sore."))
if(SPT_PROB(0.5, seconds_per_tick))
to_chat(affected_mob, span_danger("Mucous runs down the back of your throat."))
if(SPT_PROB(0.25, seconds_per_tick) && !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 && SPT_PROB(12.5, seconds_per_tick)) || SPT_PROB(0.005, seconds_per_tick)) //changed FROM prob(5) until sleeping is fixed
to_chat(affected_mob, span_notice("You feel better."))
cure()
return FALSE