Skip to content

Commit

Permalink
more cb fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JonStryker authored and JonStryker committed Dec 28, 2014
1 parent 093f7a1 commit 2069614
Showing 1 changed file with 76 additions and 25 deletions.
101 changes: 76 additions & 25 deletions MOD/Witcher/common/cb_types/W_cb_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,9 @@ lower_crown_levy_law = {
major_revolt = yes

can_use = {
ROOT = { vassal_of = FROM }
ROOT = {
vassal_of = FROM
}
}

can_use_title = {
Expand All @@ -1078,35 +1080,42 @@ lower_crown_levy_law = {
}

is_valid = {
ROOT = {
OR = {
liege = {
character = PREV # either independent
}
liege = {
FROM = {
is_liege_or_above = PREV # or have shared liege
}
FROM = {
in_revolt = no
liege_before_war = {
in_revolt = no
liege_before_war = {
in_revolt = no
}
}
}
}

on_success = {
ROOT = { opinion = { modifier = opinion_lowered_crown_levy who = FROM months = 12 } }
ROOT = {
opinion = {
modifier = opinion_lowered_crown_levy
who = FROM
months = 12
}
}
any_attacker = {
limit = { character = ROOT }
participation_scaled_prestige = 100
hidden_tooltip = { disband_event_forces = faction_revolters }
hidden_tooltip = {
disband_event_forces = faction_revolters
}
}
any_attacker = {
limit = { NOT = { character = ROOT } }
hidden_tooltip = { participation_scaled_prestige = 100 }
hidden_tooltip = { disband_event_forces = faction_revolters }
hidden_tooltip = {
disband_event_forces = faction_revolters
}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}

on_success_title = {
if = {
limit = { has_law = crown_levy_2 }
Expand All @@ -1117,9 +1126,12 @@ lower_crown_levy_law = {
add_law_w_cooldown = crown_levy_2
}
}

on_fail = {
ROOT = { prestige = -100 }
ROOT = {
prestige = -100
}

any_defender = {
limit = { character = FROM }
participation_scaled_prestige = 50
Expand All @@ -1128,20 +1140,26 @@ lower_crown_levy_law = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 50 }
}

hidden_tooltip = {
any_attacker = {
disband_event_forces = faction_revolters
add_character_modifier = { name = faction_lower_crown_levy_ultimatum_timer hidden = yes duration = 3650 }
add_character_modifier = {
name = faction_lower_crown_levy_ultimatum_timer
hidden = yes
duration = 3650
}
}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}

on_reverse_demand = {
ROOT = {
ROOT = {
prestige = -200
prisoner = FROM
}

any_defender = {
limit = { character = FROM }
participation_scaled_prestige = 100
Expand All @@ -1150,21 +1168,52 @@ lower_crown_levy_law = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 100 }
}

hidden_tooltip = {
any_attacker = {
limit = { liege = { character = FROM } }
prisoner = FROM
disband_event_forces = faction_revolters
add_character_modifier = { name = faction_lower_crown_levy_ultimatum_timer hidden = yes duration = 3650 }
add_character_modifier = {
name = faction_lower_crown_levy_ultimatum_timer
hidden = yes
duration = 3650
}
}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}

attacker_ai_victory_worth = {
factor = -1 # always accept
}

attacker_ai_victory_worth = { factor = -1 } # always accept
attacker_ai_defeat_worth = { factor = 100 }
defender_ai_victory_worth = { factor = -1 } # always accept
defender_ai_defeat_worth = { factor = 100 }
attacker_ai_defeat_worth = {
factor = 100
}

defender_ai_victory_worth = {
factor = -1 # always accept
}

defender_ai_defeat_worth = {
factor = 100
}

is_valid = {
ROOT = {
OR = {
liege = {
character = PREV # either independent
}
liege = {
FROM = {
is_liege_or_above = PREV # or have shared liege
}
}
}
}
}
}

lower_crown_obligation_law = {
Expand Down Expand Up @@ -1279,6 +1328,7 @@ lower_crown_obligation_law = {
prestige = -200
prisoner = FROM
}

any_defender = {
limit = { character = FROM }
participation_scaled_prestige = 100
Expand All @@ -1287,6 +1337,7 @@ lower_crown_obligation_law = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 100 }
}

hidden_tooltip = {
any_attacker = {
limit = { liege = { character = FROM } }
Expand Down

0 comments on commit 2069614

Please sign in to comment.