//Mild traumas are the most common; they are generally minor annoyances. //They can be cured with mannitol and patience, although brain surgery still works. //Most of the old brain damage effects have been transferred to the dumbness trauma. /datum/brain_trauma/mild /datum/brain_trauma/mild/hallucinations name = "Hallucinations" desc = "Patient suffers constant hallucinations." scan_desc = "schizophrenia" gain_text = "You feel your grip on reality slipping..." lose_text = "You feel more grounded." /datum/brain_trauma/mild/hallucinations/on_life() owner.hallucination = min(owner.hallucination + 10, 50) ..() /datum/brain_trauma/mild/hallucinations/on_lose() owner.hallucination = 0 ..() /datum/brain_trauma/mild/stuttering name = "Stuttering" desc = "Patient can't speak properly." scan_desc = "reduced mouth coordination" gain_text = "Speaking clearly is getting harder." lose_text = "You feel in control of your speech." /datum/brain_trauma/mild/stuttering/on_life() owner.stuttering = min(owner.stuttering + 5, 25) ..() /datum/brain_trauma/mild/stuttering/on_lose() owner.stuttering = 0 ..() /datum/brain_trauma/mild/dumbness name = "Dumbness" desc = "Patient has reduced brain activity, making them less intelligent." scan_desc = "reduced brain activity" gain_text = "You feel dumber." lose_text = "You feel smart again." /datum/brain_trauma/mild/dumbness/on_gain() owner.disabilities |= DUMB ..() /datum/brain_trauma/mild/dumbness/on_life() owner.derpspeech = min(owner.derpspeech + 5, 25) if(prob(3)) owner.emote("drool") else if(owner.stat == CONSCIOUS && prob(3)) owner.say(pick_list_replacements(BRAIN_DAMAGE_FILE, "brain_damage")) ..() /datum/brain_trauma/mild/dumbness/on_lose() owner.disabilities &= ~DUMB owner.derpspeech = 0 ..() /datum/brain_trauma/mild/speech_impediment name = "Speech Impediment" desc = "Patient is unable to form coherent sentences." scan_desc = "communication disorder" gain_text = "" //mutation will handle the text lose_text = "" /datum/brain_trauma/mild/speech_impediment/on_gain() owner.dna.add_mutation(UNINTELLIGIBLE) ..() //no fiddling with genetics to get out of this one /datum/brain_trauma/mild/speech_impediment/on_life() if(!(GLOB.mutations_list[UNINTELLIGIBLE] in owner.dna.mutations)) on_gain() ..() /datum/brain_trauma/mild/speech_impediment/on_lose() owner.dna.remove_mutation(UNINTELLIGIBLE) ..() /datum/brain_trauma/mild/concussion name = "Concussion" desc = "Patient's brain is concussed." scan_desc = "a concussion" gain_text = "Your head hurts!" lose_text = "The pressure inside your head starts fading." /datum/brain_trauma/mild/concussion/on_life() if(prob(5)) switch(rand(1,11)) if(1) owner.vomit() if(2,3) owner.dizziness += 10 if(4,5) owner.confused += 10 owner.blur_eyes(10) if(6 to 9) owner.slurring += 30 if(10) to_chat(owner, "You forget for a moment what you were doing.") owner.Stun(20) if(11) to_chat(owner, "You faint.") owner.Unconscious(80) ..() /datum/brain_trauma/mild/muscle_weakness name = "Muscle Weakness" desc = "Patient experiences occasional bouts of muscle weakness." scan_desc = "weak motor nerve signal" gain_text = "Your muscles feel oddly faint." lose_text = "You feel in control of your muscles again." /datum/brain_trauma/mild/muscle_weakness/on_life() var/fall_chance = 1 if(owner.m_intent == MOVE_INTENT_RUN) fall_chance += 2 if(prob(fall_chance) && !owner.lying && !owner.buckled) to_chat(owner, "Your leg gives out!") owner.Knockdown(35) else if(owner.get_active_held_item()) var/drop_chance = 1 var/obj/item/I = owner.get_active_held_item() drop_chance += I.w_class if(prob(drop_chance) && owner.dropItemToGround(I)) to_chat(owner, "You drop [I]!") else if(prob(3)) to_chat(owner, "You feel a sudden weakness in your muscles!") owner.adjustStaminaLoss(50) ..()