﻿##############################VANILLA#############################

# None

##############################IP-4##############################


# La Gran Azucarera
TRY_REPLACE:company_gran_azucarera = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_la_gran_azucarera.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"

	category = aristocrat_owned

	flavored_company = yes

	building_types = {
		building_sugar_plantation
		building_logging_camp
		building_livestock_ranch
	}

	extension_building_types = {
		building_railway
	}

	possible_prestige_goods = {
		prestige_good_havana_sugar
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_america
		has_dlc_feature = ip4_content
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_WESTERN_CUBA
					state_region = s:STATE_CENTRAL_CUBA
					state_region = s:STATE_EASTERN_CUBA
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WESTERN_CUBA
				state_region = s:STATE_CENTRAL_CUBA
				state_region = s:STATE_EASTERN_CUBA
			}
			any_scope_building = {
				is_building_type = building_sugar_plantation
				level >= 5
			}
			count >= 2
		}
	}

	prosperity_modifier = {
		state_migration_pull_mult = 0.1
		state_aristocrats_investment_pool_efficiency_mult = 0.15
	}

	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WESTERN_CUBA
				state_region = s:STATE_CENTRAL_CUBA
				state_region = s:STATE_EASTERN_CUBA
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_sugar_plantation = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_WESTERN_CUBA
					state_region = s:STATE_CENTRAL_CUBA
					state_region = s:STATE_EASTERN_CUBA
				}
			}
		}
	}

	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}


# Rodriguez, Argüelles y Cia.
TRY_REPLACE:company_rodriguez_arguelles_y_cia = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_romeo_y_julieta.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"

	category = aristocrat_owned

	flavored_company = yes

	building_types = {
		building_tobacco_plantation
	}

	extension_building_types = {
		building_logging_camp
		building_rice_farm
	}

	possible_prestige_goods = {
		prestige_good_cigars
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_america
		has_dlc_feature = ip4_content
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_WESTERN_CUBA
					state_region = s:STATE_CENTRAL_CUBA
					state_region = s:STATE_EASTERN_CUBA
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WESTERN_CUBA
				state_region = s:STATE_CENTRAL_CUBA
				state_region = s:STATE_EASTERN_CUBA
			}
			any_scope_building = {
				is_building_type = building_tobacco_plantation
				level >= 5
			}
			count >= 2
		}
	}

	prosperity_modifier = {
		country_prestige_mult = 0.05
		country_society_tech_spread_mult = 0.1
		state_loyalists_from_political_movements_mult = 0.1
	}

	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WESTERN_CUBA
				state_region = s:STATE_CENTRAL_CUBA
				state_region = s:STATE_EASTERN_CUBA
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_tobacco_plantation = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_WESTERN_CUBA
					state_region = s:STATE_CENTRAL_CUBA
					state_region = s:STATE_EASTERN_CUBA
				}
			}
		}
	}

	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

# Bacardí y Compañía
TRY_REPLACE:company_bacardi = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_bacardi.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	building_types = {
		building_food_industry
		building_glassworks
	}

	extension_building_types = {
		building_vineyard
	}

	possible_prestige_goods = {
		prestige_good_bacardi_rum
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_america
		has_dlc_feature = ip4_content
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_EASTERN_CUBA
			}
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_EASTERN_CUBA
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		country_liberty_desire_add = 0.10
		building_art_academy_throughput_add = 0.1
	}

	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_EASTERN_CUBA
		}
	}

	ai_construction_targets = {
		building_food_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_EASTERN_CUBA
			}
		}
	}

	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

##############################MODDED##############################


# Manati
company_Manati = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/manati.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	
	possible_prestige_goods = {
		prestige_good_havana_sugar
	}

	building_types = {  #27
		building_sugar_plantation
	}
	
	extension_building_types = {
		building_rice_farm
	}
	potential = {
		has_interest_marker_in_region = sr:region_central_america
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_WESTERN_CUBA
					state_region = s:STATE_CENTRAL_CUBA
					state_region = s:STATE_EASTERN_CUBA
				}
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WESTERN_CUBA
				state_region = s:STATE_CENTRAL_CUBA
				state_region = s:STATE_EASTERN_CUBA
			}
			any_scope_building = {
				is_building_type = building_sugar_plantation
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_sugar_plantation_throughput_add = 0.2 #20
		interest_group_ig_landowners_approval_add = 3 #12
		interest_group_ig_landowners_pop_attraction_mult = 0.1 #+5
	}


	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_CENTRAL_CUBA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_sugar_plantation = {
			level = 5
			state_trigger = {
				state_region = s:STATE_CENTRAL_CUBA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}	
}

# La Vizcaya / José Arechabala S.A.
company_Vizcaya = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/lavizcaya.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_WESTERN_CUBA }
	
	possible_prestige_goods = {
		#prestige_good_generic_new_world_liquor
		prestige_good_bacardi_rum
	}

	building_types = {  #24
		building_sugar_plantation
		building_food_industry
	}
	
	extension_building_types = {
		building_logging_camp
		building_power_plant
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_america
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_WESTERN_CUBA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_WESTERN_CUBA
			any_scope_building = {
				is_building_type = building_sugar_plantation
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_radicals_from_political_movements_mult = -0.03 #4
		state_lower_strata_expected_sol_add = -0.1
		state_middle_strata_expected_sol_add = -0.2
		state_upper_strata_expected_sol_add = -0.3
	    building_power_plant_throughput_add = 0.15 #20
	}


	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_WESTERN_CUBA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_sugar_plantation = {
			level = 5
			state_trigger = {
				state_region = s:STATE_WESTERN_CUBA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}	
}
