﻿##############################MODDED##############################

# Grindlays Bank / Stanbic Bank Uganda
company_Bank_Grindlays = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/grindlaysbank.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UGANDA }
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}
	
	building_types = {
		building_paper_mill
		building_millet_farm
		building_tooling_workshop
	}
	
	extension_building_types = {	
		building_logging_camp
		building_railway
		building_furniture_manufactory
		building_rubber_plantation
	}
	
	potential = {
		has_game_rule = banks_enabled
		has_interest_marker_in_region = sr:region_east_africa
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_UGANDA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_UGANDA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_financial_district
				level >= 15
			}
		}
		OR = {
			has_technology_researched = investment_banks
			AND = {
				exists = c:BIC
				c:BIC = { relations:root >= relations_threshold:amicable }
				has_technology_researched = central_banking
				has_technology_researched = joint_stock_companies
			}
			AND = {
				exists = c:BHT
				c:BHT = { relations:root >= relations_threshold:amicable }
				has_technology_researched = central_banking
				has_technology_researched = joint_stock_companies
			}
		}
		unique_companies_has_bank = no
	}
	
	prosperity_modifier = {
		country_resource_discovery_chance_mult = 0.15
		state_colony_growth_creation_factor = 0.05
		
		country_minting_mult = 0.025
		country_loan_interest_rate_mult = -0.025
        country_private_construction_allocation_mult = 0.1		
		
		state_farmers_investment_pool_contribution_add = 0.015
		state_shopkeepers_investment_pool_contribution_add = 0.015
		state_clergymen_investment_pool_contribution_add = 0.04
		state_aristocrats_investment_pool_contribution_add = 0.04
		state_capitalists_investment_pool_contribution_add = 0.065
		
		building_nationalization_investment_return_add = 0.05
		country_government_dividends_reinvestment_add = 0.05
		country_government_dividends_efficiency_add = 0.05
		
		country_max_companies_add = 1
	}
	
	ai_will_do = {
		unique_companies_has_bank = no
		OR = {
			has_technology_researched = investment_banks
			AND = {
				exists = c:BIC
				c:BIC = { relations:root >= relations_threshold:amicable }
				has_technology_researched = central_banking
				has_technology_researched = joint_stock_companies
			}
			AND = {
				exists = c:BHT
				c:BHT = { relations:root >= relations_threshold:amicable }
				has_technology_researched = central_banking
				has_technology_researched = joint_stock_companies
			}
		}
		any_scope_state = {
			state_region = s:STATE_UGANDA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_paper_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_UGANDA
			}
		}
	}
	ai_weight = {
		value = 5 # Higher base value for flavored companies
	}
}

# Sango Bay Sugar Estates Limited
company_Sango_Bay_Sugar = {
	icon = "gfx/interface/icons/company_icons/basic_colonial_plantations_2.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UGANDA }
	

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #31
		building_sugar_plantation
	}
	
	extension_building_types = {
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_east_africa
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_UGANDA
			}
		}
	}		

	possible = {
		any_scope_state = {
			state_region = s:STATE_UGANDA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_sugar_plantation
				level >= 3
			}
		}
		has_technology_researched = mechanized_farming
	}
	
	prosperity_modifier = {
		building_sugar_plantation_throughput_add = 0.20 #16
		building_food_industry_throughput_add = 0.14 #14
	}
	

	ai_will_do = {
		has_technology_researched = mechanized_farming
		any_scope_state = {
			state_region = s:STATE_UGANDA
			is_incorporated = yes
		}
	}

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

# Kakira Sugar Works
company_Kakira_Sugar = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/kakira.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UGANDA }
	

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #31
		building_sugar_plantation
	}
	
	extension_building_types = {
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_east_africa
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_UGANDA
			}
		}
	}		

	possible = {
		any_scope_state = {
			state_region = s:STATE_UGANDA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_sugar_plantation
				level >= 3
			}
		}
		has_technology_researched = mechanized_farming
	}
	
	prosperity_modifier = {
		building_sugar_plantation_throughput_add = 0.20 #16
		state_trade_advantage_mult = 0.21 #14
	}
	

	ai_will_do = {
		has_technology_researched = mechanized_farming
		any_scope_state = {
			state_region = s:STATE_UGANDA
			is_incorporated = yes
		}
	}

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

# Sugar Corporation of Uganda Limited
company_Sugar_Corp_Uganda = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/sugarcorpuganda.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UGANDA }
	

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #31
		building_sugar_plantation
	}
	
	extension_building_types = {
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_east_africa
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_UGANDA
			}
		}
	}		

	possible = {
		any_scope_state = {
			state_region = s:STATE_UGANDA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_sugar_plantation
				level >= 3
			}
		}
		has_technology_researched = mechanized_farming
	}
	
	prosperity_modifier = {
		building_sugar_plantation_throughput_add = 0.20 #16
		state_migration_pull_mult = 0.10 #14
	}
	

	ai_will_do = {
		has_technology_researched = mechanized_farming
		any_scope_state = {
			state_region = s:STATE_UGANDA
			is_incorporated = yes
		}
	}

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