
Peace Treaty
Abandon Piracy
The age of raiding and plunder is at an end. Our foes must swear to cease their acts of piracy and lawlessness upon the seas.
Can Create Anti-Piracy War Casus BelliModifier Typepotential
State PiracyPolicyeffect, potentialDefinitionin_game/common/peace_treaties/abandon_piracy.txt:1
3cost = {
4add = {
5desc = "DIPLOREASON_BASE" Base
6value = 5
}
8add = {
9desc = "game_concept_prestige" Prestige
10value = scope:loser.prestige
11multiply = 0.5
}
}
15potential = {
17scope:loser = {
18OR = {
19has_reform = government_reform:pirate_brethren_reform
20has_reform = government_reform:galley_lords_reform
}
}
}
26allow = {
}
29effect = {
30scope:winner = {
}
32scope:loser = {
33if = {
34limit = {
34has_reform = government_reform:pirate_brethren_reform
}
35remove_reform = government_reform:pirate_brethren_reform
}
37if = {
38limit = {
38has_reform = government_reform:galley_lords_reform
}
39remove_reform = government_reform:galley_lords_reform
}
}
}
48ai_desire = {
49if = {
50limit = {
51scope:winner = {
52is_rival_of = scope:loser
}
}
55add = {
56desc = "game_concept_rival"
57value = 5
}
}
60if = {
61limit = {
62scope:winner.prestige < scope:loser.prestige
}
64add = {
65desc = "DIPLOREASON_LOWER_PRESTIGE"
66value = scope:loser.prestige
67subtract = scope:winner.prestige
68multiply = 0.1
}
}
}