# Prevents reactor construction in countries that have banned it (ITA) or gone carbon-neutral (GER). # Consulted by both the player investment GUI and the AI scorer. country_can_build_nuclear_reactors = { NOT = { has_idea = ITA_nuclear_power_banned } NOT = { has_idea = GER_idea_carbon_neutral } } # Building slot availability triggers for investment projects. investments_building_infra_available = { ROOT = { if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = infrastructure size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = infrastructure size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = infrastructure size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = infrastructure size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = infrastructure size > 4 include_locked = no } } } else = { always = no } } } # Airbase slot availability (requires defense_industry or the_military idea). investments_building_airbase_available = { ROOT = { # Investor has Military-Industrial Complex/The Military OR = { has_idea = defense_industry has_idea = the_military } # Check to see if project_build_amount > 1 if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = air_base size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = air_base size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = air_base size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = air_base size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = air_base size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = air_base size > 5 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 7 } } PREV = { free_building_slots = { building = air_base size > 6 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 8 } } PREV = { free_building_slots = { building = air_base size > 7 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 9 } } PREV = { free_building_slots = { building = air_base size > 8 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 10 } } PREV = { free_building_slots = { building = air_base size > 9 include_locked = no } } } } } # SAM/AA building slot availability (requires defense_industry or the_military idea). investments_building_antiair_available = { ROOT = { # Investor has Military-Industrial Complex/The Military OR = { has_idea = defense_industry has_idea = the_military } # Check to see if project_build_amount > 1 if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = anti_air_building size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = anti_air_building size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = anti_air_building size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = anti_air_building size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = anti_air_building size > 4 include_locked = no } } } else = { always = no } } } investments_building_radar_available = { ROOT = { OR = { has_idea = defense_industry has_idea = the_military } has_tech = radar } if = { limit = { check_variable = { ROOT.project_build_amount^-1 = 1 } } radar_station < 6 } else_if = { limit = { check_variable = { ROOT.project_build_amount^-1 = 2 } } radar_station < 5 } else_if = { limit = { check_variable = { ROOT.project_build_amount^-1 = 3 } } radar_station < 4 } else_if = { limit = { check_variable = { ROOT.project_build_amount^-1 = 4 } } radar_station < 3 } else_if = { limit = { check_variable = { ROOT.project_build_amount^-1 = 5 } } radar_station < 2 } else_if = { limit = { check_variable = { ROOT.project_build_amount^-1 = 6 } } radar_station < 1 } else = { always = no } } investments_building_mic_available = { ROOT = { # Investor has Military-Industrial Complex has_idea = defense_industry # Check to see if project_build_amount > 1 if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = arms_factory size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = arms_factory size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = arms_factory size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = arms_factory size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = arms_factory size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = arms_factory size > 5 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 7 } } PREV = { free_building_slots = { building = arms_factory size > 6 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 8 } } PREV = { free_building_slots = { building = arms_factory size > 7 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 9 } } PREV = { free_building_slots = { building = arms_factory size > 8 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 10 } } PREV = { free_building_slots = { building = arms_factory size > 9 include_locked = no } } } } } investments_building_cic_available = { ROOT = { if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = industrial_complex size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = industrial_complex size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = industrial_complex size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = industrial_complex size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = industrial_complex size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = industrial_complex size > 5 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 7 } } PREV = { free_building_slots = { building = industrial_complex size > 6 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 8 } } PREV = { free_building_slots = { building = industrial_complex size > 7 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 9 } } PREV = { free_building_slots = { building = industrial_complex size > 8 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 10 } } PREV = { free_building_slots = { building = industrial_complex size > 9 include_locked = no } } } } } investments_building_offices_available = { ROOT = { if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = offices size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = offices size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = offices size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = offices size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = offices size > 4 include_locked = no } } } else = { always = no } } } # investments_building_nic_available: # Method for checking if there is a dockyard slot available investments_building_nic_available = { ROOT = { has_idea = maritime_industry if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = dockyard size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = dockyard size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = dockyard size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = dockyard size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = dockyard size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = dockyard size > 5 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 7 } } PREV = { free_building_slots = { building = dockyard size > 6 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 8 } } PREV = { free_building_slots = { building = dockyard size > 7 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 9 } } PREV = { free_building_slots = { building = dockyard size > 8 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 10 } } PREV = { free_building_slots = { building = dockyard size > 9 include_locked = no } } } } } investments_building_ref_available = { ROOT = { has_tech = fuel_silos # Count the building quantity if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 5 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 7 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 6 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 8 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 7 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 9 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 8 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 10 } } PREV = { free_building_slots = { building = renewable_energy_infra size > 9 include_locked = no } } } else = { always = no } } } investments_building_foss_fuel_powerplant_available = { ROOT = { if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = fossil_powerplant size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = fossil_powerplant size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = fossil_powerplant size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = fossil_powerplant size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = fossil_powerplant size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = fossil_powerplant size > 5 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 7 } } PREV = { free_building_slots = { building = fossil_powerplant size > 6 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 8 } } PREV = { free_building_slots = { building = fossil_powerplant size > 7 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 9 } } PREV = { free_building_slots = { building = fossil_powerplant size > 8 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 10 } } PREV = { free_building_slots = { building = fossil_powerplant size > 9 include_locked = no } } } else = { always = no } } } investments_building_reactor_available = { ROOT = { has_tech = reactor1 PREV = { OWNER = { country_can_build_nuclear_reactors = yes } } # Count the building quantity if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = nuclear_reactor size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = nuclear_reactor size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = nuclear_reactor size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = nuclear_reactor size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = nuclear_reactor size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = nuclear_reactor size > 5 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 7 } } PREV = { free_building_slots = { building = nuclear_reactor size > 6 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 8 } } PREV = { free_building_slots = { building = nuclear_reactor size > 7 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 9 } } PREV = { free_building_slots = { building = nuclear_reactor size > 8 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 10 } } PREV = { free_building_slots = { building = nuclear_reactor size > 9 include_locked = no } } } else = { always = no } } } building_internet_station_available = { ROOT = { if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = internet_station size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = internet_station size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = internet_station size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = internet_station size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = internet_station size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = internet_station size > 5 include_locked = no } } } else = { always = no } } } investments_building_agriculture_district_available = { ROOT = { if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = agriculture_district size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = agriculture_district size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = agriculture_district size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = agriculture_district size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = agriculture_district size > 4 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 6 } } PREV = { free_building_slots = { building = agriculture_district size > 5 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 7 } } PREV = { free_building_slots = { building = agriculture_district size > 6 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 8 } } PREV = { free_building_slots = { building = agriculture_district size > 7 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 9 } } PREV = { free_building_slots = { building = agriculture_district size > 8 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 10 } } PREV = { free_building_slots = { building = agriculture_district size > 9 include_locked = no } } } else = { always = no } } } # building_fuel_silos_available: # Method for checking whether or not the fuel_silo has building slots available for fuel_silos building_fuel_silos_available = { ROOT = { if = { limit = { check_variable = { project_build_amount^-1 = 1 } } PREV = { free_building_slots = { building = fuel_silo size > 0 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 2 } } PREV = { free_building_slots = { building = fuel_silo size > 1 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 3 } } PREV = { free_building_slots = { building = fuel_silo size > 2 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 4 } } PREV = { free_building_slots = { building = fuel_silo size > 3 include_locked = no } } } else_if = { limit = { check_variable = { project_build_amount^-1 = 5 } } PREV = { free_building_slots = { building = fuel_silo size > 4 include_locked = no } } } else = { always = no } } } selected_investment_building_available = { if = { limit = { check_variable = { ROOT.project_building_type^-1 = 1 } } investments_building_cic_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 2 } } investments_building_mic_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 3 } } investments_building_nic_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 4 } } investments_building_infra_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 5 } } investments_building_offices_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 6 } } investments_building_antiair_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 7 } } investments_building_radar_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 8 } } investments_building_airbase_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 9 } } building_fuel_silos_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 10 } } building_internet_station_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 11 } } investments_building_ref_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 12 } } investments_building_foss_fuel_powerplant_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 13 } } investments_building_reactor_available = yes } else_if = { limit = { check_variable = { ROOT.project_building_type^-1 = 14 } } investments_building_agriculture_district_available = yes } else = { always = no } } # investment_building_slot_available: # Trigger method for handling whether or not the project can finish investment_building_slot_available = { if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 1 } } free_building_slots = { building = industrial_complex size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 2 } } free_building_slots = { building = arms_factory size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 3 } } free_building_slots = { building = dockyard size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 4 } } free_building_slots = { building = infrastructure size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 5 } } free_building_slots = { building = offices size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 6 } } free_building_slots = { building = anti_air_building size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 7 } } free_building_slots = { building = radar_station size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 8 } } free_building_slots = { building = air_base size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 9 } } free_building_slots = { building = fuel_silo size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 10 } } free_building_slots = { building = internet_station size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 11 } } free_building_slots = { building = renewable_energy_infra size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 12 } } free_building_slots = { building = fossil_powerplant size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 13 } } free_building_slots = { building = nuclear_reactor size > 0 include_locked = no } } else_if = { limit = { check_variable = { ROOT.project_building_type^ROOT.project_type = 14 } } free_building_slots = { building = agriculture_district size > 0 include_locked = no } } } # AI Related STuff currently_is_considering_a_project = { custom_trigger_tooltip = { tooltip = this_investment_offer_pending_tt ROOT = { NOT = { has_country_flag = this_investment_offer_pending@PREV } } } } has_available_treasury_investment = { custom_trigger_tooltip = { tooltip = has_available_treasury_tt check_variable = { var = treasury value = project_monetary_cost^-1 compare = greater_than_or_equals } } } # AI do not invest in these states AI_no_investment_in_these_states = { NOT = { OR = { has_state_category = state_inhospitable # Ignores any nation in the Sahara check_variable = { THIS.state_population_k < 50 } } } } # State Owned Investments check_for_investment_project_limits = { custom_trigger_tooltip = { ROOT = { OR = { AND = { check_variable = { modifier@internal_investment_slot_number > 0 } NOT = { has_country_flag = soi_slot_1 } } AND = { check_variable = { modifier@internal_investment_slot_number > 1 } NOT = { has_country_flag = soi_slot_2 } } AND = { check_variable = { modifier@internal_investment_slot_number > 2 } NOT = { has_country_flag = soi_slot_3 } } AND = { check_variable = { modifier@internal_investment_slot_number > 3 } NOT = { has_country_flag = soi_slot_4 } } AND = { check_variable = { modifier@internal_investment_slot_number > 4 } NOT = { has_country_flag = soi_slot_5 } } AND = { check_variable = { modifier@internal_investment_slot_number > 5 } NOT = { has_country_flag = soi_slot_6 } } } } tooltip = check_for_investment_project_limits_tt } } has_automated_internal_investment_request = { OR = { has_state_flag = auto_repeat_internal_encourage_investments_@ROOT has_state_flag = auto_repeat_internal_encourage_productivity_@ROOT has_state_flag = auto_repeat_internal_expand_building_capacity_@ROOT has_state_flag = auto_repeat_internal_expand_renewable_capacity_@ROOT has_state_flag = auto_repeat_internal_expand_infrastructure_@ROOT has_state_flag = auto_repeat_internal_expand_military_infrastructure_@ROOT has_state_flag = auto_repeat_internal_expand_energy_infrastructure_@ROOT has_state_flag = auto_repeat_internal_build_logistics_base_@ROOT has_state_flag = auto_repeat_internal_improve_rebuilding_@ROOT has_state_flag = auto_repeat_internal_hire_primary_workers_@ROOT has_state_flag = auto_repeat_internal_expand_coastal_infrastructure_@ROOT has_state_flag = auto_repeat_internal_expand_fortifications_@ROOT has_state_flag = auto_repeat_internal_conservation_@ROOT } } automated_internal_investment_state_available = { NOT = { has_state_category = state_inhospitable } OR = { is_owned_by = ROOT is_controlled_by = ROOT } check_for_investment_project_limits = yes ROOT = { NOT = { has_active_mission = bankruptcy_incoming_collapse } } }