From 05aed12f69c6fbcd37fe1fcc1e57f7cd14f81968 Mon Sep 17 00:00:00 2001 From: Wolferos Date: Fri, 16 Oct 2020 19:25:52 +0200 Subject: [PATCH 1/2] 1.10.1 Compatibility #4 --- .../common/decisions/resource_prospecting.txt | 5043 +++++++++++++++++ mod/thegreatwar/common/ideas/bulgaria.txt | 22 + .../occupation_laws/occupation_laws.txt | 492 ++ .../scripted_effects/00_scripted_effects.txt | 1011 ++++ .../bftb_scripted_localisation.txt | 0 .../BUL_scripted_triggers.txt | 0 .../common/unit_leader/00_traits.txt | 40 +- 7 files changed, 6588 insertions(+), 20 deletions(-) create mode 100755 mod/thegreatwar/common/decisions/resource_prospecting.txt create mode 100755 mod/thegreatwar/common/occupation_laws/occupation_laws.txt create mode 100755 mod/thegreatwar/common/scripted_effects/00_scripted_effects.txt create mode 100755 mod/thegreatwar/common/scripted_localisation/bftb_scripted_localisation.txt create mode 100755 mod/thegreatwar/common/scripted_triggers/BUL_scripted_triggers.txt diff --git a/mod/thegreatwar/common/decisions/resource_prospecting.txt b/mod/thegreatwar/common/decisions/resource_prospecting.txt new file mode 100755 index 000000000..f94273773 --- /dev/null +++ b/mod/thegreatwar/common/decisions/resource_prospecting.txt @@ -0,0 +1,5043 @@ +prospect_for_resources = { + develop_shandong_aluminium_deposits = { #597 + + icon = aluminium + + allowed = { + + } + + highlight_state_targets = { + state = 597 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 597 + controls_state = 597 + } + + visible = { + owns_state = 597 + controls_state = 597 + 597 = { + NOT = { + has_state_flag = shandong_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 597 = { set_state_flag = shandong_aluminium_developed } + 597 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + + develop_suiyuan_steel_deposits = { #621 + + icon = steel + + allowed = { + + } + highlight_state_targets = { + state = 621 + } + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 621 + controls_state = 621 + } + + visible = { + owns_state = 621 + controls_state = 621 + 621 = { + NOT = { + has_state_flag = suiyuan_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 621 = { set_state_flag = suiyuan_steel_developed } + 621 = { + add_resource = { + type = steel + amount = 8 + } + } + } + } + + develop_daqing_deposits = { #714 + + icon = oil + + allowed = { + + } + highlight_state_targets = { + state = 714 + } + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 714 + controls_state = 714 + } + + visible = { + owns_state = 714 + controls_state = 714 + 714 = { + NOT = { + has_state_flag = daqing_oil_developed_1 + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + remove_effect = { + 714 = { set_state_flag = daqing_oil_developed_1 } + 714 = { + add_resource = { + type = oil + amount = 4 + } + } + } + } + develop_daqing_deposits_2 = { #714 + + icon = oil + + allowed = { + + } + highlight_state_targets = { + state = 714 + } + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 714 + controls_state = 714 + } + + visible = { + owns_state = 714 + controls_state = 714 + 714 = { + has_state_flag = daqing_oil_developed_1 + NOT = { + has_state_flag = daqing_oil_developed_2 + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 714 = { set_state_flag = daqing_oil_developed_2 } + 714 = { + add_resource = { + type = oil + amount = 8 + } + } + } + } + develop_yunnan_aluminium_deposits = { #325 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 325 + controls_state = 325 + } + highlight_state_targets = { + state = 325 + } + + visible = { + owns_state = 325 + controls_state = 325 + 325 = { + NOT = { + has_state_flag = yunnan_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 325 = { set_state_flag = yunnan_aluminium_developed } + 325 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + develop_kirin_aluminium_deposits = { #328 + + icon = aluminium + + allowed = { + NOT = { tag = MAN } + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 328 + controls_state = 328 + } + highlight_state_targets = { + state = 328 + } + + visible = { + owns_state = 328 + controls_state = 328 + 328 = { + NOT = { + has_state_flag = kirin_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 328 = { set_state_flag = kirin_aluminium_developed } + 328 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + develop_sichuan_aluminium_deposits = { #605 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 605 + controls_state = 605 + } + highlight_state_targets = { + state = 605 + } + + visible = { + owns_state = 605 + controls_state = 605 + 605 = { + NOT = { + has_state_flag = sichuan_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 605 = { set_state_flag = sichuan_aluminium_developed } + 605 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + + develop_luzon_chromium_deposits = { #623 + + icon = chromium + + allowed = { + + } + + available = { + owns_state = 623 + controls_state = 623 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation3 + } + highlight_state_targets = { + state = 623 + } + + visible = { + owns_state = 623 + controls_state = 623 + 623 = { + NOT = { + has_state_flag = luzon_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 5 + } + remove_effect = { + 623 = { set_state_flag = luzon_chromium_developed } + 623 = { + add_resource = { + type = chromium + amount = 8 + } + } + } + } + + develop_mindanao_steel_deposits = { #627 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 627 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 627 + controls_state = 627 + } + + visible = { + owns_state = 627 + controls_state = 627 + 627 = { + NOT = { + has_state_flag = mindanao_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 627 = { set_state_flag = mindanao_steel_developed } + 627 = { + add_resource = { + type = steel + amount = 8 + } + } + } + } + + develop_samar_steel_deposits = { #625 + + icon = steel + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 625 + controls_state = 625 + } + + highlight_state_targets = { + state = 625 + } + + visible = { + owns_state = 625 + controls_state = 625 + 625 = { + NOT = { + has_state_flag = samar_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 625 = { set_state_flag = samar_steel_developed } + 625 = { + add_resource = { + type = steel + amount = 6 + } + } + } + } + + develop_nauru_tungsten_deposits = { #725 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 725 + controls_state = 725 + } + + highlight_state_targets = { + state = 725 + } + + visible = { + owns_state = 725 + controls_state = 725 + 725 = { + NOT = { + has_state_flag = nauru_tungsten_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + modifier = { + tag = ENG + has_war = no + factor = 0 + } + } + + remove_effect = { + 725 = { set_state_flag = nauru_tungsten_developed } + 725 = { + add_resource = { + type = tungsten #standin for phosphates + amount = 4 + } + } + } + } + develop_tonkin_aluminium_deposits = { #671 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 671 + controls_state = 671 + } + + highlight_state_targets = { + state = 671 + } + + visible = { + owns_state = 671 + controls_state = 671 + 671 = { + NOT = { + has_state_flag = tonkin_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 671 = { set_state_flag = tonkin_aluminium_developed } + 671 = { + add_resource = { + type = aluminium + amount = 6 + } + } + } + } + develop_singapore_aluminium_deposits = { #336 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 336 + controls_state = 336 + } + + highlight_state_targets = { + state = 336 + } + + visible = { + owns_state = 336 + controls_state = 336 + 336 = { + NOT = { + has_state_flag = singapore_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 336 = { set_state_flag = singapore_aluminium_developed } + 336 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + develop_sirte_oil_fields = { #662 + + icon = oil + + allowed = { + NOT = { + tag = ITA + } + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 662 + controls_state = 662 + } + + highlight_state_targets = { + state = 662 + } + + visible = { + owns_state = 662 + controls_state = 662 + 662 = { + NOT = { + has_state_flag = sirte_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 662 = { + set_state_flag = sirte_oil_developed + } + 662 = { + add_resource = { + type = oil + amount = 8 + } + } + } + } + develop_benghazi_oil_fields = { #450 + + icon = oil + + allowed = { + NOT = { + tag = ITA + } + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 450 + controls_state = 450 + } + + highlight_state_targets = { + state = 450 + } + + visible = { + owns_state = 450 + controls_state = 450 + has_tech = excavation3 + 450 = { + NOT = { + has_state_flag = benghazi_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 450 = { + set_state_flag = benghazi_oil_developed + } + 450 = { + add_resource = { + type = oil + amount = 4 + } + } + } + } + develop_tasmania_aluminium_deposits = { #518 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 518 + controls_state = 518 + } + + highlight_state_targets = { + state = 518 + } + + visible = { + owns_state = 518 + controls_state = 518 + 518 = { + NOT = { + has_state_flag = tasmania_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 518 = { + set_state_flag = tasmania_aluminium_developed + } + 518 = { + add_resource = { + type = aluminium + amount = 8 + } + } + } + } + develop_west_africa_aluminium_deposits = { #556 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 556 + controls_state = 556 + } + + highlight_state_targets = { + state = 556 + } + + visible = { + owns_state = 556 + controls_state = 556 + 556 = { + NOT = { + has_state_flag = west_Africa_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 556 = { + set_state_flag = west_Africa_aluminium_developed + } + 556 = { + add_resource = { + type = aluminium + amount = 8 + } + } + } + } + develop_west_africa_aluminium_deposits_2 = { #556 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 556 + controls_state = 556 + } + + highlight_state_targets = { + state = 556 + } + + visible = { + owns_state = 556 + controls_state = 556 + has_tech = excavation3 + 556 = { + has_state_flag = west_Africa_aluminium_developed + } + 556 = { + NOT = { + has_state_flag = west_Africa_aluminium_developed_2 + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 556 = { + set_state_flag = west_Africa_aluminium_developed_2 + } + 556 = { + add_resource = { + type = aluminium + amount = 4 + } + } + } + } + develop_madagascar_rubber_plantations = { #543 + + icon = rubber + + allowed = { + + } + + available = { + owns_state = 543 + controls_state = 543 + num_of_civilian_factories_available_for_projects > 2 + } + + highlight_state_targets = { + state = 543 + } + + visible = { + owns_state = 543 + controls_state = 543 + 543 = { + NOT = { + has_state_flag = madagascar_rubber_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 3 + } + + remove_effect = { + 543 = { + set_state_flag = madagascar_rubber_developed + } + 543 = { + add_resource = { + type = rubber + amount = 8 + } + } + } + + ai_will_do = { + factor = 1 + } + } + develop_madagascar_rubber_plantations_2 = { #543 + + icon = rubber + + allowed = { + + } + + available = { + owns_state = 543 + controls_state = 543 + num_of_civilian_factories_available_for_projects > 4 + } + + highlight_state_targets = { + state = 543 + } + + visible = { + owns_state = 543 + controls_state = 543 + 543 = { + has_state_flag = madagascar_rubber_developed + } + 543 = { + NOT = { + has_state_flag = madagascar_rubber_developed_2 + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 543 = { + set_state_flag = madagascar_rubber_developed_2 + } + 543 = { + add_resource = { + type = rubber + amount = 8 + } + } + } + } + develop_nigeria_rubber_plantations = { #558 + + icon = rubber + + allowed = { + + } + + available = { + owns_state = 558 + controls_state = 558 + num_of_civilian_factories_available_for_projects > 2 + } + + highlight_state_targets = { + state = 558 + } + + visible = { + owns_state = 558 + controls_state = 558 + 558 = { + NOT = { + has_state_flag = nigeria_rubber_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + modifier = { + tag = ENG + has_war = no + 336 = { CONTROLLER = { is_in_faction_with = ROOT } } + factor = 0 + } + } + + remove_effect = { + 558 = { + set_state_flag = nigeria_rubber_developed + } + 558 = { + add_resource = { + type = rubber + amount = 10 + } + } + } + } + develop_ems_oil_fields = { #56 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 56 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 56 + controls_state = 56 + } + + visible = { + owns_state = 56 + controls_state = 56 + has_tech = excavation3 + 56 = { + NOT = { + has_state_flag = ems_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 56 = { + set_state_flag = ems_oil_developed + } + 56 = { + add_resource = { + type = oil + amount = 6 + } + } + } + } + + develop_matzen_oil_fields = { #4 + + icon = oil + + allowed = { + + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 4 + controls_state = 4 + } + + highlight_state_targets = { + state = 4 + } + + visible = { + owns_state = 4 + controls_state = 4 + has_tech = excavation3 + 4 = { + NOT = { + has_state_flag = ems_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 4 = { + set_state_flag = ems_oil_developed + } + 4 = { + add_resource = { + type = oil + amount = 4 + } + } + } + } + develop_friesland_oil_fields = { #36 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 36 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 36 + controls_state = 36 + } + + visible = { + owns_state = 36 + controls_state = 36 + has_tech = excavation3 + 36 = { + NOT = { + has_state_flag = friesland_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + remove_effect = { + 36 = { set_state_flag = friesland_oil_developed } + 36 = { + add_resource = { + type = oil + amount = 6 + } + + } + } + } + expand_eregli_steel_works = { #347 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 347 + } + + available = { + has_tech = construction3 + if = { + limit = { + has_dlc = "Battle for the Bosporus" + } + has_country_flag = TUR_karabuk_iron_steel_factory_modernised_flag + } + num_of_civilian_factories_available_for_projects > 14 + owns_state = 347 + controls_state = 347 + } + + visible = { + owns_state = 347 + controls_state = 347 + 347 = { + NOT = { + has_state_flag = eregli_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 15 + } + + remove_effect = { + 347 = { set_state_flag = eregli_steel_developed } + 347 = { + add_resource = { + type = steel + amount = 23 + } + } + } + + ai_will_do = { + factor = 1 + } + } + develop_newfoundland_steel = { #331 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 331 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 331 + controls_state = 331 + } + + visible = { + owns_state = 331 + controls_state = 331 + 331 = { + NOT = { + has_state_flag = newfoundland_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + modifier = { + tag = ENG + has_war = no + date < 1938.1.1 + factor = 0 + } + } + + remove_effect = { + 331 = { set_state_flag = newfoundland_steel_developed } + 331 = { + add_resource = { + type = steel + amount = 12 + } + } + } + } + develop_quebec_steel = { #466 + + icon = steel + + allowed = { + + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + 466 = { + infrastructure > 2 + } + owns_state = 466 + controls_state = 466 + } + highlight_state_targets = { + state = 466 + } + + visible = { + owns_state = 466 + controls_state = 466 + 466 = { + NOT = { + has_state_flag = quebec_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + remove_effect = { + 466 = { + set_state_flag = quebec_steel_developed + } + 466 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + ai_will_do = { + factor = 1 + } + } + + develop_cuba_steel = { #315 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 315 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 315 + controls_state = 315 + } + + visible = { + owns_state = 315 + controls_state = 315 + 315 = { + NOT = { + has_state_flag = cuba_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + remove_effect = { + 315 = { + set_state_flag = cuba_steel_developed + } + 315 = { + add_resource = { + type = steel + amount = 6 + } + } + } + + ai_will_do = { + factor = 1 + } + } + + develop_arkansas_aluminium_deposits = { #372 + + icon = aluminium + + allowed = { + + } + + highlight_state_targets = { + state = 372 + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 372 + controls_state = 372 + } + + visible = { + owns_state = 372 + controls_state = 372 + 372 = { + NOT = { + has_state_flag = { + flag = arkansas_aluminium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_arkansas_aluminium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_arkansas_aluminium_duration value = 30 } + 372 = { + if = { + limit = { + NOT = { + has_state_flag = arkansas_aluminium_developed + } + } + set_state_flag = { + flag = arkansas_aluminium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = arkansas_aluminium_developed + value = 1 + } + } + } + 372 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_arkansas_aluminium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_arkansas_aluminium_duration value = 30 } + } + } + } + develop_new_york_aluminium_deposits = { #358 + + icon = aluminium + + allowed = { + + } + highlight_state_targets = { + state = 358 + } + available = { + has_tech = construction2 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 358 + controls_state = 358 + } + + visible = { + owns_state = 358 + controls_state = 358 + 358 = { + NOT = { + has_state_flag = { + flag = new_york_aluminium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_new_york_aluminium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_new_york_aluminium_duration value = 30 } + 358 = { + if = { + limit = { + NOT = { + has_state_flag = new_york_aluminium_developed + } + } + set_state_flag = { + flag = new_york_aluminium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = new_york_aluminium_developed + value = 1 + } + } + } + 358 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_new_york_aluminium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_new_york_aluminium_duration value = 30 } + } + } + } + develop_tennessee_aluminium_deposits = { #368 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = construction2 + owns_state = 368 + controls_state = 368 + num_of_civilian_factories_available_for_projects > 11 + } + + highlight_state_targets = { + state = 368 + } + + visible = { + owns_state = 368 + controls_state = 368 + 368 = { + NOT = { + has_state_flag = { + flag = tennessee_aluminium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_tennessee_aluminium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_tennessee_aluminium_duration value = 30 } + 368 = { + if = { + limit = { + NOT = { + has_state_flag = tennessee_aluminium_developed + } + } + set_state_flag = { + flag = tennessee_aluminium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = tennessee_aluminium_developed + value = 1 + } + } + } + 368 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_tennessee_aluminium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_tennessee_aluminium_duration value = 30 } + } + } + } + develop_washington_aluminium_deposits = { #386 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = construction2 + owns_state = 386 + controls_state = 386 + num_of_civilian_factories_available_for_projects > 11 + } + + highlight_state_targets = { + state = 386 + } + + visible = { + owns_state = 386 + controls_state = 386 + 386 = { + NOT = { + has_state_flag = { + flag = washington_aluminium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_washington_aluminium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_washington_aluminium_duration value = 30 } + 386 = { + if = { + limit = { + NOT = { + has_state_flag = washington_aluminium_developed + } + } + set_state_flag = { + flag = washington_aluminium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = washington_aluminium_developed + value = 1 + } + } + } + 386 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_washington_aluminium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_washington_aluminium_duration value = 30 } + } + } + } + develop_idaho_tungsten_deposits = { #387 + + icon = tungsten + + allowed = { + + } + + highlight_state_targets = { + state = 387 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 387 + controls_state = 387 + } + + visible = { + owns_state = 387 + controls_state = 387 + 387 = { + NOT = { + has_state_flag = { + flag = idaho_tungsten_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_idaho_tungsten_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_idaho_tungsten_duration value = 30 } + 387 = { + if = { + limit = { + NOT = { + has_state_flag = idaho_tungsten_developed + } + } + set_state_flag = { + flag = idaho_tungsten_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = idaho_tungsten_developed + value = 1 + } + } + } + 387 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_idaho_tungsten_duration value = 30 compare = less_than } + } + set_variable = { var = USA_idaho_tungsten_duration value = 30 } + } + } + } + develop_california_tungsten_deposits = { #378 + + icon = tungsten + + allowed = { + + } + + highlight_state_targets = { + state = 378 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 378 + controls_state = 378 + } + + visible = { + owns_state = 378 + controls_state = 378 + 378 = { + NOT = { + has_state_flag = { + flag = california_tungsten_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_california_tungsten_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_california_tungsten_duration value = 30 } + 378 = { + if = { + limit = { + NOT = { + has_state_flag = california_tungsten_developed + } + } + set_state_flag = { + flag = california_tungsten_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = california_tungsten_developed + value = 1 + } + } + } + 378 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_california_tungsten_duration value = 30 compare = less_than } + } + set_variable = { var = USA_california_tungsten_duration value = 30 } + } + } + } + develop_minnesota_steel_deposits = { #391 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 391 + controls_state = 391 + } + + highlight_state_targets = { + state = 391 + } + + visible = { + owns_state = 391 + controls_state = 391 + 391 = { + NOT = { + has_state_flag = { + flag = minnesota_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_minnesota_steel_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_minnesota_steel_duration value = 30 } + 391 = { + if = { + limit = { + NOT = { + has_state_flag = minnesota_steel_developed + } + } + set_state_flag = { + flag = minnesota_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = minnesota_steel_developed + value = 1 + } + } + } + 391 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_minnesota_steel_duration value = 30 compare = less_than } + } + set_variable = { var = USA_minnesota_steel_duration value = 30 } + } + } + } + develop_pennsylvania_steel_deposits = { #360 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 360 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 360 + controls_state = 360 + } + + visible = { + owns_state = 360 + controls_state = 360 + 360 = { + NOT = { + has_state_flag = { + flag = pennsylvania_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_pennsylvania_steel_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_pennsylvania_steel_duration value = 30 } + 360 = { + if = { + limit = { + NOT = { + has_state_flag = pennsylvania_steel_developed + } + } + set_state_flag = { + flag = pennsylvania_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = pennsylvania_steel_developed + value = 1 + } + } + } + 360 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_pennsylvania_steel_duration value = 30 compare = less_than } + } + set_variable = { var = USA_pennsylvania_steel_duration value = 30 } + } + } + } + + develop_ohio_steel_deposits = { #261 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 261 + controls_state = 261 + } + + highlight_state_targets = { + state = 261 + } + + visible = { + owns_state = 261 + controls_state = 261 + 261 = { + NOT = { + has_state_flag = { + flag = ohio_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_ohio_steel_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_ohio_steel_duration value = 30 } + 261 = { + if = { + limit = { + NOT = { + has_state_flag = ohio_steel_developed + } + } + set_state_flag = { + flag = ohio_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = ohio_steel_developed + value = 1 + } + } + } + 261 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_ohio_steel_duration value = 30 compare = less_than } + } + set_variable = { var = USA_ohio_steel_duration value = 30 } + } + } + } + develop_indiana_steel_deposits = { #396 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 396 + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 396 + controls_state = 396 + } + + visible = { + owns_state = 396 + controls_state = 396 + 396 = { + NOT = { + has_state_flag = { + flag = indiana_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_indiana_steel_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_indiana_steel_duration value = 30 } + 396 = { + if = { + limit = { + NOT = { + has_state_flag = indiana_steel_developed + } + } + set_state_flag = { + flag = indiana_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = indiana_steel_developed + value = 1 + } + } + } + 396 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_indiana_steel_duration value = 30 compare = less_than } + } + set_variable = { var = USA_indiana_steel_duration value = 30 } + } + } + } + + develop_montana_chromium_deposits = { #388 + + icon = chromium + + allowed = { + + } + + highlight_state_targets = { + state = 388 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 388 + controls_state = 388 + } + + visible = { + owns_state = 388 + controls_state = 388 + has_tech = excavation3 + 388 = { + NOT = { + has_state_flag = { + flag = montana_chromium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_montana_chromium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_montana_chromium_duration value = 30 } + 388 = { + if = { + limit = { + NOT = { + has_state_flag = montana_chromium_developed + } + } + set_state_flag = { + flag = montana_chromium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = montana_chromium_developed + value = 1 + } + } + } + 388 = { + add_resource = { + type = chromium + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_montana_chromium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_montana_chromium_duration value = 30 } + } + } + } + + develop_california_chromium_deposits = { #378 + + icon = chromium + + allowed = { + + } + + highlight_state_targets = { + state = 378 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 378 + controls_state = 378 + } + + visible = { + owns_state = 378 + controls_state = 378 + has_tech = excavation3 + 378 = { + NOT = { + has_state_flag = { + flag = california_chromium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_california_chromium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_california_chromium_duration value = 30 } + 378 = { + if = { + limit = { + NOT = { + has_state_flag = california_chromium_developed + } + } + set_state_flag = { + flag = california_chromium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = california_chromium_developed + value = 1 + } + } + } + 378 = { + add_resource = { + type = chromium + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_california_chromium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_california_chromium_duration value = 30 } + } + } + } + + develop_south_sakhalin_oil_deposits = { #537 + icon = oil + + highlight_state_targets = { + state = 537 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 537 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation3 + controls_state = 537 + } + + visible = { + controls_state = 537 + 537 = { NOT = { has_state_flag = sakhalin_oil_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + base = 1 + } + + remove_effect = { + 537 = { + add_resource = { + type = oil + amount = 8 + } + set_state_flag = sakhalin_oil_developed + } + } + } + + develop_palau_aluminium_deposits = { #647 + icon = aluminium + + highlight_state_targets = { + state = 647 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 647 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation2 + controls_state = 647 + } + + visible = { + controls_state = 647 + 647 = { NOT = { has_state_flag = palau_aluminium_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 647 = { + add_resource = { + type = aluminium + amount = 12 + } + set_state_flag = palau_aluminium_developed + } + } + } + develop_cornwall_tungsten_deposits_1 = { #123 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 123 + controls_state = 123 + } + + highlight_state_targets = { + state = 123 + } + + visible = { + owns_state = 123 + controls_state = 123 + 123 = { + NOT = { + has_state_flag = cornwall_tungsten_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + modifier = { + tag = ENG + has_war = no + factor = 0 + } + } + + remove_effect = { + 123 = { set_state_flag = cornwall_tungsten_developed } + 123 = { + add_resource = { + type = tungsten + amount = 4 + } + } + } + } + develop_cornwall_tungsten_deposits_2 = { #123 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 123 + controls_state = 123 + } + + highlight_state_targets = { + state = 123 + } + + visible = { + owns_state = 123 + controls_state = 123 + 123 = { + NOT = { + has_state_flag = cornwall_tungsten_developed_2 + } + has_state_flag = cornwall_tungsten_developed + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 123 = { set_state_flag = cornwall_tungsten_developed_2 } + 123 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + } + develop_leningrad_aluminium_deposits = { #195 + icon = aluminium + + highlight_state_targets = { + state = 195 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 195 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation2 + controls_state = 195 + } + + visible = { + controls_state = 195 + 195 = { NOT = { has_state_flag = leningrad_aluminium_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 195 = { + add_resource = { + type = aluminium + amount = 12 + } + set_state_flag = leningrad_aluminium_developed + } + } + } + develop_kamensk_aluminium_deposits = { #653 + icon = aluminium + + highlight_state_targets = { + state = 653 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 653 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation2 + controls_state = 653 + } + + visible = { + controls_state = 653 + 653 = { NOT = { has_state_flag = kamensk_aluminium_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 653 = { + add_resource = { + type = aluminium + amount = 12 + } + set_state_flag = kamensk_aluminium_developed + } + } + } + develop_stalingrad_aluminium_deposits = { #217 + icon = aluminium + + highlight_state_targets = { + state = 217 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 217 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation4 + controls_state = 217 + } + + visible = { + controls_state = 217 + 217 = { NOT = { has_state_flag = stalingrad_aluminium_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 217 = { + add_resource = { + type = aluminium + amount = 12 + } + set_state_flag = stalingrad_aluminium_developed + } + } + } + develop_caucasus_tungsten_deposits_1 = { #233 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 233 + controls_state = 233 + } + + highlight_state_targets = { + state = 233 + } + + visible = { + owns_state = 233 + controls_state = 233 + 233 = { + NOT = { + has_state_flag = caucasus_tungsten_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 233 = { set_state_flag = caucasus_tungsten_developed } + 233 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + } + develop_caucasus_tungsten_deposits_2 = { #233 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 233 + controls_state = 233 + } + + highlight_state_targets = { + state = 233 + } + + visible = { + owns_state = 233 + controls_state = 233 + 233 = { + NOT = { + has_state_flag = caucasus_tungsten_developed_2 + } + has_state_flag = caucasus_tungsten_developed + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 233 = { set_state_flag = caucasus_tungsten_developed_2 } + 233 = { + add_resource = { + type = tungsten + amount = 10 + } + } + } + } + develop_kyzyl_tungsten_deposits = { #404 State not found + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 404 + controls_state = 404 + } + + highlight_state_targets = { + state = 404 + } + + visible = { + owns_state = 404 + controls_state = 404 + has_tech = excavation3 + 404 = { + NOT = { + has_state_flag = kyzla_tungsten_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 404 = { set_state_flag = kyzla_tungsten_developed } + 404 = { + add_resource = { + type = tungsten + amount = 8 + } + } + } + } + develop_chelyabinsk_steel_deposits = { #572 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction4 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 572 + controls_state = 572 + has_tech = construction3 + } + + highlight_state_targets = { + state = 572 + } + + visible = { + owns_state = 572 + controls_state = 572 + has_tech = construction3 + 572 = { + NOT = { + has_state_flag = { + flag = chelyabinsk_steel_developed + value = 3 + } + } + } + } + + + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 572 = { + if = { + limit = { + not = { + has_state_flag = chelyabinsk_steel_developed + } + } + set_state_flag = { + flag = chelyabinsk_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = chelyabinsk_steel_developed + value = 1 + } + } + } + 572 = { + add_resource = { + type = steel + amount = 20 + } + } + } + } + develop_zlatoust_steel_deposits_1 = { #573 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 573 + controls_state = 573 + } + + highlight_state_targets = { + state = 573 + } + + visible = { + owns_state = 573 + controls_state = 573 + 573 = { + NOT = { + has_state_flag = zlatoust_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 573 = { set_state_flag = zlatoust_steel_developed } + 573 = { + add_resource = { + type = steel + amount = 10 + } + } + } + } + develop_zlatoust_steel_deposits_2 = { #573 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction4 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 573 + controls_state = 573 + } + + highlight_state_targets = { + state = 573 + } + + visible = { + owns_state = 573 + controls_state = 573 + 573 = { + NOT = { + has_state_flag = zlatoust_steel_developed_2 + } + has_state_flag = zlatoust_steel_developed + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 573 = { set_state_flag = zlatoust_steel_developed_2 } + 573 = { + add_resource = { + type = steel + amount = 20 + } + } + } + } + develop_kursk_steel_deposits = { #220 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 220 + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 8 + owns_state = 220 + controls_state = 220 + } + + visible = { + owns_state = 220 + controls_state = 220 + 220 = { + NOT = { + has_state_flag = { + flag = kursk_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = SOV_kursk_steel_duration?30 + + modifier = { + civilian_factory_use = 9 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_kursk_steel_duration value = 30 } + 220 = { + if = { + limit = { + NOT = { + has_state_flag = kursk_steel_developed + } + } + set_state_flag = { + flag = kursk_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = kursk_steel_developed + value = 1 + } + } + } + 220 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_kursk_steel_duration value = 30 compare = less_than } + } + set_variable = { var = SOV_kursk_steel_duration value = 30 } + } + } + } + develop_kursk_steel_deposits_2 = { #220 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 220 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 220 + controls_state = 220 + } + + visible = { + owns_state = 220 + controls_state = 220 + 220 = { + NOT = { + has_state_flag = { + flag = kursk_steel_developed_2 + value = 5 + } + } + has_state_flag = { + flag = kursk_steel_developed + value = 5 + } + } + } + + cost = 25 + days_remove = SOV_kursk_steel_duration_2?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_kursk_steel_duration_2 value = 30 } + 220 = { + if = { + limit = { + NOT = { + has_state_flag = kursk_steel_developed_2 + } + } + set_state_flag = { + flag = kursk_steel_developed_2 + value = 1 + } + } + else = { + modify_state_flag = { + flag = kursk_steel_developed_2 + value = 1 + } + } + } + 220 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_kursk_steel_duration_2 value = 30 compare = less_than } + } + set_variable = { var = SOV_kursk_steel_duration_2 value = 30 } + } + } + } + develop_kursk_steel_deposits_3 = { #220 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 220 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 14 + owns_state = 220 + controls_state = 220 + } + + visible = { + owns_state = 220 + controls_state = 220 + 220 = { + NOT = { + has_state_flag = { + flag = kursk_steel_developed_3 + value = 5 + } + } + has_state_flag = { + flag = kursk_steel_developed_2 + value = 5 + } + } + } + + cost = 25 + days_remove = SOV_kursk_steel_duration_3?30 + + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_kursk_steel_duration_3 value = 30 } + 220 = { + if = { + limit = { + NOT = { + has_state_flag = kursk_steel_developed_3 + } + } + set_state_flag = { + flag = kursk_steel_developed_3 + value = 1 + } + } + else = { + modify_state_flag = { + flag = kursk_steel_developed_3 + value = 1 + } + } + } + 220 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_kursk_steel_duration_3 value = 30 compare = less_than } + } + set_variable = { var = SOV_kursk_steel_duration_3 value = 30 } + } + } + } + develop_Belgorod_steel_deposits = { #240 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 240 + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 8 + owns_state = 240 + controls_state = 240 + } + + visible = { + owns_state = 240 + controls_state = 240 + 240 = { + NOT = { + has_state_flag = { + flag = Belgorod_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = SOV_Belgorod_steel_duration?30 + + modifier = { + civilian_factory_use = 9 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_Belgorod_steel_duration value = 30 } + 240 = { + if = { + limit = { + NOT = { + has_state_flag = Belgorod_steel_developed + } + } + set_state_flag = { + flag = Belgorod_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = Belgorod_steel_developed + value = 1 + } + } + } + 240 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_Belgorod_steel_duration value = 30 compare = less_than } + } + set_variable = { var = SOV_Belgorod_steel_duration value = 30 } + } + } + } + develop_Belgorod_steel_deposits_2 = { #240 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 240 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 240 + controls_state = 240 + } + + visible = { + owns_state = 240 + controls_state = 240 + 240 = { + NOT = { + has_state_flag = { + flag = Belgorod_steel_developed_2 + value = 5 + } + } + has_state_flag = { + flag = Belgorod_steel_developed + value = 5 + } + } + } + + cost = 25 + days_remove = SOV_Belgorod_steel_duration_2?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 } + 240 = { + if = { + limit = { + NOT = { + has_state_flag = Belgorod_steel_developed_2 + } + } + set_state_flag = { + flag = Belgorod_steel_developed_2 + value = 1 + } + } + else = { + modify_state_flag = { + flag = Belgorod_steel_developed_2 + value = 1 + } + } + } + 240 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 compare = less_than } + } + set_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 } + } + } + } + develop_Belgorod_steel_deposits_3 = { #240 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 240 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 14 + owns_state = 240 + controls_state = 240 + } + + visible = { + owns_state = 240 + controls_state = 240 + 240 = { + NOT = { + has_state_flag = { + flag = Belgorod_steel_developed_3 + value = 5 + } + } + has_state_flag = { + flag = Belgorod_steel_developed_2 + value = 5 + } + } + } + + cost = 25 + days_remove = SOV_Belgorod_steel_duration_3?30 + + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 } + 240 = { + if = { + limit = { + NOT = { + has_state_flag = Belgorod_steel_developed_3 + } + } + set_state_flag = { + flag = Belgorod_steel_developed_3 + value = 1 + } + } + else = { + modify_state_flag = { + flag = Belgorod_steel_developed_3 + value = 1 + } + } + } + 240 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 compare = less_than } + } + set_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 } + } + } + } + develop_uralsk_chromium_deposits_1 = { #407 + + icon = chromium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 407 + controls_state = 407 + } + + highlight_state_targets = { + state = 407 + } + + visible = { + owns_state = 407 + controls_state = 407 + 407 = { + NOT = { + has_state_flag = uralsk_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 407 = { set_state_flag = uralsk_chromium_developed } + 407 = { + add_resource = { + type = chromium + amount = 10 + } + } + } + } + develop_uralsk_chromium_deposits_2 = { #407 + + icon = chromium + + allowed = { + + } + + available = { + has_tech = excavation5 + owns_state = 407 + controls_state = 407 + num_of_civilian_factories_available_for_projects > 4 + } + + highlight_state_targets = { + state = 407 + } + + visible = { + owns_state = 407 + controls_state = 407 + 407 = { + NOT = { + has_state_flag = uralsk_chromium_developed_2 + } + has_state_flag = uralsk_chromium_developed + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 407 = { set_state_flag = uralsk_chromium_developed_2 } + 407 = { + add_resource = { + type = chromium + amount = 15 + } + } + } + } + develop_liaotung_iron_ore_deposits = { #716 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 716 + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation1 + owns_state = 716 + controls_state = 716 + } + + visible = { + owns_state = 716 + controls_state = 716 + 716 = { + NOT = { + has_state_flag = liaotung_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + remove_effect = { + 716 = { set_state_flag = liaotung_steel_developed } + 716 = { + add_resource = { + type = steel + amount = 16 + } + } + } + + ai_will_do = { + factor = 1 + } + } + + develop_chosen_tungsten_deposits = { #527 + + icon = tungsten + + allowed = { + + } + + highlight_state_targets = { + state = 527 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 527 + controls_state = 527 + } + + visible = { + owns_state = 527 + controls_state = 527 + 527 = { + NOT = { + has_state_flag = { + flag = chosin_tungsten_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = chosin_tungsten_duration?30 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + add_to_variable = { var = chosin_tungsten_duration value = 30 } + 527 = { + if = { + limit = { + NOT = { + has_state_flag = chosin_tungsten_developed + } + } + set_state_flag = { + flag = chosin_tungsten_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = chosin_tungsten_developed + value = 1 + } + } + } + 527 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = chosin_tungsten_duration value = 30 compare = less_than } + } + set_variable = { var = chosin_tungsten_duration value = 30 } + } + } + } + + develop_abu_dhabi_oil_fields = { #658 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 658 + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 6 + owns_state = 658 + controls_state = 658 + } + + visible = { + owns_state = 658 + controls_state = 658 + has_tech = excavation5 + 658 = { + NOT = { + has_state_flag = abu_dhabi_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 9 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 658 = { + set_state_flag = abu_dhabi_developed + } + 658 = { + add_resource = { + type = oil + amount = 8 + } + } + } + } + develop_kuwait_oil_fields = { #656 + + icon = oil + + allowed = { + + } + + available = { + has_tech = excavation5 + owns_state = 656 + controls_state = 656 + num_of_civilian_factories_available_for_projects > 11 + } + + highlight_state_targets = { + state = 656 + } + + visible = { + owns_state = 656 + controls_state = 656 + has_tech = excavation2 + 656 = { + NOT = { + has_state_flag = { + flag = kuwait_oil_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = kuwait_oil_duration?30 + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + add_to_variable = { var = kuwait_oil_duration value = 30 } + 656 = { + if = { + limit = { + NOT = { + has_state_flag = kuwait_oil_developed + } + } + set_state_flag = { + flag = kuwait_oil_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = kuwait_oil_developed + value = 1 + } + } + } + 656 = { + add_resource = { + type = oil + amount = 18 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = kuwait_oil_duration value = 30 compare = less_than } + } + set_variable = { var = kuwait_oil_duration value = 60 } + } + } + } + develop_khuzestan_oil_fields = { #413 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 413 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 8 + owns_state = 413 + controls_state = 413 + } + + visible = { + owns_state = 413 + controls_state = 413 + has_tech = excavation2 + 413 = { + NOT = { + has_state_flag = khuzestan_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 9 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 413 = { + set_state_flag = khuzestan_developed + } + 413 = { + add_resource = { + type = oil + amount = 16 + } + } + } + } + develop_fars_oil_fields = { #412 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 412 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 412 + controls_state = 412 + } + + visible = { + owns_state = 412 + controls_state = 412 + has_tech = excavation3 + 412 = { + NOT = { + has_state_flag = fars_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 412 = { + set_state_flag = fars_developed + } + 412 = { + add_resource = { + type = oil + amount = 6 + } + } + } + } + develop_baghdad_oil_fields = { #291 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 291 + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 291 + controls_state = 291 + } + + visible = { + owns_state = 291 + controls_state = 291 + has_tech = excavation4 + 291 = { + NOT = { + has_state_flag = baghdad_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 291 = { + set_state_flag = baghdad_developed + } + 291 = { + add_resource = { + type = oil + amount = 18 + } + } + } + } + develop_mosul_oil_fields = { #676 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 676 + } + + available = { + num_of_civilian_factories_available_for_projects > 4 + owns_state = 676 + controls_state = 676 + } + + visible = { + owns_state = 676 + controls_state = 676 + has_tech = excavation3 + 676 = { + NOT = { + has_state_flag = mosul_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 676 = { + set_state_flag = mosul_developed + } + 676 = { + add_resource = { + type = oil + amount = 28 + } + } + } + } + develop_nejd_oil_fields = { #292 + + icon = oil + + allowed = { + + } + + available = { + has_tech = excavation5 + owns_state = 292 + controls_state = 292 + num_of_civilian_factories_available_for_projects > 14 + } + + highlight_state_targets = { + state = 292 + } + + visible = { + owns_state = 292 + controls_state = 292 + has_tech = excavation4 + 292 = { + NOT = { + has_state_flag = { + flag = nejd_oil_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = nejd_oil_duration?30 + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + add_to_variable = { var = nejd_oil_duration value = 30 } + 292 = { + if = { + limit = { + NOT = { + has_state_flag = nejd_oil_developed + } + } + set_state_flag = { + flag = nejd_oil_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = nejd_oil_developed + value = 1 + } + } + } + 292 = { + add_resource = { + type = oil + amount = 22 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = nejd_oil_duration value = 30 compare = less_than } + } + set_variable = { var = nejd_oil_duration value = 60 } + } + } + } + develop_eastern_desert_oil_fields = { #457 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 457 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 457 + controls_state = 457 + } + + visible = { + owns_state = 457 + controls_state = 457 + has_tech = excavation2 + 457 = { + NOT = { + has_state_flag = eastern_desert_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 457 = { + set_state_flag = eastern_desert_developed + } + 457 = { + add_resource = { + type = oil + amount = 6 + } + } + } + } + develop_qatar_oil_fields = { #765 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 765 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 5 + owns_state = 765 + controls_state = 765 + } + + visible = { + owns_state = 765 + controls_state = 765 + has_tech = excavation2 + 765 = { + NOT = { + has_state_flag = qatar_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 6 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 765 = { + set_state_flag = qatar_developed + } + 765 = { + add_resource = { + type = oil + amount = 8 + } + } + } + } + + develop_malatya_chromium_deposits = { #344 + + icon = chromium + + allowed = { + + } + highlight_states = { + state = 344 + } + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 344 + controls_state = 344 + } + + visible = { + owns_state = 344 + controls_state = 344 + 344 = { + NOT = { + has_state_flag = malatya_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 344 = { set_state_flag = malatya_chromium_developed } + 344 = { + add_resource = { + type = chromium + amount = 15 + } + } + } + } + + develop_mersin_chromium_mines = { #345 + + icon = chromium + + allowed = { + + } + highlight_states = { + state = 345 + } + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 5 + owns_state = 345 + controls_state = 345 + } + + visible = { + owns_state = 345 + controls_state = 345 + 345 = { + NOT = { + has_state_flag = mersin_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 6 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 345 = { set_state_flag = mersin_chromium_developed } + 345 = { + add_resource = { + type = chromium + amount = 34 + } + } + } + } + + utilize_diyarbakir_chromium_deposits = { #350 + + icon = chromium + + allowed = { + + } + highlight_states = { + state = 350 + } + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 3 + owns_state = 350 + controls_state = 350 + } + + visible = { + owns_state = 350 + controls_state = 350 + 350 = { + NOT = { + has_state_flag = diyarbakir_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 4 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 350 = { set_state_flag = biyarbakir_chromium_developed } + 350 = { + add_resource = { + type = chromium + amount = 36 + } + } + } + } + + expand_the_kirikkale_steel_mills = { #49 + + icon = steel + + allowed = { + + } + + highlight_states = { + state = 49 + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 14 + owns_state = 49 + controls_state = 49 + } + + visible = { + owns_state = 49 + controls_state = 49 + 49 = { + NOT = { + has_state_flag = ankara_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 45 + + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 49 = { + set_state_flag = ankara_steel_developed + } + 49 = { + add_resource = { + type = steel + amount = 12 + } + } + } + } + + develop_the_iron_mines_in_divrigi = { #349 + + icon = steel + + allowed = { + + } + + highlight_states = { + state = 349 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 19 + owns_state = 349 + controls_state = 349 + } + + visible = { + has_tech = excavation2 + owns_state = 349 + controls_state = 349 + 349 = { + NOT = { + has_state_flag = sivas_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 40 + + modifier = { + civilian_factory_use = 20 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 349 = { + set_state_flag = sivas_steel_developed + } + 349 = { + add_resource = { + type = steel + amount = 28 + } + } + } + } + + exploit_the_raman_oil_field = { #350 + + icon = oil + + allowed = { + + } + + highlight_states = { + state = 350 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 9 + owns_state = 350 + controls_state = 350 + } + + visible = { + has_tech = excavation1 + owns_state = 350 + controls_state = 350 + 350 = { + NOT = { + has_state_flag = raman_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 10 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 350 = { + set_state_flag = raman_oil_developed + } + 350 = { + add_resource = { + type = oil + amount = 16 + } + } + } + } + + drill_in_the_garzan_oil_field = { #350 + + icon = oil + + allowed = { + + } + + highlight_states = { + state = 350 + } + + available = { + has_tech = excavation4 + #if = { + # limit = { + # original_tag = TUR + # } + # has_idea = petrol_ofisi + #} + num_of_civilian_factories_available_for_projects > 15 + owns_state = 350 + controls_state = 350 + } + + visible = { + owns_state = 350 + controls_state = 350 + 350 = { + NOT = { + has_state_flag = garzan_oil_developed + } + } + has_tech = excavation3 + } + + fire_only_once = yes + + cost = 25 + days_remove = 80 + + modifier = { + civilian_factory_use = 16 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 350 = { + set_state_flag = garzan_oil_developed + } + 350 = { + add_resource = { + type = oil + amount = 14 + } + } + } + } + expand_the_west_raman_oil_field = { #350 + + icon = oil + + allowed = { + + } + + highlight_states = { + state = 350 + } + + available = { + has_tech = excavation5 + #if = { + # limit = { + # original_tag = TUR + # } + # has_idea = petrol_ofisi + #} + num_of_civilian_factories_available_for_projects > 24 + owns_state = 350 + controls_state = 350 + } + + visible = { + owns_state = 350 + controls_state = 350 + 350 = { + NOT = { + has_state_flag = west_raman_oil_developed + } + } + has_tech = excavation4 + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 25 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 350 = { + set_state_flag = west_raman_oil_developed + } + 350 = { + add_resource = { + type = oil + amount = 36 + } + } + } + } +} \ No newline at end of file diff --git a/mod/thegreatwar/common/ideas/bulgaria.txt b/mod/thegreatwar/common/ideas/bulgaria.txt index b466434b7..6031df9c4 100755 --- a/mod/thegreatwar/common/ideas/bulgaria.txt +++ b/mod/thegreatwar/common/ideas/bulgaria.txt @@ -35,6 +35,28 @@ ideas={ } } + country = { + BUL_army_restrictions = { + picture = tfv_can_conscription_crisis + + allowed = { + original_tag = BUL + date > 1939.4.5 + } + + allowed_civil_war = { + tag = BUL + } + removal_cost = -1 + + modifier = { + industrial_capacity_factory = -0.25 + industrial_capacity_dockyard = -0.25 + custom_modifier_tooltip = BUL_army_restrictions_mobilization_law_tt + } + } + } + air_chief = { BUL_vasil_zlatarov = { allowed = { tag=BUL } traits={ air_chief_all_weather_1 } ai_will_do={ factor=1 } } } diff --git a/mod/thegreatwar/common/occupation_laws/occupation_laws.txt b/mod/thegreatwar/common/occupation_laws/occupation_laws.txt new file mode 100755 index 000000000..3f431f962 --- /dev/null +++ b/mod/thegreatwar/common/occupation_laws/occupation_laws.txt @@ -0,0 +1,492 @@ +##id is used for localization +#example_law = { +# #tooltip description for the law +# tooltip = "loc_key" +# +# #gfx entry & frame for law entry icon +# #gfx entry can be omitted, in that case it will default to GFX_occupation_policy_icon_strip +# icon = "GFX_icon:5" +# +# #plays when the law is selected +# sound_effect = "sound_effect" +# +# #if a law is not visible, it won't show up in gui at all +# #scope is occupier country, occupied country is not set (this is only check at country level, not target level) +# visible = { +# always = yes +# } +# +# #if a law is not available, it will show up in disable state ingui and won't be selectable +# #scope is occupier country and from scope is occupied country +# available = { +# always = yes +# } +# +# #if a current modifier is no longer active (visible/available is false) it will fallback to this law +# fallback_law = law_id +# +# #main fallback modifier will be used when previous modifier is no longer active and there is no fallback_law, there must be exactly one fallback modifier +# #if you are lacking manpower/equipments for your current laws, fallback modifier bonuses will apply instead (will lerp to fallback and at 0 manpower you will be forced to switch) +# main_fallback_law = yes +# +# #applies to states if the law is selected +# state_modifier = { +# +# } +# +# #states with resistance supressed (at 0) will get this modifier instead (if defined) +# suppressed_state_modifier = { +# +# } +# +# #by default laws are sorted by load order, gui_order can be used to reorder them in gui. by default it is 0 +# gui_order = 1 +# +# # score used for selecting a law for state +# # scope is state +# # from is occupier +# # from from is occupied +# # ai_desire_resource temp variables will be available for the triggers, +# # which is a value in between 0-1 to show desire for a certain resource +# # uncapped_resistance_target temp variable can be used for getting resistance that that is not capped to 0-100 +# # resistance_target_without_law temp variable can be used for accessing resistance target value that is not modifier by law +# # garrison_min_support_ratio garrison_equipment_support_ratio garrison_manpower_support_ratio gives what ratio of the garrison factor we can support for current template and buffers +# ai_will_do = { +# base = 100 +# +# modifier = { +# steel > 10 +# add = 100 +# } +# } +#} + + +no_garrison = { + icon = 1 + default_law = yes + sound_effect = "Martial_Law_Interface_No_Garrison" + + state_modifier = { + resistance_target = 0.4 + no_compliance_gain = 1 + required_garrison_factor = -1 + } + + suppressed_state_modifier = { + #no_compliance_gain = 1 + required_garrison_factor = -1 + resistance_target = 0.4 + } + + ai_will_do = { + base = 0 + + modifier = { + FROM = { + has_government = democratic + } + has_active_resistance = no + add = 200 + } + # if losing, get manpower & equipment back + modifier = { + FROM = { + surrender_progress > 0.15 + } + add = 100 + } + modifier = { + FROM = { + surrender_progress > 0.4 + } + add = 500 + } + } +} + +autonomous_occupation = { + icon = 2 + sound_effect = "Martial_Law_Interface_Autonomous_Occupation_Unique_DEM" + + visible = { + has_government = democratic #? on design + } + + state_modifier = { + compliance_gain = 0.02 + required_garrison_factor = -0.6 + resistance_damage_to_garrison = -0.25 + } + + ai_will_do = { + base = 200 + + modifier = { + set_temp_variable = { resistance_limit = 30 } + if = { + limit = { occupation_law = martial_law_occupation } + set_temp_variable = { resistance_limit = 35 } + } + resistance < autonomous_occupation # if we are under base resistance try to build compliance instead + add = 500 + } + } +} + +foreign_civilian_oversight = { + icon = 3 + sound_effect = "Martial_Law_Interface_Foreign_Cvilian_Oversight" + + state_modifier = { + resistance_target = -0.10 + required_garrison_factor = -0.50 + resistance_damage_to_garrison = -0.25 + compliance_gain = 0.000 + local_factories = 0.00 + local_resources = 0.00 + } + starting_law = yes + + ai_will_do = { + base = 120 + modifier = { + check_variable = { resistance_target_without_law > 0.29} + add = 100 + } + } +} + + +local_police_force_garrison = { + icon = 11 + sound_effect = "Martial_Law_Interface_Local_Police_Force_Garrison" + + state_modifier = { + resistance_target = -0.20 + compliance_gain = -0.025 + required_garrison_factor = -0.65 + resistance_damage_to_garrison = -0.5 + local_factories = 0.00 + local_resources = 0.00 + } + + + ai_will_do = { + base = 100 + modifier = { + check_variable = { resistance_target_without_law > 0.44} + add = 200 + } + + + modifier = { + check_variable = { resistance_target_without_law > 0.44} + + set_temp_variable = { requirement_limit = 0.35 } + if = { + limit = { occupation_law = local_police_force_garrison } + set_temp_variable = { requirement_limit = 0.55 } + } + check_variable = { garrison_min_support_ratio < requirement_limit } + + add = 350 + } + } +} + +secret_police_oversight = { + icon = 4 + sound_effect = "Martial_Law_Interface_Secret_Police_Oversight" + + state_modifier = { + resistance_target = -0.30 + compliance_gain = -0.04 + required_garrison_factor = -0.3 + resistance_damage_to_garrison = -0.15 + local_factories = 0.05 + local_resources = 0.05 + enemy_operative_detection_chance_over_occupied_tag = 1 # offset detection chance by +1% + enemy_intel_network_gain_factor_over_occupied_tag = -0.25 # -25% scaled by the number of occupied states and the ratio of the network covering those occupied states + # todo + spy defense + } +} + +liberate_workers_occupation = { + icon = 5 + sound_effect = "Martial_Law_Interface_Liberate_Workers_Occupation_Unique_COM" + + visible = { + has_government = communism + } + + state_modifier = { + resistance_target = -0.15 + compliance_gain = -0.025 + required_garrison_factor = -0.20 + resistance_damage_to_garrison = 0.25 + local_factories = 0.2 + local_resources = 0.3 + } + + ai_will_do = { + base = 200 + } +} + +military_governor_occupation = { + icon = 6 + sound_effect = "Martial_Law_Interface_Military_Governor_Occupation" + + state_modifier = { + resistance_target = -0.4 + compliance_gain = -0.045 + required_garrison_factor = -0.1 + #local_factories = 0.00 + local_resources = 0.10 + local_manpower = 0.08 + } + ai_will_do = { + base = 0 + + #modifier = { + #set_temp_variable = { num_factory = building_level@arms_factory } + #add_to_temp_variable = { num_factory = building_level@industrial_complex } + #check_variable = { num_factory < 1 } + + #add = 50 + #} + #modifier = { + # is_core_of = FROM + + # add = 150 + #} + modifier = { + check_variable = { resistance_target_without_law > 0.55} + add = 400 + } + } +} + +martial_law_occupation = { + icon = 7 + sound_effect = "Martial_Law_Interface_Martial_Law_Occupation_Default" + + state_modifier = { + resistance_target = -0.50 + compliance_gain = -0.055 + #required_garrison_factor = 0.0 + #resistance_damage_to_garrison = 0.0 + #local_factories = 0.0 + local_resources = 0.1 + } + + ai_will_do = { + base = 0 + + modifier = { + check_variable = { resistance_target_without_law > 0.69} + + set_temp_variable = { resistance_limit = 40 } + set_temp_variable = { requirement_limit = 0.8 } + if = { + limit = { occupation_law = martial_law_occupation } + set_temp_variable = { resistance_limit = 35 } + set_temp_variable = { requirement_limit = 0.6 } + } + check_variable = { garrison_min_support_ratio > requirement_limit } + resistance > resistance_limit + + add = 500 + } + } +} + +forced_labor_occupation = { + icon = 8 + sound_effect = "Martial_Law_Interface_Forced_Labor_Occupation" + + state_modifier = { + resistance_target = -0.40 + compliance_gain = -0.08 + resistance_damage_to_garrison = 0.3 + required_garrison_factor = 0.50 + local_resources = 0.40 + local_factories = 0.05 + repair_speed_infrastructure_factor = 0.25 + + custom_modifier_tooltip = "resource_sabotage_decrease_tooltip" + } + + ai_will_do = { + # enabled if has damaged infra + # gets higher score if more are damaged + # even more prio at war + base = 0 + + modifier = { + set_temp_variable = { requirement_limit = 1.5 } + if = { + limit = { occupation_law = forced_labor_occupation } + set_temp_variable = { requirement_limit = 1.3 } + } + check_variable = { garrison_min_support_ratio < requirement_limit } + factor = 0 + } + + modifier = { + set_temp_variable = { num_damaged = damaged_building_level@infrastructure } + + check_variable = { num_damaged > 0 } + clamp_temp_variable = { var = num_damaged max = 8 } + multiply_temp_variable = { num_damaged = 80 } + add_to_temp_variable = { num_damaged = 200 } + FROM = { + has_war = yes + add_to_temp_variable = { num_damaged = 100 } + } + add = num_damaged + } + + modifier = { + # if compliance is high enough, we are getting good enough resoruces already + compliance < 40 + + # if we are desiring a resource produced here + set_temp_variable = { releveant_resources = 0 } + + set_temp_variable = { t = resource@oil } + multiply_temp_variable = { t = ai_desire_oil } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@aluminium } + multiply_temp_variable = { t = ai_desire_aluminium } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@rubber } + multiply_temp_variable = { t = ai_desire_rubber } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@tungsten } + multiply_temp_variable = { t = ai_desire_tungsten } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@steel } + multiply_temp_variable = { t = ai_desire_steel } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@chromium } + multiply_temp_variable = { t = ai_desire_chromium } + add_to_temp_variable = { releveant_resources = t } + + check_variable = { releveant_resources > 0 } + clamp_temp_variable = { var = releveant_resources max = 40 } + divide_temp_variable = { releveant_resources = 40 } + multiply_temp_variable = { releveant_resources = 200 } + add_to_temp_variable = { releveant_resources = 100 } + add = releveant_resources + } + } +} + +harsh_quotas_occupation = { + icon = 9 + sound_effect = "Martial_Law_Interface_Harsh_Quotas_Occupation" + + state_modifier = { + resistance_target = -0.40 + compliance_gain = -0.08 + required_garrison_factor = 0.60 + resistance_damage_to_garrison = 0.50 + + local_factories = 0.25 + local_resources = 0.05 + + repair_speed_arms_factory_factor = 0.25 + repair_speed_industrial_complex_factor = 0.25 + + custom_modifier_tooltip = "factory_sabotage_decrease_tooltip" + } + + ai_will_do = { + # enabled if has damaged factories + # gets higher score if more are damaged + base = 0 + + modifier = { + set_temp_variable = { num_damaged = damaged_building_level@arms_factory } + add_to_temp_variable = { num_damaged = damaged_building_level@industrial_complex } + + check_variable = { num_damaged > 0 } + clamp_temp_variable = { var = num_damaged max = 4 } + multiply_temp_variable = { num_damaged = 50 } + add_to_temp_variable = { num_damaged = 150 } + + add = num_damaged + } + } +} + +brutally_oppressive_occupation = { + icon = 10 + sound_effect = "Martial_Law_Interface_Brutally_Oppressive_Occupation_Unique_FAS" + + visible = { + has_government = fascism + } + + state_modifier = { + resistance_target = -0.75 + compliance_gain = -0.11 + required_garrison_factor = 1.0 + resistance_damage_to_garrison = 1.0 + local_resources = 0.10 + resistance_decay = 1.0 + } + + ai_will_do = { + base = 0 + + modifier = { + check_variable = { resistance_target_without_law > 0.94 } + + set_temp_variable = { resistance_limit = 40 } + set_temp_variable = { requirement_limit = 2.0 } + if = { + limit = { occupation_law = brutally_oppressive_occupation } + set_temp_variable = { resistance_limit = 35 } + set_temp_variable = { requirement_limit = 1.8 } + } + check_variable = { garrison_min_support_ratio > requirement_limit } + resistance > resistance_limit + + add = 1000 + } + } +} + +#reconciliation = { +# icon = 12 +# sound_effect = "Martial_Law_Interface_Autonomous_Occupation_Unique_DEM" +# +# visible = { +# original_tag = TUR +# has_dlc = "Battle for the Bosporus" +# OR = { +# has_completed_focus = TUR_a_common_destiny_for_all_of_turkey +# has_completed_focus = TUR_permit_regional_elections +# } +# FROM = { original_tag = KUR } +# } +# +# state_modifier = { +# compliance_gain = 0.03 +# required_garrison_factor = -0.5 +# resistance_damage_to_garrison = -0.3 +# resistance_decay = 0.5 +# } +# +# ai_will_do = { +# base = 200 +# } +#} \ No newline at end of file diff --git a/mod/thegreatwar/common/scripted_effects/00_scripted_effects.txt b/mod/thegreatwar/common/scripted_effects/00_scripted_effects.txt new file mode 100755 index 000000000..a8d487954 --- /dev/null +++ b/mod/thegreatwar/common/scripted_effects/00_scripted_effects.txt @@ -0,0 +1,1011 @@ +# Example: +# +# example_effect = { +# add_political_power = 66 +# add_popularity = { +# ideology = fascism +# popularity = 0.33 +# } +# } +# +# +# In a script file: +# +# effect = { +# example_effect = yes +# } +# + +##################################### +### emergency_factory_conversion #### +##################################### + +#This is going to give misleading and ugly tooltips. Making it nice will take effort. TODO_WTT_CD make nice or ignore and remove comment. Easiest solution is just making a custom tooltip that says "5 civilian factories will be converted to military factories" and ignore telling the player the states where it will happen. + +replace_civ_with_arms_factories = { + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } +} + +#Country scope +ROOT_inherit_current_scope_wars_effect = { + custom_effect_tooltip = ROOT_inherit_current_scope_wars_effect + hidden_effect = { + every_country = { + limit = { + has_defensive_war_with = PREV + } + ROOT = { declare_war_on = { target = PREV type = annex_everything } } + } + every_country = { + limit = { + has_offensive_war_with = PREV + } + declare_war_on = { target = ROOT type = annex_everything } + } + } +} + +# Add AI strategies in case of Central European Alliance +GER_democratic_nations_ai_strategies = { + # Reduce Contain against SOV + add_ai_strategy = { + type = contain + id = "SOV" + value = -800 + } + add_ai_strategy = { + type = contain + id = "ITA" + value = -800 + } + # Poland + add_ai_strategy = { + type = protect + id = "POL" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "POL" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "POL" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "POL" + value = -200 + } + # Finland + add_ai_strategy = { + type = protect + id = "FIN" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "FIN" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "FIN" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "FIN" + value = -200 + } + # Estonia + add_ai_strategy = { + type = protect + id = "EST" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "EST" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "EST" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "EST" + value = -200 + } + # Latvia + add_ai_strategy = { + type = protect + id = "LAT" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "LAT" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "LAT" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "LAT" + value = -200 + } + # Lithuania + add_ai_strategy = { + type = protect + id = "LIT" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "LIT" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "LIT" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "LIT" + value = -200 + } + # Romania + add_ai_strategy = { + type = protect + id = "ROM" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "ROM" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "ROM" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "ROM" + value = -200 + } + # Norway + add_ai_strategy = { + type = ignore + id = "NOR" + value = 200 + } + add_ai_strategy = { + type = protect + id = "NOR" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "NOR" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "NOR" + value = -200 + } + # Sweden + add_ai_strategy = { + type = ignore + id = "SWE" + value = 200 + } + add_ai_strategy = { + type = protect + id = "SWE" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "SWE" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "SWE" + value = -200 + } + # Denmark + add_ai_strategy = { + type = ignore + id = "DEN" + value = 200 + } + add_ai_strategy = { + type = protect + id = "DEN" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "DEN" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "DEN" + value = -200 + } + # Netherlands + add_ai_strategy = { + type = ignore + id = "HOL" + value = 200 + } + add_ai_strategy = { + type = protect + id = "HOL" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "HOL" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "HOL" + value = -200 + } + # Belgium + add_ai_strategy = { + type = ignore + id = "BEL" + value = 200 + } + add_ai_strategy = { + type = protect + id = "BEL" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "BEL" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "BEL" + value = -200 + } + # Luxemburg + add_ai_strategy = { + type = ignore + id = "LUX" + value = 200 + } + add_ai_strategy = { + type = protect + id = "LUX" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "LUX" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "LUX" + value = -200 + } + # Austria + add_ai_strategy = { + type = ignore + id = "AUS" + value = 200 + } + add_ai_strategy = { + type = protect + id = "AUS" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "AUS" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "AUS" + value = -200 + } + # Hungary + add_ai_strategy = { + type = ignore + id = "HUN" + value = 200 + } + add_ai_strategy = { + type = protect + id = "HUN" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "HUN" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "HUN" + value = -200 + } + # Czechoslovakia + add_ai_strategy = { + type = ignore + id = "CZE" + value = 200 + } + add_ai_strategy = { + type = protect + id = "CZE" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "CZE" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "CZE" + value = -200 + } + # Yugoslavia + add_ai_strategy = { + type = ignore + id = "YUG" + value = 200 + } + add_ai_strategy = { + type = protect + id = "YUG" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "YUG" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "YUG" + value = -200 + } +} + +print_variable_log_effect = { + print_variables = { + file = variables_yug + append = yes + } +} + +get_best_alliance_match_democratic_effect = { #arguably a trigger, but it does stuff so we keep it in here. If this is your first time seeing this, welcome to my personal hell. + if = { + limit = { + any_other_country = { + is_faction_leader = yes + is_major = yes + has_government = democratic + not = { has_war_with = ROOT } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = 0 } + } + } + } + if = { + limit = { + all_other_country = { + is_faction_leader = yes + is_major = yes + has_government = democratic + not = { has_war_with = ROOT } + set_temp_variable = { this.leader_score = num_of_factories } + add_to_temp_variable = { this.leader_score = num_battalions } + all_of_scopes = { + array = allies + add_to_temp_variable = { PREV.leader_score = num_of_factories } + add_to_temp_variable = { PREV.leader_score = num_battalions } + } + if = { + limit = { + capital_scope = { + is_on_continent = ROOT + } + } + multiply_temp_variable = { leader_score = 2 } + } + if = { + limit = { + any_neighbor_country = { tag = ROOT } + } + multiply_temp_variable = { leader_score = 1.25 } + } + if = { + limit = { + check_variable = { ROOT.best_leader_score < leader_score } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = leader_score } + } + } + } + } + } +} + +get_best_alliance_match_fascism_effect = { #arguably a trigger, but it does stuff so we keep it in here. If this is your first time seeing this, welcome to my personal hell. + if = { + limit = { + any_other_country = { + is_faction_leader = yes + is_major = yes + has_government = fascism + not = { has_war_with = ROOT } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = 0 } + } + } + } + if = { + limit = { + all_other_country = { + + is_faction_leader = yes + is_major = yes + has_government = fascism + not = { has_war_with = ROOT } + + set_temp_variable = { this.leader_score = num_of_factories } + add_to_temp_variable = { this.leader_score = num_battalions } + all_of_scopes = { + array = allies + add_to_temp_variable = { PREV.leader_score = num_of_factories } + add_to_temp_variable = { PREV.leader_score = num_battalions } + } + if = { + limit = { + capital_scope = { + is_on_continent = ROOT + } + } + multiply_temp_variable = { this.leader_score = 2 } + } + if = { + limit = { + any_neighbor_country = { tag = ROOT } + } + multiply_temp_variable = { this.leader_score = 1.25 } + } + if = { + limit = { + check_variable = { ROOT.best_leader_score < this.leader_score } + } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = this.leader_score } + } + } + } + } +} + +get_best_alliance_match_communism_effect = { #arguably a trigger, but it does stuff so we keep it in here. If this is your first time seeing this, welcome to my personal hell. + if = { + limit = { + any_other_country = { + is_faction_leader = yes + is_major = yes + has_government = communism + not = { has_war_with = ROOT } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = 0 } + } + } + } + if = { + limit = { + all_other_country = { + is_faction_leader = yes + is_major = yes + has_government = communism + not = { has_war_with = ROOT } + set_temp_variable = { this.leader_score = num_of_factories } + add_to_temp_variable = { this.leader_score = num_battalions } + all_of_scopes = { + array = allies + add_to_temp_variable = { PREV.leader_score = num_of_factories } + add_to_temp_variable = { PREV.leader_score = num_battalions } + } + if = { + limit = { + capital_scope = { + is_on_continent = ROOT + } + } + multiply_temp_variable = { leader_score = 2 } + } + if = { + limit = { + any_neighbor_country = { tag = ROOT } + } + multiply_temp_variable = { leader_score = 1.25 } + } + if = { + limit = { + check_variable = { ROOT.best_leader_score < leader_score } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = leader_score } + } + } + } + } + } +} + +remove_naval_treaty_effect = { + if = { + limit = { + has_idea = MTG_naval_treaty_adherent + } + remove_ideas = MTG_naval_treaty_adherent + } + else_if = { + limit = { + has_idea = MTG_naval_treaty_cheating + } + remove_ideas = MTG_naval_treaty_cheating + } + else_if = { + limit = { + has_idea = MTG_naval_treaty_adherent_reduced + } + remove_ideas = MTG_naval_treaty_adherent_reduced + } + else_if = { + limit = { + has_idea = MTG_naval_treaty_cheating_reduced + } + remove_ideas = MTG_naval_treaty_cheating_reduced + } + set_country_flag = MTG_naval_treaty_abandoned +} + +civil_war_anti_exploiter_punitive_action = { + # Anti-exploiter punitive brigades! BET YA DIDN'T SEE THAT COMING DID YA?! + if = { + limit = { + has_army_size = { + size < 1 + } + } + division_template = { + name = "Anti-Exploit Punitive Brigade" + priority = 1 + division_names_group = ENG_MAR_01 + is_locked = yes + regiments = { + infantry = { x = 0 y = 0 } + infantry = { x = 0 y = 1 } + infantry = { x = 0 y = 2 } + + infantry = { x = 1 y = 0 } + infantry = { x = 1 y = 1 } + infantry = { x = 1 y = 2 } + + infantry = { x = 2 y = 0 } + artillery_brigade = { x = 2 y = 1 } + artillery_brigade = { x = 2 y = 2 } + } + support = { + engineer = { x = 0 y = 0 } + recon = { x = 0 y = 1 } + artillery = { x = 0 y = 2 } + } + } + random_state = { + limit = { + is_capital = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + random_state = { + limit = { + is_in_home_area = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + random_state = { + limit = { + is_in_home_area = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + random_state = { + limit = { + is_in_home_area = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + random_state = { + limit = { + is_in_home_area = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + } +} + +clear_sabotaged_resources_if_necesary = { + if = { + limit = { + not = { + has_dynamic_modifier = { + modifier = sabotaged_resources + } + } + } + + clear_variable = sabotaged_oil + clear_variable = sabotaged_aluminium + clear_variable = sabotaged_rubber + clear_variable = sabotaged_tungsten + clear_variable = sabotaged_steel + clear_variable = sabotaged_chromium + } +} + +remove_from_allowed_party = { + if = { + limit = { has_government = democratic } + set_temp_variable = { allowed_party_democratic = 0 } + } + else_if = { + limit = { has_government = fascism } + set_temp_variable = { allowed_party_fascism = 0 } + } + else_if = { + limit = { has_government = communism } + set_temp_variable = { allowed_party_communism = 0 } + } + else_if = { + limit = { has_government = neutrality } + set_temp_variable = { allowed_party_neutrality = 0 } + } +} + +#expectes a temp variable country_to_initiate which should contain original_tag to instantiate as a collabration government +instantiate_collaboration_government = { + custom_effect_tooltip = compliance_80_effect_tooltip + hidden_effect = { + set_variable = { collaboration_formed@var:country_to_initiate = 1 } + + if = { + # if country_to_initiate does not exist, simply release it as a puppet + limit = { + var:country_to_initiate = { + exists = no + } + } + var:country_to_initiate = { set_variable = { collaboration_formed_by = PREV } } + release_autonomy = { + target = country_to_initiate + autonomy_state = autonomy_collaboration_government + freedom_level = 0.5 + release_non_owned_controlled = yes + } + } + else = { + # if country_to_initiate exists, create a dynamic country as our new puppet + + create_dynamic_country = { + original_tag = country_to_initiate + + set_variable = { collaboration_formed_by = PREV } + set_temp_variable = { new_country = this } + + PREV = { + every_controlled_state = { + limit = { occupied_country_tag = country_to_initiate } + + var:new_country = { + transfer_state = PREV + } + } + + puppet = new_country + + set_autonomy = { + target = new_country + autonomy_state = autonomy_collaboration_government + freedom_level = 0.5 + } + } + } + } + } +} + +abandon_colony_tag = { + if = { + limit = { + is_subject = yes + } + if = { + limit = { + original_tag = CAN + } + if = { + limit = { NOT = { has_dlc = "Together for Victory" } } + set_cosmetic_tag = CAN_ALY + } + else = { + set_cosmetic_tag = CAN_UK + } + } + else_if = { + limit = { + original_tag = RAJ + } + set_cosmetic_tag = RAJ_UK + } + else_if = { + limit = { + original_tag = MAL + } + set_cosmetic_tag = MAL_UK + } + else_if = { + limit = { + original_tag = INS + } + set_cosmetic_tag = INS_HOL + } + } + else = { + if = { + limit = { + OR = { + has_cosmetic_tag = united_polynesia + has_cosmetic_tag = MAJ_UNIFIED + } + } + } + else = { + drop_cosmetic_tag = yes + } + } +} + +#Should remove any and all fascist foreign influence, to be updated +remove_fascist_spirits_effect = { + if = { + limit = { has_idea = fascist_influence } + remove_ideas = fascist_influence + } + if = { + limit = { has_idea = american_influence_drift_fascism } + remove_ideas = american_influence_drift_fascism + } + #if = { + # limit = { has_idea = GER_align_hungary } + # remove_ideas = GER_align_hungary + #} + #if = { + # limit = { has_idea = GER_align_romania } + # remove_ideas = GER_align_romania + #} +} + +#Should remove any and all communist foreign influence +remove_communist_spirits_effect = { + if = { + limit = { has_idea = american_influence_drift_communism } + remove_ideas = american_influence_drift_communism + } + if = { + limit = { has_idea = comintern_influence } + remove_ideas = comintern_influence + } + #if = { + # limit = { has_idea = pan_slavic_propaganda } + # remove_ideas = pan_slavic_propaganda + #} + #if = { + # limit = { has_idea = agitated_peasants } + # remove_ideas = agitated_peasants + #} + #if = { + # limit = { has_idea = armed_communist_militants } + # remove_ideas = armed_communist_militants + #} +} + + +on_daily = { + +} + +#on_daily_USA = { +# # you can specify an on daily action for a specific country +#} \ No newline at end of file diff --git a/mod/thegreatwar/common/scripted_localisation/bftb_scripted_localisation.txt b/mod/thegreatwar/common/scripted_localisation/bftb_scripted_localisation.txt new file mode 100755 index 000000000..e69de29bb diff --git a/mod/thegreatwar/common/scripted_triggers/BUL_scripted_triggers.txt b/mod/thegreatwar/common/scripted_triggers/BUL_scripted_triggers.txt new file mode 100755 index 000000000..e69de29bb diff --git a/mod/thegreatwar/common/unit_leader/00_traits.txt b/mod/thegreatwar/common/unit_leader/00_traits.txt index 15693e8ac..e403176fd 100755 --- a/mod/thegreatwar/common/unit_leader/00_traits.txt +++ b/mod/thegreatwar/common/unit_leader/00_traits.txt @@ -2307,26 +2307,26 @@ leader_traits = { } } - trait_BUL_ff_sympathizer = { - - type = all - trait_type = personality_trait - - allowed = { - FROM = { original_tag = BUL } - } - - new_commander_weight = { - factor = 1 - modifier = { - factor = 0 - OR = { - FROM = { communism < 0.05 } - FROM = { has_completed_focus = BUL_crush_the_communists } - } - } - } - } +# trait_BUL_ff_sympathizer = { +# +# type = all +# trait_type = personality_trait +# +# allowed = { +# FROM = { original_tag = BUL } +# } +# +# new_commander_weight = { +# factor = 1 +# modifier = { +# factor = 0 +# OR = { +# FROM = { communism < 0.05 } +# FROM = { has_completed_focus = BUL_crush_the_communists } +# } +# } +# } +# } trait_TUR_kemalist_champion = { From bc16ad33ac527b431301a34d8813ae41d812e5db Mon Sep 17 00:00:00 2001 From: Wolferos Date: Fri, 16 Oct 2020 19:25:52 +0200 Subject: [PATCH 2/2] 1.10.1 Compatibility #4 (RC) --- .../common/decisions/resource_prospecting.txt | 5043 +++++++++++++++++ mod/thegreatwar/common/ideas/bulgaria.txt | 22 + .../occupation_laws/occupation_laws.txt | 492 ++ .../scripted_effects/00_scripted_effects.txt | 1011 ++++ .../bftb_scripted_localisation.txt | 0 .../BUL_scripted_triggers.txt | 0 .../common/unit_leader/00_traits.txt | 40 +- 7 files changed, 6588 insertions(+), 20 deletions(-) create mode 100755 mod/thegreatwar/common/decisions/resource_prospecting.txt create mode 100755 mod/thegreatwar/common/occupation_laws/occupation_laws.txt create mode 100755 mod/thegreatwar/common/scripted_effects/00_scripted_effects.txt create mode 100755 mod/thegreatwar/common/scripted_localisation/bftb_scripted_localisation.txt create mode 100755 mod/thegreatwar/common/scripted_triggers/BUL_scripted_triggers.txt diff --git a/mod/thegreatwar/common/decisions/resource_prospecting.txt b/mod/thegreatwar/common/decisions/resource_prospecting.txt new file mode 100755 index 000000000..f94273773 --- /dev/null +++ b/mod/thegreatwar/common/decisions/resource_prospecting.txt @@ -0,0 +1,5043 @@ +prospect_for_resources = { + develop_shandong_aluminium_deposits = { #597 + + icon = aluminium + + allowed = { + + } + + highlight_state_targets = { + state = 597 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 597 + controls_state = 597 + } + + visible = { + owns_state = 597 + controls_state = 597 + 597 = { + NOT = { + has_state_flag = shandong_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 597 = { set_state_flag = shandong_aluminium_developed } + 597 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + + develop_suiyuan_steel_deposits = { #621 + + icon = steel + + allowed = { + + } + highlight_state_targets = { + state = 621 + } + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 621 + controls_state = 621 + } + + visible = { + owns_state = 621 + controls_state = 621 + 621 = { + NOT = { + has_state_flag = suiyuan_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 621 = { set_state_flag = suiyuan_steel_developed } + 621 = { + add_resource = { + type = steel + amount = 8 + } + } + } + } + + develop_daqing_deposits = { #714 + + icon = oil + + allowed = { + + } + highlight_state_targets = { + state = 714 + } + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 714 + controls_state = 714 + } + + visible = { + owns_state = 714 + controls_state = 714 + 714 = { + NOT = { + has_state_flag = daqing_oil_developed_1 + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + remove_effect = { + 714 = { set_state_flag = daqing_oil_developed_1 } + 714 = { + add_resource = { + type = oil + amount = 4 + } + } + } + } + develop_daqing_deposits_2 = { #714 + + icon = oil + + allowed = { + + } + highlight_state_targets = { + state = 714 + } + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 714 + controls_state = 714 + } + + visible = { + owns_state = 714 + controls_state = 714 + 714 = { + has_state_flag = daqing_oil_developed_1 + NOT = { + has_state_flag = daqing_oil_developed_2 + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 714 = { set_state_flag = daqing_oil_developed_2 } + 714 = { + add_resource = { + type = oil + amount = 8 + } + } + } + } + develop_yunnan_aluminium_deposits = { #325 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 325 + controls_state = 325 + } + highlight_state_targets = { + state = 325 + } + + visible = { + owns_state = 325 + controls_state = 325 + 325 = { + NOT = { + has_state_flag = yunnan_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 325 = { set_state_flag = yunnan_aluminium_developed } + 325 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + develop_kirin_aluminium_deposits = { #328 + + icon = aluminium + + allowed = { + NOT = { tag = MAN } + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 328 + controls_state = 328 + } + highlight_state_targets = { + state = 328 + } + + visible = { + owns_state = 328 + controls_state = 328 + 328 = { + NOT = { + has_state_flag = kirin_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 328 = { set_state_flag = kirin_aluminium_developed } + 328 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + develop_sichuan_aluminium_deposits = { #605 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 605 + controls_state = 605 + } + highlight_state_targets = { + state = 605 + } + + visible = { + owns_state = 605 + controls_state = 605 + 605 = { + NOT = { + has_state_flag = sichuan_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 605 = { set_state_flag = sichuan_aluminium_developed } + 605 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + + develop_luzon_chromium_deposits = { #623 + + icon = chromium + + allowed = { + + } + + available = { + owns_state = 623 + controls_state = 623 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation3 + } + highlight_state_targets = { + state = 623 + } + + visible = { + owns_state = 623 + controls_state = 623 + 623 = { + NOT = { + has_state_flag = luzon_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 5 + } + remove_effect = { + 623 = { set_state_flag = luzon_chromium_developed } + 623 = { + add_resource = { + type = chromium + amount = 8 + } + } + } + } + + develop_mindanao_steel_deposits = { #627 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 627 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 627 + controls_state = 627 + } + + visible = { + owns_state = 627 + controls_state = 627 + 627 = { + NOT = { + has_state_flag = mindanao_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 627 = { set_state_flag = mindanao_steel_developed } + 627 = { + add_resource = { + type = steel + amount = 8 + } + } + } + } + + develop_samar_steel_deposits = { #625 + + icon = steel + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 625 + controls_state = 625 + } + + highlight_state_targets = { + state = 625 + } + + visible = { + owns_state = 625 + controls_state = 625 + 625 = { + NOT = { + has_state_flag = samar_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 625 = { set_state_flag = samar_steel_developed } + 625 = { + add_resource = { + type = steel + amount = 6 + } + } + } + } + + develop_nauru_tungsten_deposits = { #725 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 725 + controls_state = 725 + } + + highlight_state_targets = { + state = 725 + } + + visible = { + owns_state = 725 + controls_state = 725 + 725 = { + NOT = { + has_state_flag = nauru_tungsten_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + modifier = { + tag = ENG + has_war = no + factor = 0 + } + } + + remove_effect = { + 725 = { set_state_flag = nauru_tungsten_developed } + 725 = { + add_resource = { + type = tungsten #standin for phosphates + amount = 4 + } + } + } + } + develop_tonkin_aluminium_deposits = { #671 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 671 + controls_state = 671 + } + + highlight_state_targets = { + state = 671 + } + + visible = { + owns_state = 671 + controls_state = 671 + 671 = { + NOT = { + has_state_flag = tonkin_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 671 = { set_state_flag = tonkin_aluminium_developed } + 671 = { + add_resource = { + type = aluminium + amount = 6 + } + } + } + } + develop_singapore_aluminium_deposits = { #336 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 336 + controls_state = 336 + } + + highlight_state_targets = { + state = 336 + } + + visible = { + owns_state = 336 + controls_state = 336 + 336 = { + NOT = { + has_state_flag = singapore_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 336 = { set_state_flag = singapore_aluminium_developed } + 336 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + } + develop_sirte_oil_fields = { #662 + + icon = oil + + allowed = { + NOT = { + tag = ITA + } + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 662 + controls_state = 662 + } + + highlight_state_targets = { + state = 662 + } + + visible = { + owns_state = 662 + controls_state = 662 + 662 = { + NOT = { + has_state_flag = sirte_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 662 = { + set_state_flag = sirte_oil_developed + } + 662 = { + add_resource = { + type = oil + amount = 8 + } + } + } + } + develop_benghazi_oil_fields = { #450 + + icon = oil + + allowed = { + NOT = { + tag = ITA + } + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 450 + controls_state = 450 + } + + highlight_state_targets = { + state = 450 + } + + visible = { + owns_state = 450 + controls_state = 450 + has_tech = excavation3 + 450 = { + NOT = { + has_state_flag = benghazi_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 450 = { + set_state_flag = benghazi_oil_developed + } + 450 = { + add_resource = { + type = oil + amount = 4 + } + } + } + } + develop_tasmania_aluminium_deposits = { #518 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 518 + controls_state = 518 + } + + highlight_state_targets = { + state = 518 + } + + visible = { + owns_state = 518 + controls_state = 518 + 518 = { + NOT = { + has_state_flag = tasmania_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 518 = { + set_state_flag = tasmania_aluminium_developed + } + 518 = { + add_resource = { + type = aluminium + amount = 8 + } + } + } + } + develop_west_africa_aluminium_deposits = { #556 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 556 + controls_state = 556 + } + + highlight_state_targets = { + state = 556 + } + + visible = { + owns_state = 556 + controls_state = 556 + 556 = { + NOT = { + has_state_flag = west_Africa_aluminium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 556 = { + set_state_flag = west_Africa_aluminium_developed + } + 556 = { + add_resource = { + type = aluminium + amount = 8 + } + } + } + } + develop_west_africa_aluminium_deposits_2 = { #556 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 556 + controls_state = 556 + } + + highlight_state_targets = { + state = 556 + } + + visible = { + owns_state = 556 + controls_state = 556 + has_tech = excavation3 + 556 = { + has_state_flag = west_Africa_aluminium_developed + } + 556 = { + NOT = { + has_state_flag = west_Africa_aluminium_developed_2 + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 556 = { + set_state_flag = west_Africa_aluminium_developed_2 + } + 556 = { + add_resource = { + type = aluminium + amount = 4 + } + } + } + } + develop_madagascar_rubber_plantations = { #543 + + icon = rubber + + allowed = { + + } + + available = { + owns_state = 543 + controls_state = 543 + num_of_civilian_factories_available_for_projects > 2 + } + + highlight_state_targets = { + state = 543 + } + + visible = { + owns_state = 543 + controls_state = 543 + 543 = { + NOT = { + has_state_flag = madagascar_rubber_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 3 + } + + remove_effect = { + 543 = { + set_state_flag = madagascar_rubber_developed + } + 543 = { + add_resource = { + type = rubber + amount = 8 + } + } + } + + ai_will_do = { + factor = 1 + } + } + develop_madagascar_rubber_plantations_2 = { #543 + + icon = rubber + + allowed = { + + } + + available = { + owns_state = 543 + controls_state = 543 + num_of_civilian_factories_available_for_projects > 4 + } + + highlight_state_targets = { + state = 543 + } + + visible = { + owns_state = 543 + controls_state = 543 + 543 = { + has_state_flag = madagascar_rubber_developed + } + 543 = { + NOT = { + has_state_flag = madagascar_rubber_developed_2 + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 543 = { + set_state_flag = madagascar_rubber_developed_2 + } + 543 = { + add_resource = { + type = rubber + amount = 8 + } + } + } + } + develop_nigeria_rubber_plantations = { #558 + + icon = rubber + + allowed = { + + } + + available = { + owns_state = 558 + controls_state = 558 + num_of_civilian_factories_available_for_projects > 2 + } + + highlight_state_targets = { + state = 558 + } + + visible = { + owns_state = 558 + controls_state = 558 + 558 = { + NOT = { + has_state_flag = nigeria_rubber_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + modifier = { + tag = ENG + has_war = no + 336 = { CONTROLLER = { is_in_faction_with = ROOT } } + factor = 0 + } + } + + remove_effect = { + 558 = { + set_state_flag = nigeria_rubber_developed + } + 558 = { + add_resource = { + type = rubber + amount = 10 + } + } + } + } + develop_ems_oil_fields = { #56 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 56 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 56 + controls_state = 56 + } + + visible = { + owns_state = 56 + controls_state = 56 + has_tech = excavation3 + 56 = { + NOT = { + has_state_flag = ems_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 56 = { + set_state_flag = ems_oil_developed + } + 56 = { + add_resource = { + type = oil + amount = 6 + } + } + } + } + + develop_matzen_oil_fields = { #4 + + icon = oil + + allowed = { + + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 4 + controls_state = 4 + } + + highlight_state_targets = { + state = 4 + } + + visible = { + owns_state = 4 + controls_state = 4 + has_tech = excavation3 + 4 = { + NOT = { + has_state_flag = ems_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 4 = { + set_state_flag = ems_oil_developed + } + 4 = { + add_resource = { + type = oil + amount = 4 + } + } + } + } + develop_friesland_oil_fields = { #36 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 36 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 36 + controls_state = 36 + } + + visible = { + owns_state = 36 + controls_state = 36 + has_tech = excavation3 + 36 = { + NOT = { + has_state_flag = friesland_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + remove_effect = { + 36 = { set_state_flag = friesland_oil_developed } + 36 = { + add_resource = { + type = oil + amount = 6 + } + + } + } + } + expand_eregli_steel_works = { #347 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 347 + } + + available = { + has_tech = construction3 + if = { + limit = { + has_dlc = "Battle for the Bosporus" + } + has_country_flag = TUR_karabuk_iron_steel_factory_modernised_flag + } + num_of_civilian_factories_available_for_projects > 14 + owns_state = 347 + controls_state = 347 + } + + visible = { + owns_state = 347 + controls_state = 347 + 347 = { + NOT = { + has_state_flag = eregli_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 15 + } + + remove_effect = { + 347 = { set_state_flag = eregli_steel_developed } + 347 = { + add_resource = { + type = steel + amount = 23 + } + } + } + + ai_will_do = { + factor = 1 + } + } + develop_newfoundland_steel = { #331 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 331 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 331 + controls_state = 331 + } + + visible = { + owns_state = 331 + controls_state = 331 + 331 = { + NOT = { + has_state_flag = newfoundland_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + modifier = { + tag = ENG + has_war = no + date < 1938.1.1 + factor = 0 + } + } + + remove_effect = { + 331 = { set_state_flag = newfoundland_steel_developed } + 331 = { + add_resource = { + type = steel + amount = 12 + } + } + } + } + develop_quebec_steel = { #466 + + icon = steel + + allowed = { + + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + 466 = { + infrastructure > 2 + } + owns_state = 466 + controls_state = 466 + } + highlight_state_targets = { + state = 466 + } + + visible = { + owns_state = 466 + controls_state = 466 + 466 = { + NOT = { + has_state_flag = quebec_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + remove_effect = { + 466 = { + set_state_flag = quebec_steel_developed + } + 466 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + ai_will_do = { + factor = 1 + } + } + + develop_cuba_steel = { #315 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 315 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 315 + controls_state = 315 + } + + visible = { + owns_state = 315 + controls_state = 315 + 315 = { + NOT = { + has_state_flag = cuba_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + remove_effect = { + 315 = { + set_state_flag = cuba_steel_developed + } + 315 = { + add_resource = { + type = steel + amount = 6 + } + } + } + + ai_will_do = { + factor = 1 + } + } + + develop_arkansas_aluminium_deposits = { #372 + + icon = aluminium + + allowed = { + + } + + highlight_state_targets = { + state = 372 + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 372 + controls_state = 372 + } + + visible = { + owns_state = 372 + controls_state = 372 + 372 = { + NOT = { + has_state_flag = { + flag = arkansas_aluminium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_arkansas_aluminium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_arkansas_aluminium_duration value = 30 } + 372 = { + if = { + limit = { + NOT = { + has_state_flag = arkansas_aluminium_developed + } + } + set_state_flag = { + flag = arkansas_aluminium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = arkansas_aluminium_developed + value = 1 + } + } + } + 372 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_arkansas_aluminium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_arkansas_aluminium_duration value = 30 } + } + } + } + develop_new_york_aluminium_deposits = { #358 + + icon = aluminium + + allowed = { + + } + highlight_state_targets = { + state = 358 + } + available = { + has_tech = construction2 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 358 + controls_state = 358 + } + + visible = { + owns_state = 358 + controls_state = 358 + 358 = { + NOT = { + has_state_flag = { + flag = new_york_aluminium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_new_york_aluminium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_new_york_aluminium_duration value = 30 } + 358 = { + if = { + limit = { + NOT = { + has_state_flag = new_york_aluminium_developed + } + } + set_state_flag = { + flag = new_york_aluminium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = new_york_aluminium_developed + value = 1 + } + } + } + 358 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_new_york_aluminium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_new_york_aluminium_duration value = 30 } + } + } + } + develop_tennessee_aluminium_deposits = { #368 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = construction2 + owns_state = 368 + controls_state = 368 + num_of_civilian_factories_available_for_projects > 11 + } + + highlight_state_targets = { + state = 368 + } + + visible = { + owns_state = 368 + controls_state = 368 + 368 = { + NOT = { + has_state_flag = { + flag = tennessee_aluminium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_tennessee_aluminium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_tennessee_aluminium_duration value = 30 } + 368 = { + if = { + limit = { + NOT = { + has_state_flag = tennessee_aluminium_developed + } + } + set_state_flag = { + flag = tennessee_aluminium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = tennessee_aluminium_developed + value = 1 + } + } + } + 368 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_tennessee_aluminium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_tennessee_aluminium_duration value = 30 } + } + } + } + develop_washington_aluminium_deposits = { #386 + + icon = aluminium + + allowed = { + + } + + available = { + has_tech = construction2 + owns_state = 386 + controls_state = 386 + num_of_civilian_factories_available_for_projects > 11 + } + + highlight_state_targets = { + state = 386 + } + + visible = { + owns_state = 386 + controls_state = 386 + 386 = { + NOT = { + has_state_flag = { + flag = washington_aluminium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_washington_aluminium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_washington_aluminium_duration value = 30 } + 386 = { + if = { + limit = { + NOT = { + has_state_flag = washington_aluminium_developed + } + } + set_state_flag = { + flag = washington_aluminium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = washington_aluminium_developed + value = 1 + } + } + } + 386 = { + add_resource = { + type = aluminium + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_washington_aluminium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_washington_aluminium_duration value = 30 } + } + } + } + develop_idaho_tungsten_deposits = { #387 + + icon = tungsten + + allowed = { + + } + + highlight_state_targets = { + state = 387 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 387 + controls_state = 387 + } + + visible = { + owns_state = 387 + controls_state = 387 + 387 = { + NOT = { + has_state_flag = { + flag = idaho_tungsten_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_idaho_tungsten_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_idaho_tungsten_duration value = 30 } + 387 = { + if = { + limit = { + NOT = { + has_state_flag = idaho_tungsten_developed + } + } + set_state_flag = { + flag = idaho_tungsten_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = idaho_tungsten_developed + value = 1 + } + } + } + 387 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_idaho_tungsten_duration value = 30 compare = less_than } + } + set_variable = { var = USA_idaho_tungsten_duration value = 30 } + } + } + } + develop_california_tungsten_deposits = { #378 + + icon = tungsten + + allowed = { + + } + + highlight_state_targets = { + state = 378 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 378 + controls_state = 378 + } + + visible = { + owns_state = 378 + controls_state = 378 + 378 = { + NOT = { + has_state_flag = { + flag = california_tungsten_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_california_tungsten_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_california_tungsten_duration value = 30 } + 378 = { + if = { + limit = { + NOT = { + has_state_flag = california_tungsten_developed + } + } + set_state_flag = { + flag = california_tungsten_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = california_tungsten_developed + value = 1 + } + } + } + 378 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_california_tungsten_duration value = 30 compare = less_than } + } + set_variable = { var = USA_california_tungsten_duration value = 30 } + } + } + } + develop_minnesota_steel_deposits = { #391 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 391 + controls_state = 391 + } + + highlight_state_targets = { + state = 391 + } + + visible = { + owns_state = 391 + controls_state = 391 + 391 = { + NOT = { + has_state_flag = { + flag = minnesota_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_minnesota_steel_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_minnesota_steel_duration value = 30 } + 391 = { + if = { + limit = { + NOT = { + has_state_flag = minnesota_steel_developed + } + } + set_state_flag = { + flag = minnesota_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = minnesota_steel_developed + value = 1 + } + } + } + 391 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_minnesota_steel_duration value = 30 compare = less_than } + } + set_variable = { var = USA_minnesota_steel_duration value = 30 } + } + } + } + develop_pennsylvania_steel_deposits = { #360 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 360 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 360 + controls_state = 360 + } + + visible = { + owns_state = 360 + controls_state = 360 + 360 = { + NOT = { + has_state_flag = { + flag = pennsylvania_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_pennsylvania_steel_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_pennsylvania_steel_duration value = 30 } + 360 = { + if = { + limit = { + NOT = { + has_state_flag = pennsylvania_steel_developed + } + } + set_state_flag = { + flag = pennsylvania_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = pennsylvania_steel_developed + value = 1 + } + } + } + 360 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_pennsylvania_steel_duration value = 30 compare = less_than } + } + set_variable = { var = USA_pennsylvania_steel_duration value = 30 } + } + } + } + + develop_ohio_steel_deposits = { #261 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 261 + controls_state = 261 + } + + highlight_state_targets = { + state = 261 + } + + visible = { + owns_state = 261 + controls_state = 261 + 261 = { + NOT = { + has_state_flag = { + flag = ohio_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_ohio_steel_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_ohio_steel_duration value = 30 } + 261 = { + if = { + limit = { + NOT = { + has_state_flag = ohio_steel_developed + } + } + set_state_flag = { + flag = ohio_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = ohio_steel_developed + value = 1 + } + } + } + 261 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_ohio_steel_duration value = 30 compare = less_than } + } + set_variable = { var = USA_ohio_steel_duration value = 30 } + } + } + } + develop_indiana_steel_deposits = { #396 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 396 + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 396 + controls_state = 396 + } + + visible = { + owns_state = 396 + controls_state = 396 + 396 = { + NOT = { + has_state_flag = { + flag = indiana_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_indiana_steel_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_indiana_steel_duration value = 30 } + 396 = { + if = { + limit = { + NOT = { + has_state_flag = indiana_steel_developed + } + } + set_state_flag = { + flag = indiana_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = indiana_steel_developed + value = 1 + } + } + } + 396 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_indiana_steel_duration value = 30 compare = less_than } + } + set_variable = { var = USA_indiana_steel_duration value = 30 } + } + } + } + + develop_montana_chromium_deposits = { #388 + + icon = chromium + + allowed = { + + } + + highlight_state_targets = { + state = 388 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 388 + controls_state = 388 + } + + visible = { + owns_state = 388 + controls_state = 388 + has_tech = excavation3 + 388 = { + NOT = { + has_state_flag = { + flag = montana_chromium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_montana_chromium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_montana_chromium_duration value = 30 } + 388 = { + if = { + limit = { + NOT = { + has_state_flag = montana_chromium_developed + } + } + set_state_flag = { + flag = montana_chromium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = montana_chromium_developed + value = 1 + } + } + } + 388 = { + add_resource = { + type = chromium + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_montana_chromium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_montana_chromium_duration value = 30 } + } + } + } + + develop_california_chromium_deposits = { #378 + + icon = chromium + + allowed = { + + } + + highlight_state_targets = { + state = 378 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 378 + controls_state = 378 + } + + visible = { + owns_state = 378 + controls_state = 378 + has_tech = excavation3 + 378 = { + NOT = { + has_state_flag = { + flag = california_chromium_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = USA_california_chromium_duration?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + modifier = { + has_political_power < 200 + factor = 0 + } + } + + remove_effect = { + custom_effect_tooltip = repeatable_decision_tt + add_to_variable = { var = USA_california_chromium_duration value = 30 } + 378 = { + if = { + limit = { + NOT = { + has_state_flag = california_chromium_developed + } + } + set_state_flag = { + flag = california_chromium_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = california_chromium_developed + value = 1 + } + } + } + 378 = { + add_resource = { + type = chromium + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = USA_california_chromium_duration value = 30 compare = less_than } + } + set_variable = { var = USA_california_chromium_duration value = 30 } + } + } + } + + develop_south_sakhalin_oil_deposits = { #537 + icon = oil + + highlight_state_targets = { + state = 537 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 537 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation3 + controls_state = 537 + } + + visible = { + controls_state = 537 + 537 = { NOT = { has_state_flag = sakhalin_oil_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + base = 1 + } + + remove_effect = { + 537 = { + add_resource = { + type = oil + amount = 8 + } + set_state_flag = sakhalin_oil_developed + } + } + } + + develop_palau_aluminium_deposits = { #647 + icon = aluminium + + highlight_state_targets = { + state = 647 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 647 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation2 + controls_state = 647 + } + + visible = { + controls_state = 647 + 647 = { NOT = { has_state_flag = palau_aluminium_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 647 = { + add_resource = { + type = aluminium + amount = 12 + } + set_state_flag = palau_aluminium_developed + } + } + } + develop_cornwall_tungsten_deposits_1 = { #123 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 123 + controls_state = 123 + } + + highlight_state_targets = { + state = 123 + } + + visible = { + owns_state = 123 + controls_state = 123 + 123 = { + NOT = { + has_state_flag = cornwall_tungsten_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + modifier = { + tag = ENG + has_war = no + factor = 0 + } + } + + remove_effect = { + 123 = { set_state_flag = cornwall_tungsten_developed } + 123 = { + add_resource = { + type = tungsten + amount = 4 + } + } + } + } + develop_cornwall_tungsten_deposits_2 = { #123 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 123 + controls_state = 123 + } + + highlight_state_targets = { + state = 123 + } + + visible = { + owns_state = 123 + controls_state = 123 + 123 = { + NOT = { + has_state_flag = cornwall_tungsten_developed_2 + } + has_state_flag = cornwall_tungsten_developed + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 123 = { set_state_flag = cornwall_tungsten_developed_2 } + 123 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + } + develop_leningrad_aluminium_deposits = { #195 + icon = aluminium + + highlight_state_targets = { + state = 195 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 195 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation2 + controls_state = 195 + } + + visible = { + controls_state = 195 + 195 = { NOT = { has_state_flag = leningrad_aluminium_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 195 = { + add_resource = { + type = aluminium + amount = 12 + } + set_state_flag = leningrad_aluminium_developed + } + } + } + develop_kamensk_aluminium_deposits = { #653 + icon = aluminium + + highlight_state_targets = { + state = 653 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 653 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation2 + controls_state = 653 + } + + visible = { + controls_state = 653 + 653 = { NOT = { has_state_flag = kamensk_aluminium_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + 653 = { + add_resource = { + type = aluminium + amount = 12 + } + set_state_flag = kamensk_aluminium_developed + } + } + } + develop_stalingrad_aluminium_deposits = { #217 + icon = aluminium + + highlight_state_targets = { + state = 217 + } + + allowed = { + #Everyone + } + + available = { + has_full_control_of_state = 217 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation4 + controls_state = 217 + } + + visible = { + controls_state = 217 + 217 = { NOT = { has_state_flag = stalingrad_aluminium_developed } } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 217 = { + add_resource = { + type = aluminium + amount = 12 + } + set_state_flag = stalingrad_aluminium_developed + } + } + } + develop_caucasus_tungsten_deposits_1 = { #233 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 233 + controls_state = 233 + } + + highlight_state_targets = { + state = 233 + } + + visible = { + owns_state = 233 + controls_state = 233 + 233 = { + NOT = { + has_state_flag = caucasus_tungsten_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 233 = { set_state_flag = caucasus_tungsten_developed } + 233 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + } + develop_caucasus_tungsten_deposits_2 = { #233 + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 233 + controls_state = 233 + } + + highlight_state_targets = { + state = 233 + } + + visible = { + owns_state = 233 + controls_state = 233 + 233 = { + NOT = { + has_state_flag = caucasus_tungsten_developed_2 + } + has_state_flag = caucasus_tungsten_developed + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 233 = { set_state_flag = caucasus_tungsten_developed_2 } + 233 = { + add_resource = { + type = tungsten + amount = 10 + } + } + } + } + develop_kyzyl_tungsten_deposits = { #404 State not found + + icon = tungsten + + allowed = { + + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 404 + controls_state = 404 + } + + highlight_state_targets = { + state = 404 + } + + visible = { + owns_state = 404 + controls_state = 404 + has_tech = excavation3 + 404 = { + NOT = { + has_state_flag = kyzla_tungsten_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 404 = { set_state_flag = kyzla_tungsten_developed } + 404 = { + add_resource = { + type = tungsten + amount = 8 + } + } + } + } + develop_chelyabinsk_steel_deposits = { #572 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction4 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 572 + controls_state = 572 + has_tech = construction3 + } + + highlight_state_targets = { + state = 572 + } + + visible = { + owns_state = 572 + controls_state = 572 + has_tech = construction3 + 572 = { + NOT = { + has_state_flag = { + flag = chelyabinsk_steel_developed + value = 3 + } + } + } + } + + + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 572 = { + if = { + limit = { + not = { + has_state_flag = chelyabinsk_steel_developed + } + } + set_state_flag = { + flag = chelyabinsk_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = chelyabinsk_steel_developed + value = 1 + } + } + } + 572 = { + add_resource = { + type = steel + amount = 20 + } + } + } + } + develop_zlatoust_steel_deposits_1 = { #573 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 573 + controls_state = 573 + } + + highlight_state_targets = { + state = 573 + } + + visible = { + owns_state = 573 + controls_state = 573 + 573 = { + NOT = { + has_state_flag = zlatoust_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 573 = { set_state_flag = zlatoust_steel_developed } + 573 = { + add_resource = { + type = steel + amount = 10 + } + } + } + } + develop_zlatoust_steel_deposits_2 = { #573 + + icon = steel + + allowed = { + + } + + available = { + has_tech = construction4 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 573 + controls_state = 573 + } + + highlight_state_targets = { + state = 573 + } + + visible = { + owns_state = 573 + controls_state = 573 + 573 = { + NOT = { + has_state_flag = zlatoust_steel_developed_2 + } + has_state_flag = zlatoust_steel_developed + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 573 = { set_state_flag = zlatoust_steel_developed_2 } + 573 = { + add_resource = { + type = steel + amount = 20 + } + } + } + } + develop_kursk_steel_deposits = { #220 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 220 + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 8 + owns_state = 220 + controls_state = 220 + } + + visible = { + owns_state = 220 + controls_state = 220 + 220 = { + NOT = { + has_state_flag = { + flag = kursk_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = SOV_kursk_steel_duration?30 + + modifier = { + civilian_factory_use = 9 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_kursk_steel_duration value = 30 } + 220 = { + if = { + limit = { + NOT = { + has_state_flag = kursk_steel_developed + } + } + set_state_flag = { + flag = kursk_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = kursk_steel_developed + value = 1 + } + } + } + 220 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_kursk_steel_duration value = 30 compare = less_than } + } + set_variable = { var = SOV_kursk_steel_duration value = 30 } + } + } + } + develop_kursk_steel_deposits_2 = { #220 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 220 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 220 + controls_state = 220 + } + + visible = { + owns_state = 220 + controls_state = 220 + 220 = { + NOT = { + has_state_flag = { + flag = kursk_steel_developed_2 + value = 5 + } + } + has_state_flag = { + flag = kursk_steel_developed + value = 5 + } + } + } + + cost = 25 + days_remove = SOV_kursk_steel_duration_2?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_kursk_steel_duration_2 value = 30 } + 220 = { + if = { + limit = { + NOT = { + has_state_flag = kursk_steel_developed_2 + } + } + set_state_flag = { + flag = kursk_steel_developed_2 + value = 1 + } + } + else = { + modify_state_flag = { + flag = kursk_steel_developed_2 + value = 1 + } + } + } + 220 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_kursk_steel_duration_2 value = 30 compare = less_than } + } + set_variable = { var = SOV_kursk_steel_duration_2 value = 30 } + } + } + } + develop_kursk_steel_deposits_3 = { #220 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 220 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 14 + owns_state = 220 + controls_state = 220 + } + + visible = { + owns_state = 220 + controls_state = 220 + 220 = { + NOT = { + has_state_flag = { + flag = kursk_steel_developed_3 + value = 5 + } + } + has_state_flag = { + flag = kursk_steel_developed_2 + value = 5 + } + } + } + + cost = 25 + days_remove = SOV_kursk_steel_duration_3?30 + + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_kursk_steel_duration_3 value = 30 } + 220 = { + if = { + limit = { + NOT = { + has_state_flag = kursk_steel_developed_3 + } + } + set_state_flag = { + flag = kursk_steel_developed_3 + value = 1 + } + } + else = { + modify_state_flag = { + flag = kursk_steel_developed_3 + value = 1 + } + } + } + 220 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_kursk_steel_duration_3 value = 30 compare = less_than } + } + set_variable = { var = SOV_kursk_steel_duration_3 value = 30 } + } + } + } + develop_Belgorod_steel_deposits = { #240 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 240 + } + + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 8 + owns_state = 240 + controls_state = 240 + } + + visible = { + owns_state = 240 + controls_state = 240 + 240 = { + NOT = { + has_state_flag = { + flag = Belgorod_steel_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = SOV_Belgorod_steel_duration?30 + + modifier = { + civilian_factory_use = 9 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_Belgorod_steel_duration value = 30 } + 240 = { + if = { + limit = { + NOT = { + has_state_flag = Belgorod_steel_developed + } + } + set_state_flag = { + flag = Belgorod_steel_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = Belgorod_steel_developed + value = 1 + } + } + } + 240 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_Belgorod_steel_duration value = 30 compare = less_than } + } + set_variable = { var = SOV_Belgorod_steel_duration value = 30 } + } + } + } + develop_Belgorod_steel_deposits_2 = { #240 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 240 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 240 + controls_state = 240 + } + + visible = { + owns_state = 240 + controls_state = 240 + 240 = { + NOT = { + has_state_flag = { + flag = Belgorod_steel_developed_2 + value = 5 + } + } + has_state_flag = { + flag = Belgorod_steel_developed + value = 5 + } + } + } + + cost = 25 + days_remove = SOV_Belgorod_steel_duration_2?30 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 } + 240 = { + if = { + limit = { + NOT = { + has_state_flag = Belgorod_steel_developed_2 + } + } + set_state_flag = { + flag = Belgorod_steel_developed_2 + value = 1 + } + } + else = { + modify_state_flag = { + flag = Belgorod_steel_developed_2 + value = 1 + } + } + } + 240 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 compare = less_than } + } + set_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 } + } + } + } + develop_Belgorod_steel_deposits_3 = { #240 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 240 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 14 + owns_state = 240 + controls_state = 240 + } + + visible = { + owns_state = 240 + controls_state = 240 + 240 = { + NOT = { + has_state_flag = { + flag = Belgorod_steel_developed_3 + value = 5 + } + } + has_state_flag = { + flag = Belgorod_steel_developed_2 + value = 5 + } + } + } + + cost = 25 + days_remove = SOV_Belgorod_steel_duration_3?30 + + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + add_to_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 } + 240 = { + if = { + limit = { + NOT = { + has_state_flag = Belgorod_steel_developed_3 + } + } + set_state_flag = { + flag = Belgorod_steel_developed_3 + value = 1 + } + } + else = { + modify_state_flag = { + flag = Belgorod_steel_developed_3 + value = 1 + } + } + } + 240 = { + add_resource = { + type = steel + amount = 12 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 compare = less_than } + } + set_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 } + } + } + } + develop_uralsk_chromium_deposits_1 = { #407 + + icon = chromium + + allowed = { + + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 407 + controls_state = 407 + } + + highlight_state_targets = { + state = 407 + } + + visible = { + owns_state = 407 + controls_state = 407 + 407 = { + NOT = { + has_state_flag = uralsk_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 407 = { set_state_flag = uralsk_chromium_developed } + 407 = { + add_resource = { + type = chromium + amount = 10 + } + } + } + } + develop_uralsk_chromium_deposits_2 = { #407 + + icon = chromium + + allowed = { + + } + + available = { + has_tech = excavation5 + owns_state = 407 + controls_state = 407 + num_of_civilian_factories_available_for_projects > 4 + } + + highlight_state_targets = { + state = 407 + } + + visible = { + owns_state = 407 + controls_state = 407 + 407 = { + NOT = { + has_state_flag = uralsk_chromium_developed_2 + } + has_state_flag = uralsk_chromium_developed + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + original_tag = SOV + SOV_save_pp_for_manpower_trouble = yes + } + } + + remove_effect = { + 407 = { set_state_flag = uralsk_chromium_developed_2 } + 407 = { + add_resource = { + type = chromium + amount = 15 + } + } + } + } + develop_liaotung_iron_ore_deposits = { #716 + + icon = steel + + allowed = { + + } + + highlight_state_targets = { + state = 716 + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 2 + has_tech = excavation1 + owns_state = 716 + controls_state = 716 + } + + visible = { + owns_state = 716 + controls_state = 716 + 716 = { + NOT = { + has_state_flag = liaotung_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 3 + } + + remove_effect = { + 716 = { set_state_flag = liaotung_steel_developed } + 716 = { + add_resource = { + type = steel + amount = 16 + } + } + } + + ai_will_do = { + factor = 1 + } + } + + develop_chosen_tungsten_deposits = { #527 + + icon = tungsten + + allowed = { + + } + + highlight_state_targets = { + state = 527 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 527 + controls_state = 527 + } + + visible = { + owns_state = 527 + controls_state = 527 + 527 = { + NOT = { + has_state_flag = { + flag = chosin_tungsten_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = chosin_tungsten_duration?30 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + add_to_variable = { var = chosin_tungsten_duration value = 30 } + 527 = { + if = { + limit = { + NOT = { + has_state_flag = chosin_tungsten_developed + } + } + set_state_flag = { + flag = chosin_tungsten_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = chosin_tungsten_developed + value = 1 + } + } + } + 527 = { + add_resource = { + type = tungsten + amount = 6 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = chosin_tungsten_duration value = 30 compare = less_than } + } + set_variable = { var = chosin_tungsten_duration value = 30 } + } + } + } + + develop_abu_dhabi_oil_fields = { #658 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 658 + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 6 + owns_state = 658 + controls_state = 658 + } + + visible = { + owns_state = 658 + controls_state = 658 + has_tech = excavation5 + 658 = { + NOT = { + has_state_flag = abu_dhabi_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 9 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 658 = { + set_state_flag = abu_dhabi_developed + } + 658 = { + add_resource = { + type = oil + amount = 8 + } + } + } + } + develop_kuwait_oil_fields = { #656 + + icon = oil + + allowed = { + + } + + available = { + has_tech = excavation5 + owns_state = 656 + controls_state = 656 + num_of_civilian_factories_available_for_projects > 11 + } + + highlight_state_targets = { + state = 656 + } + + visible = { + owns_state = 656 + controls_state = 656 + has_tech = excavation2 + 656 = { + NOT = { + has_state_flag = { + flag = kuwait_oil_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = kuwait_oil_duration?30 + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + add_to_variable = { var = kuwait_oil_duration value = 30 } + 656 = { + if = { + limit = { + NOT = { + has_state_flag = kuwait_oil_developed + } + } + set_state_flag = { + flag = kuwait_oil_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = kuwait_oil_developed + value = 1 + } + } + } + 656 = { + add_resource = { + type = oil + amount = 18 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = kuwait_oil_duration value = 30 compare = less_than } + } + set_variable = { var = kuwait_oil_duration value = 60 } + } + } + } + develop_khuzestan_oil_fields = { #413 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 413 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 8 + owns_state = 413 + controls_state = 413 + } + + visible = { + owns_state = 413 + controls_state = 413 + has_tech = excavation2 + 413 = { + NOT = { + has_state_flag = khuzestan_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 9 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 413 = { + set_state_flag = khuzestan_developed + } + 413 = { + add_resource = { + type = oil + amount = 16 + } + } + } + } + develop_fars_oil_fields = { #412 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 412 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 412 + controls_state = 412 + } + + visible = { + owns_state = 412 + controls_state = 412 + has_tech = excavation3 + 412 = { + NOT = { + has_state_flag = fars_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 412 = { + set_state_flag = fars_developed + } + 412 = { + add_resource = { + type = oil + amount = 6 + } + } + } + } + develop_baghdad_oil_fields = { #291 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 291 + } + + available = { + has_tech = excavation5 + num_of_civilian_factories_available_for_projects > 11 + owns_state = 291 + controls_state = 291 + } + + visible = { + owns_state = 291 + controls_state = 291 + has_tech = excavation4 + 291 = { + NOT = { + has_state_flag = baghdad_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 12 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 291 = { + set_state_flag = baghdad_developed + } + 291 = { + add_resource = { + type = oil + amount = 18 + } + } + } + } + develop_mosul_oil_fields = { #676 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 676 + } + + available = { + num_of_civilian_factories_available_for_projects > 4 + owns_state = 676 + controls_state = 676 + } + + visible = { + owns_state = 676 + controls_state = 676 + has_tech = excavation3 + 676 = { + NOT = { + has_state_flag = mosul_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 676 = { + set_state_flag = mosul_developed + } + 676 = { + add_resource = { + type = oil + amount = 28 + } + } + } + } + develop_nejd_oil_fields = { #292 + + icon = oil + + allowed = { + + } + + available = { + has_tech = excavation5 + owns_state = 292 + controls_state = 292 + num_of_civilian_factories_available_for_projects > 14 + } + + highlight_state_targets = { + state = 292 + } + + visible = { + owns_state = 292 + controls_state = 292 + has_tech = excavation4 + 292 = { + NOT = { + has_state_flag = { + flag = nejd_oil_developed + value = 5 + } + } + } + } + + cost = 25 + days_remove = nejd_oil_duration?30 + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 1 + } + + remove_effect = { + add_to_variable = { var = nejd_oil_duration value = 30 } + 292 = { + if = { + limit = { + NOT = { + has_state_flag = nejd_oil_developed + } + } + set_state_flag = { + flag = nejd_oil_developed + value = 1 + } + } + else = { + modify_state_flag = { + flag = nejd_oil_developed + value = 1 + } + } + } + 292 = { + add_resource = { + type = oil + amount = 22 + } + } + } + + complete_effect = { + if = { + limit = { + check_variable = { var = nejd_oil_duration value = 30 compare = less_than } + } + set_variable = { var = nejd_oil_duration value = 60 } + } + } + } + develop_eastern_desert_oil_fields = { #457 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 457 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 2 + owns_state = 457 + controls_state = 457 + } + + visible = { + owns_state = 457 + controls_state = 457 + has_tech = excavation2 + 457 = { + NOT = { + has_state_flag = eastern_desert_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 3 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 457 = { + set_state_flag = eastern_desert_developed + } + 457 = { + add_resource = { + type = oil + amount = 6 + } + } + } + } + develop_qatar_oil_fields = { #765 + + icon = oil + + allowed = { + + } + + highlight_state_targets = { + state = 765 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 5 + owns_state = 765 + controls_state = 765 + } + + visible = { + owns_state = 765 + controls_state = 765 + has_tech = excavation2 + 765 = { + NOT = { + has_state_flag = qatar_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 6 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 765 = { + set_state_flag = qatar_developed + } + 765 = { + add_resource = { + type = oil + amount = 8 + } + } + } + } + + develop_malatya_chromium_deposits = { #344 + + icon = chromium + + allowed = { + + } + highlight_states = { + state = 344 + } + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 4 + owns_state = 344 + controls_state = 344 + } + + visible = { + owns_state = 344 + controls_state = 344 + 344 = { + NOT = { + has_state_flag = malatya_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 90 + + modifier = { + civilian_factory_use = 5 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 344 = { set_state_flag = malatya_chromium_developed } + 344 = { + add_resource = { + type = chromium + amount = 15 + } + } + } + } + + develop_mersin_chromium_mines = { #345 + + icon = chromium + + allowed = { + + } + highlight_states = { + state = 345 + } + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 5 + owns_state = 345 + controls_state = 345 + } + + visible = { + owns_state = 345 + controls_state = 345 + 345 = { + NOT = { + has_state_flag = mersin_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 120 + + modifier = { + civilian_factory_use = 6 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 345 = { set_state_flag = mersin_chromium_developed } + 345 = { + add_resource = { + type = chromium + amount = 34 + } + } + } + } + + utilize_diyarbakir_chromium_deposits = { #350 + + icon = chromium + + allowed = { + + } + highlight_states = { + state = 350 + } + available = { + has_tech = excavation2 + num_of_civilian_factories_available_for_projects > 3 + owns_state = 350 + controls_state = 350 + } + + visible = { + owns_state = 350 + controls_state = 350 + 350 = { + NOT = { + has_state_flag = diyarbakir_chromium_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 4 + } + + ai_will_do = { + factor = 1 + } + remove_effect = { + 350 = { set_state_flag = biyarbakir_chromium_developed } + 350 = { + add_resource = { + type = chromium + amount = 36 + } + } + } + } + + expand_the_kirikkale_steel_mills = { #49 + + icon = steel + + allowed = { + + } + + highlight_states = { + state = 49 + } + + available = { + has_tech = construction3 + num_of_civilian_factories_available_for_projects > 14 + owns_state = 49 + controls_state = 49 + } + + visible = { + owns_state = 49 + controls_state = 49 + 49 = { + NOT = { + has_state_flag = ankara_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 45 + + modifier = { + civilian_factory_use = 15 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 49 = { + set_state_flag = ankara_steel_developed + } + 49 = { + add_resource = { + type = steel + amount = 12 + } + } + } + } + + develop_the_iron_mines_in_divrigi = { #349 + + icon = steel + + allowed = { + + } + + highlight_states = { + state = 349 + } + + available = { + has_tech = excavation4 + num_of_civilian_factories_available_for_projects > 19 + owns_state = 349 + controls_state = 349 + } + + visible = { + has_tech = excavation2 + owns_state = 349 + controls_state = 349 + 349 = { + NOT = { + has_state_flag = sivas_steel_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 40 + + modifier = { + civilian_factory_use = 20 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 349 = { + set_state_flag = sivas_steel_developed + } + 349 = { + add_resource = { + type = steel + amount = 28 + } + } + } + } + + exploit_the_raman_oil_field = { #350 + + icon = oil + + allowed = { + + } + + highlight_states = { + state = 350 + } + + available = { + has_tech = excavation3 + num_of_civilian_factories_available_for_projects > 9 + owns_state = 350 + controls_state = 350 + } + + visible = { + has_tech = excavation1 + owns_state = 350 + controls_state = 350 + 350 = { + NOT = { + has_state_flag = raman_oil_developed + } + } + } + + fire_only_once = yes + + cost = 25 + days_remove = 60 + + modifier = { + civilian_factory_use = 10 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 350 = { + set_state_flag = raman_oil_developed + } + 350 = { + add_resource = { + type = oil + amount = 16 + } + } + } + } + + drill_in_the_garzan_oil_field = { #350 + + icon = oil + + allowed = { + + } + + highlight_states = { + state = 350 + } + + available = { + has_tech = excavation4 + #if = { + # limit = { + # original_tag = TUR + # } + # has_idea = petrol_ofisi + #} + num_of_civilian_factories_available_for_projects > 15 + owns_state = 350 + controls_state = 350 + } + + visible = { + owns_state = 350 + controls_state = 350 + 350 = { + NOT = { + has_state_flag = garzan_oil_developed + } + } + has_tech = excavation3 + } + + fire_only_once = yes + + cost = 25 + days_remove = 80 + + modifier = { + civilian_factory_use = 16 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 350 = { + set_state_flag = garzan_oil_developed + } + 350 = { + add_resource = { + type = oil + amount = 14 + } + } + } + } + expand_the_west_raman_oil_field = { #350 + + icon = oil + + allowed = { + + } + + highlight_states = { + state = 350 + } + + available = { + has_tech = excavation5 + #if = { + # limit = { + # original_tag = TUR + # } + # has_idea = petrol_ofisi + #} + num_of_civilian_factories_available_for_projects > 24 + owns_state = 350 + controls_state = 350 + } + + visible = { + owns_state = 350 + controls_state = 350 + 350 = { + NOT = { + has_state_flag = west_raman_oil_developed + } + } + has_tech = excavation4 + } + + fire_only_once = yes + + cost = 25 + days_remove = 180 + + modifier = { + civilian_factory_use = 25 + } + + ai_will_do = { + factor = 10 + } + + remove_effect = { + 350 = { + set_state_flag = west_raman_oil_developed + } + 350 = { + add_resource = { + type = oil + amount = 36 + } + } + } + } +} \ No newline at end of file diff --git a/mod/thegreatwar/common/ideas/bulgaria.txt b/mod/thegreatwar/common/ideas/bulgaria.txt index b466434b7..6031df9c4 100755 --- a/mod/thegreatwar/common/ideas/bulgaria.txt +++ b/mod/thegreatwar/common/ideas/bulgaria.txt @@ -35,6 +35,28 @@ ideas={ } } + country = { + BUL_army_restrictions = { + picture = tfv_can_conscription_crisis + + allowed = { + original_tag = BUL + date > 1939.4.5 + } + + allowed_civil_war = { + tag = BUL + } + removal_cost = -1 + + modifier = { + industrial_capacity_factory = -0.25 + industrial_capacity_dockyard = -0.25 + custom_modifier_tooltip = BUL_army_restrictions_mobilization_law_tt + } + } + } + air_chief = { BUL_vasil_zlatarov = { allowed = { tag=BUL } traits={ air_chief_all_weather_1 } ai_will_do={ factor=1 } } } diff --git a/mod/thegreatwar/common/occupation_laws/occupation_laws.txt b/mod/thegreatwar/common/occupation_laws/occupation_laws.txt new file mode 100755 index 000000000..3f431f962 --- /dev/null +++ b/mod/thegreatwar/common/occupation_laws/occupation_laws.txt @@ -0,0 +1,492 @@ +##id is used for localization +#example_law = { +# #tooltip description for the law +# tooltip = "loc_key" +# +# #gfx entry & frame for law entry icon +# #gfx entry can be omitted, in that case it will default to GFX_occupation_policy_icon_strip +# icon = "GFX_icon:5" +# +# #plays when the law is selected +# sound_effect = "sound_effect" +# +# #if a law is not visible, it won't show up in gui at all +# #scope is occupier country, occupied country is not set (this is only check at country level, not target level) +# visible = { +# always = yes +# } +# +# #if a law is not available, it will show up in disable state ingui and won't be selectable +# #scope is occupier country and from scope is occupied country +# available = { +# always = yes +# } +# +# #if a current modifier is no longer active (visible/available is false) it will fallback to this law +# fallback_law = law_id +# +# #main fallback modifier will be used when previous modifier is no longer active and there is no fallback_law, there must be exactly one fallback modifier +# #if you are lacking manpower/equipments for your current laws, fallback modifier bonuses will apply instead (will lerp to fallback and at 0 manpower you will be forced to switch) +# main_fallback_law = yes +# +# #applies to states if the law is selected +# state_modifier = { +# +# } +# +# #states with resistance supressed (at 0) will get this modifier instead (if defined) +# suppressed_state_modifier = { +# +# } +# +# #by default laws are sorted by load order, gui_order can be used to reorder them in gui. by default it is 0 +# gui_order = 1 +# +# # score used for selecting a law for state +# # scope is state +# # from is occupier +# # from from is occupied +# # ai_desire_resource temp variables will be available for the triggers, +# # which is a value in between 0-1 to show desire for a certain resource +# # uncapped_resistance_target temp variable can be used for getting resistance that that is not capped to 0-100 +# # resistance_target_without_law temp variable can be used for accessing resistance target value that is not modifier by law +# # garrison_min_support_ratio garrison_equipment_support_ratio garrison_manpower_support_ratio gives what ratio of the garrison factor we can support for current template and buffers +# ai_will_do = { +# base = 100 +# +# modifier = { +# steel > 10 +# add = 100 +# } +# } +#} + + +no_garrison = { + icon = 1 + default_law = yes + sound_effect = "Martial_Law_Interface_No_Garrison" + + state_modifier = { + resistance_target = 0.4 + no_compliance_gain = 1 + required_garrison_factor = -1 + } + + suppressed_state_modifier = { + #no_compliance_gain = 1 + required_garrison_factor = -1 + resistance_target = 0.4 + } + + ai_will_do = { + base = 0 + + modifier = { + FROM = { + has_government = democratic + } + has_active_resistance = no + add = 200 + } + # if losing, get manpower & equipment back + modifier = { + FROM = { + surrender_progress > 0.15 + } + add = 100 + } + modifier = { + FROM = { + surrender_progress > 0.4 + } + add = 500 + } + } +} + +autonomous_occupation = { + icon = 2 + sound_effect = "Martial_Law_Interface_Autonomous_Occupation_Unique_DEM" + + visible = { + has_government = democratic #? on design + } + + state_modifier = { + compliance_gain = 0.02 + required_garrison_factor = -0.6 + resistance_damage_to_garrison = -0.25 + } + + ai_will_do = { + base = 200 + + modifier = { + set_temp_variable = { resistance_limit = 30 } + if = { + limit = { occupation_law = martial_law_occupation } + set_temp_variable = { resistance_limit = 35 } + } + resistance < autonomous_occupation # if we are under base resistance try to build compliance instead + add = 500 + } + } +} + +foreign_civilian_oversight = { + icon = 3 + sound_effect = "Martial_Law_Interface_Foreign_Cvilian_Oversight" + + state_modifier = { + resistance_target = -0.10 + required_garrison_factor = -0.50 + resistance_damage_to_garrison = -0.25 + compliance_gain = 0.000 + local_factories = 0.00 + local_resources = 0.00 + } + starting_law = yes + + ai_will_do = { + base = 120 + modifier = { + check_variable = { resistance_target_without_law > 0.29} + add = 100 + } + } +} + + +local_police_force_garrison = { + icon = 11 + sound_effect = "Martial_Law_Interface_Local_Police_Force_Garrison" + + state_modifier = { + resistance_target = -0.20 + compliance_gain = -0.025 + required_garrison_factor = -0.65 + resistance_damage_to_garrison = -0.5 + local_factories = 0.00 + local_resources = 0.00 + } + + + ai_will_do = { + base = 100 + modifier = { + check_variable = { resistance_target_without_law > 0.44} + add = 200 + } + + + modifier = { + check_variable = { resistance_target_without_law > 0.44} + + set_temp_variable = { requirement_limit = 0.35 } + if = { + limit = { occupation_law = local_police_force_garrison } + set_temp_variable = { requirement_limit = 0.55 } + } + check_variable = { garrison_min_support_ratio < requirement_limit } + + add = 350 + } + } +} + +secret_police_oversight = { + icon = 4 + sound_effect = "Martial_Law_Interface_Secret_Police_Oversight" + + state_modifier = { + resistance_target = -0.30 + compliance_gain = -0.04 + required_garrison_factor = -0.3 + resistance_damage_to_garrison = -0.15 + local_factories = 0.05 + local_resources = 0.05 + enemy_operative_detection_chance_over_occupied_tag = 1 # offset detection chance by +1% + enemy_intel_network_gain_factor_over_occupied_tag = -0.25 # -25% scaled by the number of occupied states and the ratio of the network covering those occupied states + # todo + spy defense + } +} + +liberate_workers_occupation = { + icon = 5 + sound_effect = "Martial_Law_Interface_Liberate_Workers_Occupation_Unique_COM" + + visible = { + has_government = communism + } + + state_modifier = { + resistance_target = -0.15 + compliance_gain = -0.025 + required_garrison_factor = -0.20 + resistance_damage_to_garrison = 0.25 + local_factories = 0.2 + local_resources = 0.3 + } + + ai_will_do = { + base = 200 + } +} + +military_governor_occupation = { + icon = 6 + sound_effect = "Martial_Law_Interface_Military_Governor_Occupation" + + state_modifier = { + resistance_target = -0.4 + compliance_gain = -0.045 + required_garrison_factor = -0.1 + #local_factories = 0.00 + local_resources = 0.10 + local_manpower = 0.08 + } + ai_will_do = { + base = 0 + + #modifier = { + #set_temp_variable = { num_factory = building_level@arms_factory } + #add_to_temp_variable = { num_factory = building_level@industrial_complex } + #check_variable = { num_factory < 1 } + + #add = 50 + #} + #modifier = { + # is_core_of = FROM + + # add = 150 + #} + modifier = { + check_variable = { resistance_target_without_law > 0.55} + add = 400 + } + } +} + +martial_law_occupation = { + icon = 7 + sound_effect = "Martial_Law_Interface_Martial_Law_Occupation_Default" + + state_modifier = { + resistance_target = -0.50 + compliance_gain = -0.055 + #required_garrison_factor = 0.0 + #resistance_damage_to_garrison = 0.0 + #local_factories = 0.0 + local_resources = 0.1 + } + + ai_will_do = { + base = 0 + + modifier = { + check_variable = { resistance_target_without_law > 0.69} + + set_temp_variable = { resistance_limit = 40 } + set_temp_variable = { requirement_limit = 0.8 } + if = { + limit = { occupation_law = martial_law_occupation } + set_temp_variable = { resistance_limit = 35 } + set_temp_variable = { requirement_limit = 0.6 } + } + check_variable = { garrison_min_support_ratio > requirement_limit } + resistance > resistance_limit + + add = 500 + } + } +} + +forced_labor_occupation = { + icon = 8 + sound_effect = "Martial_Law_Interface_Forced_Labor_Occupation" + + state_modifier = { + resistance_target = -0.40 + compliance_gain = -0.08 + resistance_damage_to_garrison = 0.3 + required_garrison_factor = 0.50 + local_resources = 0.40 + local_factories = 0.05 + repair_speed_infrastructure_factor = 0.25 + + custom_modifier_tooltip = "resource_sabotage_decrease_tooltip" + } + + ai_will_do = { + # enabled if has damaged infra + # gets higher score if more are damaged + # even more prio at war + base = 0 + + modifier = { + set_temp_variable = { requirement_limit = 1.5 } + if = { + limit = { occupation_law = forced_labor_occupation } + set_temp_variable = { requirement_limit = 1.3 } + } + check_variable = { garrison_min_support_ratio < requirement_limit } + factor = 0 + } + + modifier = { + set_temp_variable = { num_damaged = damaged_building_level@infrastructure } + + check_variable = { num_damaged > 0 } + clamp_temp_variable = { var = num_damaged max = 8 } + multiply_temp_variable = { num_damaged = 80 } + add_to_temp_variable = { num_damaged = 200 } + FROM = { + has_war = yes + add_to_temp_variable = { num_damaged = 100 } + } + add = num_damaged + } + + modifier = { + # if compliance is high enough, we are getting good enough resoruces already + compliance < 40 + + # if we are desiring a resource produced here + set_temp_variable = { releveant_resources = 0 } + + set_temp_variable = { t = resource@oil } + multiply_temp_variable = { t = ai_desire_oil } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@aluminium } + multiply_temp_variable = { t = ai_desire_aluminium } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@rubber } + multiply_temp_variable = { t = ai_desire_rubber } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@tungsten } + multiply_temp_variable = { t = ai_desire_tungsten } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@steel } + multiply_temp_variable = { t = ai_desire_steel } + add_to_temp_variable = { releveant_resources = t } + + set_temp_variable = { t = resource@chromium } + multiply_temp_variable = { t = ai_desire_chromium } + add_to_temp_variable = { releveant_resources = t } + + check_variable = { releveant_resources > 0 } + clamp_temp_variable = { var = releveant_resources max = 40 } + divide_temp_variable = { releveant_resources = 40 } + multiply_temp_variable = { releveant_resources = 200 } + add_to_temp_variable = { releveant_resources = 100 } + add = releveant_resources + } + } +} + +harsh_quotas_occupation = { + icon = 9 + sound_effect = "Martial_Law_Interface_Harsh_Quotas_Occupation" + + state_modifier = { + resistance_target = -0.40 + compliance_gain = -0.08 + required_garrison_factor = 0.60 + resistance_damage_to_garrison = 0.50 + + local_factories = 0.25 + local_resources = 0.05 + + repair_speed_arms_factory_factor = 0.25 + repair_speed_industrial_complex_factor = 0.25 + + custom_modifier_tooltip = "factory_sabotage_decrease_tooltip" + } + + ai_will_do = { + # enabled if has damaged factories + # gets higher score if more are damaged + base = 0 + + modifier = { + set_temp_variable = { num_damaged = damaged_building_level@arms_factory } + add_to_temp_variable = { num_damaged = damaged_building_level@industrial_complex } + + check_variable = { num_damaged > 0 } + clamp_temp_variable = { var = num_damaged max = 4 } + multiply_temp_variable = { num_damaged = 50 } + add_to_temp_variable = { num_damaged = 150 } + + add = num_damaged + } + } +} + +brutally_oppressive_occupation = { + icon = 10 + sound_effect = "Martial_Law_Interface_Brutally_Oppressive_Occupation_Unique_FAS" + + visible = { + has_government = fascism + } + + state_modifier = { + resistance_target = -0.75 + compliance_gain = -0.11 + required_garrison_factor = 1.0 + resistance_damage_to_garrison = 1.0 + local_resources = 0.10 + resistance_decay = 1.0 + } + + ai_will_do = { + base = 0 + + modifier = { + check_variable = { resistance_target_without_law > 0.94 } + + set_temp_variable = { resistance_limit = 40 } + set_temp_variable = { requirement_limit = 2.0 } + if = { + limit = { occupation_law = brutally_oppressive_occupation } + set_temp_variable = { resistance_limit = 35 } + set_temp_variable = { requirement_limit = 1.8 } + } + check_variable = { garrison_min_support_ratio > requirement_limit } + resistance > resistance_limit + + add = 1000 + } + } +} + +#reconciliation = { +# icon = 12 +# sound_effect = "Martial_Law_Interface_Autonomous_Occupation_Unique_DEM" +# +# visible = { +# original_tag = TUR +# has_dlc = "Battle for the Bosporus" +# OR = { +# has_completed_focus = TUR_a_common_destiny_for_all_of_turkey +# has_completed_focus = TUR_permit_regional_elections +# } +# FROM = { original_tag = KUR } +# } +# +# state_modifier = { +# compliance_gain = 0.03 +# required_garrison_factor = -0.5 +# resistance_damage_to_garrison = -0.3 +# resistance_decay = 0.5 +# } +# +# ai_will_do = { +# base = 200 +# } +#} \ No newline at end of file diff --git a/mod/thegreatwar/common/scripted_effects/00_scripted_effects.txt b/mod/thegreatwar/common/scripted_effects/00_scripted_effects.txt new file mode 100755 index 000000000..a8d487954 --- /dev/null +++ b/mod/thegreatwar/common/scripted_effects/00_scripted_effects.txt @@ -0,0 +1,1011 @@ +# Example: +# +# example_effect = { +# add_political_power = 66 +# add_popularity = { +# ideology = fascism +# popularity = 0.33 +# } +# } +# +# +# In a script file: +# +# effect = { +# example_effect = yes +# } +# + +##################################### +### emergency_factory_conversion #### +##################################### + +#This is going to give misleading and ugly tooltips. Making it nice will take effort. TODO_WTT_CD make nice or ignore and remove comment. Easiest solution is just making a custom tooltip that says "5 civilian factories will be converted to military factories" and ignore telling the player the states where it will happen. + +replace_civ_with_arms_factories = { + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } + + random_owned_controlled_state = { + limit = { + is_fully_controlled_by = ROOT + industrial_complex > 0 + } + remove_building = { + type = industrial_complex + level = 1 + } + add_building_construction = { + type = arms_factory + level = 1 + instant_build = yes + } + } +} + +#Country scope +ROOT_inherit_current_scope_wars_effect = { + custom_effect_tooltip = ROOT_inherit_current_scope_wars_effect + hidden_effect = { + every_country = { + limit = { + has_defensive_war_with = PREV + } + ROOT = { declare_war_on = { target = PREV type = annex_everything } } + } + every_country = { + limit = { + has_offensive_war_with = PREV + } + declare_war_on = { target = ROOT type = annex_everything } + } + } +} + +# Add AI strategies in case of Central European Alliance +GER_democratic_nations_ai_strategies = { + # Reduce Contain against SOV + add_ai_strategy = { + type = contain + id = "SOV" + value = -800 + } + add_ai_strategy = { + type = contain + id = "ITA" + value = -800 + } + # Poland + add_ai_strategy = { + type = protect + id = "POL" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "POL" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "POL" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "POL" + value = -200 + } + # Finland + add_ai_strategy = { + type = protect + id = "FIN" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "FIN" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "FIN" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "FIN" + value = -200 + } + # Estonia + add_ai_strategy = { + type = protect + id = "EST" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "EST" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "EST" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "EST" + value = -200 + } + # Latvia + add_ai_strategy = { + type = protect + id = "LAT" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "LAT" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "LAT" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "LAT" + value = -200 + } + # Lithuania + add_ai_strategy = { + type = protect + id = "LIT" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "LIT" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "LIT" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "LIT" + value = -200 + } + # Romania + add_ai_strategy = { + type = protect + id = "ROM" + value = -200 + } + add_ai_strategy = { + type = ignore + id = "ROM" + value = 200 + } + add_ai_strategy = { + type = befriend + id = "ROM" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "ROM" + value = -200 + } + # Norway + add_ai_strategy = { + type = ignore + id = "NOR" + value = 200 + } + add_ai_strategy = { + type = protect + id = "NOR" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "NOR" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "NOR" + value = -200 + } + # Sweden + add_ai_strategy = { + type = ignore + id = "SWE" + value = 200 + } + add_ai_strategy = { + type = protect + id = "SWE" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "SWE" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "SWE" + value = -200 + } + # Denmark + add_ai_strategy = { + type = ignore + id = "DEN" + value = 200 + } + add_ai_strategy = { + type = protect + id = "DEN" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "DEN" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "DEN" + value = -200 + } + # Netherlands + add_ai_strategy = { + type = ignore + id = "HOL" + value = 200 + } + add_ai_strategy = { + type = protect + id = "HOL" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "HOL" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "HOL" + value = -200 + } + # Belgium + add_ai_strategy = { + type = ignore + id = "BEL" + value = 200 + } + add_ai_strategy = { + type = protect + id = "BEL" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "BEL" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "BEL" + value = -200 + } + # Luxemburg + add_ai_strategy = { + type = ignore + id = "LUX" + value = 200 + } + add_ai_strategy = { + type = protect + id = "LUX" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "LUX" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "LUX" + value = -200 + } + # Austria + add_ai_strategy = { + type = ignore + id = "AUS" + value = 200 + } + add_ai_strategy = { + type = protect + id = "AUS" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "AUS" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "AUS" + value = -200 + } + # Hungary + add_ai_strategy = { + type = ignore + id = "HUN" + value = 200 + } + add_ai_strategy = { + type = protect + id = "HUN" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "HUN" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "HUN" + value = -200 + } + # Czechoslovakia + add_ai_strategy = { + type = ignore + id = "CZE" + value = 200 + } + add_ai_strategy = { + type = protect + id = "CZE" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "CZE" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "CZE" + value = -200 + } + # Yugoslavia + add_ai_strategy = { + type = ignore + id = "YUG" + value = 200 + } + add_ai_strategy = { + type = protect + id = "YUG" + value = -200 + } + add_ai_strategy = { + type = befriend + id = "YUG" + value = -200 + } + add_ai_strategy = { + type = alliance + id = "YUG" + value = -200 + } +} + +print_variable_log_effect = { + print_variables = { + file = variables_yug + append = yes + } +} + +get_best_alliance_match_democratic_effect = { #arguably a trigger, but it does stuff so we keep it in here. If this is your first time seeing this, welcome to my personal hell. + if = { + limit = { + any_other_country = { + is_faction_leader = yes + is_major = yes + has_government = democratic + not = { has_war_with = ROOT } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = 0 } + } + } + } + if = { + limit = { + all_other_country = { + is_faction_leader = yes + is_major = yes + has_government = democratic + not = { has_war_with = ROOT } + set_temp_variable = { this.leader_score = num_of_factories } + add_to_temp_variable = { this.leader_score = num_battalions } + all_of_scopes = { + array = allies + add_to_temp_variable = { PREV.leader_score = num_of_factories } + add_to_temp_variable = { PREV.leader_score = num_battalions } + } + if = { + limit = { + capital_scope = { + is_on_continent = ROOT + } + } + multiply_temp_variable = { leader_score = 2 } + } + if = { + limit = { + any_neighbor_country = { tag = ROOT } + } + multiply_temp_variable = { leader_score = 1.25 } + } + if = { + limit = { + check_variable = { ROOT.best_leader_score < leader_score } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = leader_score } + } + } + } + } + } +} + +get_best_alliance_match_fascism_effect = { #arguably a trigger, but it does stuff so we keep it in here. If this is your first time seeing this, welcome to my personal hell. + if = { + limit = { + any_other_country = { + is_faction_leader = yes + is_major = yes + has_government = fascism + not = { has_war_with = ROOT } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = 0 } + } + } + } + if = { + limit = { + all_other_country = { + + is_faction_leader = yes + is_major = yes + has_government = fascism + not = { has_war_with = ROOT } + + set_temp_variable = { this.leader_score = num_of_factories } + add_to_temp_variable = { this.leader_score = num_battalions } + all_of_scopes = { + array = allies + add_to_temp_variable = { PREV.leader_score = num_of_factories } + add_to_temp_variable = { PREV.leader_score = num_battalions } + } + if = { + limit = { + capital_scope = { + is_on_continent = ROOT + } + } + multiply_temp_variable = { this.leader_score = 2 } + } + if = { + limit = { + any_neighbor_country = { tag = ROOT } + } + multiply_temp_variable = { this.leader_score = 1.25 } + } + if = { + limit = { + check_variable = { ROOT.best_leader_score < this.leader_score } + } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = this.leader_score } + } + } + } + } +} + +get_best_alliance_match_communism_effect = { #arguably a trigger, but it does stuff so we keep it in here. If this is your first time seeing this, welcome to my personal hell. + if = { + limit = { + any_other_country = { + is_faction_leader = yes + is_major = yes + has_government = communism + not = { has_war_with = ROOT } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = 0 } + } + } + } + if = { + limit = { + all_other_country = { + is_faction_leader = yes + is_major = yes + has_government = communism + not = { has_war_with = ROOT } + set_temp_variable = { this.leader_score = num_of_factories } + add_to_temp_variable = { this.leader_score = num_battalions } + all_of_scopes = { + array = allies + add_to_temp_variable = { PREV.leader_score = num_of_factories } + add_to_temp_variable = { PREV.leader_score = num_battalions } + } + if = { + limit = { + capital_scope = { + is_on_continent = ROOT + } + } + multiply_temp_variable = { leader_score = 2 } + } + if = { + limit = { + any_neighbor_country = { tag = ROOT } + } + multiply_temp_variable = { leader_score = 1.25 } + } + if = { + limit = { + check_variable = { ROOT.best_leader_score < leader_score } + set_temp_variable = { ROOT.best_leader = this } + set_temp_variable = { ROOT.best_leader_score = leader_score } + } + } + } + } + } +} + +remove_naval_treaty_effect = { + if = { + limit = { + has_idea = MTG_naval_treaty_adherent + } + remove_ideas = MTG_naval_treaty_adherent + } + else_if = { + limit = { + has_idea = MTG_naval_treaty_cheating + } + remove_ideas = MTG_naval_treaty_cheating + } + else_if = { + limit = { + has_idea = MTG_naval_treaty_adherent_reduced + } + remove_ideas = MTG_naval_treaty_adherent_reduced + } + else_if = { + limit = { + has_idea = MTG_naval_treaty_cheating_reduced + } + remove_ideas = MTG_naval_treaty_cheating_reduced + } + set_country_flag = MTG_naval_treaty_abandoned +} + +civil_war_anti_exploiter_punitive_action = { + # Anti-exploiter punitive brigades! BET YA DIDN'T SEE THAT COMING DID YA?! + if = { + limit = { + has_army_size = { + size < 1 + } + } + division_template = { + name = "Anti-Exploit Punitive Brigade" + priority = 1 + division_names_group = ENG_MAR_01 + is_locked = yes + regiments = { + infantry = { x = 0 y = 0 } + infantry = { x = 0 y = 1 } + infantry = { x = 0 y = 2 } + + infantry = { x = 1 y = 0 } + infantry = { x = 1 y = 1 } + infantry = { x = 1 y = 2 } + + infantry = { x = 2 y = 0 } + artillery_brigade = { x = 2 y = 1 } + artillery_brigade = { x = 2 y = 2 } + } + support = { + engineer = { x = 0 y = 0 } + recon = { x = 0 y = 1 } + artillery = { x = 0 y = 2 } + } + } + random_state = { + limit = { + is_capital = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + random_state = { + limit = { + is_in_home_area = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + random_state = { + limit = { + is_in_home_area = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + random_state = { + limit = { + is_in_home_area = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + random_state = { + limit = { + is_in_home_area = yes + is_fully_controlled_by = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + create_unit = { + division = "division_template = \"Anti-Exploit Punitive Brigade\" start_experience_factor = 1 start_equipment_factor = 1" + owner = PREV + } + } + } +} + +clear_sabotaged_resources_if_necesary = { + if = { + limit = { + not = { + has_dynamic_modifier = { + modifier = sabotaged_resources + } + } + } + + clear_variable = sabotaged_oil + clear_variable = sabotaged_aluminium + clear_variable = sabotaged_rubber + clear_variable = sabotaged_tungsten + clear_variable = sabotaged_steel + clear_variable = sabotaged_chromium + } +} + +remove_from_allowed_party = { + if = { + limit = { has_government = democratic } + set_temp_variable = { allowed_party_democratic = 0 } + } + else_if = { + limit = { has_government = fascism } + set_temp_variable = { allowed_party_fascism = 0 } + } + else_if = { + limit = { has_government = communism } + set_temp_variable = { allowed_party_communism = 0 } + } + else_if = { + limit = { has_government = neutrality } + set_temp_variable = { allowed_party_neutrality = 0 } + } +} + +#expectes a temp variable country_to_initiate which should contain original_tag to instantiate as a collabration government +instantiate_collaboration_government = { + custom_effect_tooltip = compliance_80_effect_tooltip + hidden_effect = { + set_variable = { collaboration_formed@var:country_to_initiate = 1 } + + if = { + # if country_to_initiate does not exist, simply release it as a puppet + limit = { + var:country_to_initiate = { + exists = no + } + } + var:country_to_initiate = { set_variable = { collaboration_formed_by = PREV } } + release_autonomy = { + target = country_to_initiate + autonomy_state = autonomy_collaboration_government + freedom_level = 0.5 + release_non_owned_controlled = yes + } + } + else = { + # if country_to_initiate exists, create a dynamic country as our new puppet + + create_dynamic_country = { + original_tag = country_to_initiate + + set_variable = { collaboration_formed_by = PREV } + set_temp_variable = { new_country = this } + + PREV = { + every_controlled_state = { + limit = { occupied_country_tag = country_to_initiate } + + var:new_country = { + transfer_state = PREV + } + } + + puppet = new_country + + set_autonomy = { + target = new_country + autonomy_state = autonomy_collaboration_government + freedom_level = 0.5 + } + } + } + } + } +} + +abandon_colony_tag = { + if = { + limit = { + is_subject = yes + } + if = { + limit = { + original_tag = CAN + } + if = { + limit = { NOT = { has_dlc = "Together for Victory" } } + set_cosmetic_tag = CAN_ALY + } + else = { + set_cosmetic_tag = CAN_UK + } + } + else_if = { + limit = { + original_tag = RAJ + } + set_cosmetic_tag = RAJ_UK + } + else_if = { + limit = { + original_tag = MAL + } + set_cosmetic_tag = MAL_UK + } + else_if = { + limit = { + original_tag = INS + } + set_cosmetic_tag = INS_HOL + } + } + else = { + if = { + limit = { + OR = { + has_cosmetic_tag = united_polynesia + has_cosmetic_tag = MAJ_UNIFIED + } + } + } + else = { + drop_cosmetic_tag = yes + } + } +} + +#Should remove any and all fascist foreign influence, to be updated +remove_fascist_spirits_effect = { + if = { + limit = { has_idea = fascist_influence } + remove_ideas = fascist_influence + } + if = { + limit = { has_idea = american_influence_drift_fascism } + remove_ideas = american_influence_drift_fascism + } + #if = { + # limit = { has_idea = GER_align_hungary } + # remove_ideas = GER_align_hungary + #} + #if = { + # limit = { has_idea = GER_align_romania } + # remove_ideas = GER_align_romania + #} +} + +#Should remove any and all communist foreign influence +remove_communist_spirits_effect = { + if = { + limit = { has_idea = american_influence_drift_communism } + remove_ideas = american_influence_drift_communism + } + if = { + limit = { has_idea = comintern_influence } + remove_ideas = comintern_influence + } + #if = { + # limit = { has_idea = pan_slavic_propaganda } + # remove_ideas = pan_slavic_propaganda + #} + #if = { + # limit = { has_idea = agitated_peasants } + # remove_ideas = agitated_peasants + #} + #if = { + # limit = { has_idea = armed_communist_militants } + # remove_ideas = armed_communist_militants + #} +} + + +on_daily = { + +} + +#on_daily_USA = { +# # you can specify an on daily action for a specific country +#} \ No newline at end of file diff --git a/mod/thegreatwar/common/scripted_localisation/bftb_scripted_localisation.txt b/mod/thegreatwar/common/scripted_localisation/bftb_scripted_localisation.txt new file mode 100755 index 000000000..e69de29bb diff --git a/mod/thegreatwar/common/scripted_triggers/BUL_scripted_triggers.txt b/mod/thegreatwar/common/scripted_triggers/BUL_scripted_triggers.txt new file mode 100755 index 000000000..e69de29bb diff --git a/mod/thegreatwar/common/unit_leader/00_traits.txt b/mod/thegreatwar/common/unit_leader/00_traits.txt index 15693e8ac..e403176fd 100755 --- a/mod/thegreatwar/common/unit_leader/00_traits.txt +++ b/mod/thegreatwar/common/unit_leader/00_traits.txt @@ -2307,26 +2307,26 @@ leader_traits = { } } - trait_BUL_ff_sympathizer = { - - type = all - trait_type = personality_trait - - allowed = { - FROM = { original_tag = BUL } - } - - new_commander_weight = { - factor = 1 - modifier = { - factor = 0 - OR = { - FROM = { communism < 0.05 } - FROM = { has_completed_focus = BUL_crush_the_communists } - } - } - } - } +# trait_BUL_ff_sympathizer = { +# +# type = all +# trait_type = personality_trait +# +# allowed = { +# FROM = { original_tag = BUL } +# } +# +# new_commander_weight = { +# factor = 1 +# modifier = { +# factor = 0 +# OR = { +# FROM = { communism < 0.05 } +# FROM = { has_completed_focus = BUL_crush_the_communists } +# } +# } +# } +# } trait_TUR_kemalist_champion = {