mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +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
56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
/datum/disease/flu
|
|
name = "The Flu"
|
|
max_stages = 3
|
|
spread_text = "Airborne"
|
|
cure_text = "Spaceacillin"
|
|
cures = list(/datum/reagent/medicine/spaceacillin)
|
|
cure_chance = 5
|
|
agent = "H13N1 flu virion"
|
|
viable_mobtypes = list(/mob/living/carbon/human)
|
|
spreading_modifier = 0.75
|
|
desc = "If left untreated the subject will feel quite unwell."
|
|
severity = DISEASE_SEVERITY_MINOR
|
|
required_organ = ORGAN_SLOT_LUNGS
|
|
|
|
/datum/disease/flu/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 muscles ache."))
|
|
if(prob(20))
|
|
affected_mob.take_bodypart_damage(1, updating_health = FALSE)
|
|
if(SPT_PROB(0.5, seconds_per_tick))
|
|
to_chat(affected_mob, span_danger("Your stomach hurts."))
|
|
if(prob(20))
|
|
affected_mob.adjustToxLoss(1, FALSE)
|
|
if(affected_mob.body_position == LYING_DOWN && SPT_PROB(10, seconds_per_tick))
|
|
to_chat(affected_mob, span_notice("You feel better."))
|
|
stage--
|
|
return
|
|
|
|
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 muscles ache."))
|
|
if(prob(20))
|
|
affected_mob.take_bodypart_damage(1, updating_health = FALSE)
|
|
if(SPT_PROB(0.5, seconds_per_tick))
|
|
to_chat(affected_mob, span_danger("Your stomach hurts."))
|
|
if(prob(20))
|
|
affected_mob.adjustToxLoss(1, FALSE)
|
|
if(affected_mob.body_position == LYING_DOWN && SPT_PROB(7.5, seconds_per_tick))
|
|
to_chat(affected_mob, span_notice("You feel better."))
|
|
stage--
|
|
return
|