
decisions = {

	xgi-breakthrough-opt = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_1_Spiritual_Seed_Shaping_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_1_Spiritual_Seed_Shaping_1
				piety = 22080
			}
		}

		effect = {
			piety = -22080
			add_trait = Lv_1_Spiritual_Seed_Shaping_2
			set_character_flag = xgi-breakthrough-01
			character_event = { id = xgi-cult.006 }
			add_character_modifier = {
				name = xgi-breakthrough-modifier
				duration = 6
				hidden = no
			}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-2 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_1_Spiritual_Seed_Shaping_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_1_Spiritual_Seed_Shaping_2
				piety = 44160
			}
		}

		effect = {
			piety = -44160
			add_trait = Lv_1_Spiritual_Seed_Shaping_3
			set_character_flag = xgi-breakthrough-01
			character_event = { id = xgi-cult.006 }
			add_character_modifier = {
				name = xgi-breakthrough-modifier
				duration = 6
				hidden = no
			}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-3 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
			has_character_flag = xgi-spiritualnurturingseedpill
				trait = Lv_1_Spiritual_Seed_Shaping_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_1_Spiritual_Seed_Shaping_3
				piety = 66240
			}
		}

		effect = {
					piety = -66240
					add_trait = Lv_2_Spiritual_Seed_Nurturing_1
					add_trait = proud
					add_trait = ambitious
					set_character_flag = xgi-breakthrough-03
					character_event = { id = xgi-cult.006 }
					character_event = { id = xgi-cult.014 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-4 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_2_Spiritual_Seed_Nurturing_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_2_Spiritual_Seed_Nurturing_1
				piety = 88320
			}
		}

		effect = {
					piety = -88320
					add_trait = Lv_2_Spiritual_Seed_Nurturing_2
					set_character_flag = xgi-breakthrough-04
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-5 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_2_Spiritual_Seed_Nurturing_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_2_Spiritual_Seed_Nurturing_2
				piety = 110400
			}
		}

		effect = {
					piety = -110400
					add_trait = Lv_2_Spiritual_Seed_Nurturing_3
					add_trait = xgi-unaging
					set_character_flag = xgi-breakthrough-05
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-6 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_2_Spiritual_Seed_Nurturing_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_2_Spiritual_Seed_Nurturing_3
				piety = 132480
			}
		}

		effect = {
					piety = -132480
					add_trait = Lv_3_Soul_Germination_1
					add_trait = xgi-unaging
					add_trait = proud
					add_trait = ambitious
					set_character_flag = xgi-breakthrough-06
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-7 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_3_Soul_Germination_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_3_Soul_Germination_1
				piety = 154560
			}
		}

		effect = {
					piety = -154560
					add_trait = Lv_3_Soul_Germination_2
					set_character_flag = xgi-breakthrough-07
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-8 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_3_Soul_Germination_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_3_Soul_Germination_2
				piety = 176640
			}
		}

		effect = {
					piety = -176640
					add_trait = Lv_3_Soul_Germination_3
					set_character_flag = xgi-breakthrough-08
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-9 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
			has_character_flag = xgi-soulperfectionpill
				trait = Lv_3_Soul_Germination_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_3_Soul_Germination_3
				piety = 598720
			}
		}

		effect = {
					piety = -598720
					add_trait = Lv_4_Soul_Perfection_1
					add_trait = proud
					add_trait = ambitious
					add_trait = fair
					ROOT = { any_character = { limit = { ai = no } character_event = { id = xgi-rumours-news.005 } } }
					set_character_flag = xgi-breakthrough-09
					character_event = { id = xgi-cult.007 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-10 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_4_Soul_Perfection_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_4_Soul_Perfection_1
				piety = 598720
			}
		}

		effect = {
					piety = -598720
					add_trait = Lv_4_Soul_Perfection_2
					add_trait = fair
					set_character_flag = xgi-breakthrough-10
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-11 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_4_Soul_Perfection_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_4_Soul_Perfection_2
				piety = 598720
			}
		}

		effect = {
					piety = -598720
					add_trait = Lv_4_Soul_Perfection_3
					add_trait = fair
					set_character_flag = xgi-breakthrough-11
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-12 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_4_Soul_Perfection_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_4_Soul_Perfection_3
				piety = 598720
			}
		}

		effect = {
					piety = -598720
					add_trait = Lv_5_Soul_Unification_1
					add_trait = proud
					add_trait = ambitious
					set_character_flag = xgi-breakthrough-12
					ROOT = { any_character = { limit = { ai = no } character_event = { id = xgi-rumours-news.006 } } }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-13 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_5_Soul_Unification_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_5_Soul_Unification_1
				piety = 287040
			}
		}

		effect = {
					piety = -287040
					add_trait = Lv_5_Soul_Unification_2
					set_character_flag = xgi-breakthrough-13
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-14 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_5_Soul_Unification_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_5_Soul_Unification_2
				piety = 309120
			}
		}

		effect = {
					piety = -309120
					add_trait = Lv_5_Soul_Unification_3
					set_character_flag = xgi-breakthrough-14
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-15 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_5_Soul_Unification_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_5_Soul_Unification_3
				piety = 331200
			}
		}

		effect = {
					piety = -331200
					add_trait = Lv_6_Undying_Body_1
					add_trait = proud
					add_trait = ambitious
					set_character_flag = xgi-breakthrough-15
					ROOT = { any_character = { limit = { ai = no } character_event = { id = xgi-rumours-news.007 } } }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-16 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_6_Undying_Body_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_6_Undying_Body_1
				piety = 353280
			}
		}

		effect = {
					piety = -353280
					add_trait = Lv_6_Undying_Body_2
					set_character_flag = xgi-breakthrough-16
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-17 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_6_Undying_Body_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_6_Undying_Body_2
				piety = 375360
			}
		}

		effect = {
					piety = -375360
					add_trait = Lv_6_Undying_Body_3
					set_character_flag = xgi-breakthrough-17
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-18 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_6_Undying_Body_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_6_Undying_Body_3
				piety = 397440
			}
		}

		effect = {
					piety = -397440
					set_character_flag = xgi-breakthrough-18
					character_event = { id = xgi-cult.008 days = 2 }
					ROOT = { any_character = { limit = { ai = no } character_event = { id = xgi-rumours-news.008 } } }
					add_trait = fair
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-19 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_7_True_Immortal_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_7_True_Immortal_1
				piety = 419520
			}
		}

		effect = {
					piety = -419520
					add_trait = Lv_7_True_Immortal_2
					set_character_flag = xgi-breakthrough-19
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-20 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_7_True_Immortal_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_7_True_Immortal_2
				piety = 441600
			}
		}

		effect = {
					piety = -441600
					add_trait = Lv_7_True_Immortal_3
					set_character_flag = xgi-breakthrough-20
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-21 = {

		is_high_prio = yes



		potential = {
			is_female = yes
			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_7_True_Immortal_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_7_True_Immortal_3
				piety = 463680
			}
		}

		effect = {
					piety = -463680
					add_trait = Lv_8_Immortal_God_1
					add_trait = proud
					add_trait = ambitious
					add_trait = fair
					add_trait = groomed
					add_trait = xgi-goddess
					set_character_flag = xgi-breakthrough-21
					ROOT = { any_character = { limit = { ai = no } character_event = { id = xgi-rumours-news.009 } } }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					create_bloodline = {
						type = random_world_bloodline_male_2
					}
					new_bloodline = {
						set_description = "Lv_8_Immortal_God_1_desc"
	
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-22 = {

		is_high_prio = yes



		potential = {
			is_female = no
			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_7_True_Immortal_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_7_True_Immortal_3
				piety = 463680
			}
		}

		effect = {
					piety = -463680
					add_trait = Lv_8_Immortal_God_1
					add_trait = proud
					add_trait = ambitious
					add_trait = fair
					add_trait = groomed
					set_character_flag = xgi-breakthrough-21
					ROOT = { any_character = { limit = { ai = no } character_event = { id = xgi-rumours-news.009 } } }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					create_bloodline = {
						type = random_world_bloodline_male_2
					}
					new_bloodline = {
						set_description = "Lv_8_Immortal_God_1_desc"
	
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-23 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_8_Immortal_God_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_8_Immortal_God_1
				piety = 485760
			}
		}

		effect = {
					piety = -485760
					add_trait = Lv_8_Immortal_God_2
					set_character_flag = xgi-breakthrough-22
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-24 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_8_Immortal_God_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_8_Immortal_God_2
				piety = 507840
			}
		}

		effect = {
					piety = -507840
					add_trait = Lv_8_Immortal_God_3
					set_character_flag = xgi-breakthrough-23
					character_event = { id = xgi-cult.006 }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-25 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_8_Immortal_God_3

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_8_Immortal_God_3
				piety = 529920
				prestige = 529920
			}
		}

		effect = {
					piety = -529920
					prestige = -529920
					add_trait = Lv_9_Ancestral_God_1
					set_character_flag = xgi-breakthrough-24
					ROOT = { any_character = { limit = { ai = no } character_event = { id = xgi-rumours-news.010 } } }
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					create_bloodline = {
						type = random_world_bloodline_male_2
					}
					new_bloodline = {
						set_description = "Lv_9_Ancestral_God_1_desc"
	
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-26 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_9_Ancestral_God_1

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_9_Ancestral_God_1
				piety = 552000
				prestige = 552000
			}
		}

		effect = {
					piety = -552000
					prestige = -552000
					add_trait = Lv_9_Ancestral_God_2
					set_character_flag = xgi-breakthrough-25
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

	xgi-breakthrough-opt-27 = {

		is_high_prio = yes



		potential = {

			OR = {
				trait = xgi-righteous
				trait = xgi-demonic
			}
				trait = Lv_9_Ancestral_God_2

		}

		allow = {
			NOT = { has_character_modifier = xgi-breakthrough-modifier }
			ROOT = {
				trait = Lv_9_Ancestral_God_2
				piety = 574080
				prestige = 574080
			}
		}

		effect = {
					piety = -574080
					prestige = -574080
					add_trait = Lv_9_Ancestral_God_3
					set_character_flag = xgi-breakthrough-26
					add_character_modifier = {
						name = xgi-breakthrough-modifier
						duration = 6
						hidden = no
					}
					character_event = { id = xgi-cult.004 }
		}
		ai_will_do = {
			factor = 0.9
		}

	}

}