#####################
# Accolade Glory Changes

#	Battle Won: glory goes up.
combat_event.2101 = {
	hidden = yes
	scope = combat_side

	trigger = {
        OR = {
            any_side_knight = {
			    exists = accolade
			    accolade = { is_accolade_active = yes }
		    }
            any_side_knight = {
                has_trait = draconic
            }
            side_commander = {
                limit = {
                    has_trait = draconic
                }
            }
        }
	}

	immediate = {
		every_side_knight = {
			limit = {
				exists = accolade
				accolade = { is_accolade_active = yes }
			}
			accolade = { add_glory = minor_glory_gain }
		}
        every_side_knight = {
            limit = {
                has_trait = draconic
            }
            add_trait_xp = {
                trait = draconic
                value = 2
            }
        }
        side_commander = {
            limit = {
                has_trait = draconic
            }
            add_trait_xp = {
                trait = draconic
                value = 5
            }
        }
	}

    trigger = {
        OR = {
            any_side_knight = {
                has_trait = draconic
            }
            any_side_commander = {
                limit = {
                    has_trait = draconic
                }
            }
        }
    }
}

#	Battle Lost: glory goes down [sad trombone noises].
combat_event.2111 = {
	hidden = yes
	scope = combat_side

	trigger = {
		OR = {
            any_side_knight = {
			    exists = accolade
			    accolade = { is_accolade_active = yes }
		    }
            any_side_knight = {
                has_trait = draconic
            }
            side_commander = {
                limit = {
                    has_trait = draconic
                }
            }
        }
	}

	immediate = {
		every_side_knight = {
			limit = {
				exists = accolade
				accolade = { is_accolade_active = yes }
			}
			accolade = { add_glory = minimal_glory_loss }
		}
        every_side_knight = {
            limit = {
                has_trait = draconic
            }
            add_trait_xp = {
                trait = draconic
                value = -2
            }
        }
        side_commander = {
            limit = {
                has_trait = draconic
            }
            add_trait_xp = {
                trait = draconic
                value = -5
            }
        }
	}
}