# Terra Nova
######################################
# A Sound Toll for Denmark primarily.
######################################
sound_toll = {
	trigger = {
		owns = 6  #skåne
		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
			}
			33 = { #Neva
				NOT = { owned_by = this }
				cot = yes
			}
			34 = { #Ingermanland
				NOT = { owned_by = this }
				cot = yes
			}
			36 = { #Estland
				NOT = { owned_by = this }
				cot = yes
			}
			37 = { #Livland
				NOT = { owned_by = this }
				cot = yes
			}
			39 = { #Kurland
				NOT = { owned_by = this }
				cot = yes
			}
			40 = { #Memel
				NOT = { owned_by = this }
				cot = yes
			}
			41 = { #Ostpreussen
				NOT = { owned_by = this }
				cot = yes
			}
			42 = { #Warmia
				NOT = { owned_by = this }
				cot = yes
			}
			48 = { #Hinterpommern
				NOT = { owned_by = this }
				cot = yes
			}
			47 = { #Vorpommern
				NOT = { owned_by = this }
				cot = yes
			}
		}
	}
	trade_efficiency = 0.1 		#0.0
	prestige = 0.01			#1% more yearly prestige
	icon = 5
}

###############################################
# Black Sea Trade.
###############################################
bosphorous_sound_toll = {
	trigger = {
		owns = 149 # Edirne
		owns = 317 # Bursa
		151 = { # Thrace
			NOT = { owned_by = this }
			cot = yes
		}
	}
	trade_efficiency = 0.1
	prestige = 0.01
	icon = 5
}

######################################
# Foundation of an east indian trade company
######################################
trade_company_benefits = {
	trigger = {
		has_country_flag = trade_company
	}
	merchants = 1
	trade_tech_investment = 4
	trade_efficiency = 0.1 			#0.0
	icon = 5
}

######################################
# Christian control of Mecca.
######################################
christian_mecca = {
	trigger = {
		owns = 385 # Mecca
		religion_group = christian
	}

	prestige = 0.01			#1% more yearly prestige
	missionaries = 0.5
	diplomatic_skill = 0.3			#0.0
	icon = 9
}

###########################################
# Jerusalem held by Muslims or Christians
###########################################
jerusalem_held = {
	trigger = {
		owns = 379 # Judea
		OR = {
			religion_group = christian
			religion_group = muslim
		}
	}

	prestige = 0.01			#1% more yearly prestige
	missionaries = 0.5
	diplomatic_skill = 0.3			#0.0
	icon = 9
}

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

######################################
# Time of Troubles.
######################################
time_of_troubles = {
	trigger = {
		OR = {
			has_country_flag = time_of_troubles
			has_country_flag = civil_war 
			has_country_flag = total_war_series
			has_country_flag = revolution
		}
	}
	global_revolt_risk = 2
	tolerance_own = -2
	tolerance_heretic = -2
	tolerance_heathen = -2
	stability_cost_modifier = 0.2
	trade_efficiency = -0.1
	production_efficiency = -0.1
	icon = 2
}

######################################
# Crusades
######################################
crusader = {
	trigger = {
		religion = catholic
		crusade_target = {
			war_with = THIS
		}
	}
	prestige = 0.01
	badboy_limit = -5
	global_manpower_modifier = 0.2
	land_morale = 0.1
	icon = 9
}

#crusade target
papal_bad_heretic = {
	trigger = {
		#PAP = { NOT = { relation = { who = THIS value = 0 } } }
		#exists = PAP
		NOT = {
			religion_group = christian
			religion_group = jewish
		}
		crusade_target = {
			capital_scope = {
				owned_by = THIS
			}
		}
	}
	prestige = -0.01
	badboy_limit = -5
	trade_efficiency = -0.02
	land_morale = 0.1
	icon = 10
}

######################################
# Excommunication
######################################
excommunication = {
	trigger = {
		excommunicated = yes
		religion = catholic
	}
	prestige = -0.01
	tolerance_own = -1
	diplomatic_skill = -0.3			#0.0
	icon = 10
}

######################################
# Joust
######################################
champion = {
	trigger = {
		has_country_flag = Joust_Champion
		NOT = { has_country_flag = Unlucky }
	}
	prestige = 0.03
	land_morale = 0.05
	diplomatic_skill = 0.3			#0.0
	icon = 7
}

######################################
# Slave Production
######################################
slave_prod = {
	trigger = {
		has_country_flag = Slave_Surplus
		NOT = { has_country_flag = Unlucky }
	}
	production_efficiency = 0.15
	production_tech_investment = 6
	trade_efficiency = -0.05
	icon = 11
}

######################################
# Mediterranean Piracy
######################################
piracy = {
	trigger = {
		has_country_flag = Piracy
		NOT = { has_country_flag = Unlucky }
	}
	#less focus on trade and forieng relations problems
	trade_efficiency = -0.05
	#despised for supporting piracy
	prestige = -0.01
	diplomatic_skill = -0.3			#0.0
	#slaves
	production_efficiency = 0.1
	naval_morale = 0.2
	bigship_cost = -0.1
	lightship_cost = -0.1
	ship_recruit_speed = -0.2
	blockade_efficiency = 0.1
	naval_tech_investment = 6
	icon = 7
}

anti_piracy = {
	trigger = {
		has_country_flag = Anti_Piracy
		NOT = { has_country_flag = Unlucky }
	}
	#Naval trade problems and escort cost
	trade_efficiency = -0.05
	#military dedicated to fighting piracy
	production_efficiency = -0.1

	prestige = 0.01
	diplomatic_skill = 0.3			#0.0
	land_morale = 0.1
	land_tech_investment = 6
	infantry_cost = -0.1
	cavalry_cost = -0.1
	regiment_recruit_speed = -0.2
	icon = 7
}

#########################################################
#		Private Banks			        #
#########################################################
private_bank = {
	trigger = {
		has_country_flag = PB_Yes
		NOT = { has_country_flag = Unlucky }
	}
	inflation_reduction = -1
	global_tax_modifier = 0.75
	global_revolt_risk = 2
	diplomatic_skill = -0.3			#0.0
	icon = 6
}

#########################################################
#		Penal Colony			        #
#########################################################
penal_colony = {
	trigger = {
		has_country_flag = Penal_Colony
		NOT = { has_country_flag = Unlucky }
	}
	prestige = -0.01
	global_revolt_risk = -2
	global_tax_modifier = -0.1
	production_efficiency = 0.05 #0.0
	icon = 11
}

#########################################################
#		Papal relations			        #
#########################################################
papal_bad = {
	trigger = {
		PAP = { NOT = { relation = { who = THIS value = 0 } } }
		exists = PAP
		religion = catholic
		NOT = { prestige = 0 }
	}
	prestige = -0.01
	badboy_limit = -5
	trade_efficiency = -0.02
	diplomatic_skill = -0.3			#0.0
	icon = 10
}

papal_good = {
	trigger = {
		PAP = { relation = { who = THIS value = 1 } }
		exists = PAP
		religion = catholic
		NOT = {
			has_country_flag = Unlucky
		}
	}
	prestige = 0.01
	badboy_limit = 5
	trade_efficiency = 0.02
	diplomatic_skill = 0.3			#0.0
	icon = 9
}

#########################################################
#		HRE relations			        #
#########################################################
hre_bad = {
	trigger = {
		emperor = { NOT = { relation = { who = THIS value = 0 } } }
		NOT = {
			is_emperor = yes
			prestige = 0
		}
		OR = {
			religion_group = christian
			religion_group = jewish
		}
		#exists = xxx
		capital_scope = {
			continent = europe
		}
	}
	prestige = -0.01
	badboy_limit = -5
	trade_efficiency = -0.02
	diplomatic_skill = -0.3			#0.0
	icon = 2
}

hre_good = {
	trigger = {
		emperor = { relation = { who = THIS value = 1 } }
		NOT = {
			is_emperor = yes
			has_country_flag = Unlucky
		}
		OR = {
			religion_group = christian
			religion_group = jewish
		}
		#exists = xxx
		capital_scope = {
			continent = europe
		}
	}
	prestige = 0.01
	badboy_limit = 5
	trade_efficiency = 0.02
	diplomatic_skill = 0.3			#0.0
	icon = 1
}

#########################################################
#		Corruption			        #
#########################################################

corrupt_mild = {
	trigger = {
		has_country_flag = Corruption1
	}
	inflation_reduction = -0.05
	global_revolt_risk = 0.5
	global_tax_modifier = -0.05
	production_efficiency = -0.05
	trade_efficiency = -0.05
	spies = 0.5
	diplomatic_skill = -0.3			#0.0
	icon = 2
}

corrupt_moderate = {
	trigger = {
		has_country_flag = Corruption2
	}
	inflation_reduction = -0.1
	global_revolt_risk = 1.0
	global_tax_modifier = -0.1
	production_efficiency = -0.1
	trade_efficiency = -0.1
	spies = 1.0
	diplomatic_skill = -0.3			#0.0
	icon = 2
}

corrupt_severe = {
	trigger = {
		has_country_flag = Corruption3
	}
	inflation_reduction = -0.15
	global_revolt_risk = 1.5
	global_tax_modifier = -0.15
	production_efficiency = -0.15
	trade_efficiency = -0.15
	spies = 1.5
	diplomatic_skill = -0.3			#0.0
	icon = 2
}

#########################################################
#		Pagan Cavalry and Ships		        #
#########################################################
pagan_horse = {
	trigger = {
		OR = {
			technology_group = latin
			technology_group = eastern
			technology_group = muslim
			technology_group = indian
			technology_group = chinese
		}
		OR = {
			religion = animism
			religion = shamanism
			religion = inti
			religion = pachamama
		}
	}
	cavalry_cost = -2000
	bigship_cost = -2000
	galley_cost = -2000
	lightship_cost = -2000
	icon = 7
}
