Religion_faith_7 = {
	
	pray_father = {

		icon = tur_the_constitutional_arrows

		available = {
			has_war = yes
		}

		visible = {
#			original_tag = SOV
		}

#		fire_only_once = yes
		
		cost = 75

		days_remove = 14
		days_re_enable = 90

		complete_effect = {
			add_timed_idea = { idea = father_prayer days = 14 }
			if = {
				limit = { original_tag = ENG }
				add_popularity = {
					ideology = communism
					popularity = 0.005
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	pray_mother = {

		icon = tur_the_constitutional_arrows

		available = {
			has_war = yes
		}

		visible = {
#			original_tag = SOV
		}

#		fire_only_once = yes
		
		cost = 75

		days_remove = 14
		days_re_enable = 90

		complete_effect = {
			add_timed_idea = { idea = mother_prayer days = 14 }
			if = {
				limit = { original_tag = ENG }
				add_popularity = {
					ideology = communism
					popularity = 0.005
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	pray_warrior = {

		icon = tur_the_constitutional_arrows

		available = {
			has_war = yes
		}

		visible = {
#			original_tag = SOV
		}

#		fire_only_once = yes
		
		cost = 75

		days_remove = 14
		days_re_enable = 90

		complete_effect = {
			add_timed_idea = { idea = warrior_prayer days = 14 }
			if = {
				limit = { original_tag = ENG }
				add_popularity = {
					ideology = communism
					popularity = 0.005
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	pray_smith = {

		icon = tur_the_constitutional_arrows

		available = {
#			original_tag = SOV
		}

		visible = {
#			original_tag = SOV
		}

#		fire_only_once = yes
		
		cost = 75

		days_remove = 14
		days_re_enable = 90

		complete_effect = {
			add_timed_idea = { idea = smith_prayer days = 14 }
			if = {
				limit = { original_tag = ENG }
				add_popularity = {
					ideology = communism
					popularity = 0.005
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	pray_maiden = {

		icon = tur_the_constitutional_arrows

		available = {
#			original_tag = SOV
		}

		visible = {
#			original_tag = SOV
		}

#		fire_only_once = yes
		
		cost = 75

		days_remove = 14
		days_re_enable = 90

		complete_effect = {
			add_timed_idea = { idea = maiden_prayer days = 14 }
			if = {
				limit = { original_tag = ENG }
				add_popularity = {
					ideology = communism
					popularity = 0.005
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	pray_crone = {

		icon = tur_the_constitutional_arrows

		available = {
#			original_tag = SOV
		}

		visible = {
#			original_tag = SOV
		}

#		fire_only_once = yes
		
		cost = 75

		days_remove = 14
		days_re_enable = 90

		complete_effect = {
			add_timed_idea = { idea = crone_prayer days = 14 }
			if = {
				limit = { original_tag = ENG }
				add_popularity = {
					ideology = communism
					popularity = 0.005
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	pray_stranger = {

		icon = tur_the_constitutional_arrows

		available = {
#			original_tag = SOV
		}

		visible = {
#			original_tag = SOV
		}

#		fire_only_once = yes
		
		cost = 75

		days_remove = 14
		days_re_enable = 90

		complete_effect = {
			add_timed_idea = { idea = stranger_prayer days = 14 }
			if = {
				limit = { original_tag = ENG }
				add_popularity = {
					ideology = communism
					popularity = 0.005
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

			
}

Religion_harpylady = {
	
	summon_harpyson = {

		icon = generic_prepare_civil_war

		available = {
			has_war = yes
		}

		visible = {
#			original_tag = SOV
		}

		fire_only_once = yes
		
		cost = 90

		days_remove = 7
		days_re_enable = 75

		complete_effect = {
			random_owned_controlled_state = {
			prioritize = { 656 }
			create_unit = { 
				division = "name = \"Sons of the Harpy\" division_template = \"Sons of the Harpy\" 				start_experience_factor = 0.7"
			owner = Root
				}

			}
		}

		ai_will_do = {
			factor = 5
		}
	}
			
}

Religion_lordoflight = {

	burn_oldidols = {

		icon = generic_prepare_civil_war

		available = {
#			has_available_idea_with_traits = { idea = worship_ruhlor limit = 1 }
			NOT = { has_idea = lordof_light }
		}

		visible = {
#			NOT = { has_idea = atheist }
#			NOT = { has_idea = lordof_light }
		}

#		fire_only_once = yes
		
		cost = 150

		days_remove = 7

		complete_effect = {
			if = {
				limit = { has_idea = faith_of_7 }
				swap_ideas = {
					add_idea = lordof_light
					remove_idea = faith_of_7
				}
			}
			if = {
				limit = { has_idea = old_gods }
				swap_ideas = {
					add_idea = lordof_light
					remove_idea = old_gods
				}
			}
			if = {
				limit = { has_idea = drowned_god }
				swap_ideas = {
					add_idea = lordof_light
					remove_idea = drowned_god
				}
			}
			if = {
				limit = { has_idea = harpylady }
				swap_ideas = {
					add_idea = lordof_light
					remove_idea = harpylady
				}
			}
			if = {
				limit = { has_idea = atheist }
				swap_ideas = {
					add_idea = lordof_light
					remove_idea = atheist
				}
			}
			set_country_flag = embraced_lordoflight
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 200

				OR = { 
					tag = HUN
					tag = PAK
				}				
			}
		}
	}
	
	proclaim_prince = {

		icon = generic_prepare_civil_war

		available = {
#			NOT = { has_country_leader_trait = prince_was_promised }
			has_idea = lordof_light
		}

		visible = {
#			original_tag = SOV
		}

		fire_only_once = yes
		
		cost = 250

		days_remove = 7

		complete_effect = {
			add_country_leader_trait = prince_was_promised
		}

		ai_will_do = {
			factor = 5
			modifier = {
				factor = 200

				OR = { 
					tag = HUN
					tag = PAK
				}				
			}
		}
	}

	learn_secrets = {

		icon = tur_the_constitutional_arrows

		available = {
			controls_state = 33
			has_idea = lordof_light
		}

		highlight_states = {
	 		highlight_state_targets = {
				state = 33
			} 
		}

		visible = {
			NOT = { original_tag = SOV }
		}

		fire_only_once = yes
		
		cost = 400

		days_remove = 24

		complete_effect = {
			unlock_decision_tooltip = practise_necromacy
#		removal_effect = {
			Root = {	country_event = hotd.1 }
		}

		ai_will_do = {
			factor = 5
		}
	}

	practise_necromacy = {

		icon = tur_the_constitutional_arrows

		available = {
			controls_state = 33
			has_idea = lordof_light
		}

		highlight_states = {
	 		highlight_state_targets = {
				state = 33
			} 
		}

		visible = {
			NOT = { original_tag = SOV }
#			OR = {
#			AND = {
			has_country_flag = rst_formed
#			has_country_flag = rst_cancelled
#			}
#			AND = {
#			has_country_flag = rst_formed
#			NOT = { has_country_flag = rst_cancelled }
#			}
		}

		fire_only_once = yes
		
		cost = 125

		days_remove = 7

		complete_effect = {
			Root = { country_event = hotd.2 }
		}

		ai_will_do = {
			factor = 5

		}
	}


			
}