Skip to content

Commit

Permalink
Fixed faulty ai_will_do in CBs
Browse files Browse the repository at this point in the history
Backport from CK2+
  • Loading branch information
Whizzer committed Feb 19, 2023
1 parent c3c8f3c commit 72c6cc9
Show file tree
Hide file tree
Showing 13 changed files with 147 additions and 147 deletions.
70 changes: 35 additions & 35 deletions CleanSlate/common/cb_types/christian_cbs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2045,18 +2045,18 @@ pepin_religious = {

mult_modifier = {
factor = 2
attacker = { has_landed_title = e_hre }
ROOT = { has_landed_title = e_hre }
}

mult_modifier = {
factor = 2
attacker = { has_landed_title = e_francia }
ROOT = { has_landed_title = e_francia }
}

mult_modifier = {
factor = 0.25

attacker = {
ROOT = {
NOT = { trait = zealous }
}
}
Expand All @@ -2065,10 +2065,10 @@ pepin_religious = {
mult_modifier = {
factor = 1.5

attacker = {
ROOT = {
religion_head = {
reverse_opinion = {
who = attacker
who = ROOT
value >= 50
}
}
Expand All @@ -2078,10 +2078,10 @@ pepin_religious = {
mult_modifier = {
factor = 1.5

attacker = {
ROOT = {
religion_head = {
reverse_opinion = {
who = attacker
who = ROOT
value >= 60
}
}
Expand All @@ -2091,10 +2091,10 @@ pepin_religious = {
mult_modifier = {
factor = 1.5

attacker = {
ROOT = {
religion_head = {
reverse_opinion = {
who = attacker
who = ROOT
value >= 70
}
}
Expand All @@ -2104,10 +2104,10 @@ pepin_religious = {
mult_modifier = {
factor = 2

attacker = {
ROOT = {
religion_head = {
reverse_opinion = {
who = attacker
who = ROOT
value >= 80
}
}
Expand All @@ -2117,10 +2117,10 @@ pepin_religious = {
mult_modifier = {
factor = 2

attacker = {
ROOT = {
religion_head = {
reverse_opinion = {
who = attacker
who = ROOT
value >= 90
}
}
Expand All @@ -2130,12 +2130,12 @@ pepin_religious = {
mult_modifier = { # Heathens are holding Italy, take action!
factor = 5

attacker = {
ROOT = {
NOT = { trait = cynical }
}

defender = {
NOT = { religion = attacker }
FROM = {
NOT = { religion = ROOT }
}
}

Expand All @@ -2146,13 +2146,13 @@ pepin_religious = {
OR = {
holder_scope = {
OR = {
character = defender
is_vassal_or_below_of = defender
character = FROM
is_vassal_or_below_of = FROM
}
}

any_de_jure_vassal_title = {
holder = defender
holder = FROM
}
}
}
Expand All @@ -2165,13 +2165,13 @@ pepin_religious = {
OR = {
holder_scope = {
OR = {
character = defender
is_vassal_or_below_of = defender
character = FROM
is_vassal_or_below_of = FROM
}
}

any_de_jure_vassal_title = {
holder = defender
holder = FROM
}
}
}
Expand All @@ -2184,13 +2184,13 @@ pepin_religious = {
OR = {
holder_scope = {
OR = {
character = defender
is_vassal_or_below_of = defender
character = FROM
is_vassal_or_below_of = FROM
}
}

any_de_jure_vassal_title = {
holder = defender
holder = FROM
}
}
}
Expand All @@ -2199,9 +2199,9 @@ pepin_religious = {
mult_modifier = {
factor = 0.8

attacker = {
ROOT = {
distance_from_realm = {
who = defender
who = FROM
value >= 40
}
}
Expand All @@ -2210,9 +2210,9 @@ pepin_religious = {
mult_modifier = {
factor = 0.8

attacker = {
ROOT = {
distance_from_realm = {
who = defender
who = FROM
value >= 80
}
}
Expand All @@ -2221,9 +2221,9 @@ pepin_religious = {
mult_modifier = {
factor = 0.75

attacker = {
ROOT = {
distance_from_realm = {
who = defender
who = FROM
value >= 120
}
}
Expand All @@ -2232,9 +2232,9 @@ pepin_religious = {
mult_modifier = {
factor = 0.5

attacker = {
ROOT = {
distance_from_realm = {
who = defender
who = FROM
value >= 150
}
}
Expand All @@ -2243,9 +2243,9 @@ pepin_religious = {
mult_modifier = {
factor = 0.25

attacker = {
ROOT = {
distance_from_realm = {
who = defender
who = FROM
value >= 200
}
}
Expand Down
14 changes: 7 additions & 7 deletions CleanSlate/common/cb_types/de_jure_cb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,26 +200,26 @@ dejure_county_claim = {
# AIs will not take the last counties off their liege's direct vassals
trigger_if = {
limit = {
attacker = {
same_liege = defender
ROOT = {
same_liege = FROM
}
}

defender = {
FROM = {
num_of_count_titles > 1
}
}

trigger_if = {
limit = {
attacker = {
ROOT = {
has_character_flag = is_temujin
has_landed_title = e_mongol_empire
is_landed = yes
}
}

defender = {
FROM = {
NOT = { has_landed_title = e_china_west_governor }
}
}
Expand Down Expand Up @@ -571,14 +571,14 @@ dejure_duchy_claim = {

trigger_if = {
limit = {
attacker = {
ROOT = {
has_character_flag = is_temujin
has_landed_title = e_mongol_empire
is_landed = yes
}
}

defender = {
FROM = {
NOT = { has_landed_title = e_china_west_governor }
}
}
Expand Down
20 changes: 10 additions & 10 deletions CleanSlate/common/cb_types/indian_cbs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ buddhist_holy_war = {
trigger = {
trigger_if = {
limit = {
attacker = {
ROOT = {
is_tribal = yes
}

defender = {
FROM = {
is_nomadic = yes
}
}
Expand All @@ -333,12 +333,12 @@ buddhist_holy_war = {
}
trigger_else_if = {
limit = {
attacker = {
ROOT = {
is_nomadic = no
is_tribal = no
}

defender = {
FROM = {
is_nomadic = yes
}

Expand Down Expand Up @@ -648,11 +648,11 @@ indian_subjugation = {
trigger = {
trigger_if = {
limit = {
attacker = {
ROOT = {
is_tribal = yes
}

defender = {
FROM = {
is_nomadic = yes
}
}
Expand All @@ -669,12 +669,12 @@ indian_subjugation = {
}
trigger_else_if = {
limit = {
attacker = {
ROOT = {
is_nomadic = no
is_tribal = no
}

defender = {
FROM = {
is_nomadic = yes
}

Expand All @@ -692,14 +692,14 @@ indian_subjugation = {

trigger_if = {
limit = {
attacker = {
ROOT = {
has_character_flag = is_temujin
has_landed_title = e_mongol_empire
is_landed = yes
}
}

defender = {
FROM = {
NOT = { has_landed_title = e_china_west_governor }
}
}
Expand Down
Loading

0 comments on commit 72c6cc9

Please sign in to comment.