country_decisions = {
	# AI Decisions Below
	rce_religion_mechanic_hindu_spend_dedication_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = hindu }
			NOT = { has_country_modifier = rce_religion_mechanic_hindu_modifier_spent_dedication_shiva }
			NOT = { has_country_modifier = rce_religion_mechanic_hindu_modifier_spent_dedication_brahma }
			NOT = { has_country_modifier = rce_religion_mechanic_hindu_modifier_spent_dedication_vishnu }
			if = {
				limit = {
					OR = {
						rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
						rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
						rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
					}
				}
				OR = {
					rce_has_religion_mechanic_hindu_major_deity_dedication_level = { major_deity = current level = 1 }
					rce_has_religion_mechanic_hindu_value = { major_deity = current value = 30 }
				}
			}
			else = {
				OR = {
					rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
					rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
					rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
				}
			}
		}
		effect = {
			rce_add_religion_mechanic_hindu_value = { major_deity = current value = -30 }
			custom_tooltip = " "
			if = {
				limit = {
					rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
				}
				custom_tooltip = rce_religion_mechanic_hindu_spend_dedication_button_tt_shiva_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_hindu_spend_dedication_button_tt_shiva_no
			}
			tooltip = {
				add_country_modifier = {
					name = rce_religion_mechanic_hindu_modifier_spent_dedication_shiva
					duration = 7300
				}
			}
			if = {
				limit = {
					rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
				}
				custom_tooltip = rce_religion_mechanic_hindu_spend_dedication_button_tt_brahma_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_hindu_spend_dedication_button_tt_brahma_no
			}
			tooltip = {
				add_country_modifier = {
					name = rce_religion_mechanic_hindu_modifier_spent_dedication_brahma
					duration = 7300
				}
			}
			if = {
				limit = {
					rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
				}
				custom_tooltip = rce_religion_mechanic_hindu_spend_dedication_button_tt_vishnu_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_hindu_spend_dedication_button_tt_vishnu_no
			}
			tooltip = {
				add_country_modifier = {
					name = rce_religion_mechanic_hindu_modifier_spent_dedication_vishnu
					duration = 7300
				}
			}
			hidden_effect = {
				if = {
					limit = {
						rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
					}
					add_country_modifier = {
						name = rce_religion_mechanic_hindu_modifier_spent_dedication_shiva
						duration = 7300
					}
				}
				else_if = {
					limit = {
						rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
					}
					add_country_modifier = {
						name = rce_religion_mechanic_hindu_modifier_spent_dedication_brahma
						duration = 7300
					}
				}
				else_if = {
					limit = {
						rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
					}
					add_country_modifier = {
						name = rce_religion_mechanic_hindu_modifier_spent_dedication_vishnu
						duration = 7300
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { rce_has_religion_mechanic_hindu_major_deity_dedication_level = { major_deity = current level = 2 } }
			}
			modifier = {
				factor = 0
				rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
				is_at_war = no
				manpower_percentage = 0.5
			}
			modifier = {
				factor = 0
				rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
				NOT = { years_of_income = 1 }
			}
			modifier = {
				factor = 0
				rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
				num_of_free_diplomatic_relations = 1
			}
		}
	}

	rce_religion_mechanic_hindu_reset_minor_deity_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = hindu }
			if = {
				limit = {
					has_country_flag = rce_religion_mechanic_hindu_picked_minor_deity
				}
				custom_trigger_tooltip = {
					tooltip = rce_religion_mechanic_hindu_picked_minor_deity_not_done_recently_tt_with_year
					had_country_flag = { flag = rce_religion_mechanic_hindu_picked_minor_deity days = 730 }
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = rce_religion_mechanic_hindu_picked_minor_deity_not_done_recently_tt
					always = yes
				}
			}
			rce_has_any_religion_mechanic_hindu_minor_deity_selected = yes
		}
		effect = {
			custom_tooltip = rce_religion_mechanic_hindu_reset_minor_deity_button_tt
			hidden_effect = {
				change_personal_deity = none
			}
		}
		ai_will_do = {
			factor = 0
		}
	}

	rce_religion_mechanic_hindu_toggle_dedication_focus_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = hindu }
			if = {
				limit = {
					rce_is_religion_mechanic_hindu_dedication_focus_enabled = yes
				}
				if = {
					limit = {
						OR = {
							rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
							rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
							rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
						}
					}
					custom_trigger_tooltip = {
						tooltip = rce_religion_mechanic_hindu_picked_major_deity_at_least_some_time_ago_tt
						OR = {
							had_country_flag = { flag = rce_religion_mechanic_hindu_current_major_deity_shiva days = 365 }
							had_country_flag = { flag = rce_religion_mechanic_hindu_current_major_deity_brahma days = 365 }
							had_country_flag = { flag = rce_religion_mechanic_hindu_current_major_deity_vishnu days = 365 }
						}
					}
				}
				else = {
					OR = {
						rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
						rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
						rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
					}
				}
			}
			else = {
				NOT = { has_country_modifier = rce_religion_mechanic_hindu_modifier_dedication_focus_ended }
				OR = {
					rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
					rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
					rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
				}
			}
		}
		effect = {
			if = {
				limit = {
					rce_is_religion_mechanic_hindu_dedication_focus_enabled = yes
				}
				custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_current_effects
				tooltip = {
					rce_update_religion_mechanic_hindu_dynamic_dedication_focus_modifier = yes
				}
				rce_remove_religion_mechanic_hindu_dynamic_dedication_focus_modifiers = yes
				custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_deactivation_effects
				if = {
					limit = {
						rce_has_religion_mechanic_hindu_major_deity_dedication_level = { major_deity = current level = 5 }
					}
					custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_deactivate_level_5
					hidden_effect = {
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
					}
				}
				else_if = {
					limit = {
						rce_has_religion_mechanic_hindu_major_deity_dedication_level = { major_deity = current level = 4 }
					}
					custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_deactivate_level_4
					hidden_effect = {
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
					}
				}
				else_if = {
					limit = {
						rce_has_religion_mechanic_hindu_major_deity_dedication_level = { major_deity = current level = 3 }
					}
					custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_deactivate_level_3
					hidden_effect = {
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
						random_owned_province = {
							hinduism_rebels = 3
						}
					}
				}
				else_if = {
					limit = {
						rce_has_religion_mechanic_hindu_major_deity_dedication_level = { major_deity = current level = 2 }
					}
					custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_deactivate_level_2
					hidden_effect = {
						random_owned_province = {
							hinduism_rebels = 2
						}
						random_owned_province = {
							hinduism_rebels = 2
						}
						random_owned_province = {
							hinduism_rebels = 2
						}
					}
				}
				else_if = {
					limit = {
						rce_has_religion_mechanic_hindu_major_deity_dedication_level = { major_deity = current level = 1 }
					}
					custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_deactivate_level_1
					hidden_effect = {
						random_owned_province = {
							hinduism_rebels = 2
						}
						random_owned_province = {
							hinduism_rebels = 2
						}
					}
				}
				else = {
					custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_deactivate_level_0
					hidden_effect = {
						random_owned_province = {
							hinduism_rebels = 1
						}
						random_owned_province = {
							hinduism_rebels = 1
						}
					}
				}
				add_country_modifier = {
					name = rce_religion_mechanic_hindu_modifier_dedication_focus_ended
					duration = 7300
				}
			}
			else = {
				custom_tooltip = rce_religion_mechanic_hindu_toggle_dedication_focus_button_tt_activation_effects
				rce_update_religion_mechanic_hindu_dynamic_dedication_focus_modifier = yes
			}
		}
		ai_will_do = {
			factor = 0
		}
	}

	rce_religion_mechanic_hindu_major_deity_shiva_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		effect = {
			if = {
				limit = {
					rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
				}
				custom_tooltip = rce_religion_mechanic_hindu_major_deity_shiva_button_tt_selected
				if = {
					limit = {
						rce_has_any_religion_mechanic_hindu_modifiers = yes
					}
					custom_tooltip = rce_religion_mechanic_hindu_current_dynamic_modifier_tt
				}
			}
			else = {
				rce_set_religion_mechanic_hindu_current_major_deity = { major_deity = shiva }
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				rce_has_religion_mechanic_hindu_current_major_deity = { name = shiva }
			}
			modifier = {
				factor = 0
				has_ruler_flag = rce_religion_mechanic_hindu_selected_major_deity
			}
			modifier = {
				factor = 0
				variable_arithmetic_trigger = {
					export_to_variable = {
						which = adm_skill
						value = ADM
					}
					export_to_variable = {
						which = dip_skill
						value = DIP
					}
					export_to_variable = {
						which = mil_skill
						value = MIL
					}
					OR = {
						NOT = { check_variable = { which = mil_skill which = adm_skill } }
						NOT = { check_variable = { which = mil_skill which = dip_skill } }
					}
				}
			}
		}
	}

	rce_religion_mechanic_hindu_major_deity_brahma_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		effect = {
			if = {
				limit = {
					rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
				}
				custom_tooltip = rce_religion_mechanic_hindu_major_deity_brahma_button_tt_selected
				if = {
					limit = {
						rce_has_any_religion_mechanic_hindu_modifiers = yes
					}
					custom_tooltip = rce_religion_mechanic_hindu_current_dynamic_modifier_tt
				}
			}
			else = {
				rce_set_religion_mechanic_hindu_current_major_deity = { major_deity = brahma }
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				rce_has_religion_mechanic_hindu_current_major_deity = { name = brahma }
			}
			modifier = {
				factor = 0
				has_ruler_flag = rce_religion_mechanic_hindu_selected_major_deity
			}
			modifier = {
				factor = 0
				variable_arithmetic_trigger = {
					export_to_variable = {
						which = adm_skill
						value = ADM
					}
					export_to_variable = {
						which = dip_skill
						value = DIP
					}
					export_to_variable = {
						which = mil_skill
						value = MIL
					}
					OR = {
						NOT = { check_variable = { which = adm_skill which = dip_skill } }
						NOT = { check_variable = { which = adm_skill which = mil_skill } }
					}
				}
			}
		}
	}

	rce_religion_mechanic_hindu_major_deity_vishnu_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = hindu }
		}
		effect = {
			if = {
				limit = {
					rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
				}
				custom_tooltip = rce_religion_mechanic_hindu_major_deity_vishnu_button_tt_selected
				if = {
					limit = {
						rce_has_any_religion_mechanic_hindu_modifiers = yes
					}
					custom_tooltip = rce_religion_mechanic_hindu_current_dynamic_modifier_tt
				}
			}
			else = {
				rce_set_religion_mechanic_hindu_current_major_deity = { major_deity = vishnu }
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				rce_has_religion_mechanic_hindu_current_major_deity = { name = vishnu }
			}
			modifier = {
				factor = 0
				has_ruler_flag = rce_religion_mechanic_hindu_selected_major_deity
			}
			modifier = {
				factor = 0
				variable_arithmetic_trigger = {
					export_to_variable = {
						which = adm_skill
						value = ADM
					}
					export_to_variable = {
						which = dip_skill
						value = DIP
					}
					export_to_variable = {
						which = mil_skill
						value = MIL
					}
					OR = {
						NOT = { check_variable = { which = adm_skill which = dip_skill } }
						NOT = { check_variable = { which = adm_skill which = mil_skill } }
					}
				}
			}
		}
	}
}