dedf5f5ed9
* Virus antagonist initial commit * Updated disease code * Sentient virus improvements * Renamed /mob/living/var/viruses to diseases, and /mob/living/var/resistances to disease_resistances * Added sentient virus event * Renamed VIRUS defines to DISEASE defines * Fixed bugs in rewritten disease code * Fixed advanced disease Copy() * Finalized disease antagonist * Made cooldown buttons stop processing if they are removed from an owner. Made sentient disease active sneeze and cough not available if the host is unconscious. Made sentient disease menu refresh when adaptations are ready or hosts are added or removed. Made sentient disease following use movement signals instead of fastprocess. * Added better icons to sentient disease abilities
60 lines
2.2 KiB
Plaintext
60 lines
2.2 KiB
Plaintext
/datum/disease/brainrot
|
|
name = "Brainrot"
|
|
max_stages = 4
|
|
spread_text = "On contact"
|
|
spread_flags = DISEASE_SPREAD_BLOOD | DISEASE_SPREAD_CONTACT_SKIN | DISEASE_SPREAD_CONTACT_FLUIDS
|
|
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/brain)
|
|
severity = DISEASE_SEVERITY_HARMFUL
|
|
|
|
/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, 170)
|
|
affected_mob.updatehealth()
|
|
if(3)
|
|
if(prob(2))
|
|
affected_mob.emote("stare")
|
|
if(prob(2))
|
|
affected_mob.emote("drool")
|
|
if(prob(10))
|
|
affected_mob.adjustBrainLoss(2, 170)
|
|
affected_mob.updatehealth()
|
|
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.adjustBrainLoss(3, 170)
|
|
affected_mob.updatehealth()
|
|
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.Unconscious(rand(100,200))
|
|
if(prob(1))
|
|
affected_mob.emote("snore")
|
|
if(prob(15))
|
|
affected_mob.stuttering += 3
|
|
|
|
return
|