Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#temp folder for working files
/temp
/utils
/tools
/reports

#vscode
.vscode
Expand Down
110 changes: 1 addition & 109 deletions common/ai_strategies/00_default_strategy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1312,22 +1312,6 @@ ai_strategy_default = {
country_rank >= rank_value:major_power
}
}
submarines = {
stance = wants_high_supply
trigger = {
has_technology_researched = submarines
has_port_country = yes
country_rank >= rank_value:major_power
}
}
aircraft_carriers = {
stance = wants_high_supply
trigger = {
has_technology_researched = naval_aviation
has_port_country = yes
country_rank >= rank_value:great_power
}
}
clippers = {
stance = wants_high_supply
trigger = { has_port_country = yes }
Expand Down Expand Up @@ -1370,99 +1354,7 @@ ai_strategy_default = {

# How important is it that the AI maintains an interest in a specific strategic region (added on top of region value calculations set in defines)
# Using this value in other strategies will function additively
strategic_region_scores = {
region_middle_east = {
if = {
limit = {
country_rank >= rank_value:great_power
navy_size >= 25
}
add = 250
}
if = {
limit = { country_rank = rank_value:superpower }
add = 250
}
}
region_central_europe = {
if = {
limit = {
country_is_in_europe = yes
country_rank >= rank_value:major_power
}
add = 100
}
if = {
limit = { country_rank = rank_value:superpower }
add = 250
}
}
region_balkans = {
if = {
limit = {
country_is_in_europe = yes
country_rank >= rank_value:major_power
}
add = 50
}
}
region_western_europe = {
if = {
limit = {
country_is_in_europe = yes
country_rank >= rank_value:major_power
}
add = 50
}
}
region_pacific_seaboard = {
if = {
limit = {
country_is_in_north_america = yes
country_rank >= rank_value:great_power
}
add = 1000
}
}
region_atlantic_seaboard = {
if = {
limit = {
country_is_in_north_america = yes
country_rank >= rank_value:great_power
}
add = 1000
}
}
region_golden_circle = {
if = {
limit = {
country_is_in_north_america = yes
country_rank >= rank_value:great_power
}
add = 1000
}
}
region_amazon = {
if = {
limit = {
country_is_in_north_america = yes
country_rank >= rank_value:great_power
}
add = 1000
}
}
region_andes = {
if = {
limit = {
country_is_in_north_america = yes
country_rank >= rank_value:great_power
}
add = 1000
}
}
}

# How likely should the AI be to have a particular strategic desire towards another country
# How likely should the AI be to have a particular strategic desire towards another country
# Using this value in other strategies will function additively
# scope:target_country = target country
secret_goal_scores = {
Expand Down
19 changes: 1 addition & 18 deletions common/ai_strategies/01_admin_strategies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ ai_strategy_plantation_economy = {
coffee = { stance = wants_export }
tea = { stance = wants_export }
tobacco = { stance = wants_export }
silk = { stance = wants_export }
}

building_group_weights = {
Expand Down Expand Up @@ -477,22 +476,6 @@ ai_strategy_maintain_hegemony = {
trigger = { has_technology_researched = military_aviation }
}
tanks = { stance = wants_export }
surface_ships = {
stance = wants_export
trigger = {
has_technology_researched = naval_warfare
has_port_country = yes
country_rank >= rank_value:major_power
}
}
submarines = {
stance = wants_export
trigger = {
has_technology_researched = submarines
has_port_country = yes
country_rank >= rank_value:major_power
}
}
uranium = { stance = wants_high_supply }
}

Expand Down Expand Up @@ -553,4 +536,4 @@ ai_strategy_colonial_extraction = {
weight = {
value = 100
}
}
}
16 changes: 1 addition & 15 deletions common/ai_strategies/02_diplomatic_strategies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -409,21 +409,7 @@ ai_strategy_economic_imperialism = {
}
}

strategic_region_scores = {
region_east_asia = { # Great Powers with significant navies should pay attention to Japan
if = {
limit = {
exists = c:JAP
c:JAP = { has_law_or_variant = law_type:law_isolationism }
country_rank = rank_value:great_power
navy_size >= 25
}
add = 1000
}
}
}

secret_goal_scores = {
secret_goal_scores = {
dominate = {
score = {
if = {
Expand Down
4 changes: 2 additions & 2 deletions common/ai_strategies/03_political_strategies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ ai_strategy_reactionary_agenda = {
possible = {
exists = ruler
ruler = {
interest_group = {
interest_group ?= {
NOR = {
is_interest_group_type = ig_intelligentsia
is_interest_group_type = ig_trade_unions
Expand Down Expand Up @@ -1536,4 +1536,4 @@ ai_strategy_human_rights_agenda = {
add = 25
}
}
}
}
49 changes: 32 additions & 17 deletions common/building_groups/00_building_groups.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,6 @@ bg_cotton_plantations = {
default_building = building_cotton_plantation
}

bg_silk_plantations = {
parent_group = bg_plantations
default_building = building_silk_plantation
}

bg_tea_plantations = {
parent_group = bg_plantations
default_building = building_tea_plantation
Expand Down Expand Up @@ -305,16 +300,11 @@ bg_bauxite_mining = {

# Logging
bg_logging = {
parent_group = bg_extraction
parent_group = bg_agriculture
default_building = building_logging_camp
lens = forestry
urbanization = 5
infrastructure_usage_per_level = 1
should_auto_expand = {
default_auto_expand_rule = yes
}
cash_reserves_max = 25000
economy_of_scale_ai_factor = 2.0
foreign_investment_ai_factor = 1.0
foreign_investment_ai_factor = 0.75
}

# Fishing
Expand Down Expand Up @@ -409,6 +399,10 @@ bg_telecommunications = {
}

bg_power = {
}

bg_combustion_power = {
parent_group = bg_power
category = development
lens = development
always_possible = yes
Expand All @@ -423,13 +417,34 @@ bg_power = {
urbanization = 10
}

bg_combustion_power = {
bg_renewable_power = {
parent_group = bg_power
category = rural
capped_by_resources = yes
economy_of_scale = yes
construction_efficiency_modifier = yes
lens = mine
urbanization = 5
infrastructure_usage_per_level = 1
should_auto_expand = {
default_auto_expand_rule = yes
}
economy_of_scale_ai_factor = 3.0
foreign_investment_ai_factor = 1.0
cash_reserves_max = 25000
always_possible = no
}

bg_renewable_power = {
parent_group = bg_power
always_possible = yes
bg_solar_power = {
parent_group = bg_renewable_power
}

bg_wind_power = {
parent_group = bg_renewable_power
}

bg_hydroelectric_power = {
parent_group = bg_renewable_power
}

bg_tidal_power = {
Expand Down
Loading
Loading