diff --git a/common/ideas/_economic.txt b/common/ideas/_economic.txt new file mode 100644 index 0000000..24c584f --- /dev/null +++ b/common/ideas/_economic.txt @@ -0,0 +1,960 @@ +ideas = { + + economy = { + law = yes + use_list_view = yes + + undisturbed_isolation = { + + + allowed = { + always = no + } + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.50 + production_speed_industrial_complex_factor = -0.5 + production_speed_arms_factory_factor = -0.5 + production_speed_dockyard_factor = -0.5 + conversion_cost_civ_to_mil_factor = 0.5 + conversion_cost_mil_to_civ_factor = 0.5 + generate_wargoal_tension = 1.00 + join_faction_tension = 0.20 + lend_lease_tension = 0.50 + send_volunteers_tension = 0.20 + guarantee_tension = 0.75 + max_fuel_factor = -0.45 + fuel_gain_factor = -0.6 + agency_upgrade_time = 1.0 + } + + allowed_to_remove = { + IF = { + limit = { + original_tag = USA + } + OR = { + has_war_support > 0.5 + has_war = yes + has_completed_focus = USA_limited_intervention + } + } + ELSE = { + OR = { + has_war_support > 0.5 + has_war = yes + } + } + } + + cancel_if_invalid = no + } + + isolation = { + + allowed = { + always = no + } + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.4 + production_speed_industrial_complex_factor = -0.4 + production_speed_arms_factory_factor = -0.4 + production_speed_dockyard_factor = -0.4 + conversion_cost_civ_to_mil_factor= 0.4 + conversion_cost_mil_to_civ_factor = 0.4 + generate_wargoal_tension = 1.00 + join_faction_tension = 0.20 + lend_lease_tension = 0.10 + send_volunteers_tension = 0.20 + guarantee_tension = 0.5 + max_fuel_factor = -0.35 + fuel_gain_factor = -0.5 + agency_upgrade_time = 0.8 + } + allowed_to_remove = { + IF = { + limit = { + original_tag = USA + } + OR = { + has_war_support > 0.75 + has_war = yes + has_completed_focus = USA_limited_intervention + } + } + ELSE = { + OR = { + has_war_support > 0.75 + has_war = yes + } + } + } + + cancel_if_invalid = no + } + + civilian_economy = { + + + cost = 150 + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.35 + production_speed_industrial_complex_factor = -0.3 + production_speed_arms_factory_factor = -0.3 + conversion_cost_civ_to_mil_factor= 0.3 + conversion_cost_mil_to_civ_factor = 0.3 + max_fuel_factor = -0.25 + fuel_gain_factor = -0.4 + } + + default = yes + + cancel_if_invalid = no + } + + low_economic_mobilisation = { + + available = { + has_war_support > 0.15 + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + has_completed_focus = USA_limited_intervention + has_defensive_war = no + } + has_war_support > 0.3 + congress_high_support_trigger = yes + } + if = { + limit = { + original_tag = TUR + has_dlc = "Battle for the Bosporus" + } + NOT = { + OR = { + has_active_mission = TUR_etatism_crisis_2 + has_active_mission = TUR_etatism_crisis_3 + has_active_mission = TUR_etatism_crisis_4 + } + } + } + } + on_add = { + if = { + limit = { + tag = USA + has_completed_focus = USA_limited_intervention + has_defensive_war = no + } + USA_congress_large_opposition = yes + } + } + + cost = 150 + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.3 + production_speed_industrial_complex_factor = -0.1 + production_speed_arms_factory_factor = -0.1 + fuel_gain_factor = -0.25 + } + + cancel_if_invalid = no + + ai_will_do = { + factor = 2 + + modifier = { + factor = 20 + + is_major = yes + } + modifier = { + has_war_support > 0.25 + factor = 0 #don't even look at it if you could be taking partial mob + } + modifier = { + tag = ENG + has_war = no + date < 1937.6.1 + factor = 0 + } + } + } + + partial_economic_mobilisation = { + + available = { + has_war_support > 0.25 + + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + OR = { + has_completed_focus = HUN_secret_rearmament + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + } + else = { + OR = { + has_completed_focus = HUN_secret_rearmament + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + } + if = { + limit = { + has_completed_focus = USA_limited_intervention + has_defensive_war = no + } + has_war_support > 0.5 + congress_high_support_trigger = yes + } + if = { + limit = { + original_tag = TUR + has_dlc = "Battle for the Bosporus" + } + NOT = { + OR = { + has_active_mission = TUR_etatism_crisis_1 + has_active_mission = TUR_etatism_crisis_3 + has_active_mission = TUR_etatism_crisis_4 + } + } + } + } + + cost = 150 + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.25 + production_speed_arms_factory_factor = 0.1 + conversion_cost_civ_to_mil_factor= -0.1 + conversion_cost_mil_to_civ_factor = -0.1 + fuel_gain_factor = -0.1 + } + + cancel_if_invalid = no + on_add = { + if = { + limit = { + tag = USA + has_completed_focus = USA_limited_intervention + has_defensive_war = no + } + USA_congress_large_opposition = yes + } + } + ai_will_do = { + factor = 2 + + modifier = { + factor = 20 + + is_major = yes + } + + modifier = { + factor = 100 + OR = { + original_tag = URG + original_tag = PAR + } + NOT = { + has_idea = war_economy + } + has_completed_focus = GUAY_coup_detat + } + } + } + + war_economy = { + + + available = { + has_war_support > 0.5 + OR = { + has_government = fascism + has_government = communism + custom_trigger_tooltip = { tooltip = or_clarification_tooltip always = no } + AND = { + has_war = yes + any_enemy_country = { + ic_ratio = { + tag = ROOT + ratio > 0.4 + } + } + } + } + + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + has_completed_focus = USA_limited_intervention + has_defensive_war = no + } + has_war_support > 0.75 + congress_high_support_trigger = yes + } + if = { + limit = { + original_tag = TUR + has_dlc = "Battle for the Bosporus" + } + NOT = { + OR = { + has_active_mission = TUR_etatism_crisis_1 + has_active_mission = TUR_etatism_crisis_2 + has_active_mission = TUR_etatism_crisis_4 + } + } + } + } + + cost = 150 + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.2 + production_speed_arms_factory_factor = 0.2 + conversion_cost_civ_to_mil_factor= -0.2 + conversion_cost_mil_to_civ_factor = -0.2 + } + + cancel_if_invalid = no + on_add = { + if = { + limit = { + tag = USA + has_completed_focus = USA_limited_intervention + has_defensive_war = no + } + USA_congress_large_opposition = yes + } + } + ai_will_do = { + factor = 3 + + modifier = { + #High prio on production + factor = 20 + manpower_per_military_factory > 1000 + } + + modifier = { + # If we CAN go for total mobilization and have enough manpower for it, skip war economy, it's only a waste of PP + factor = 0 + + manpower_per_military_factory > 15000 + has_war = yes + has_war_support > 0.8 + any_enemy_country = { + ic_ratio = { + tag = ROOT + ratio > 0.5 + } + } + } + + modifier = { + add = 1800 + + # revert from closed_economy if we have large allies + has_idea = closed_economy + has_large_ally_not_pick_closed_economy = yes + } + } + } + + tot_economic_mobilisation = { + + + available = { + has_war = yes + has_war_support > 0.8 + any_enemy_country = { + ic_ratio = { + tag = ROOT + ratio > 0.5 + } + } + + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + has_completed_focus = USA_limited_intervention + has_defensive_war = no + } + has_war_support > 0.9 + congress_high_support_trigger = yes + } + if = { + limit = { + original_tag = TUR + has_dlc = "Battle for the Bosporus" + } + NOT = { + OR = { + has_active_mission = TUR_etatism_crisis_1 + has_active_mission = TUR_etatism_crisis_2 + has_active_mission = TUR_etatism_crisis_3 + } + } + } + } + on_add = { + if = { + limit = { + tag = USA + has_completed_focus = USA_limited_intervention + has_defensive_war = no + } + USA_congress_large_opposition = yes + } + } + ai_will_do = { + factor = 1 + + modifier = { + factor = 25 + #Prio this if nation has a lot of manpower compared to MIC + manpower_per_military_factory > 15000 + } + + modifier = { + #Block unless nation has a lot of manpower + factor = 0 + manpower_per_military_factory < 10000 + } + + + modifier = { + # never take this if we are on low conscription laws for safety + factor = 0 + OR = { + has_idea = volunteer_only + has_idea = limited_conscription + } + } + + # Germany needs to be careful + modifier = { + factor = 0 + + tag = GER + NOT = { has_tech = volkssturm } + has_war = yes + date < 1944.01.01 + } + modifier = { + factor = 0 + + tag = SOV + has_war = yes + OR = { + has_manpower < 2000000 + NOT = { + OR = { + has_idea = all_adults_serve + has_idea = service_by_requirement + } + } + } + } + } + + cost = 150 + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.10 + conscription = -0.03 + production_speed_arms_factory_factor = 0.3 + conversion_cost_civ_to_mil_factor= -0.3 + conversion_cost_mil_to_civ_factor = -0.3 + } + + cancel_if_invalid = no + } + + new_economic_policy = { + + picture = new_economic_policy + + allowed = { + always = no + } + allowed_to_remove = { + OR = { + surrender_progress > 0.75 + NOT = { has_government = communism } + } + } + + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.15 + production_speed_buildings_factor = -0.15 + + } + + cancel_if_invalid = no + + ai_will_do = { + factor = 0 + } + } + new_economic_policy_2 = { + name = new_economic_policy + + picture = new_economic_policy + + allowed = { + always = no + } + allowed_to_remove = { + OR = { + surrender_progress > 0.75 + NOT = { has_government = communism } + } + } + + removal_cost = -1 + + modifier = { + consumer_goods_expected_value = 0.10 + production_speed_buildings_factor = -0.2 + global_building_slots_factor = 0.1 + } + + cancel_if_invalid = no + + ai_will_do = { + factor = 0 + } + } + } + + trade_laws = { + law = yes + use_list_view = yes + + uncontrolled_exports = { + + + allowed = { + always = no + } + removal_cost = -1 + picture = isolation + + rule = { + can_access_market = no + } + + modifier = { + min_export = 0.25 + consumer_goods_expected_value = 0.05 + civilian_intel_to_others = 40.0 + navy_intel_to_others = 40.0 + agency_upgrade_time = 0.15 + cic_construction_boost = 0.15 + } + + allowed_to_remove = { + OR = { + has_war = yes + has_completed_focus = POL_integrate_gdansk_industries + has_completed_focus = POL_expand_gdynia_seaport + NOT = { + owns_state = 85 + owns_state = 807 + } + any_owned_state = { + NOT = { + state = 85 + state = 807 + } + is_coastal = yes + } + } + } + + on_remove = { + effect_tooltip = { + remove_dynamic_modifier = { modifier = international_city } + } + hidden_effect = { + if = { + limit = { + tag = POL + 85 = { is_demilitarized_zone = no } + has_civil_war = no + } + 85 = { + if = { + limit = { + has_dynamic_modifier = { modifier = international_city } + } + remove_dynamic_modifier = { modifier = international_city } + } + } + } + } + } + + cancel_if_invalid = no + } + + free_trade = { + + available = { + if = { + limit = { + original_tag = SPR + has_dlc = "La Resistance" + } + NOT = { has_completed_focus = SPR_all_must_bear_the_torch } + } + } + + cost = 150 + removal_cost = -1 + + modifier = { + min_export = 0.8 + industrial_capacity_factory = 0.15 + industrial_capacity_dockyard = 0.15 + production_speed_buildings_factor = 0.15 + research_speed_factor = 0.10 + civilian_intel_to_others = 40.0 + navy_intel_to_others = 20.0 + cic_construction_boost_factor = 0.05 + } + + cancel_if_invalid = no + + ai_will_do = { + factor = 1 + + modifier = { + factor = 300 + + OR = { + tag = PER + tag = IRQ + } + is_in_faction = no + } + + modifier = { + factor = 300 + + tag = BRA + date > 1943.1.1 # at this point we can probably cash in on rubber lack in the world + } + + modifier = { + factor = 400 + original_tag = SWE + date > 1941.6.1 + } + + # Oil for hitlers oil throne! + modifier = { + factor = 600 + tag = ROM + is_in_faction_with = GER + } + } + } + + export_focus = { + + available = { + + if = { + limit = { + original_tag = CHI + has_dlc = "Waking the Tiger" + } + NOT = { has_idea = CHI_nine_power_treaty } + } + if = { + limit = { + original_tag = SPR + has_dlc = "La Resistance" + } + NOT = { has_completed_focus = SPR_all_must_bear_the_torch } + } + } + + + cost = 150 + removal_cost = -1 + + modifier = { + min_export = 0.5 + industrial_capacity_factory = 0.1 + industrial_capacity_dockyard = 0.1 + production_speed_buildings_factor = 0.1 + research_speed_factor = 0.05 + civilian_intel_to_others = 20.0 + navy_intel_to_others = 10.0 + cic_construction_boost_factor = 0.1 + } + + default = yes + + cancel_if_invalid = no + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + + is_major = no + has_war = no + is_in_faction = no + OR = { + # portugal and sweden are special tungsten snowflakes + tag = POR + tag = SWE + + # Iraq & Iran are special oil snowflakes + tag = PER + tag = IRQ + } + } + modifier = { + factor = 1000 + has_idea = uncontrolled_exports #Poland should try and escape this as soon as they can + } + } + } + + limited_exports = { + available = { + OR = { + AND = { + has_government = democratic + has_war = yes + any_enemy_country = { + ic_ratio = { + tag = ROOT + ratio > 0.2 + } + } + } + AND = { + NOT = { has_government = democratic } + OR = { + has_idea = partial_economic_mobilisation + has_idea = war_economy + has_idea = tot_economic_mobilisation + } + } + } + + + if = { + limit = { + original_tag = CHI + has_dlc = "Waking the Tiger" + } + NOT = { has_idea = CHI_nine_power_treaty } + } + if = { + limit = { + original_tag = SPR + has_dlc = "La Resistance" + } + NOT = { has_completed_focus = SPR_all_must_bear_the_torch } + } + } + + cost = 150 + removal_cost = -1 + + modifier = { + min_export = 0.25 + industrial_capacity_factory = 0.05 + industrial_capacity_dockyard = 0.05 + production_speed_buildings_factor = 0.05 + research_speed_factor = 0.01 + civilian_intel_to_others = 10.0 + navy_intel_to_others = 5 + lend_lease_tension = 0.20 + cic_construction_boost = -0.05 + } + + cancel_if_invalid = no + + ai_will_do = { + factor = 1 + + modifier = { + add = -1 + + is_major = no + is_in_faction = yes + has_war = yes + } + + # minors not at war should want to get the bonuses from free trade + modifier = { + add = -1 + + is_major = no + has_war = no + } + modifier = { + factor = 200 + NOT = { has_government = fascism } + NOT = { has_idea = closed_economy } + has_war = yes + is_major = yes + } + modifier = { + add = 1500 + + # revert from closed_economy if we have large allies + has_idea = closed_economy + has_large_ally_not_pick_closed_economy = yes + } + } + } + + closed_economy = { + + + available = { + has_war = yes + OR = { + has_government = fascism + has_government = communism + } + OR = { + has_idea = war_economy + has_idea = tot_economic_mobilisation + } + OR = { + NOT = { tag = SOV } + NOT = { has_opinion_modifier = MR_pact } + } + + if = { + limit = { + original_tag = CHI + has_dlc = "Waking the Tiger" + } + NOT = { has_idea = CHI_nine_power_treaty } + } + } + + rule = { + can_access_market = no + desc = can_not_access_market_closed_economy + } + + cost = 150 + removal_cost = -1 + + modifier = { + min_export = 0 + #civilian_intel_to_others = 0.0 + lend_lease_tension = 0.40 + cic_construction_boost = -0.1 + } + + cancel_if_invalid = no + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + + is_major = no + is_in_faction = yes + has_war = yes + } + + # minors not at war should want to get the bonuses from free trade + modifier = { + factor = 0 + + is_major = no + has_war = no + } + + modifier = { + factor = 0 + + # don't take if we have a reasonable sized ally + # since they will require our trades + has_large_ally_not_pick_closed_economy = yes + } + } + } + } +} diff --git a/common/ideas/_event.txt b/common/ideas/_event.txt new file mode 100644 index 0000000..a66fae6 --- /dev/null +++ b/common/ideas/_event.txt @@ -0,0 +1,245 @@ +ideas = { + hidden_ideas = { + GEN_cheaper_amphib = { + allowed = { + always = no # Triggered via tech + } + picture = generic_fascism_drift_bonus + equipment_bonus = { + amphibious_mechanized_equipment = { + build_cost_ic = -0.15 instant = yes + } + } + ai_will_do = { + factor = 0 + } + } + } + country = { + fascist_assault_divisions = { + + allowed = { + always = no # Triggered via event + } + + picture = generic_fascism_drift_bonus + + modifier = { + stability_factor = -0.05 + conscription = 0.002 + fascism_drift = 0.05 + } + + ai_will_do = { + factor = 0 + } + } + + communist_partisans_recruiting = { + + allowed = { + always = no # Triggered via event + } + + picture = generic_communism_drift_bonus + + modifier = { + conscription = -0.002 + communism_drift = 0.05 + } + + ai_will_do = { + factor = 0 + } + } + + democratic_opposition_voicing_protests = { + + allowed = { + always = no # Triggered via event + } + + picture = generic_democratic_drift_bonus + + modifier = { + political_power_factor = -0.2 + democratic_drift = 0.05 + } + + ai_will_do = { + factor = 0 + } + } + + fascist_revolutionaries = { + + removal_cost = -1 + + allowed = { + always = no # Triggered via event + } + + picture = generic_fascism_drift_bonus + + modifier = { + stability_factor = -0.1 + } + } + + communist_revolutionaries = { + + removal_cost = -1 + + allowed = { + always = no # Triggered via event + } + + picture = generic_communism_drift_bonus + + modifier = { + stability_factor = -0.1 + } + } + + democratic_revolutionaries = { + + removal_cost = -1 + + allowed = { + always = no # Triggered via event + } + + picture = generic_democratic_drift_bonus + + modifier = { + stability_factor = -0.1 + } + } + + + fascism_defeated = { + removal_cost = -1 + + allowed = { + always = no # Triggered via event + } + + picture = generic_democratic_drift_bonus + + modifier = { + stability_factor = 0.1 + } + } + + communism_defeated = { + removal_cost = -1 + + allowed = { + always = no # Triggered via event + } + + picture = generic_democratic_drift_bonus + + modifier = { + stability_factor = 0.1 + } + } + + reign_of_terror = { + removal_cost = -1 + + allowed = { + always = no # Triggered via event + } + + picture = generic_intel_bonus + + modifier = { + political_power_factor = 0.2 + stability_weekly = 0.005 + } + } + + anti_soviet_pact = { + + removal_cost = -1 # Or make removable, with high cost? + + available = { + is_subject = no + } + + allowed = { + always = no # Triggered via event + } + + ai_will_do = { + factor = 0 + } + + picture = anti_soviet_pact + } + + anti_soviet_pact_refused_call = { + + picture = generic_communism_drift_bonus + + removal_cost = -1 # Or make removable, with high cost? + + allowed = { + always = no # Triggered via event + } + + ai_will_do = { + factor = 0 + } + + modifier = { + stability_factor = -0.1 + communism_drift = 0.05 + } + } + + anti_nazi_coup = { + + allowed = { + always = no + } + removal_cost = -1 + + picture = generic_democratic_drift_bonus + + modifier = { + fascism_acceptance = -50 + } + } + + shattered_government = { + + allowed = { + always = no + } + removal_cost = -1 + + picture = generic_democratic_drift_bonus + + modifier = { + stability_factor = -0.1 + } + } + + political_turmoil = { + + allowed = { + always = no + } + removal_cost = -1 + + picture = FRA_scw_intervention_republicans_focus + + modifier = { + stability_factor = -0.1 + war_support_factor = -0.1 + } + } + } +} \ No newline at end of file diff --git a/common/ideas/_manpower.txt b/common/ideas/_manpower.txt new file mode 100644 index 0000000..a56745b --- /dev/null +++ b/common/ideas/_manpower.txt @@ -0,0 +1,1035 @@ +ideas = { + + mobilization_laws = { + law = yes + use_list_view = yes + + disarmed_nation = { + + cost = 150 + removal_cost = -1 + level = 7 + + available = { + #has_manpower_for_recruit_change_to = { value = 0.005 group = mobilization_laws } + } + + modifier = { + conscription = 0.01 + } + + cancel_if_invalid = no + } + + volunteer_only = { + + cost = 150 + removal_cost = -1 + level = 6 + + available = { + #has_manpower_for_recruit_change_to = { value = 0.015 group = mobilization_laws } + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + DEN_aat_is_subject = yes + } + NOT = { has_country_flag = DEN_had_volunteer_only_flag } + } + NOT = { has_idea = undisturbed_isolation } + NOT = { has_idea = isolation } + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 60 # being disarmed is bad in a wargame yo + has_idea = disarmed_nation + } + } + + modifier = { + conscription = 0.015 + } + + default = yes + + cancel_if_invalid = no + } + + limited_conscription = { + + cost = 150 + removal_cost = -1 + level = 5 + + available = { + #has_manpower_for_recruit_change_to = { value = 0.025 group = mobilization_laws } + has_war_support > 0.1 + NOT = { has_idea = undisturbed_isolation } + NOT = { has_idea = isolation } + if = { + limit = { + original_tag = AST + has_dlc = "Together for Victory" + } + has_completed_focus = AST_citizen_military_forces + } + if = { + limit = { + original_tag = CAN + has_dlc = "Together for Victory" + } + has_completed_focus = CAN_commit_to_the_war + } + if = { + limit = { + original_tag = RAJ + has_dlc = "Together for Victory" + } + is_subject = no + } + + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + original_tag = ENG + has_dlc = "Man the Guns" + has_completed_focus = ENG_concessions_to_the_trade_unions + } + NOT = { has_country_flag = ENG_cannot_increase_conscription_law } + } + if = { + limit = { + original_tag = SPR + has_dlc = "La Resistance" + } + NOT = { has_completed_focus = SPR_all_must_bear_the_torch } + } + if = { + limit = { + original_tag = BUL + has_dlc = "Battle for the Bosporus" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { + has_idea = BUL_army_restrictions_aat + } + } + else = { + NOT = { + has_idea = BUL_army_restrictions + } + } + } + if = { + limit = { + DEN_aat_is_subject = yes + } + NOT = { has_country_flag = DEN_cannot_increase_conscription_law } + } + } + + modifier = { + conscription = 0.025 + } + + ai_will_do = { + factor = 1 + modifier = { + # Ignore if high on manpower + factor = 0.5 + manpower_per_military_factory > 5000 + } + modifier = { + #Prio if low on manpower + factor = 20 + manpower_per_military_factory < 2000 + } + modifier = { + tag = ENG + has_idea_with_trait = military_theorist + factor = 20 + } + modifier = { + tag = ENG + AND = { + is_historical_focus_on = yes + has_game_rule = { + rule = ENG_ai_behavior + option = DEFAULT + } + } + date > 1939.1.1 + date < 1939.9.1 + has_war = no + NOT = { has_guaranteed = POL } + factor = 0 + } + modifier = { + tag = SOV + threat > 0.8 + factor = 3 + } + modifier = { + factor = 0 + NOT = { has_idea = volunteer_only } + } + } + + cancel_if_invalid = no + } + + extensive_conscription = { + + available = { + #has_manpower_for_recruit_change_to = { value = 0.05 group = mobilization_laws } + OR = { + has_government = fascism + has_government = communism + SWE_rapid_mob_manpower_law_trigger = yes + if = { + limit = { + original_tag = DEN + has_dlc = "Arms Against Tyranny" + } + has_country_leader = { + ruling_only = yes + character = DEN_christian_x + } + } + else = { + hidden_trigger = { always = no } #NEED TO HAVE AN ALWAYS AS AN END STATEMENT IF URE USING AN IF ELSE IN AN OR STATEMENT OTHERWISE THE EVALUATION BREAKS!! + } + AND = { + has_war = yes + enemies_strength_ratio > 0.5 + #any_enemy_country = { + # strength_ratio = { + # tag = ROOT + # ratio > 0.5 + # } + #} + } + + if = { + limit = { + has_dlc = "Arms Against Tyranny" + has_autonomy_state = autonomy_aat_defense_council_member + is_subject_of = SWE + } + } + else = { + hidden_trigger = { always = no } #NEED TO HAVE AN ALWAYS AS AN END STATEMENT IF URE USING AN IF ELSE IN AN OR STATEMENT OTHERWISE THE EVALUATION BREAKS!! + } + } + has_war_support > 0.2 + #Special rules AST in TFV + if = { + limit = { + original_tag = AST + has_dlc = "Together for Victory" + } + has_completed_focus = AST_citizen_military_forces + has_completed_focus = AST_fight_work_or_perish + } + if = { + limit = { + original_tag = CAN + has_dlc = "Together for Victory" + } + has_completed_focus = CAN_commit_to_the_war + has_completed_focus = CAN_if_day + } + if = { + limit = { + original_tag = RAJ + has_dlc = "Together for Victory" + } + is_subject = no + } + + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + original_tag = ENG + has_dlc = "Man the Guns" + has_completed_focus = ENG_concessions_to_the_trade_unions + } + NOT = { has_country_flag = ENG_cannot_increase_conscription_law } + } + if = { + limit = { + original_tag = SPR + has_dlc = "La Resistance" + } + NOT = { has_completed_focus = SPR_all_must_bear_the_torch } + } + if = { + limit = { + original_tag = BUL + has_dlc = "Battle for the Bosporus" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { + has_idea = BUL_army_restrictions_aat + } + } + else = { + NOT = { + has_idea = BUL_army_restrictions + } + } + } + if = { + limit = { + DEN_aat_is_subject = yes + } + NOT = { has_country_flag = DEN_cannot_increase_conscription_law } + } + + } + ai_will_do = { + factor = 1 + + modifier = { + # Ignore if high on manpower + factor = 0.5 + manpower_per_military_factory > 3000 + } + + modifier = { + #Prio if low on manpower + factor = 20 + manpower_per_military_factory < 800 + } + + modifier = { + tag = TUR + has_dlc = "Battle for the Bosporus" + factor = 50 + } + + # china relies a lot on throwing bodies at the enemy + modifier = { + factor = 3 + + original_tag = CHI + has_manpower < 300000 + } + + # soviet also relies a lot on throwing bodies at the enemy + modifier = { + factor = 3 + + original_tag = SOV + has_manpower < 300000 + } + + modifier = { + factor = 5 + + original_tag = SOV + has_war = yes + has_manpower < 1000000 + } + + modifier = { + factor = 0 + NOT = { has_idea = limited_conscription } + } + + modifier = { + factor = 100 + OR = { + original_tag = URG + original_tag = PAR + } + has_completed_focus = GUAY_coup_detat + } + + } + + cost = 150 + removal_cost = -1 + level = 4 + + modifier = { + conscription = 0.05 + #industrial_capacity_factory = -0.1 + #production_speed_buildings_factor = -0.1 + training_time_factor = 0.1 + } + + cancel_if_invalid = no + } + + service_by_requirement = { + + + available = { + #has_manpower_for_recruit_change_to = { value = 0.1 group = mobilization_laws } + OR = { + has_government = fascism + has_government = communism + SWE_rapid_mob_manpower_law_trigger = yes + AND = { + has_war = yes + enemies_strength_ratio > 0.6 + #any_enemy_country = { + # strength_ratio = { + # tag = ROOT + # ratio > 0.6 + # } + #} + } + } + OR = { + has_war_support > 0.6 + surrender_progress > 0 + } + + if = { + limit = { + original_tag = AST + has_dlc = "Together for Victory" + } + has_completed_focus = AST_citizen_military_forces + has_completed_focus = AST_fight_work_or_perish + } + + if = { + limit = { + original_tag = CAN + has_dlc = "Together for Victory" + } + OR = { + has_completed_focus = CAN_compromise_with_quebec + has_completed_focus = CAN_forced_quebec_conscription + } + } + if = { + limit = { + original_tag = RAJ + has_dlc = "Together for Victory" + } + is_subject = no + } + + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + original_tag = ENG + has_dlc = "Man the Guns" + has_completed_focus = ENG_concessions_to_the_trade_unions + } + NOT = { has_country_flag = ENG_cannot_increase_conscription_law } + } + if = { + limit = { + original_tag = SPR + has_dlc = "La Resistance" + } + NOT = { has_completed_focus = SPR_all_must_bear_the_torch } + } + if = { + limit = { + original_tag = BUL + has_dlc = "Battle for the Bosporus" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { + has_idea = BUL_army_restrictions_aat + } + } + else = { + NOT = { + has_idea = BUL_army_restrictions + } + } + } + if = { + limit = { + DEN_aat_is_subject = yes + } + NOT = { has_country_flag = DEN_cannot_increase_conscription_law } + } + } + + ai_will_do = { + factor = 1 + modifier = { + #Prio if low on manpower + factor = 20 + manpower_per_military_factory < 700 + } + modifier = { + #Lower chance if has decent amount + factor = 0.5 + manpower_per_military_factory > 1000 + } + modifier = { + #Block has plenty manpower + factor = 0 + NOT = { tag = CHI } + NOT = { tag = SOV } + manpower_per_military_factory > 3000 + } + + modifier = { # china relies a lot on throwing bodies at the enemy + factor = 3 + + original_tag = CHI + has_manpower < 200000 + } + + modifier = { + factor = 5 + + original_tag = SOV + has_manpower < 400000 + } + + modifier = { # germany needs this before russia, badly + factor = 10 + + original_tag = GER + has_manpower < 2000000 + } + + modifier = { + factor = 0 + NOT = { has_idea = extensive_conscription } + } + + modifier = { + factor = 100 + OR = { + original_tag = URG + original_tag = PAR + } + has_completed_focus = GUAY_coup_detat + } + + } + + cost = 150 + removal_cost = -1 + level = 3 + + modifier = { + conscription = 0.1 + industrial_capacity_factory = -0.1 + industrial_capacity_dockyard = -0.1 + production_speed_buildings_factor = -0.1 + training_time_factor = 0.2 + } + + cancel_if_invalid = no + } + + all_adults_serve = { + + + available = { + #has_manpower_for_recruit_change_to = { value = 0.2 group = mobilization_laws } + has_war = yes + OR = { + has_war_support > 0.7 + surrender_progress > 0 + } + enemies_strength_ratio > 0.75 + #any_enemy_country = { + # strength_ratio = { + # tag = ROOT + # ratio > 0.75 + # } + #} + + if = { + limit = { + original_tag = AST + has_dlc = "Together for Victory" + } + has_completed_focus = AST_citizen_military_forces + has_completed_focus = AST_fight_work_or_perish + } + + if = { + limit = { + original_tag = CAN + has_dlc = "Together for Victory" + } + OR = { + has_completed_focus = CAN_compromise_with_quebec + has_completed_focus = CAN_forced_quebec_conscription + } + } + if = { + limit = { + original_tag = RAJ + has_dlc = "Together for Victory" + } + is_subject = no + } + + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + original_tag = ENG + has_dlc = "Man the Guns" + has_completed_focus = ENG_concessions_to_the_trade_unions + } + NOT = { has_country_flag = ENG_cannot_increase_conscription_law } + } + if = { + limit = { + original_tag = SPR + has_dlc = "La Resistance" + } + NOT = { has_completed_focus = SPR_all_must_bear_the_torch } + } + if = { + limit = { + original_tag = BUL + has_dlc = "Battle for the Bosporus" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { + has_idea = BUL_army_restrictions_aat + } + } + else = { + NOT = { + has_idea = BUL_army_restrictions + } + } + } + if = { + limit = { + DEN_aat_is_subject = yes + } + NOT = { has_country_flag = DEN_cannot_increase_conscription_law } + } + } + + ai_will_do = { + factor = 1 + modifier = { + #Prio if low on manpower + factor = 20 + manpower_per_military_factory < 600 + } + modifier = { + #Lower chance if has decent amount + factor = 0.5 + manpower_per_military_factory > 1000 + } + modifier = { + #Block has plenty manpower + factor = 0 + NOT = { tag = CHI } + manpower_per_military_factory > 2800 + } + + modifier = { # china relies a lot on throwing bodies at the enemy + factor = 3 + + tag = CHI + has_manpower < 200000 + } + modifier = { + factor = 10 + original_tag = SOV + date > 1943.1.1 + has_manpower < 2000000 + } + + modifier = { + factor = 0 + NOT = { has_idea = service_by_requirement } + } + + } + + on_add = { + if = { + limit = { + has_dlc = "Arms Against Tyranny" + original_tag = FIN + has_completed_focus = FIN_militarized_society + NOT = { has_idea = FIN_militarized_society } + } + add_ideas = FIN_militarized_society + } + } + + cost = 150 + removal_cost = -1 + level = 2 + + modifier = { + conscription = 0.2 + industrial_capacity_factory = -0.3 + industrial_capacity_dockyard = -0.3 + production_speed_buildings_factor = -0.3 + #XP from reinforcement penalty (small) + training_time_factor = 0.3 + } + + cancel_if_invalid = no + } + + scraping_the_barrel = { + + available = { + #has_manpower_for_recruit_change_to = { value = 0.25 group = mobilization_laws } + has_war = yes + OR = { + has_war_support > 0.85 + surrender_progress > 0.25 + } + enemies_strength_ratio > 1 + #any_enemy_country = { + # strength_ratio = { + # tag = ROOT + # ratio > 1 + # } + #} + if = { + limit = { + original_tag = AST + has_dlc = "Together for Victory" + } + has_completed_focus = AST_citizen_military_forces + has_completed_focus = AST_fight_work_or_perish + } + + if = { + limit = { + original_tag = CAN + has_dlc = "Together for Victory" + } + OR = { + has_completed_focus = CAN_compromise_with_quebec + has_completed_focus = CAN_forced_quebec_conscription + } + } + if = { + limit = { + original_tag = RAJ + has_dlc = "Together for Victory" + } + is_subject = no + } + + if = { + limit = { + original_tag = HUN + has_dlc = "Death or Dishonor" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { has_idea = HUN_treaty_of_triannon_aat } + } + else = { + NOT = { has_idea = HUN_treaty_of_triannon } + } + } + if = { + limit = { + original_tag = ENG + has_dlc = "Man the Guns" + has_completed_focus = ENG_concessions_to_the_trade_unions + } + NOT = { has_country_flag = ENG_cannot_increase_conscription_law } + } + if = { + limit = { + original_tag = SPR + has_dlc = "La Resistance" + } + NOT = { has_completed_focus = SPR_all_must_bear_the_torch } + } + if = { + limit = { + original_tag = BUL + has_dlc = "Battle for the Bosporus" + } + if = { + limit = { + has_dlc = "Arms Against Tyranny" + } + NOT = { + has_idea = BUL_army_restrictions_aat + } + } + else = { + NOT = { + has_idea = BUL_army_restrictions + } + } + } + if = { + limit = { + DEN_aat_is_subject = yes + } + NOT = { has_country_flag = DEN_cannot_increase_conscription_law } + } + } + + ai_will_do = { + factor = 1 + modifier = { + #Prio if low on manpower + factor = 20 + manpower_per_military_factory < 500 + } + modifier = { + #Lower chance if has decent amount + factor = 0.5 + manpower_per_military_factory > 1000 + } + modifier = { + #Block has plenty manpower + factor = 0 + manpower_per_military_factory > 5000 + } + + modifier = { + factor = 0 + NOT = { has_idea = all_adults_serve } + } + + } + + on_add = { + if = { + limit = { + has_dlc = "Arms Against Tyranny" + original_tag = FIN + has_completed_focus = FIN_militarized_society + NOT = { has_idea = FIN_militarized_society } + } + add_ideas = FIN_militarized_society + } + } + + cost = 150 + removal_cost = -1 + level = 1 + + modifier = { + conscription = 0.25 + industrial_capacity_factory = -0.4 + industrial_capacity_dockyard = -0.4 + production_speed_buildings_factor = -0.4 + training_time_factor = 0.5 + } + + cancel_if_invalid = no + } + + ### Ethiopian National Levy + ETH_chitet_law = { + picture = ETH_chitet_law + cost = 150 + removal_cost = -1 + level = 6 + + allowed = { + always = no + } + allowed_to_remove = { + always = no + } + + ai_will_do = { + factor = 0 + } + + modifier = { + conscription = 0.045 + custom_modifier_tooltip = ETH_chitet_law_tt + industrial_capacity_factory = -0.05 + industrial_capacity_dockyard = -0.05 + production_speed_buildings_factor = -0.05 + } + + default = yes + + cancel_if_invalid = no + } + ETH_chitet_law_peace_time = { + picture = ETH_chitet_law + + cost = 150 + removal_cost = -1 + level = 6 + + allowed = { + always = no + } + allowed_to_remove = { + always = no + } + + ai_will_do = { + factor = 0 + } + + modifier = { + conscription = 0.005 + custom_modifier_tooltip = ETH_chitet_law_tt + industrial_capacity_factory = 0.05 + industrial_capacity_dockyard = 0.05 + production_speed_buildings_factor = 0.05 + } + + default = yes + + cancel_if_invalid = no + } + + ### Swiss Citizen Militia ### + + SWI_citizen_militia_1 = { + cost = 200 + picture = citizen_militia_1 + removal_cost = -1 + level = 6 + + allowed = { + always = no + } + allowed_to_remove = { + has_completed_focus = SWI_professionalize_militias + has_completed_focus = SWI_join_the_allies + has_completed_focus = SWI_join_france + has_completed_focus = SWI_jump_into_action + } + ai_will_do = { + factor = 0 + } + + modifier = { + conscription = 0.1 + custom_modifier_tooltip = SWI_army_limitations_TT + ai_desired_divisions_factor = 1 + } + } + + SWI_citizen_militia_2 = { + picture = citizen_militia_2 + cost = 200 + removal_cost = -1 + level = 6 + + allowed = { + always = no + } + allowed_to_remove = { + has_completed_focus = SWI_professionalize_militias + has_completed_focus = SWI_join_the_allies + has_completed_focus = SWI_join_france + has_completed_focus = SWI_jump_into_action + } + ai_will_do = { + factor = 0 + } + + modifier = { + conscription = 0.2 + custom_modifier_tooltip = SWI_army_limitations_TT + ai_desired_divisions_factor = 2 + } + } + } + + +} diff --git a/common/national_focus/NDL.txt b/common/national_focus/NDL.txt new file mode 100644 index 0000000..b3c4ed4 --- /dev/null +++ b/common/national_focus/NDL.txt @@ -0,0 +1,196 @@ +### search_filters = {FOCUS_FILTER_POLITICAL} +### search_filters = {FOCUS_FILTER_RESEARCH} +### search_filters = {FOCUS_FILTER_INDUSTRY} +### search_filters = {FOCUS_FILTER_STABILITY} +### search_filters = {FOCUS_FILTER_WAR_SUPPORT} +### search_filters = {FOCUS_FILTER_MANPOWER} +### search_filters = {FOCUS_FILTER_ANNEXATION} + +focus_tree = { + id = nederland_focus + + country = { + factor = 0 + modifier = { + add = 20 + original_tag = NDL + } + } + + default = no + + continuous_focus_position = { x = 50 y = 1500 } + + + focus = { + id = NDL_praise_the_throne + + icon = GFX_focus_generic_monarchy_1 + x = 8 + y = 0 + cost = 5 + + available_if_capitulated = no + + completion_reward = { + add_popularity = { + ideology = monarchism + popularity = 0.15 + } + } + } + + focus = { + id = NDL_begin_colonialist_policies + + icon = GFX_focus_generic_merchant_fleet + x = 6 + y = 2 + cost = 10 + + prerequisite = {focus = NDL_praise_the_throne} + available_if_capitulated = no + + completion_reward = { + random_core_state = { + prioritize = { 624 } + limit = { + is_fully_controlled_by = ROOT + } + add_extra_state_shared_building_slots = 2 + add_building_construction = { + type = dockyard + level = 2 + instant_build = yes + } + } + } + + } + + focus = { + id = NDL_claim_the_shetland_islands + + icon = GFX_focus_ICE_securing_the_north_sea_passage + x = 6 + y = 3 + cost = 10 + + prerequisite = {focus = NDL_begin_colonialist_policies} + available_if_capitulated = no + + completion_reward = { + add_state_core = 183 + transfer_state = 183 + } + + } + + focus = { + id = NDL_expand_shetland_infrastructure + + icon = GFX_focus_generic_industry_1 + x = 6 + y = 4 + cost = 5 + + prerequisite = {focus = NDL_claim_the_shetland_islands} + available_if_capitulated = no + + completion_reward = { + 183 = { + limit = { + is_fully_controlled_by = ROOT + } + add_extra_state_shared_building_slots = 2 + add_building_construction = { + type = infrastructure + level = 1 + instant_build = yes + } + } + } + + } + + focus = { + id = NDL_expand_shetland_infrastructure_2 + + icon = GFX_focus_generic_industry_2 + x = 6 + y = 5 + cost = 5 + + prerequisite = {focus = NDL_expand_shetland_infrastructure} + available_if_capitulated = no + + completion_reward = { + 183 = { + limit = { + is_fully_controlled_by = ROOT + } + add_building_construction = { + type = infrastructure + level = 2 + instant_build = yes + } + } + } + + } + + focus = { + id = NDL_expand_shetland_infrastructure_3 + + icon = GFX_focus_generic_industry_3 + x = 6 + y = 6 + cost = 10 + + prerequisite = {focus = NDL_expand_shetland_infrastructure_2} + available_if_capitulated = no + + completion_reward = { + 183 = { + limit = { + is_fully_controlled_by = ROOT + } + add_building_construction = { + type = industrial_complex + level = 2 + instant_build = yes + } + } + } + + } + + focus = { + id = NDL_expand_industry + + icon = GFX_focus_generic_industry_1 + x = 10 + y = 2 + cost = 10 + + prerequisite = {focus = NDL_praise_the_throne} + available_if_capitulated = no + + completion_reward = { + 183 = { + limit = { + is_fully_controlled_by = ROOT + } + add_extra_state_shared_building_slots = 2 + add_building_construction = { + type = industrial_complex + level = 2 + instant_build = yes + } + } + } + + } + + +} diff --git a/common/national_focus/nederland.txt b/common/national_focus/nederland.txt deleted file mode 100755 index adb708f..0000000 --- a/common/national_focus/nederland.txt +++ /dev/null @@ -1,47 +0,0 @@ -### search_filters = {FOCUS_FILTER_POLITICAL} -### search_filters = {FOCUS_FILTER_RESEARCH} -### search_filters = {FOCUS_FILTER_INDUSTRY} -### search_filters = {FOCUS_FILTER_STABILITY} -### search_filters = {FOCUS_FILTER_WAR_SUPPORT} -### search_filters = {FOCUS_FILTER_MANPOWER} -### search_filters = {FOCUS_FILTER_ANNEXATION} - -focus_tree = { - id = nederland_focus - - country = { - factor = 0 - } - - default = no - - continuous_focus_position = { x = 50 y = 1500 } - - - focus = { - id = NDL_expand_utrecht_industry - - icon = GFX_goal_generic_construct_infrastructure - x = 3 - y = 0 - cost = 10 - - available_if_capitulated = no - - completion_reward = { - add_building_construction = { - type = infrastructure - level = 1 - instant_build = yes - } - add_extra_state_shared_building_slots = 1 - add_building_construction = { - type = industrial_complex - level = 1 - instant_build = yes - } - } - } - - -} diff --git a/history/countries/NDL - Nederland.txt b/history/countries/NDL - Nederland.txt index d5d52c4..770d658 100644 --- a/history/countries/NDL - Nederland.txt +++ b/history/countries/NDL - Nederland.txt @@ -8,7 +8,10 @@ set_politics = { } set_popularities = { - monarchism = 100 + monarchism = 70 + democratic = 10 + communism = 10 + neutrality = 10 } create_country_leader = { diff --git a/history/states/13-State_13.txt b/history/states/13-State_13.txt index a080f2b..e0f1ca1 100644 --- a/history/states/13-State_13.txt +++ b/history/states/13-State_13.txt @@ -1,9 +1,7 @@ state={ id=13 name="STATE_13" - provinces={ - 2754 - } + provinces={} buildings_max_level_factor=1.000 manpower=1000 state_category = rural diff --git a/history/states/181-State_181.txt b/history/states/181-State_181.txt index 5c89e53..c46fce7 100644 --- a/history/states/181-State_181.txt +++ b/history/states/181-State_181.txt @@ -1,9 +1,7 @@ state={ id=181 name="STATE_181" - provinces={ - 19 8685 - } + provinces={} buildings_max_level_factor=1.000 manpower=1000 state_category = rural diff --git a/history/states/183-State_183.txt b/history/states/183-State_183.txt index a1f8d5a..270cb50 100644 --- a/history/states/183-State_183.txt +++ b/history/states/183-State_183.txt @@ -2,7 +2,7 @@ state={ id=183 name="STATE_183" provinces={ - 2813 8606 8634 8658 8696 8732 8761 + 2813 8606 8634 8658 8696 8732 8761 2754 8685 19 } buildings_max_level_factor=1.000 manpower=1000