Skip to content

Commit 9f8699d

Browse files
authored
Merge pull request #742 from Cold-War-Project/codex/economy_balance
Codex/economy balance
2 parents 9a1d08b + 0977a48 commit 9f8699d

566 files changed

Lines changed: 64119 additions & 31581 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#temp folder for working files
22
/temp
33
/utils
4+
/tools
5+
/reports
46

57
#vscode
68
.vscode

.metadata/metadata.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Cold War Project",
33
"id": "",
44
"version": "0.2.9",
5-
"supported_game_version": "1.12.*",
5+
"supported_game_version": "1.13.*",
66
"short_description": "",
77
"tags": [],
88
"relationships": [],
@@ -27,12 +27,14 @@
2727
"common/company_charter_types",
2828
"common/company_types",
2929
"common/country_definitions",
30+
"common/culture_graphics",
3031
"common/cultures",
3132
"common/customizable_localization",
3233
"common/decisions",
3334
"common/decrees",
3435
"common/discrimination_trait_groups",
3536
"common/discrimination_traits",
37+
"common/diplomatic_actions",
3638
"common/diplomatic_plays",
3739
"common/diplomatic_catalysts",
3840
"common/dynamic_country_map_colors",
@@ -41,6 +43,7 @@
4143
"common/geographic_regions",
4244
"common/goods",
4345
"common/government_types",
46+
"common/harvest_condition_types",
4447
"common/history/ai",
4548
"common/history/buildings",
4649
"common/history/characters",
@@ -88,17 +91,31 @@
8891
"common/power_bloc_names",
8992
"common/power_bloc_principle_groups",
9093
"common/power_bloc_principles",
94+
"common/prestige_goods",
9195
"common/production_method_groups",
9296
"common/production_methods",
9397
"common/religions",
9498
"common/script_values",
9599
"common/scripted_buttons",
96100
"common/scripted_effects",
101+
"common/scripted_guis",
102+
"common/scripted_lists",
97103
"common/scripted_progress_bars",
104+
"common/scripted_rules",
98105
"common/scripted_triggers",
106+
"common/ship_groups",
107+
"common/ship_modification_slots",
108+
"common/ship_modifications",
109+
"common/ship_name_definitions",
110+
"common/ship_types",
111+
"common/social_classes",
112+
"common/social_hierarchies",
99113
"common/static_modifiers",
114+
"common/strait_definitions",
100115
"common/technology",
101116
"common/terrain",
117+
"common/treaty_articles",
118+
"common/tutorial_lessons",
102119

103120
"events",
104121
"events/agitators_events",
@@ -109,6 +126,7 @@
109126
"events/expedition_events",
110127
"events/iberia_events",
111128
"events/india_events",
129+
"events/japan_events",
112130
"events/law_events",
113131
"events/soi_events",
114132
"events/tech_events",

common/ai_strategies/00_default_strategy.txt

Lines changed: 14 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ ai_strategy_default = {
413413
if = {
414414
limit = {
415415
NOT = { has_strategic_land_adjacency = scope:target_state }
416-
scope:target_state = { has_port = no }
416+
scope:target_state = { has_port_state = no }
417417
}
418418
multiply = 0.5
419419
}
@@ -1281,15 +1281,6 @@ ai_strategy_default = {
12811281
subsidies = {
12821282
building_railway = should_have
12831283
building_port = should_have
1284-
#building_airport = should_have
1285-
#building_nuclear_weapons_facility = must_have
1286-
#building_strategic_airbase = must_have
1287-
#building_nuclear_weapons_silo = must_have
1288-
#building_chemical_weapons_facility = must_have
1289-
#building_biological_weapons_facility = must_have
1290-
#building_spaceport = must_have
1291-
#building_mission_control = must_have
1292-
#building_airport = must_have
12931284
}
12941285

12951286
# Specifying values here will override subsidy priorities while at war
@@ -1321,25 +1312,9 @@ ai_strategy_default = {
13211312
country_rank >= rank_value:major_power
13221313
}
13231314
}
1324-
submarines = {
1325-
stance = wants_high_supply
1326-
trigger = {
1327-
has_technology_researched = submarines
1328-
has_port = yes
1329-
country_rank >= rank_value:major_power
1330-
}
1331-
}
1332-
aircraft_carriers = {
1333-
stance = wants_high_supply
1334-
trigger = {
1335-
has_technology_researched = naval_aviation
1336-
has_port = yes
1337-
country_rank >= rank_value:great_power
1338-
}
1339-
}
13401315
clippers = {
13411316
stance = wants_high_supply
1342-
trigger = { has_port = yes }
1317+
trigger = { has_port_country = yes }
13431318
}
13441319
paper = {
13451320
stance = wants_high_supply
@@ -1379,99 +1354,7 @@ ai_strategy_default = {
13791354

13801355
# 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)
13811356
# Using this value in other strategies will function additively
1382-
strategic_region_scores = {
1383-
region_middle_east = {
1384-
if = {
1385-
limit = {
1386-
country_rank >= rank_value:great_power
1387-
navy_size >= 25
1388-
}
1389-
add = 250
1390-
}
1391-
if = {
1392-
limit = { country_rank = rank_value:superpower }
1393-
add = 250
1394-
}
1395-
}
1396-
region_central_europe = {
1397-
if = {
1398-
limit = {
1399-
country_is_in_europe = yes
1400-
country_rank >= rank_value:major_power
1401-
}
1402-
add = 100
1403-
}
1404-
if = {
1405-
limit = { country_rank = rank_value:superpower }
1406-
add = 250
1407-
}
1408-
}
1409-
region_balkans = {
1410-
if = {
1411-
limit = {
1412-
country_is_in_europe = yes
1413-
country_rank >= rank_value:major_power
1414-
}
1415-
add = 50
1416-
}
1417-
}
1418-
region_western_europe = {
1419-
if = {
1420-
limit = {
1421-
country_is_in_europe = yes
1422-
country_rank >= rank_value:major_power
1423-
}
1424-
add = 50
1425-
}
1426-
}
1427-
region_pacific_seaboard = {
1428-
if = {
1429-
limit = {
1430-
country_is_in_north_america = yes
1431-
country_rank >= rank_value:great_power
1432-
}
1433-
add = 1000
1434-
}
1435-
}
1436-
region_atlantic_seaboard = {
1437-
if = {
1438-
limit = {
1439-
country_is_in_north_america = yes
1440-
country_rank >= rank_value:great_power
1441-
}
1442-
add = 1000
1443-
}
1444-
}
1445-
region_golden_circle = {
1446-
if = {
1447-
limit = {
1448-
country_is_in_north_america = yes
1449-
country_rank >= rank_value:great_power
1450-
}
1451-
add = 1000
1452-
}
1453-
}
1454-
region_amazon = {
1455-
if = {
1456-
limit = {
1457-
country_is_in_north_america = yes
1458-
country_rank >= rank_value:great_power
1459-
}
1460-
add = 1000
1461-
}
1462-
}
1463-
region_andes = {
1464-
if = {
1465-
limit = {
1466-
country_is_in_north_america = yes
1467-
country_rank >= rank_value:great_power
1468-
}
1469-
add = 1000
1470-
}
1471-
}
1472-
}
1473-
1474-
# How likely should the AI be to have a particular strategic desire towards another country
1357+
# How likely should the AI be to have a particular strategic desire towards another country
14751358
# Using this value in other strategies will function additively
14761359
# scope:target_country = target country
14771360
secret_goal_scores = {
@@ -2062,10 +1945,10 @@ ai_strategy_default = {
20621945
score = {
20631946
value = 0
20641947

2065-
if = {
2066-
limit = { has_je_conquest_reason = { TARGET = scope:target_country } }
2067-
add = 10000
2068-
}
1948+
#if = {
1949+
# limit = { has_je_conquest_reason = { TARGET = scope:target_country } }
1950+
# add = 10000
1951+
#
20691952

20701953
# China wants Taiwan
20711954
#if = {
@@ -2250,13 +2133,13 @@ ai_strategy_default = {
22502133
score = {
22512134
value = 0
22522135

2253-
if = {
2254-
limit = {
2255-
has_je_subjugation_reason = { TARGET = scope:target_country }
2256-
NOT = { is_subject_of = root }
2257-
}
2258-
add = 10000
2259-
}
2136+
#if = {
2137+
# limit = {
2138+
# has_je_subjugation_reason = { TARGET = scope:target_country }
2139+
# NOT = { is_subject_of = root }
2140+
# }
2141+
# add = 10000
2142+
#}
22602143

22612144
if = {
22622145
limit = {

0 commit comments

Comments
 (0)