Files
Bubberstation/code/datums/diseases/cold9.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

44 lines
1.5 KiB
Plaintext

/datum/disease/cold9
name = "The Cold"
max_stages = 3
spread_text = "On contact"
spread_flags = DISEASE_SPREAD_BLOOD | DISEASE_SPREAD_CONTACT_SKIN | DISEASE_SPREAD_CONTACT_FLUIDS
cure_text = "Common Cold Anti-bodies & Spaceacillin"
cures = list(/datum/reagent/medicine/spaceacillin)
agent = "ICE9-rhinovirus"
viable_mobtypes = list(/mob/living/carbon/human)
desc = "If left untreated the subject will slow, as if partly frozen."
severity = DISEASE_SEVERITY_HARMFUL
required_organ = ORGAN_SLOT_LUNGS
/datum/disease/cold9/stage_act(seconds_per_tick, times_fired)
. = ..()
if(!.)
return
switch(stage)
if(2)
affected_mob.adjust_bodytemperature(-5 * seconds_per_tick)
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(2.5, seconds_per_tick))
to_chat(affected_mob, span_danger("You feel stiff."))
if(SPT_PROB(0.05, seconds_per_tick))
to_chat(affected_mob, span_notice("You feel better."))
cure()
return FALSE
if(3)
affected_mob.adjust_bodytemperature(-10 * seconds_per_tick)
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(5, seconds_per_tick))
to_chat(affected_mob, span_danger("You feel stiff."))