﻿# The Enslaver invades foreign lands, taking any women she can find to turn into more slaves for the Magister
# Also helps with keeping control of newly conquered lands, and giving dread prestige bonus
regula_enslaver_attribute = {
    adjective = regula_accolade_enslaving
    noun = regula_accolade_enslaver

    # Grouping accolades
    accolade_categories = { regula militant amoral champion aggressive forceful skilled righteous prowess army_bonus }

    # Founding and successor requirements
    potential = {
		is_regula_trigger = yes
        prowess >= accolade_prowess_requirement_value
    }

	# AI weighting
    weight = {
        value = accolade_uninteresting_base_value
        if = {
            limit = {
                culture = {
					has_cultural_tradition = tradition_famuli_warriors
                }
            }
            add = 100
        }
        if = {
            limit = {
                OR = {
					has_trait = zealous
                    has_trait = wrathful
                    has_trait = sadistic
                    has_trait = callous
                }
            }
            add = 50
        }
        if = {
            limit = {
                OR = {
                    has_trait = just
                    has_trait = craven
					has_trait = calm
                    has_trait = generous
                    has_trait = honest
                    has_trait = compassionate
                    has_trait = forgiving
                }
            }
            add = -75
        }
        #weight for opinion
        if = {
            limit = {
                exists = liege
            }
            multiply = accolade_opinion_multiplier_value
        }
    }

    # Accolade ranks from Glory XP
    ranks = {
        # glory_requirement =  { modifiers and unlocks }
        100 = { # rank 1
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.001
                raid_speed = 0.25
			}
            accolade_parameters = { accolade_regula_enslaver_increase_raid_chance }
        }
        300 = { # rank 2
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.001
                raid_speed = 0.25
			}
            accolade_parameters = { accolade_regula_enslaver_increase_raid_chance }
        }
        600 = { # rank 3
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.002
                raid_speed = 0.50
			}
			accolade_parameters = {
				accolade_increase_control_bonus
                accolade_regula_enslaver_increase_raid_chance
			}
        }
        1000 = { # rank 4
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.002
                raid_speed = 0.50
			}
			accolade_parameters = {
				accolade_increase_control_bonus
                accolade_regula_enslaver_increase_raid_chance
			}
        }
        1500 = { # rank 5
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.005
                raid_speed = 1
			}
			accolade_parameters = {
				accolade_increase_control_bonus
                accolade_regula_enslaver_increase_raid_chance
			}
        }
        2100 = { # rank 6
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.005
                raid_speed = 1
			}
			accolade_parameters = {
				accolade_increase_control_bonus
                accolade_regula_enslaver_increase_raid_chance
			}
        }
    }
}

# The Priestess helps you fascinare and provides piety bonuses, also makes it faster to develop temples
regula_priestess_attribute = {
    adjective = regula_accolade_priestess
    noun = regula_accolade_priestess

    # Grouping accolades
    accolade_categories = { regula courtly ethical leader common righteous benevolent piety }

    # Founding and successor requirements
    potential = {
		is_regula_trigger = yes
    }

	# AI weighting
    weight = {
        value = accolade_uninteresting_base_value
        if = {
            limit = {
                culture = {
					has_cultural_tradition = tradition_magistri_submission
                }
            }
            add = 100
        }
        if = {
            limit = {
                OR = {
                    has_trait = wrathful
                    has_trait = sadistic
                    has_trait = callous
                }
            }
            add = -50
        }
        if = {
            limit = {
                OR = {
                    has_trait = just
                    has_trait = zealous
					has_trait = calm
                    has_trait = generous
                    has_trait = honest
                    has_trait = compassionate
                    has_trait = forgiving
                }
            }
            add = 100
        }
        #weight for opinion
        if = {
            limit = {
                exists = liege
            }
            multiply = accolade_opinion_multiplier_value
        }
    }

    # Accolade ranks from Glory XP
    ranks = {
        # glory_requirement =  { modifiers and unlocks }
        100 = { # rank 1
			liege_modifier = {
				regula_fascinare_scheme_phase_duration_add = miniscule_scheme_phase_duration_bonus_value
                monthly_piety_gain_mult = 0.1
                church_holding_build_speed = -0.15
			}
        }
        300 = { # rank 2
			liege_modifier = {
				regula_fascinare_scheme_phase_duration_add = miniscule_scheme_phase_duration_bonus_value
                monthly_piety_gain_mult = 0.1
                church_holding_build_speed = -0.15
			}
        }
        600 = { # rank 3
			liege_modifier = {
				regula_fascinare_scheme_phase_duration_add = minor_scheme_phase_duration_bonus_value
                monthly_piety_gain_mult = 0.2
                church_holding_build_speed = -0.3
			}
        }
        1000 = { # rank 4
			liege_modifier = {
				regula_fascinare_scheme_phase_duration_add = minor_scheme_phase_duration_bonus_value
                monthly_piety_gain_mult = 0.2
                church_holding_build_speed = -0.3
			}
        }
        1500 = { # rank 5
			liege_modifier = {
				regula_fascinare_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
                monthly_piety_gain_mult = 0.3
                church_holding_build_speed = -0.5
			}
        }
        2100 = { # rank 6
			liege_modifier = {
				regula_fascinare_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
                monthly_piety_gain_mult = 0.3
                church_holding_build_speed = -0.5
			}
        }
    }
}

# The Chosen is a special accolade, only available to children of the book
# It provides + domain limit and dynasty prestige
regula_chosen_attribute = {
    adjective = regula_accolade_chosen
    noun = regula_accolade_chosen

    # Grouping accolades
    accolade_categories = { regula courtly ethical leader eminent righteous benevolent dynasty }

    # Founding and successor requirements
    potential = {
		is_regula_trigger = yes
        has_trait = regula_child_of_the_book
    }

	# AI weighting
    weight = accolade_must_have_base_value

    # Accolade ranks from Glory XP
    ranks = {
        # glory_requirement =  { modifiers and unlocks }
        100 = { # rank 1
			liege_modifier = {
                monthly_dynasty_prestige_mult = 0.05
                diplomacy_per_piety_level = 1
                martial_per_piety_level = 1
                stewardship_per_piety_level = 1
                intrigue_per_piety_level = 1
                learning_per_piety_level = 1
			}
        }
        300 = { # rank 2
			liege_modifier = {
                monthly_dynasty_prestige_mult = 0.05
                diplomacy_per_piety_level = 1
                martial_per_piety_level = 1
                stewardship_per_piety_level = 1
                intrigue_per_piety_level = 1
                learning_per_piety_level = 1
			}
        }
        600 = { # rank 3
			liege_modifier = {
                domain_limit = 1
                monthly_dynasty_prestige_mult = 0.15
                diplomacy_per_piety_level = 2
                martial_per_piety_level = 2
                stewardship_per_piety_level = 2
                intrigue_per_piety_level = 2
                learning_per_piety_level = 2
			}
        }
        1000 = { # rank 4
			liege_modifier = {
                domain_limit = 1
                monthly_dynasty_prestige_mult = 0.15
                diplomacy_per_piety_level = 2
                martial_per_piety_level = 2
                stewardship_per_piety_level = 2
                intrigue_per_piety_level = 2
                learning_per_piety_level = 2
			}
        }
        1500 = { # rank 5
			liege_modifier = {
                domain_limit = 2
                monthly_dynasty_prestige_mult = 0.25
                diplomacy_per_piety_level = 3
                martial_per_piety_level = 3
                stewardship_per_piety_level = 3
                intrigue_per_piety_level = 3
                learning_per_piety_level = 3
			}
        }
        2100 = { # rank 6
			liege_modifier = {
                domain_limit = 2
                monthly_dynasty_prestige_mult = 0.25
                diplomacy_per_piety_level = 3
                martial_per_piety_level = 3
                stewardship_per_piety_level = 3
                intrigue_per_piety_level = 3
                learning_per_piety_level = 3
			}
        }
    }
}
