decisions = {
	
	## Must be updated when a new edit is made to employment_decisions in the AfricanReligions mod.
	employ_steward = {
		ai = no
		only_playable = yes

		potential = {
			NOT = { has_religion_feature = religion_matriarchal }
			NOR = {
                has_law = enatic_cognatic_succession
                has_law = enatic_succession
            }
		}
		allow = {
			scaled_wealth = 0.25
			NOT = {
				has_character_modifier = in_seclusion
			}
		}
		effect = {
			scaled_wealth = -0.25
			create_random_steward = {
				random_traits = yes
				dynasty = random
				female = no
				attributes = {
					diplomacy = 2
					learning = 2
					stewardship = 8
					intrigue = 2
					martial = 2
				}
			}
			new_character = {
				remove_trait = slow
				remove_trait = imbecile
				remove_trait = dull
				
				remove_trait = mystic
				remove_trait = socializer
				remove_trait = gamer
				remove_trait = hedonist
				remove_trait = duelist
				remove_trait = hunter
				remove_trait = strategist
				remove_trait = administrator
				remove_trait = architect
				remove_trait = gardener
				remove_trait = schemer
				remove_trait = impaler
				remove_trait = seducer
				remove_trait = seductress
				remove_trait = theologian
				remove_trait = scholar
				
				if = {
					limit = {
						society_member_of = carthage_society
						society_rank >= 1
					}
					random_list = {
						30 = { add_trait = architect }
						30 = { add_trait = administrator }
						30 = { add_trait = gardener }
						10 = {  }
					}
					random = {
						chance = 50
						change_stewardship = 2
					}
				}
				
				random_list = { # Flavor Randomization
					35 = { 
						# Nothing
					}
					15 = {
						change_stewardship = 2
					}
					10 = {
						add_trait = gardener
					}
					10 = {
						add_trait = architect
					}
					10 = {
						add_trait = administrator
					}
					10 = {
						change_stewardship = 4
					}
					5 = {
						change_stewardship = 6
					}
					5 = {
						modifier = {
							factor = 2.5
							society_member_of = carthage_society
							society_rank >= 1
						}
						add_trait = shrewd
					}
				}
				hidden_tooltip = {
					if = {
						limit = {
							has_dharmic_religion_trigger = yes
						}
						add_trait = kshatriya
						character_event = { id = RoI.30121 }
					}
					if = {
						limit = {
							OR = {
								religion = hellenic_pagan
								religion = hellenic_pagan_reformed
								has_religion_feature = religion_astrology
							}
						}
						hidden_tooltip = { add_western_zodiac_trait_effect = yes }
					}
					if = {
						limit = {
							has_religion_feature = religion_no_leader
							religion_group = pagan_group
						}
						random_list = {  
							5 = {
								add_trait = pagan_branch_1
							}
							25 = {
								add_trait = pagan_branch_2
							}
							25 = {
								add_trait = pagan_branch_3
							}
							25 = {
								add_trait = pagan_branch_4
							}
						}
					}
				}
				save_event_target_as = invited_character
			}
			character_event = { id = NE.1 }
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
}