########################################
# Development Boosts for RNW Nations
#
# Written by Elzephor
########################################

namespace = rnw_dev_boost

#Boost for Andean, Mesoamerican, and Indian nations in the RNW
country_event = {
	id = rnw_dev_boost.1
	title = "rnw_dev_boost.1.title"
	desc = "rnw_dev_boost.1.desc"
	picture = CITY_VIEW_eventPicture
	
	hidden = yes
	is_triggered_only = yes
	
	trigger = {
		OR = {
			technology_group = andean
			technology_group = mesoamerican
			technology_group = indian
		}
		is_random_new_world = yes
		NOT = { has_country_flag = received_dev_boost }
		NOT = {
			OR = {
				continent = europe
				continent = asia
				continent = africa
				continent = north_america
				continent = south_america
				continent = oceania
			}
		}
	}	
	
	
	#mean_time_to_happen = {
	#	months = 1
	#}
	
	immediate = {
		set_country_flag = received_dev_boost
	}
	
	option = {
	name = "rnw_dev_boost.1.a"
	
		every_owned_province = {
			if = {
				limit = {
					is_capital = yes
					}
					add_base_manpower = 1
					add_base_production = 1
					add_base_tax = 1
				}
				if = {
					limit = {
						OR = {
							has_province_modifier = center_of_trade_modifier
							has_province_modifier = inland_center_of_trade_modifier
							has_province_modifier = trade_post_modifier
							has_province_modifier = river_estuary_modifier
						}
					}
					add_base_production = 1
					add_base_tax = 1
				}
				random_list = {
					60 = {
						add_base_manpower = 1
						add_base_production = 2
						add_base_tax = 1
					}
					15 = {
						add_base_production = 1
						add_base_tax = 1
					}
					25 = {
						add_base_manpower = 1
						add_base_production = 2
						add_base_tax = 2
					}
				} 
		}
	}
}

#Boost for High American and Western nations
country_event = {
	id = rnw_dev_boost.2
	title = "rnw_dev_boost.1.title"
	desc = "rnw_dev_boost.1.desc"
	picture = CITY_VIEW_eventPicture
	
	hidden = yes
	is_triggered_only = yes
	
	trigger = {
		OR = {
			technology_group = high_american
			government = daimyo #For use with the RNW shogonate mod
		}
		is_random_new_world = yes
		NOT = { has_country_flag = received_dev_boost }
		NOT = {
			OR = {
				continent = europe
				continent = asia
				continent = africa
				continent = north_america
				continent = south_america
				continent = oceania
			}
		}
	}	
	
	#mean_time_to_happen = {
	#	months = 1
	#}
	
	immediate = {
		set_country_flag = received_dev_boost
	}
	
	option = {
	name = "rnw_dev_boost.1.a"
	
		every_owned_province = {
			if = {
				limit = {
					is_capital = yes
					}
					add_base_manpower = 3
					add_base_production = 3
					add_base_tax = 4
				}
			if = {
				limit = {
					OR = {
						has_province_modifier = center_of_trade_modifier
						has_province_modifier = inland_center_of_trade_modifier
						has_province_modifier = trade_post_modifier
						has_province_modifier = river_estuary_modifier
					}
				}
					add_base_production = 3
					add_base_tax = 4
			}
			if = {
				limit = {
					development = 18
					NOT = {culture_group = east_asian }
					}
				change_trade_goods = cloth
			}
			if = {
				limit = {
					development = 18
					NOT = { development = 25 }
					culture_group = east_asian 
					}
				change_trade_goods = chinaware
			}
			if = {
				limit = {
					development = 25
					culture_group = east_asian 
					}
				change_trade_goods = silk
			}
			random_list = {
				10 = {
					add_base_manpower = 3
					add_base_production = 3
					add_base_tax = 3
				}
				20 = {
					add_base_manpower = 2
					add_base_production = 3
				}
				30 = {
					add_base_manpower = 2
					add_base_production = 2
					add_base_tax = 2
				}
				20 = {
					add_base_manpower = 1
					add_base_production = 1
					add_base_tax = 1
				}
				20 = {

				}
			}
		}
	}
}