﻿#Moved to scripted values in \common\script_values\fervour_midpoint_values.txt to attempt to prevent false errors in the error log (didn't work, still get false errors)

fervor_midpoint_mod_first_up = {
	value = fervor_midpoint_mod_first_up_sv
}
fervor_midpoint_mod_second_up = {
	value = fervor_midpoint_mod_second_up_sv
}
fervor_midpoint_mod_third_up = {
	value = fervor_midpoint_mod_third_up_sv
}
#Fervor doesn't decrease if faith is engaged in a GHW
fervor_midpoint_mod_forth_down = {
	value = fervor_midpoint_mod_forth_down_sv
}
fervor_midpoint_mod_fifth_down = {
	value = fervor_midpoint_mod_fifth_down_sv
}
fervor_midpoint_mod_sixth_down = {
	value = fervor_midpoint_mod_sixth_down_sv
}

#New modifiers
#Fervor spike when faith eligible for to launch a crusade and has holy sites outside of its control
#Recommended to mod the crusade cooldown timers in religious war casus belli keys up from vanilla 5 so as not to overtrigger.
#fervor_midpoint_mod_crusade_zeal = {
#	value = 0.30
#	trigger = {
#		fervor < 70 #To get it above the MODDED 65 crusade trigger
#		fervor > 55 #Faith has to be slightly ahead before getting the crusade push, pull itself up from its bootstraps before getting skylifted. Also gives a way to stop the fervor rise.
#		religion = { exists = var:variable_ghw_unlocked } #Crusades have to be unlocked
#		NOT = { exists = var:variable_ghw_cooldown } #Not during crusade cooldowns
#		#Not during a crusade itself
#		NOR = {
#			exists = great_holy_war
#			any_defensive_great_holy_wars = {
#				count >= 1
#			}
#		}
#		num_county_followers > 29 #Not for tiny faiths
#		holy_sites_controlled < 5
#		#Can declare GHW Triggers
#		OR = {
#			has_doctrine = tenet_armed_pilgrimages #Catholics
#			has_doctrine = tenet_struggle_submission #Islam (though, the default Faiths have Temporal Heads, so still do not qualify)
#			has_doctrine = tenet_warmonger #Germanic (though, starting as Unreformed, it still doesn't qualify by default)
#		}
#		OR = {
#			has_doctrine = doctrine_temporal_head
#			has_doctrine = doctrine_spiritual_head
#			has_doctrine = divine_destiny_doctrine
#		}
#		#Vanilla Chakravarti mess? Should become the HoF so he can declare GHWs. 
#		OR = {
#			exists = religious_head
#			has_doctrine = divine_destiny_doctrine
#		}
#		NOR = {
#			has_doctrine = unreformed_faith_doctrine
#			AND = {
#				has_doctrine = tenet_dharmic_pacifism
#				NOT = { has_doctrine = divine_destiny_doctrine }
#			}
#			has_doctrine = tenet_pacifism
#		}		
#	}
#}

#Fervor increases for a faith when engaged in a GHW
fervor_midpoint_mod_crusade_rn = {
	value = fervor_midpoint_mod_crusade_rn_sv
}
fervor_midpoint_mod_crusade_rn_high = {
	value = fervor_midpoint_mod_crusade_rn_high_sv
}
#Quarter increase for large faiths
fervor_midpoint_mod_second_up_large = {
	value = fervor_midpoint_mod_second_up_large_sv
}
fervor_midpoint_mod_third_up_large = {
	value = fervor_midpoint_mod_third_up_large_sv
}
#Double dissipation for large faiths
fervor_midpoint_mod_sixth_down_large = {
	value = fervor_midpoint_mod_sixth_down_large_sv
}

#Pentarchy adds a 0.1 fervor gain for each holy site controlled, to balance these nerf it by 90%. If another tenent adds fervor gain they'll have to be nerfed too.
fervor_midpoint_mod_pentarchy_nerf_1 = {
	value = fervor_midpoint_mod_pentarchy_nerf_1_sv
}
fervor_midpoint_mod_pentarchy_nerf_2 = {
	value = fervor_midpoint_mod_pentarchy_nerf_2_sv
}
fervor_midpoint_mod_pentarchy_nerf_3 = {
	value = fervor_midpoint_mod_pentarchy_nerf_3_sv
}
fervor_midpoint_mod_pentarchy_nerf_4 = {
	value = fervor_midpoint_mod_pentarchy_nerf_4_sv
}
fervor_midpoint_mod_pentarchy_nerf_5 = {
	value = fervor_midpoint_mod_pentarchy_nerf_5_sv
}
#Caps fervor gain to +5 in vanilla
pentarchy_fervor_nerf_mod = {	
	value = pentarchy_fervor_nerf_mod_sv
}

#Replaced by Pentarchy Cap
#fervor_midpoint_mod_pentarchy_nerf_6 = {
#	value = -5.4
#	trigger = {
#		has_doctrine = tenet_pentarchy
#		holy_sites_controlled = 6
#	}
#}
#fervor_midpoint_mod_pentarchy_nerf_7 = {
#	value = -6.3
#	trigger = {
#		has_doctrine = tenet_pentarchy
#		holy_sites_controlled = 7
#	}
#}
#fervor_midpoint_mod_pentarchy_nerf_8 = {
#	value = -7.2
#	trigger = {
#		has_doctrine = tenet_pentarchy
#		holy_sites_controlled = 8
#	}
#}
#fervor_midpoint_mod_pentarchy_nerf_9 = {
#	value = -8.1
#	trigger = {
#		has_doctrine = tenet_pentarchy
#		holy_sites_controlled = 9
#	}
#}
#fervor_midpoint_mod_pentarchy_nerf_10 = {
#	value = -9
#	trigger = {
#		has_doctrine = tenet_pentarchy
#		holy_sites_controlled >= 10
#	}
#}