mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 10:41:42 +00:00
mid-refactor of `take_overall_damage` Fully refactors the (?:take|heal)_(?:overall|organ)_damage procs Allows the dead to examine Removes the `blinded` var Refactor cyborg components so vision loss is instant Robot life/death updates instantly Adds instant updates for damage overlays and HUD icons for humans Final reconciliation with the species refactor Adds a stat debugging system and debugging logs Also fixes instant death on species change "Debugging logs" are used for stuff an admin wouldn't care about but someone debugging would I used it to fix people dying instantly when changing species due to temporary deletion of the brain Fox's requests Adds a more careful updating system to our reagents system
57 lines
2.0 KiB
Plaintext
57 lines
2.0 KiB
Plaintext
/datum/disease/brainrot
|
|
name = "Brainrot"
|
|
max_stages = 4
|
|
spread_text = "On contact"
|
|
spread_flags = CONTACT_GENERAL
|
|
cure_text = "Mannitol"
|
|
cures = list("mannitol")
|
|
agent = "Cryptococcus Cosmosis"
|
|
viable_mobtypes = list(/mob/living/carbon/human)
|
|
cure_chance = 15//higher chance to cure, since two reagents are required
|
|
desc = "This disease destroys the braincells, causing brain fever, brain necrosis and general intoxication."
|
|
required_organs = list(/obj/item/organ/internal/brain)
|
|
severity = DANGEROUS
|
|
|
|
/datum/disease/brainrot/stage_act() //Removed toxloss because damaging diseases are pretty horrible. Last round it killed the entire station because the cure didn't work -- Urist -ACTUALLY Removed rather than commented out, I don't see it returning - RR
|
|
..()
|
|
|
|
switch(stage)
|
|
if(2)
|
|
if(prob(2))
|
|
affected_mob.emote("blink")
|
|
if(prob(2))
|
|
affected_mob.emote("yawn")
|
|
if(prob(2))
|
|
to_chat(affected_mob, "<span class='danger'>You don't feel like yourself.</span>")
|
|
if(prob(5))
|
|
affected_mob.adjustBrainLoss(1)
|
|
if(3)
|
|
if(prob(2))
|
|
affected_mob.emote("stare")
|
|
if(prob(2))
|
|
affected_mob.emote("drool")
|
|
if(prob(10) && affected_mob.getBrainLoss()<=98)//shouldn't retard you to death now
|
|
affected_mob.adjustBrainLoss(2)
|
|
if(prob(2))
|
|
to_chat(affected_mob, "<span class='danger'>Your try to remember something important...but can't.</span>")
|
|
|
|
if(4)
|
|
if(prob(2))
|
|
affected_mob.emote("stare")
|
|
if(prob(2))
|
|
affected_mob.emote("drool")
|
|
if(prob(15) && affected_mob.getBrainLoss()<=98) //shouldn't retard you to death now
|
|
affected_mob.adjustBrainLoss(3)
|
|
if(prob(2))
|
|
to_chat(affected_mob, "<span class='danger'>Strange buzzing fills your head, removing all thoughts.</span>")
|
|
if(prob(3))
|
|
to_chat(affected_mob, "<span class='danger'>You lose consciousness...</span>")
|
|
affected_mob.visible_message("<span class='warning'>[affected_mob] suddenly collapses</span>")
|
|
affected_mob.Paralyse(rand(5,10))
|
|
if(prob(1))
|
|
affected_mob.emote("snore")
|
|
if(prob(15))
|
|
affected_mob.stuttering += 3
|
|
|
|
return
|