﻿company_fijenoord = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/fijenoord.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"
	
	flavored_company = yes
	
	preferred_headquarters = { STATE_HOLLAND}

    building_types = {
        building_motor_industry
        building_shipyards
    }

    extension_building_types = {
        building_tooling_workshops
        building_military_shipyards
    }
	
	potential = {
		country_has_primary_culture = cu:dutch
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_HOLLAND
			}
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_HOLLAND
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_shipyards
					is_building_type = building_military_shipyards
				}
				level >= 5
			}
		}
		has_technology_researched = ironclad_tech
	}
	
	prosperity_modifier = {
		country_convoys_capacity_mult = 0.2
		building_shipyards_throughput_add = 0.05
	}	

    ai_will_do = {
        has_technology_researched = ironclad_tech
        any_scope_state = {
            state_region = s:STATE_HOLLAND
            is_incorporated = yes
        }
    }

    ai_construction_targets = {
        building_shipyards = {
            level = 5
            state_trigger = {
            state_region = s:STATE_HOLLAND
            is_incorporated = yes
            }
        }
    }

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

company_werkspoor = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/werkspoor.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes

	preferred_headquarters = { STATE_HOLLAND}

	building_types = {  
		building_motor_industry
	}
	
    extension_building_types = {
        building_tooling_workshops
    }

	potential = {
		country_has_primary_culture = cu:dutch
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_HOLLAND
			}
		}
	}		
	
	possible = {
		any_scope_state = {
			has_technology_researched = railways
			state_region = s:STATE_HOLLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_motor_industry
				level >= 5
			}
		}
	}
	
	prosperity_modifier = {
		building_railway_throughput_add = 0.05
		interest_group_ig_industrialists_pop_attraction_mult = 0.1
	}	

    ai_will_do = {
        has_technology_researched = steel_railway_cars
        any_scope_state = {
            state_region = s:STATE_HOLLAND
            is_incorporated = yes
        }
    }

    ai_construction_targets = {
        building_motor_industry = {
            level = 5
            state_trigger = {
            state_region = s:STATE_HOLLAND
            is_incorporated = yes
            }
        }
    }

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

company_hijsm = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/hijsm.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_railways.dds"
	
	flavored_company = yes
	
	preferred_headquarters = { STATE_HOLLAND}

	building_types = {  
		building_railway
	}
	
    extension_building_types = {
        building_motor_industry
    }

	potential = {
		country_has_primary_culture = cu:dutch
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_HOLLAND
			}
		}
	}			
	
    possible = {
        any_scope_state = {
            state_region = s:STATE_HOLLAND
            is_incorporated = yes
            any_scope_building = {
                building_railway
                level >= 5
            }
        }
    }
	
	prosperity_modifier = {
		state_infrastructure_mult = 0.05
		country_prestige_mult = 0.05
	}	
	
    ai_will_do = {
        any_scope_state = {
            state_region = s:STATE_HOLLAND
            is_incorporated = yes
        }
    }

    ai_construction_targets = {
        building_railway = {
            level = 5
            state_trigger = {
				state_region = s:STATE_HOLLAND
				is_incorporated = yes
            }
        }
    }

    ai_construction_targets = {
        building_motor_industry = {
            level = 5
            state_trigger = {
            state_region = s:STATE_HOLLAND
            is_incorporated = yes
            }
        }
    }

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

company_staatsmijnen = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/staatsmijnen.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	
	flavored_company = yes
	
	preferred_headquarters = { STATE_GELRE}

	building_types = {
		building_coal_mine
	}

    extension_building_types = {
        building_tooling_workshops
    }
	
	potential = {
		any_scope_state = {
			state_region = s:STATE_GELRE
		}
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_GELRE
			}
		}
	}			
	
	possible = {
		AND = {
			any_scope_state = {
				state_region = s:STATE_GELRE
				is_incorporated = yes
					any_scope_building = {
						is_building_type = building_coal_mine
						level >= 5
					}
			}
			OR = {
				AND = {
					c:NET ?= THIS
					any_scope_state = {
						state_region = s:STATE_GELRE
						is_split_state = no
					}
				}
				c:LIM ?= THIS
				c:BEL ?= THIS
			}
			has_technology_researched = pneumatic_tools
		}
	}
	
	prosperity_modifier = {
		building_coal_mine_throughput_add = 0.05
		country_weekly_innovation_mult = 0.02
		country_weekly_innovation_max_add = 5
	}	
	
    ai_will_do = {
        any_scope_state = {
                state_region = s:STATE_GELRE
            }
            is_incorporated = yes
        }

    ai_construction_targets = {
        building_coal_mine = {
            level = 5
            state_trigger = {
            state_region = s:STATE_GELRE
            is_incorporated = yes
            }
        }
    }

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

REPLACE_OR_CREATE:company_nhm = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/nhm.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"

	flavored_company = yes
	
	preferred_headquarters = { STATE_HOLLAND}

	building_types = {
		building_port
	}

	extension_building_types = {
	building_cotton_plantation
	building_sugar_plantation
	building_coffee_plantation
	building_tobacco_plantation
	}

	possible_prestige_goods = {
		prestige_good_java_coffee
	}

	potential = {
		country_has_primary_culture = cu:dutch
	}
	
	possible = {
		any_scope_state = {
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_port
				}
				level >= 5
		}
	}
	
	prosperity_modifier = {
		state_trade_advantage_mult = 0.10
	}	
	
	ai_will_do = {
		c:NET ?= this
		any_scope_state = {
			is_incorporated = yes
			has_potential_resource = bg_tobacco_plantations
			count >= 4
		}
	}

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

company_heineken = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/heineken.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_heineken.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_HOLLAND }

	building_types = {
		building_food_industry
	}

	extension_building_types = {
		building_wheat_farm
	}

	possible_prestige_goods = {
	prestige_good_heineken_beer
	}

	potential = {
		country_has_primary_culture = cu:dutch
	}

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

	possible = {
		has_technology_researched = fractional_distillation
		any_scope_state = {
			state_region = s:STATE_HOLLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		state_radicals_from_political_movements_mult = -0.15
	}

	ai_will_do = {
		has_technology_researched = fractional_distillation
		any_scope_state = {
			state_region = s:STATE_HOLLAND
			is_incorporated = yes
		}
	}

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

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

company_jurgens = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/jurgens.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	
	preferred_headquarters = { STATE_GELRE}

	building_types = {  
		building_food_industry
	}

    extension_building_types = {
        building_livestock_ranch
    }
	
	potential = {
		country_has_primary_culture = cu:dutch
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_GELRE
			}
		}
	}
	
	possible = {
		any_scope_state = {
				state_region = s:STATE_GELRE
				is_incorporated = yes
				any_scope_building = {
					is_building_type = building_food_industry
					level >= 5
			}
		}
		has_technology_researched = fractional_distillation
	}
	
	prosperity_modifier = {
		country_weekly_innovation_mult = 0.05
		country_weekly_innovation_max_add = 15
		building_food_industry_throughput_add = 0.025
	}

	ai_will_do = {
		has_technology_researched = fractional_distillation
		any_scope_state = {
			state_region = s:STATE_HOLLAND
			is_incorporated = yes
		}
	}

    ai_construction_targets = {
        building_food_industry = {
            level = 5
            state_trigger = {
            state_region = s:STATE_GELRE
            is_incorporated = yes
            }
        }
    }
	
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

REPLACE:company_philips = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/philips.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_GELRE }

	building_types = {
		building_electrics_industry
	}

	extension_building_types = {
		building_power_plant
		building_motor_industry
	}

	possible_prestige_goods = {
	prestige_good_philips_932a_radio
	}

	potential = {
		has_interest_marker_in_region = region_rhine
	}

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

	possible = {
		has_technology_researched = telephone
		any_scope_state = {
			OR = {
				state_region = s:STATE_HOLLAND
				state_region = s:STATE_GELRE
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_electrics_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		country_weekly_innovation_mult = 0.05
		country_weekly_innovation_max_add = 15
	}

	ai_will_do = {
		has_technology_researched = telephone
		any_scope_state = {
			OR = {
				state_region = s:STATE_HOLLAND
				state_region = s:STATE_GELRE
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_electrics_industry = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_HOLLAND
					state_region = s:STATE_GELRE
				}
				is_incorporated = yes
			}
		}
	}

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