Skip to content

Commit

Permalink
Merge pull request #269 from Cold-War-Project/dev
Browse files Browse the repository at this point in the history
hotfix 1.4.2
  • Loading branch information
DZappala authored May 1, 2023
2 parents 03d02d2 + dc61787 commit ff4e540
Show file tree
Hide file tree
Showing 640 changed files with 112,510 additions and 59,251 deletions.
188 changes: 24 additions & 164 deletions common/ai_strategies/00_default_strategy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ ai_strategy_default = {
# Which institutions should the AI prefer to invest in
# Using this value in other strategies will function additively
institution_scores = {
institution_colonial_affairs = {
value = -1000
}
institution_social_security = {
value = 10
}
institution_workplace_safety = {
value = 10
}
institution_schools = {
value = 100
}
institution_higher_education = {
value = 50
}
institution_police = {
Expand All @@ -107,7 +107,7 @@ ai_strategy_default = {
institution_health_system = {
value = 10
}
institution_home_affairs = {
institution_intelligence_agency = {
value = 10
}
}
Expand Down Expand Up @@ -359,7 +359,7 @@ ai_strategy_default = {
# Which buildings should the AI subsidize
# Using a different value in a strategy will override this value
subsidies = {
building_infrastructure = should_have
building_railway = should_have
building_airport = should_have
}
# Specifying values here will override subsidy priorities while at war
Expand All @@ -378,7 +378,7 @@ ai_strategy_default = {
ammunition = {
stance = wants_high_supply
}
aeroplanes = {
military_aircraft = {
stance = wants_high_supply
trigger = {
has_technology_researched = early_military_aviation
Expand All @@ -394,16 +394,15 @@ ai_strategy_default = {
submarines = {
stance = wants_high_supply
trigger = {
has_technology_researched = submarines
has_technology_researched = wartime_submarines
has_port = yes
country_rank >= rank_value:major_power
}
}
aircraft_carriers = {
stance = wants_high_supply
trigger = {
has_technology_researched = ironclad_tech
has_technology_researched = gantry_cranes
has_technology_researched = aircraft_carriers_tech
has_port = yes
country_rank >= rank_value:great_power
}
Expand Down Expand Up @@ -1087,12 +1086,6 @@ ai_strategy_default = {
multiply = 0.25
}
}
if = {
limit = {
is_still_learning = yes
}
multiply = 0
}
}
conquer = {
value = 0
Expand Down Expand Up @@ -1124,33 +1117,6 @@ ai_strategy_default = {
}
add = 1000
}
if = {
limit = {
country_has_primary_culture = cu:russian
has_law = law_type:law_national_supremacy
OR = {
AND = {
exists = c:KZH
scope:target_country = {
this = c:KZH
}
}
AND = {
exists = c:UZH
scope:target_country = {
this = c:UZH
}
}
AND = {
exists = c:OZH
scope:target_country = {
this = c:OZH
}
}
}
}
add = 50
}
multiply = {
value = "ai_ideological_opinion(scope:target_country)"
multiply = -0.15
Expand Down Expand Up @@ -1249,12 +1215,6 @@ ai_strategy_default = {
}
multiply = 0
}
if = {
limit = {
is_still_learning = yes
}
multiply = 0
}
}
dominate = {
value = 0
Expand Down Expand Up @@ -1350,33 +1310,6 @@ ai_strategy_default = {
}
multiply = 1.5
}
if = {
limit = {
country_has_primary_culture = cu:russian
has_law = law_type:law_national_supremacy
OR = {
AND = {
exists = c:KZH
scope:target_country = {
this = c:KZH
}
}
AND = {
exists = c:UZH
scope:target_country = {
this = c:UZH
}
}
AND = {
exists = c:OZH
scope:target_country = {
this = c:OZH
}
}
}
}
add = 100
}
if = {
limit = {
lenient_ai_behavior_trigger = yes
Expand Down Expand Up @@ -1483,12 +1416,6 @@ ai_strategy_default = {
}
multiply = 0
}
if = {
limit = {
is_still_learning = yes
}
multiply = 0
}
}
}
# How much should the AI value a wargoal against another country/state
Expand Down Expand Up @@ -1691,34 +1618,6 @@ ai_strategy_default = {
}
add = 50
}
if = {
limit = {
country_has_primary_culture = cu:russian
has_law = law_type:law_national_supremacy
OR = {
AND = {
exists = c:KZH
scope:target_state.owner = {
this = c:KZH
}
}
AND = {
exists = c:UZH
scope:target_state.owner = {
this = c:UZH
}
}
AND = {
exists = c:OZH
scope:target_state.owner = {
this = c:OZH
}
}
}
can_reach_target_state = yes
}
add = 50
}
if = {
limit = {
lenient_ai_behavior_trigger = yes
Expand Down Expand Up @@ -1896,24 +1795,6 @@ ai_strategy_default = {
country_has_primary_culture = cu:russian
has_law = law_type:law_national_supremacy
OR = {
AND = {
exists = c:KZH
scope:target_country = {
this = c:KZH
}
}
AND = {
exists = c:UZH
scope:target_country = {
this = c:UZH
}
}
AND = {
exists = c:OZH
scope:target_country = {
this = c:OZH
}
}
AND = {
exists = c:KOK
scope:target_country = {
Expand Down Expand Up @@ -2331,27 +2212,6 @@ ai_strategy_default = {
}
multiply = 0
}
if = {
limit = {
country_has_primary_culture = cu:russian
has_law = law_type:law_national_supremacy
OR = {
AND = {
exists = c:KZH
scope:target_country = c:KZH
}
AND = {
exists = c:UZH
scope:target_country = c:UZH
}
AND = {
exists = c:OZH
scope:target_country = c:OZH
}
}
}
add = 150
}
min = 0
max = 200
}
Expand Down Expand Up @@ -2464,22 +2324,22 @@ ai_strategy_default = {
min = 0
max = 100
}
force_recognition = {
value = 0
if = {
limit = {
country_rank = rank_value:unrecognized_major_power
navy_size >= 50
army_size >= 200
OR = {
has_strategy = ai_strategy_nationalist_agenda
has_strategy = ai_strategy_progressive_agenda
has_strategy = ai_strategy_egalitarian_agenda
}
}
add = 100
}
}
# force_recognition = {
# value = 0
# if = {
# limit = {
# country_rank = rank_value:unrecognized_major_power
# navy_size >= 50
# army_size >= 200
# OR = {
# has_strategy = ai_strategy_nationalist_agenda
# has_strategy = ai_strategy_progressive_agenda
# has_strategy = ai_strategy_egalitarian_agenda
# }
# }
# add = 100
# }
# }
independence = {
value = 100
}
Expand Down
Loading

0 comments on commit ff4e540

Please sign in to comment.