# Triggered modifiers are here.
# these are checked for each countries once/month and then applied.
#
# Effects are fully scriptable here.

######################################
# A Sound Toll for Denmark primarily.
######################################
sound_toll = {
	trigger = {
		owns = 6  #skne
		owns = 12 #sjaelland
		culture_group = scandinavian
		OR = {
			38 = { #Riga
				NOT = { owned_by = this }
				cot = yes
			}
			310 = { #novgorod
				NOT = { owned_by = this }
				cot = yes
			}
			43 = { #Danzig
				NOT = { owned_by = this }
				cot = yes
			}
		}
	}
	
	global_trade_income_modifier = 0.25	#25% more trade income.
	prestige = 0.01			#1% more yearly prestige
}


###############################################
# Black Sea Trade.
###############################################
bosphorous_sound_toll = {
	trigger = {
		mercantilism_freetrade = -2
		owns = 149 # Edirne
		owns = 317 # Bursa
		151 = { # Thrace
			NOT = { owned_by = this }
			cot = yes
		}
	}

	global_trade_income_modifier = 0.15	#15% more trade income.
	prestige = 0.01			#1% more yearly prestige
}


###########################################
# Discovery of the East Indian trade route.
###########################################
east_indian_trade_route = {
	trigger = {
		has_discovered = 1460 # Cape of Good Hope
		num_of_ports = 4
		NOT = { mercantilism_freetrade = -2 }
		idea = quest_for_the_new_world
		technology_group = latin
		OR = {
			400 = { # Muscat
				owned_by = this
			}		
			529 = { # Dadra
				owned_by = this
			}
		}
		OR = {
			529 = { # Dadra
				NOT = { owned_by = this }
				cot = yes
			}
			559 = { # Bihar
				NOT = { owned_by = this }
				cot = yes
			}
			630 = { # Sunda
				NOT = { owned_by = this }
				cot = yes
			}
			667 = { # Guangzhou
				NOT = { owned_by = this }
				cot = yes
			}
		}
	}
	
	global_trade_income_modifier = 0.2	#20% more trade income.
	prestige = 0.02			#2% more yearly prestige
}

######################################
# Foundation of an east indian trade company
######################################
trade_company_benefits = {
	trigger = {
		has_country_flag = trade_company
	}
	merchants = 1
	trade_tech_investment = 4
	merchant_placement_chance = 0.1	
	merchant_compete_chance = 0.1
}


######################################
# Catholic control of Mecca.
######################################
catholic_mecca = {
	trigger = {
		owns = 385 # Mecca
		religion = catholic
	}

	prestige = 0.01			#1% more yearly prestige
	missionaries = 1
}


######################################
# Catholic control of Jerusalem.
######################################
catholic_jerusalem = {
	trigger = {
		owns = 379 # Judea
		religion = catholic
	}

	prestige = 0.01			#1% more yearly prestige
	missionaries = 1
}


######################################
# Non-Catholic control of Rome.
######################################
non_catholic_rome = {
	trigger = {
		owns = 118 # Roma
		NOT = { religion = catholic }
	}
	prestige = 0.01			#1% more yearly prestige
	missionaries = 1
}


######################################
# Western Influences.
######################################
western_arms_trade = {
	trigger = {
		NOT = { technology_group = latin }
		any_neighbor_country = {
			technology_group = latin
			relation = { who = THIS value = 150 }
		}
	}
	
	prestige = -0.01			#1% less yearly prestige
	land_tech_investment = 6
}


######################################
# Time of Troubles.
######################################
time_of_troubles = {
	trigger = {
		has_country_flag = time_of_troubles
	}
	
	global_revolt_risk = 10
	stability_cost_modifier = 0.20
}


######################################
# Revolution
######################################
revolution = {
	trigger = {
		has_country_flag = revolution
	}
	
	global_revolt_risk = 10
	stability_cost_modifier = 0.1
}


######################################
# Peasants' War
######################################
peasant_war = {
	trigger = {
		has_country_flag = peasant_war
	}
	
	global_revolt_risk = 10
	stability_cost_modifier = 0.1
}

######################################
# Counter Revolution
######################################
counter_revolution = {
	trigger = {
		capital_scope = { continent =  europe }
		revolution_target_exists = yes
		is_revolution_target = no
		NOT = {
			revolution_target = {
				war_with = THIS
			}
			revolution_target = {
				truce_with = THIS
			}
			revolution_target = {
				alliance_with = THIS
			}  
		}
		OR = {
			government = absolute_monarchy
			government = enlightened_despotism
			government = despotic_monarchy
			government = feudal_monarchy
			government = administrative_monarchy
			government = constitutional_monarchy
			government = bureaucratic_despotism
		}
	}
	prestige = -0.05
	stability_cost_modifier = 0.3
}

######################################
# vive la Revolution
######################################
vive_la_revolution = {
	trigger = {
		is_revolution_target = yes
		war = yes
	}
	global_manpower_modifier = 0.5
	land_morale = 0.25
	max_war_exhaustion = -4.0
}

######################################
# Reaction
######################################
reaction = {
	trigger = {
		capital_scope = { continent = europe }
		OR = {
			government = absolute_monarchy
			government = enlightened_despotism
			government = despotic_monarchy
			government = feudal_monarchy
			government = administrative_monarchy
			government = constitutional_monarchy
			government = bureaucratic_despotism
		}
		revolution_target = {
			war_with = THIS
		}  

	}
	prestige = 0.1
	stability_cost_modifier = -0.1
}
