Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebalance of vanilla AI #192

Merged
merged 3 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 6 additions & 2 deletions common/ai_strategies/00_default_strategy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ ai_strategy_default = {
# How many barracks relative to incorporated population should the AI have
# Using a different value in a strategy will override this value
wanted_army_ratio = {
value = 500000 # 1 barrack per 500k incorporated population
value = 3000000 # 1 barrack per 3M incorporated population
}
# How many naval bases relative to incorporated coastal population should the AI have
# Using a different value in a strategy will override this value
wanted_navy_ratio = {
value = 800000 # 1 naval base per 800k coastal incorporated population
value = 10000000 # 1 naval base per 5M coastal incorporated population
}
# Chance each update that the AI is willing to start changing a law (1 = 1%)
# Using this value in other strategies will function additively
Expand Down Expand Up @@ -351,6 +351,10 @@ ai_strategy_default = {
# Using this value in other strategies will result in several multiplications
building_group_weights = {
bg_basic_infrastructure = 2
bg_bureaucracy = 2
bg_construction = 1.5
bg_navy = 0.5
bg_army = 0.5
}
# Which buildings should the AI subsidize
# Using a different value in a strategy will override this value
Expand Down
9 changes: 0 additions & 9 deletions common/ai_strategies/01_admin_strategies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,6 @@ ai_strategy_maintain_hegemony = {
country_rank >= rank_value:major_power
}
}
aircraft_carriers = {
stance = wants_export
trigger = {
has_technology_researched = ironclad_tech
has_technology_researched = gantry_cranes
has_port = yes
country_rank >= rank_value:great_power
}
}
uranium = {
stance = wants_high_supply
}
Expand Down
24 changes: 12 additions & 12 deletions common/ai_strategies/02_diplomatic_strategies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ ai_strategy_territorial_expansion = {
icon = "gfx/interface/icons/ai_strategy_icons/territorial_expansion.dds"
type = diplomatic
wanted_army_ratio = {
value = 300000
value = 3000000
}
wanted_navy_ratio = {
value = 600000
value = 5000000
}
undesirable_infamy_level = {
value = 50
Expand Down Expand Up @@ -215,10 +215,10 @@ ai_strategy_colonial_expansion = {
icon = "gfx/interface/icons/ai_strategy_icons/colonial_expansion.dds"
type = diplomatic
wanted_army_ratio = {
value = 300000
value = 3000000
}
wanted_navy_ratio = {
value = 600000
value = 5000000
}
undesirable_infamy_level = {
value = 25
Expand Down Expand Up @@ -423,10 +423,10 @@ ai_strategy_armed_isolationism = {
icon = "gfx/interface/icons/ai_strategy_icons/armed_isolationism.dds"
type = diplomatic
wanted_army_ratio = {
value = 250000
value = 3000000
}
wanted_navy_ratio = {
value = 700000
value = 5000000
}
undesirable_infamy_level = {
value = 1
Expand Down Expand Up @@ -510,10 +510,10 @@ ai_strategy_economic_imperialism = {
icon = "gfx/interface/icons/ai_strategy_icons/economic_imperialism.dds"
type = diplomatic
wanted_army_ratio = {
value = 200000
value = 3000000
}
wanted_navy_ratio = {
value = 300000
value = 5000000
}
undesirable_infamy_level = {
value = 25
Expand Down Expand Up @@ -758,10 +758,10 @@ ai_strategy_global_liberalism = {
icon = "gfx/interface/icons/ai_strategy_icons/economic_imperialism.dds"
type = diplomatic
wanted_army_ratio = {
value = 500000
value = 3000000
}
wanted_navy_ratio = {
value = 400000
value = 5000000
}
undesirable_infamy_level = {
value = 25
Expand Down Expand Up @@ -964,10 +964,10 @@ ai_strategy_international_socialism = {
icon = "gfx/interface/icons/ai_strategy_icons/economic_imperialism.dds"
type = diplomatic
wanted_army_ratio = {
value = 300000
value = 3000000
}
wanted_navy_ratio = {
value = 800000
value = 5000000
}
undesirable_infamy_level = {
value = 50
Expand Down
16 changes: 1 addition & 15 deletions common/history/buildings/02_east_europe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
}
create_building = {
building = building_advanced_military_manufactories
level = 18
level = 10
subsidized = yes
reserves = 1
activate_production_methods = {
Expand Down Expand Up @@ -1350,20 +1350,6 @@
pm_government_run_building_infrastructure
}
}
create_building = {
building = building_advanced_military_manufactories
level = 9
subsidized = yes
reserves = 1
activate_production_methods = {
pm_1st_gen_mbt_ami
pm_wartime_halftacks_production
pm_no_automation
pm_professional_service_industry_no
pm_no_environmental_tech
pm_government_run_industry
}
}
create_building = {
building = building_glassworks
level = 20
Expand Down
16 changes: 1 addition & 15 deletions common/history/buildings/09_central_asia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,20 +339,6 @@
pm_prefabricated_buildings
}
}
create_building = {
building = building_advanced_military_manufactories
level = 8
subsidized = yes
reserves = 1
activate_production_methods = {
pm_1st_gen_mbt_ami
pm_wartime_halftacks_production
pm_no_automation
pm_professional_service_industry_no
pm_no_environmental_tech
pm_government_run_industry
}
}
create_building = {
building = building_explosives_industry
level = 8
Expand Down Expand Up @@ -649,7 +635,7 @@
}
create_building = {
building = building_advanced_military_manufactories
level = 8
level = 4
subsidized = yes
reserves = 1
activate_production_methods = {
Expand Down