﻿accolade_effect = {
    if = {
        limit = {
                NOT = {
                    has_trait = lifestyle_accolade
                }
            is_acclaimed = yes
        }
        accolade_set_up_effects = yes
    }
    else_if = {
        limit = {
            has_trait = lifestyle_accolade
            has_trait_xp = {
                trait = lifestyle_accolade
                value < 100
            }
            #is_acclaimed = yes
        }
        accolade_xp_effects = yes
    }
}

accolade_set_up_effects = {
    add_trait = lifestyle_accolade
}



accolade_xp_effects = {
		if = {
			limit = {
				is_acclaimed = yes
				is_in_army = yes
			}
		add_trait_xp = {
		trait = lifestyle_accolade
		value = {
		integer_range = {
		min = 4
		max = 8
		}
        }
    }
    }
		if = {
			limit = {
			has_trait = lifestyle_accolade
			is_commanding_army = yes
			}
		add_trait_xp = {
		trait = lifestyle_accolade
		value = {
		integer_range = {
		min = 3
		max = 5
		}
        }
    }
    }
		if = {
			limit = {
			has_trait = lifestyle_accolade
			is_in_army = yes
			}
		add_trait_xp = {
		trait = lifestyle_accolade
		value = {
		integer_range = {
		min = 1
		max = 3
		}
        }
    }
    }
}
