﻿z_easycheats_4_remove_bad_traits = { 

	on_other_nation = no
	on_own_nation = yes
	
	sound = "event:/SFX/UI/Character/Unique/sfx_ui_character_reward"
	
	message = no	

	potential_trigger = {
		hidden:scope:target = {
			is_alive = yes
			NOT = { employer = { tag = REB } }
			NOT = { employer = { tag = BAR } }
			employer = {
				is_ai = no
			}
			OR = {
				has_trait = depressed
				has_trait = mourning
				has_trait = jealous
				has_trait = vengeful
				has_trait = hemorrhagic_fever
				has_trait = plague
				has_trait = pneumonia
				has_trait = dysentery
				has_trait = gangrene
				has_trait = leper
				has_trait = infection
				has_trait = inflammation
				has_trait = wounded
				has_trait = pox
				has_trait = arthritis
				has_trait = mentagra
				has_trait = seeking_treatment_trait
				has_trait = maimed
				has_trait = epileptic
				has_trait = blind
				has_trait = one_eyed
				has_trait = castrated
				has_trait = barren
				has_trait = brain_damaged
				has_trait = incapable
				has_trait = dumb
				has_trait = deceitful
				has_trait = lazy
				has_trait = reckless
				has_trait = foolish
				has_trait = gluttonous
				has_trait = stressed
				has_trait = coward
				has_trait = frail
				has_trait = paralysis
				has_trait = cancer
				has_trait = gout
				has_trait = miserly
				has_trait = lunatic
				has_trait = dementia
				has_trait = lapsed
				has_trait = diphtheria
				has_trait = jealous
				has_trait = schizophrenic
				has_trait = selfish
			}
		}
	}	
	
	allowed_trigger = {
		scope:target = {			
			is_alive = yes
			OR = {
				has_trait = depressed
				has_trait = mourning
				has_trait = jealous
				has_trait = vengeful
				has_trait = hemorrhagic_fever
				has_trait = plague
				has_trait = pneumonia
				has_trait = dysentery
				has_trait = gangrene
				has_trait = leper
				has_trait = infection
				has_trait = inflammation
				has_trait = wounded
				has_trait = pox
				has_trait = arthritis
				has_trait = mentagra
				has_trait = seeking_treatment_trait
				has_trait = maimed
				has_trait = epileptic
				has_trait = blind
				has_trait = one_eyed
				has_trait = castrated
				has_trait = barren
				has_trait = brain_damaged
				has_trait = incapable
				has_trait = dumb
				has_trait = deceitful
				has_trait = lazy
				has_trait = reckless
				has_trait = foolish
				has_trait = gluttonous
				has_trait = stressed
				has_trait = coward
				has_trait = frail
				has_trait = paralysis
				has_trait = cancer
				has_trait = gout
				has_trait = miserly
				has_trait = lunatic
				has_trait = dementia
				has_trait = lapsed
				has_trait = diphtheria
				has_trait = jealous
				has_trait = schizophrenic
				has_trait = selfish
			}
		}
	}	
	
	effect = {		
		scope:target = {
			remove_trait = depressed
			remove_trait = mourning
			remove_trait = jealous
			remove_trait = vengeful
			remove_trait = hemorrhagic_fever
			remove_trait = plague
			remove_trait = pneumonia
			remove_trait = dysentery
			remove_trait = gangrene
			remove_trait = leper
			remove_trait = infection
			remove_trait = inflammation
			remove_trait = wounded
			remove_trait = pox
			remove_trait = arthritis
			remove_trait = mentagra
			remove_trait = seeking_treatment_trait
			remove_trait = maimed
			remove_trait = epileptic
			remove_trait = blind
			remove_trait = one_eyed
			remove_trait = castrated
			remove_trait = barren
			remove_trait = brain_damaged
			remove_trait = incapable
			remove_trait = dumb
			remove_trait = deceitful
			remove_trait = lazy
			remove_trait = reckless
			remove_trait = foolish
			remove_trait = gluttonous
			remove_trait = stressed
			remove_trait = coward
			remove_trait = frail
			remove_trait = paralysis
			remove_trait = cancer
			remove_trait = gout
			remove_trait = miserly
			remove_trait = lunatic
			remove_trait = dementia
			remove_trait = lapsed
			remove_trait = diphtheria
			remove_trait = jealous
			remove_trait = schizophrenic
			remove_trait = selfish
		}
	}
}	
