Skip to content
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
The table of contents is too big for display.
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
20 changes: 19 additions & 1 deletion .metadata/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Cold War Project",
"id": "",
"version": "0.2.9",
"supported_game_version": "1.12.*",
"supported_game_version": "1.13.*",
"short_description": "",
"tags": [],
"relationships": [],
Expand All @@ -27,12 +27,14 @@
"common/company_charter_types",
"common/company_types",
"common/country_definitions",
"common/culture_graphics",
"common/cultures",
"common/customizable_localization",
"common/decisions",
"common/decrees",
"common/discrimination_trait_groups",
"common/discrimination_traits",
"common/diplomatic_actions",
"common/diplomatic_plays",
"common/diplomatic_catalysts",
"common/dynamic_country_map_colors",
Expand All @@ -41,6 +43,7 @@
"common/geographic_regions",
"common/goods",
"common/government_types",
"common/harvest_condition_types",
"common/history/ai",
"common/history/buildings",
"common/history/characters",
Expand Down Expand Up @@ -88,17 +91,31 @@
"common/power_bloc_names",
"common/power_bloc_principle_groups",
"common/power_bloc_principles",
"common/prestige_goods",
"common/production_method_groups",
"common/production_methods",
"common/religions",
"common/script_values",
"common/scripted_buttons",
"common/scripted_effects",
"common/scripted_guis",
"common/scripted_lists",
"common/scripted_progress_bars",
"common/scripted_rules",
"common/scripted_triggers",
"common/ship_groups",
"common/ship_modification_slots",
"common/ship_modifications",
"common/ship_name_definitions",
"common/ship_types",
"common/social_classes",
"common/social_hierarchies",
"common/static_modifiers",
"common/strait_definitions",
"common/technology",
"common/terrain",
"common/treaty_articles",
"common/tutorial_lessons",

"events",
"events/agitators_events",
Expand All @@ -109,6 +126,7 @@
"events/expedition_events",
"events/iberia_events",
"events/india_events",
"events/japan_events",
"events/law_events",
"events/soi_events",
"events/tech_events",
Expand Down
145 changes: 14 additions & 131 deletions common/ai_strategies/00_default_strategy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ ai_strategy_default = {
if = {
limit = {
NOT = { has_strategic_land_adjacency = scope:target_state }
scope:target_state = { has_port = no }
scope:target_state = { has_port_state = no }
}
multiply = 0.5
}
Expand Down Expand Up @@ -1281,15 +1281,6 @@ ai_strategy_default = {
subsidies = {
building_railway = should_have
building_port = should_have
#building_airport = should_have
#building_nuclear_weapons_facility = must_have
#building_strategic_airbase = must_have
#building_nuclear_weapons_silo = must_have
#building_chemical_weapons_facility = must_have
#building_biological_weapons_facility = must_have
#building_spaceport = must_have
#building_mission_control = must_have
#building_airport = must_have
}

# Specifying values here will override subsidy priorities while at war
Expand Down Expand Up @@ -1321,25 +1312,9 @@ ai_strategy_default = {
country_rank >= rank_value:major_power
}
}
submarines = {
stance = wants_high_supply
trigger = {
has_technology_researched = submarines
has_port = yes
country_rank >= rank_value:major_power
}
}
aircraft_carriers = {
stance = wants_high_supply
trigger = {
has_technology_researched = naval_aviation
has_port = yes
country_rank >= rank_value:great_power
}
}
clippers = {
stance = wants_high_supply
trigger = { has_port = yes }
trigger = { has_port_country = yes }
}
paper = {
stance = wants_high_supply
Expand Down Expand Up @@ -1379,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 Expand Up @@ -2062,10 +1945,10 @@ ai_strategy_default = {
score = {
value = 0

if = {
limit = { has_je_conquest_reason = { TARGET = scope:target_country } }
add = 10000
}
#if = {
# limit = { has_je_conquest_reason = { TARGET = scope:target_country } }
# add = 10000
#

# China wants Taiwan
#if = {
Expand Down Expand Up @@ -2250,13 +2133,13 @@ ai_strategy_default = {
score = {
value = 0

if = {
limit = {
has_je_subjugation_reason = { TARGET = scope:target_country }
NOT = { is_subject_of = root }
}
add = 10000
}
#if = {
# limit = {
# has_je_subjugation_reason = { TARGET = scope:target_country }
# NOT = { is_subject_of = root }
# }
# add = 10000
#}

if = {
limit = {
Expand Down
Loading
Loading