
Action
Abandon Piracy
We have realized that there are better ways to make money. If we protect our common folk and traders from pirates and robbers, they will just let us take their produce and gold without our having to fight for it. If we then invest these spoils in infrastructure and reinforcements, we can exponentially multiply our takings. We are going to be richer than we ever imagined!
Golden Age of PiracySituationselect triggerDefinitionin_game/common/generic_actions/golden_age_of_piracy.txt:249
250type = situation
251show_message = no
252potential = {
253scope:actor = {
254has_reform = government_reform:pirate_brethren_reform
}
}
258allow = {
}
261ai_tick = monthly
262ai_tick_frequency = 4
264automation_tick = never
265automation_tick_frequency = 12
268price = price:abandon_piracy
270cooldown = {
}
274select_trigger = {
275looking_for_a = situation
276target_flag = recipient
277name = "choose_situation" Choose the Situation:
278column = {
279data = name
}
}
288effect = {
289scope:actor = {
290if = {
291limit = {
292country_type = navy
}
294change_country_type = location
}
298if = {
299limit = {
299has_reform = government_reform:pirate_brethren_reform
}
300remove_reform = government_reform:pirate_brethren_reform
}
302capital = {
303destroy_building = "building(building_type:pirate_stronghold|prev)"
}
305every_owned_foreign_building_location = {
306destroy_building = "building(building_type:black_market|prev)"
307destroy_building = "building(building_type:smuggler_cove|prev)"
308destroy_building = "building(building_type:brothel|prev)"
309destroy_building = "building(building_type:pirate_tavern|prev)"
}
}
}
314ai_will_do = {
315add = -50
316add = {
317desc = "IS_BANKRUPT_TOOLTIP"
318if = {
319limit = {
320scope:actor ?= {
321is_during_bankruptcy = yes
}
}
324value = 25
}
}
327if = {
328limit = {
329scope:actor ?= {
329num_loans > 0
}
}
331add = {
332desc = "PENDING_LOANS_TOOLTIP"
333value = scope:actor.num_loans
334multiply = 5
}
}
}