mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 02:32:10 +00:00
## 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
52 lines
2.0 KiB
Plaintext
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
|