/datum/symptom/mind_restoration name = "Mind Restoration" desc = "The virus strengthens the bonds between neurons, reducing the duration of any ailments of the mind." stealth = -1 resistance = -2 stage_speed = 1 transmittable = -3 level = 5 symptom_delay_min = 5 symptom_delay_max = 10 var/purge_alcohol = FALSE var/trauma_heal_mild = FALSE var/trauma_heal_severe = FALSE threshold_desc = "Resistance 6: Heals minor brain traumas.
\ Resistance 9: Heals severe brain traumas.
\ Transmission 8: Purges alcohol in the bloodstream." /datum/symptom/mind_restoration/Start(datum/disease/advance/A) if(!..()) return if(A.properties["resistance"] >= 6) //heal brain damage trauma_heal_mild = TRUE if(A.properties["resistance"] >= 9) //heal severe traumas trauma_heal_severe = TRUE if(A.properties["transmittable"] >= 8) //purge alcohol purge_alcohol = TRUE /datum/symptom/mind_restoration/Activate(var/datum/disease/advance/A) if(!..()) return var/mob/living/M = A.affected_mob if(A.stage >= 3) M.dizziness = max(0, M.dizziness - 2) M.drowsyness = max(0, M.drowsyness - 2) M.slurring = max(0, M.slurring - 2) M.confused = max(0, M.confused - 2) if(purge_alcohol) M.reagents.remove_all_type(/datum/reagent/consumable/ethanol, 3) if(ishuman(M)) var/mob/living/carbon/human/H = M H.drunkenness = max(H.drunkenness - 5, 0) if(A.stage >= 4) M.drowsyness = max(0, M.drowsyness - 2) if(M.reagents.has_reagent("mindbreaker")) M.reagents.remove_reagent("mindbreaker", 5) if(M.reagents.has_reagent("histamine")) M.reagents.remove_reagent("histamine", 5) M.hallucination = max(0, M.hallucination - 10) if(A.stage >= 5) M.adjustBrainLoss(-3) if(trauma_heal_mild && iscarbon(M)) var/mob/living/carbon/C = M if(prob(10)) if(trauma_heal_severe) C.cure_trauma_type(resilience = TRAUMA_RESILIENCE_LOBOTOMY) else C.cure_trauma_type(resilience = TRAUMA_RESILIENCE_BASIC) /datum/symptom/sensory_restoration name = "Sensory Restoration" desc = "The virus stimulates the production and replacement of sensory tissues, causing the host to regenerate eyes and ears when damaged." stealth = 0 resistance = 1 stage_speed = -2 transmittable = 2 level = 4 base_message_chance = 7 symptom_delay_min = 1 symptom_delay_max = 1 /datum/symptom/sensory_restoration/Activate(datum/disease/advance/A) if(!..()) return var/mob/living/M = A.affected_mob var/obj/item/organ/eyes/eyes = M.getorganslot(ORGAN_SLOT_EYES) if (!eyes) return switch(A.stage) if(4, 5) M.restoreEars() if(HAS_TRAIT_FROM(M, TRAIT_BLIND, EYE_DAMAGE)) if(prob(20)) to_chat(M, "Your vision slowly returns...") M.cure_blind(EYE_DAMAGE) M.cure_nearsighted(EYE_DAMAGE) M.blur_eyes(35) else if(HAS_TRAIT_FROM(M, TRAIT_NEARSIGHT, EYE_DAMAGE)) to_chat(M, "You can finally focus your eyes on distant objects.") M.cure_nearsighted(EYE_DAMAGE) M.blur_eyes(10) else if(M.eye_blind || M.eye_blurry) M.set_blindness(0) M.set_blurriness(0) else if(eyes.eye_damage > 0) M.adjust_eye_damage(-1) else if(prob(base_message_chance)) to_chat(M, "[pick("Your eyes feel great.","You feel like your eyes can focus more clearly.", "You don't feel the need to blink.","Your ears feel great.","Your healing feels more acute.")]")