# Terra Nova
# Province Decisions
#
province_decisions = {
#Colonial
	strategic_defence = {
		potential = {
			not = {
				has_province_modifier = strategic_defenses
				#any_neighbor_province = { has_province_modifier = strategic_defenses }
			}
			owner = {
				land_tech = 16
				not = { tag = BUC }
			}
			any_neighbor_province = { native_size = 5 }
			is_core = this
		}
		allow = {
			owner = { treasury = 35 }
			OR = {
				has_building = fort1
				has_building = fort2
				has_building = fort3
				has_building = fort4
				has_building = fort5
				has_building = fort6
			}
		}
		effect = {
			owner = {
				treasury = -25
			}
			add_province_modifier = {
				name = "strategic_defenses"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				owner = {
					not = {
						serfdom_freesubjects = 0
					}
				}
			}
		}
	}
#Religion
	support_religious_minorities = {
		potential = {
			not = {
				has_province_modifier = religious_minority_support
				#any_neighbor_province = { has_province_modifier = religious_minority_support }
			}	
			has_owner_religion = no
			has_owner_culture = yes
			owner = {
				not = {
					tag = BUC
				}
			}
		}
		allow = {
			owner = {
				treasury = 35
				dip = 5
			}
		}
		effect = {
			owner = {
				treasury = -25
			}
			add_province_modifier = {
				name = "religious_minority_support"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				owner = {
					innovative_narrowminded = 1
				}
			}
		}
	}
#construction
	build_royal_palace = {
		potential = {
			owner = {
				government = monarchy
				government_tech = 15
				not = { tag = BUC }
			}
			not = { has_province_modifier = royal_palace }
			is_capital = yes
		}
		allow = {
			owner = {
				advisor = artist
				treasury = 125
			}
		}
		effect = {
			owner = {
				treasury = -100
				prestige = 0.03
			}
			add_province_modifier = {
				name = "royal_palace"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				owner = {
					serfdom_freesubjects = 1
				}
			}
		}
	}
#cultural
	support_local_customs = {
		potential = {
			has_owner_culture = no
			has_owner_religion = yes
			not = { has_province_modifier = local_customs }
			owner = {
				not = {
					tag = BUC
				}
			}
		}
		allow = {
			owner = {
				treasury = 35
				dip = 5
			}
		}
		effect = {
			owner = {
				treasury = -25
			}
			add_province_modifier = {
				name = "local_customs"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				has_owner_culture = yes
			}
			modifier = {
				factor = 0.0
				has_owner_religion = yes
			}
			modifier = {
				factor = 0.0
				is_core = THIS
			}
			modifier = {
				factor = 0.0
				owner = {
					innovative_narrowminded = 1
				}
			}
		}
	}
#military
	#
#civic
	land_enclosure = {
		potential = {
			owner = {
				government_tech = 10
				not = { tag = BUC }
			}
			not = { has_province_modifier = land_inclosure }
			#not = { any_neighbor_province = { has_province_modifier = land_inclosure } }
			
		}
		allow = {
			owner = {
				adm = 6
				treasury = 35
			}
			base_tax = 5
		}
		effect = {
			owner = {
				treasury = -25
			}
			add_province_modifier = {
				name = "land_inclosure"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				nationalism = 1
			}
			modifier = {
				factor = 0.0
				owner = {
					not = {
						serfdom_freesubjects = 1
					}
				}
			}
			modifier = {
				factor = 0.0
				has_owner_religion = no
			}
		}
	}
	yearly_provincial_festival = {
		potential = {
			not = { has_province_modifier = provincial_festivals }
			owner = {
				war = no
				not = { tag = BUC }
			}
			is_colony = no
			is_core = this
			#not = { any_neighbor_province = { has_province_modifier = provincial_festivals } }
			#not = { any_neighbor_province = { is_capital = yes } }
		}
		allow = {
			base_tax = 7
			owner = {
				stability = 1
				treasury = 75
			}
		}
		effect = {
			owner = { treasury = -50 }
			add_province_modifier = {
				name = "provincial_festivals"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				owner = {
					not = {
						serfdom_freesubjects = 1
					}
				}
			}
			modifier = {
				factor = 0.0
				has_owner_culture = yes
			}
			modifier = {
				factor = 0.0
				has_owner_religion = yes
			}
			modifier = {
				factor = 0.0
				NOT = { revolt_risk = 3 }
			}
			modifier = {
				factor = 0.0
				nationalism = 2 # Modifiers don't affect this minimum revolt risk
			}
		}
	}
	town_hall = {
		potential = {
			not = { has_province_modifier = city_hall }
			owner = {
				idea = cabinet
				not = { tag = BUC }
			}
			is_capital = yes
		}
		allow = {
			owner = {
				treasury = 35
				or = {
					adm = 6
					advisor = statesman
				}
			}
		}
		effect = {
			owner = {
				treasury = -25
			}
			add_province_modifier = {
				name = "city_hall"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				has_owner_culture = yes
			}
			modifier = {
				factor = 0.0
				has_owner_religion = yes
			}
			modifier = {
				factor = 0.0
				is_core = THIS
			}
			modifier = {
				factor = 0.0
				owner = {
					innovative_narrowminded = 1
				}
			}
		}
	}	
#hiring fair
	hiring_fair = {
		potential = {
			is_capital = yes
			owner = {
				has_country_flag = Player
				not = {
					ai = yes
					tag = BUC
					has_country_modifier = "hiring_fair_country"
				}
			}
		}
		allow = {
			owner = {
				treasury = 25
				prestige = 0
				has_country_flag = Player
				NOT = {
					ai = yes
				}
			}
		}
		effect = {
			owner = {
				treasury = -25
			}
			set_province_flag = hiring_fair
			add_country_modifier = {
				name = "hiring_fair_country"
				duration = 1825
			}
			add_province_modifier = {
				name = "hiring_fair_province"
				duration = 180
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	focus_goverment = {
		potential = {
			has_province_flag = hiring_fair
			has_province_modifier = "hiring_fair_province"
			NOT = { has_province_modifier = "hiring_fair_g" }
			NOT = { has_province_modifier = "hiring_fair_a" }
			NOT = { has_province_modifier = "hiring_fair_n" }
			NOT = { has_province_modifier = "hiring_fair_e" }
			NOT = { has_province_modifier = "hiring_fair_c" }
		}
		allow = {
			owner = { treasury = 100 }
		}
		effect = {
			owner = {
				treasury = -100
			}
			add_province_modifier = {
				name = "hiring_fair_g"
				duration = 180
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	focus_economic = {
		potential = {
			has_province_flag = hiring_fair
			has_province_modifier = "hiring_fair_province"
			NOT = { has_province_modifier = "hiring_fair_g" }
			NOT = { has_province_modifier = "hiring_fair_a" }
			NOT = { has_province_modifier = "hiring_fair_n" }
			NOT = { has_province_modifier = "hiring_fair_e" }
			NOT = { has_province_modifier = "hiring_fair_c" }
		}
		allow = {
			owner = {
				treasury = 100
			}
		}
		effect = {
			owner = {
				treasury = -100
			}
			add_province_modifier = {
				name = "hiring_fair_e"
				duration = 180
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	focus_army = {
		potential = {
			has_province_flag = hiring_fair
			has_province_modifier = "hiring_fair_province"
			NOT = { has_province_modifier = "hiring_fair_g" }
			NOT = { has_province_modifier = "hiring_fair_a" }
			NOT = { has_province_modifier = "hiring_fair_n" }
			NOT = { has_province_modifier = "hiring_fair_e" }
			NOT = { has_province_modifier = "hiring_fair_c" }
		}
		allow = {
			owner = {
				treasury = 100 
			}
		}
		effect = {
			owner = {
				treasury = -100
			}
			add_province_modifier = {
				name = "hiring_fair_a"
				duration = 180
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	focus_navy = {
		potential = {
			has_province_flag = hiring_fair
			has_province_modifier = "hiring_fair_province"
			NOT = { has_province_modifier = "hiring_fair_g" }
			NOT = { has_province_modifier = "hiring_fair_a" }
			NOT = { has_province_modifier = "hiring_fair_n" }
			NOT = { has_province_modifier = "hiring_fair_e" }
			NOT = { has_province_modifier = "hiring_fair_c" }
		}
		allow = {
			owner = { 
				treasury = 100 
			}
		}
		effect = {
			owner = {
				treasury = -100
			}
			add_province_modifier = {
				name = "hiring_fair_n"
				duration = 180
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	focus_colony = {
		potential = {
			has_province_flag = hiring_fair
			has_province_modifier = "hiring_fair_province"
			NOT = { has_province_modifier = "hiring_fair_g" }
			NOT = { has_province_modifier = "hiring_fair_a" }
			NOT = { has_province_modifier = "hiring_fair_n" }
			NOT = { has_province_modifier = "hiring_fair_e" }
			NOT = { has_province_modifier = "hiring_fair_c" }
		}
		allow = {
			owner = { 
				treasury = 100
			 }
		}
		effect = {
			owner = {
				treasury = -100
			}
			add_province_modifier = {
				name = "hiring_fair_c"
				duration = 180
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
#Colonization Treaty
	ct_province = {
		potential = {
			owner = {
				has_country_flag = Colonization_Treaty
				NOT = {
					has_country_flag = CT_Province
				}
			}
			any_neighbor_province = {
				owned_by = THIS
			}
		}
		allow = {
			owner = {
				treasury = 35
			}
			NOT = { citysize = 800 }
		}
		effect = {
			owner = {
				treasury = -25
				set_country_flag = CT_Province
			}
			set_province_flag = CT_Province
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				AND = {
					continent = central_america
					owner = {
						tag = NED
					}
				}
			}
			modifier = {
				factor = 0.0
				AND = {
					OR = {
						continent = north_america
						continent = central_america
					}
					owner = {
						tag = POR
					}
				}
			}
			modifier = {
				factor = 0.0
				AND = {
					OR = {
						continent = south_america
						continent = central_america
					}
					owner = {
						OR = {
						tag = FRA
						tag = FRE
						}
					}
				}
			}
			modifier = {
				factor = 0.0
				AND = {
					OR = {
						continent = north_america
						continent = africa
					}
					owner = {
						OR = {
						tag = CAS
						tag = SPA
						}
					}
				}
			}
			modifier = {
				factor = 0.0
				AND = {
					OR = {
						continent = south_america
						continent = carribean
						continent = central_america
					}
					owner = {
						OR = {
						tag = ENG
						tag = GBR
						}
					}
				}
			}
		}
	}
}
