decisions = {
	become_mandalorian = {
				is_high_prio = no
				ai = no
				potential = {
					is_playable = yes
					has_global_flag = founded_mandalorian
					NOT = {
						culture = mandalorian
					}
					
				}
					allow = {
						is_adult = yes
					}
									effect = {
											culture = mandalorian
											
											
									}
						ai_will_do = {
							factor = 0
							}	
						
	}
	become_mandalorian_with_bloodline = {
				is_high_prio = no
				ai = no
				potential = {
					is_playable = yes
					NOT = {
						culture = mandalorian
					}
					NOT = { has_global_flag = founded_mandalorian }
				}
					allow = {
						is_adult = yes
					}
									effect = {
											set_global_flag = founded_mandalorian
											culture = mandalorian
											player = { set_name = "Mandalore" }
											if = {
												limit = { has_nickname = no }
												give_nickname = nick_the_cultured
											}
											create_bloodline = {
											type = mandalorianculture_bloodline
											inheritance = all_descendants
											}
											
									}
						ai_will_do = {
							factor = 0
							}	
						
	}
	create_kingdom_mandalore = {
        is_high_prio = yes
        only_independent = yes
        ai = no
		NOT = { has_global_flag = first_mandalorian_king }
        potential = {
            culture = mandalorian
            NOT = { higher_tier_than = DUKE }
            k_mandalore = { has_holder = no }
        }

        allow  = {
            is_adult = yes
            war = no
            NOT = { trait = incapable }
            AND = {
                completely_controls = d_mazandaran
                completely_controls = d_usturt
                completely_controls = d_dihistan
            }
            is_vice_royalty = no
            wealth = 300
            prestige = 1000
        }

        effect = {
            wealth = -300
            prestige = 1000
            primary_title = {
                save_event_target_as = current_primary_title
            }
            d_mazandaran = {
                show_scope_change = no
                de_jure_liege = k_mandalore
            }
            d_usturt = {
                show_scope_change = no
                de_jure_liege = k_mandalore
            }
            d_dihistan = {
                show_scope_change = no
                de_jure_liege = k_mandalore
            }
            k_mandalore = {
                show_scope_change = no
                grant_title = ROOT
                copy_title_laws = event_target:current_primary_title
            }
			set_global_flag = first_mandalorian_king
			player = { set_name = "Mandalore" }
			create_bloodline = {
						type = mandalorianculturekingdom_bloodline
						inheritance = all_descendants
					}
					
            if = {
                limit = { has_nickname = no }
                give_nickname = nick_the_founder
            }
        }

        ai_will_do = { factor = 1 }
    }	
	
	create_empire_mandalore = {
        is_high_prio = yes
        only_independent = yes
        ai = no
		NOT = { has_global_flag = first_mandalorian_emperor }
        potential = {
            culture = mandalorian
			has_landed_title = k_mandalore
            NOT = { higher_tier_than = KING }
            e_mandalore = { has_holder = no }
        }

        allow  = {
            is_adult = yes
            war = no
            NOT = { trait = incapable }
            AND = {
                completely_controls = k_mandalore
                completely_controls = k_daylam
                completely_controls = k_georgia
            }
            is_vice_royalty = no
            wealth = 700
            prestige = 1000
        }

        effect = {
            wealth = -700
            prestige = 1000
            primary_title = {
                save_event_target_as = current_primary_title
            }
            k_mandalore = {
                show_scope_change = no
                de_jure_liege = e_mandalore
            }
            k_daylam = {
                show_scope_change = no
                de_jure_liege = e_mandalore
            }
            k_georgia = {
                show_scope_change = no
                de_jure_liege = e_mandalore
            }
            e_mandalore = {
                show_scope_change = no
                grant_title = ROOT
                copy_title_laws = event_target:current_primary_title
            }
			player = { set_name = "Mandalore" }
			create_bloodline = {
						type = mandaloriancultureempire_bloodline
						inheritance = all_descendants
					}
            if = {
                limit = { has_nickname = no }
                give_nickname = nick_the_colonizer
            }
			set_global_flag = first_mandalorian_emperor
        }

        ai_will_do = { factor = 1 }
    }
	
	upgrade_mandalorian_camel = {
				is_high_prio = yes
				ai = no
				potential = {
					is_playable = yes
					culture = mandalorian
					higher_tier_than = DUKE
					NOT = { has_global_flag = mandalorian_retinue_camel }
				}
					allow = {
						is_adult = yes
						wealth = 550
					}
									effect = {
											wealth = -550
											prestige = 500
											set_global_flag = mandalorian_retinue_camel
									}
						ai_will_do = {
							factor = 0
							}	
						
	}
	
	upgrade_mandalorian_horse_archer = {
				is_high_prio = yes
				ai = no
				potential = {
					is_playable = yes
					culture = mandalorian
					higher_tier_than = KING
					NOT = { has_global_flag = mandalorian_retinue_horse_archer }
				}
					allow = {
						is_adult = yes
						wealth = 550
					}
									effect = {
											wealth = -550
											prestige = 500
											set_global_flag = mandalorian_retinue_horse_archer
									}
						ai_will_do = {
							factor = 0
							}	
						
	}
	
	upgrade_mandalorian_war_elephant = {
				is_high_prio = yes
				ai = no
				potential = {
					is_playable = yes
					culture = mandalorian
					higher_tier_than = KING
					NOT = { has_global_flag = mandalorian_retinue_war_elephant }
				}
					allow = {
						is_adult = yes
						wealth = 550
					}
									effect = {
											wealth = -550
											prestige = 500
											set_global_flag = mandalorian_retinue_war_elephant
									}
						ai_will_do = {
							factor = 0
							}	
						
	}
	
	give_the_dark_saber = {
				is_high_prio = no
				ai = no
				potential = {
					is_playable = yes
					NOT = { has_global_flag = got_the_dark_saber }
					has_global_flag = founded_mandalorian
					culture = mandalorian
					
				}
					allow = {
						is_adult = yes
						wealth = 550
					}
									effect = {
											add_artifact = dark_light_sword
											wealth = -550
											set_global_flag = got_the_dark_saber
											
									}
						ai_will_do = {
							factor = 0
							}	
						
	}
}