From fa447f1f629228a32d91222652bb2c79ea9cf396 Mon Sep 17 00:00:00 2001 From: cetvrtak <59363714+cetvrtak@users.noreply.github.com> Date: Mon, 27 Nov 2023 15:07:51 +0100 Subject: [PATCH 1/2] Finish cleaning up the error log --- data/blank_mod/common/bop/DEN.txt | 0 data/blank_mod/common/bop/FIN.txt | 0 data/blank_mod/common/bop/SWE.txt | 0 .../aat_dynamic_modifiers.txt | 293 ------------------ .../policies/_general_policies.txt | 75 +++++ .../common/on_actions/09_aat_on_actions.txt | 128 ++++++++ .../scripted_effects/DEN_scripted_effects.txt | 0 .../scripted_effects/FIN_scripted_effects.txt | 0 .../scripted_effects/GER_scripted_effects.txt | 0 .../NORDIC_scripted_effects.txt | 0 .../scripted_effects/NOR_scripted_effects.txt | 0 .../scripted_effects/SWE_scripted_effects.txt | 0 .../AAT_Denmark_scripted_loc.txt | 0 .../AAT_Iceland_scripted_loc.txt | 0 .../AAT_Nordics_scripted_loc.txt | 0 .../AAT_Norway_scripted_loc.txt | 0 .../AAT_Sweden_scripted_loc.txt | 0 .../AAT_finland_scripted_loc.txt | 0 .../DEN_scripted_triggers.txt | 0 .../FIN_scripted_triggers.txt | 0 .../ICE_scripted_triggers.txt | 0 .../NORDIC_scripted_triggers.txt | 0 .../NOR_scripted_triggers.txt | 0 .../SWE_scripted_triggers.txt | 0 data/configurables/cultureGroupToGraphics.txt | 2 +- 25 files changed, 204 insertions(+), 294 deletions(-) create mode 100644 data/blank_mod/common/bop/DEN.txt create mode 100644 data/blank_mod/common/bop/FIN.txt create mode 100644 data/blank_mod/common/bop/SWE.txt create mode 100644 data/blank_mod/common/military_industrial_organization/policies/_general_policies.txt create mode 100644 data/blank_mod/common/on_actions/09_aat_on_actions.txt create mode 100644 data/blank_mod/common/scripted_effects/DEN_scripted_effects.txt create mode 100644 data/blank_mod/common/scripted_effects/FIN_scripted_effects.txt create mode 100644 data/blank_mod/common/scripted_effects/GER_scripted_effects.txt create mode 100644 data/blank_mod/common/scripted_effects/NORDIC_scripted_effects.txt create mode 100644 data/blank_mod/common/scripted_effects/NOR_scripted_effects.txt create mode 100644 data/blank_mod/common/scripted_effects/SWE_scripted_effects.txt create mode 100644 data/blank_mod/common/scripted_localisation/AAT_Denmark_scripted_loc.txt create mode 100644 data/blank_mod/common/scripted_localisation/AAT_Iceland_scripted_loc.txt create mode 100644 data/blank_mod/common/scripted_localisation/AAT_Nordics_scripted_loc.txt create mode 100644 data/blank_mod/common/scripted_localisation/AAT_Norway_scripted_loc.txt create mode 100644 data/blank_mod/common/scripted_localisation/AAT_Sweden_scripted_loc.txt create mode 100644 data/blank_mod/common/scripted_localisation/AAT_finland_scripted_loc.txt create mode 100644 data/blank_mod/common/scripted_triggers/DEN_scripted_triggers.txt create mode 100644 data/blank_mod/common/scripted_triggers/FIN_scripted_triggers.txt create mode 100644 data/blank_mod/common/scripted_triggers/ICE_scripted_triggers.txt create mode 100644 data/blank_mod/common/scripted_triggers/NORDIC_scripted_triggers.txt create mode 100644 data/blank_mod/common/scripted_triggers/NOR_scripted_triggers.txt create mode 100644 data/blank_mod/common/scripted_triggers/SWE_scripted_triggers.txt diff --git a/data/blank_mod/common/bop/DEN.txt b/data/blank_mod/common/bop/DEN.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/bop/FIN.txt b/data/blank_mod/common/bop/FIN.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/bop/SWE.txt b/data/blank_mod/common/bop/SWE.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/dynamic_modifiers/aat_dynamic_modifiers.txt b/data/blank_mod/common/dynamic_modifiers/aat_dynamic_modifiers.txt index 47996c8988..5f9f733c47 100644 --- a/data/blank_mod/common/dynamic_modifiers/aat_dynamic_modifiers.txt +++ b/data/blank_mod/common/dynamic_modifiers/aat_dynamic_modifiers.txt @@ -118,57 +118,6 @@ NOR_defend_state_dmod = { #Added when deploying Level 1 Prep pocket_penalty = -0.25 } - ### Fascist ### - -NOR_prep_fasc_dmod_1 = { - enable = { - always = yes - } - remove_trigger = { - NOR_prep_fasc_mod_remove_trigger = yes - } - icon = GFX_modifiers_NOR_fascism - # Positive - recruitable_population_factor = 0.05 - # Negative - state_production_speed_buildings_factor = -0.15 - local_factories = NOR_prep_fasc_dmod_factories #-0.2 - local_supplies = NOR_prep_fasc_dmod_local_supplies #-0.15 - -} - -NOR_prep_fasc_dmod_2 = { - enable = { - always = yes - } - remove_trigger = { - NOR_prep_fasc_mod_remove_trigger = yes - } - icon = GFX_modifiers_NOR_fascism - # Positive - recruitable_population_factor = 0.05 - # Negative - state_production_speed_buildings_factor = -0.15 - local_factories = NOR_prep_fasc_dmod_factories #-0.15 - local_supplies = NOR_prep_fasc_dmod_local_supplies #-0.15 -} - -NOR_prep_fasc_dmod_3 = { - enable = { - always = yes - } - remove_trigger = { - NOR_prep_fasc_mod_remove_trigger = yes - } - icon = GFX_modifiers_NOR_fascism - # Positive - recruitable_population_factor = 0.05 - # Negative - state_production_speed_buildings_factor = -0.15 - local_factories = NOR_prep_fasc_dmod_factories #-0.12 - local_supplies = NOR_prep_fasc_dmod_local_supplies #-0.15 -} - #### Monarchist ##### NOR_royal_defenses = { enable = { @@ -191,97 +140,6 @@ NOR_royal_defenses = { ### Country Modifiers ### -NOR_independent_norway_dmod = { # Added at the start of the Civilian Industrial branch and improved throughout it - enable = { - NOR_AAT = yes - } - - remove_trigger = { - NOR = { is_subject = yes } - } - - icon = GFX_idea_generic_morale_bonus - - political_power_factor = 0.1 # Making this one a number so I don't need to make a tooltip just for this. - consumer_goods_factor = NOR.NOR_independent_norway_dmod_consumer_goods_factor #-0.1 - production_speed_industrial_complex_factor = NOR.NOR_independent_norway_dmod_production_speed_industrial_complex_factor #0.15 then 0.30 - production_speed_infrastructure_factor = NOR.NOR_independent_norway_dmod_production_speed_infrastructure_factor #0.2 - research_speed_factor = NOR.NOR_independent_norway_dmod_research_speed_factor #0.05 then 0.1 - production_speed_supply_node_factor = NOR.NOR_independent_norway_dmod_production_speed_supply_node #0.15 - army_org_factor = NOR.NOR_independent_norway_dmod_army_org_factor #0.15 (A New Norway Focus) - navy_org_factor = NOR.NOR_independent_norway_dmod_navy_org_factor #0.1 (A New Norway Focus) - war_stability_factor = NOR.NOR_independent_norway_dmod_war_stability_factor #0.2 (A New Norway Focus) - war_support_factor = NOR.NOR_independent_norway_dmod_war_support_factor #0.15 (A New Norway Focus) -} - -NOR_army_air_force_dmod = { # Remeber to copy any change to the royal version. - enable = { - NOR_AAT = yes - } - - icon = GFX_idea_air_support_focus - - air_mission_efficiency = 0.1 # Starting bonus - air_mission_xp_gain_factor = 0.12 # Starting bonus - license_air_purchase_cost = NOR.NOR_army_air_force_dmod_license_air_purchase_cost #-0.4 - production_speed_air_base_factor = NOR.NOR_army_air_force_dmod_production_speed_air_base_factor #0.45 - production_speed_anti_air_building_factor = NOR.NOR_army_air_force_dmod_production_speed_anti_air_building_factor #0.25 - air_doctrine_cost_factor = NOR.NOR_army_air_force_dmod_air_doctrine_cost_factor #-0.1 then -0.2 - air_ace_bonuses_factor = NOR.NOR_army_air_force_dmod_air_ace_bonuses_factor #0.15 - air_ace_generation_chance_factor = NOR.NOR_army_air_force_dmod_air_ace_generation_chance_factor # 0.25 - air_attack_factor = NOR.NOR_army_air_force_dmod_air_attack_factor #0.1 - air_defence_factor = NOR.NOR_army_air_force_dmod_air_defence_factor #0.1 - air_nav_efficiency = NOR.NOR_army_air_force_dmod_air_nav_efficiency #0.25 -} - -NOR_royal_air_force_dmod = { #This is a duplicate of the army arforce one right above so we can change name - - icon = GFX_idea_NOR_luftforsvaret_ns - - enable = { - NOR_AAT = yes - } - - icon = GFX_idea_NOR_luftforsvaret_ns - - air_mission_efficiency = 0.1 # Starting bonus - air_mission_xp_gain_factor = 0.12 # Starting bonus - license_air_purchase_cost = NOR.NOR_army_air_force_dmod_license_air_purchase_cost #-0.4 - production_speed_air_base_factor = NOR.NOR_army_air_force_dmod_production_speed_air_base_factor #0.45 - production_speed_anti_air_building_factor = NOR.NOR_army_air_force_dmod_production_speed_anti_air_building_factor #0.25 - air_doctrine_cost_factor = NOR.NOR_army_air_force_dmod_air_doctrine_cost_factor #-0.1 then -0.2 - air_ace_bonuses_factor = NOR.NOR_army_air_force_dmod_air_ace_bonuses_factor #0.15 - air_ace_generation_chance_factor = NOR.NOR_army_air_force_dmod_air_ace_generation_chance_factor # 0.25 - air_attack_factor = NOR.NOR_army_air_force_dmod_air_attack_factor #0.1 - air_defence_factor = NOR.NOR_army_air_force_dmod_air_defence_factor #0.1 - air_nav_efficiency = NOR.NOR_army_air_force_dmod_air_nav_efficiency #0.25 -} - -NOR_royal_navy_dmod = { - - icon = GFX_idea_NOR_royal_navy_dmod - - enable = { - NOR_AAT = yes - } - - icon = GFX_idea_NOR_royal_navy_dmod - - naval_coordination = 0.1 # Starting bonus - naval_morale_factor = 0.1 # Starting bonus - industrial_capacity_dockyard = NOR.NOR_royal_navy_dmod_industrial_capacity_dockyard - convoy_escort_efficiency = NOR.NOR_royal_navy_dmod_convoy_escort_efficiency #0.3 - naval_strike_attack_factor = NOR.NOR_royal_navy_dmod_naval_strike_attack_factor #0.25 - naval_strike_targetting_factor = NOR.NOR_royal_navy_dmod_naval_strike_targetting_factor #0.2 - spotting_chance = NOR.NOR_royal_navy_dmod_spotting_chance # 0.25 - sortie_efficiency = NOR.NOR_royal_navy_dmod_sortie_efficiency #0.2 - mines_planting_by_fleets_factor = NOR.NOR_royal_navy_dmod_mines_planting_by_fleets_factor # 0.35 - naval_torpedo_reveal_chance_factor = NOR.NOR_royal_navy_dmod_naval_torpedo_reveal_chance_factor # 0.3 - naval_doctrine_cost_factor = NOR.NOR_royal_navy_dmod_naval_doctrine_cost_factor # -0.15 - experience_gain_navy = NOR.NOR_royal_navy_dmod_experience_gain_navy # 0.12 - convoy_retreat_speed = NOR.NOR_royal_navy_dmod_convoy_retreat_speed # 0.2 -} - SF_PARA_dispersed_drop = { enable = { always = yes } icon = GFX_idea_generic_air_bonus @@ -1086,155 +944,4 @@ NORDIC_military_industry_hub_member_dmod = { icon = GFX_modifiers_generic_military_industry production_speed_arms_factory_factor = 0.2 -} - -############################ -#### COUNTRY MODIFIERS ##### -############################ - -NORDIC_airforces_originator_dmod = { - enable = { always = yes } - icon = GFX_idea_generic_air_bonus - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - experience_gain_air = 0.2 - air_cas_present_factor = NORDIC_airforces_originator_dmod_cas_factor #0.25 - air_strategic_bomber_bombing_factor = NORDIC_airforces_originator_dmod_strat_bombing_factor #0.35 - air_intercept_efficiency = NORDIC_airforces_originator_dmod_intercept_efficiency #0.25 - air_superiority_efficiency = NORDIC_airforces_originator_dmod_superiority_efficiency #0.25 - air_range_factor = NORDIC_airforces_originator_dmod_range_factor # 0.3 - production_speed_air_base_factor = NORDIC_airforces_originator_dmod_air_base_production # 0.3 - air_accidents_factor = NORDIC_airforces_originator_dmod_air_accidents_factor # -0.4 - custom_modifier_tooltip = NORDIC_airforces_dmod_production_cost_TT - custom_modifier_tooltip = NORDIC_airforces_dmod_naval_TT -} - -NORDIC_airforces_member_dmod = { - enable = { always = yes } - icon = GFX_idea_generic_air_bonus - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - experience_gain_air = 0.1 - air_cas_present_factor = NORDIC_airforces_member_dmod_cas_factor #0.15 - air_strategic_bomber_bombing_factor = NORDIC_airforces_member_dmod_strat_bombing_factor #0.2 - air_intercept_efficiency = NORDIC_airforces_member_dmod_intercept_efficiency #0.15 - air_superiority_efficiency = NORDIC_airforces_member_dmod_superiority_efficiency #0.15 - air_range_factor = NORDIC_airforces_member_dmod_range_factor # 0.2 - production_speed_air_base_factor = NORDIC_airforces_member_dmod_air_base_production # 0.2 - air_accidents_factor = NORDIC_airforces_member_dmod_air_accidents_factor # -0.25 - custom_modifier_tooltip = NORDIC_airforces_dmod_production_cost_TT # 0.15 - custom_modifier_tooltip = NORDIC_airforces_dmod_naval_TT #0.2 -} - -NORDIC_navy_originator_dmod = { - enable = { always = yes } - icon = GFX_idea_generic_navy_bonus - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - experience_gain_navy = 0.2 - naval_doctrine_cost_factor = NORDIC_navy_originator_dmod_naval_doctrine_cost_factor #-0.10 - repair_speed_factor = NORDIC_navy_originator_dmod_naval_repair_speed_factor # 0.35 - navy_leader_cost_factor = NORDIC_navy_originator_dmod_navy_leader_cost_factor # - 0.30 -} - -NORDIC_navy_member_dmod = { - enable = { always = yes } - icon = GFX_idea_generic_navy_bonus - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - experience_gain_navy = 0.1 - naval_doctrine_cost_factor = NORDIC_navy_member_dmod_naval_doctrine_cost_factor # -0.075 - repair_speed_factor = NORDIC_navy_member_dmod_naval_repair_speed_factor # 0.25 - navy_leader_cost_factor = NORDIC_navy_member_dmod_navy_leader_cost_factor # -0.2 -} - -NORDIC_mil_industry_originator_dmod = { - enable = { always = yes } - icon = GFX_idea_generic_production_bonus - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - production_factory_max_efficiency_factor = 0.1 - production_speed_arms_factory_factor = NORDIC_mil_industry_originator_production_speed_arms_factory_factor # 0.15 - production_factory_efficiency_gain_factor = NORDIC_mil_industry_originator_dmod_efficiency_gain_factor # 0.2 - equipment_conversion_speed = NORDIC_mil_industry_originator_dmod_equipment_conversion_speed # 0.25 - production_factory_start_efficiency_factor = NORDIC_mil_industry_originator_dmod_start_efficiency_factor # 0.2 -} - -NORDIC_mil_industry_member_dmod = { - enable = { always = yes } - icon = GFX_idea_generic_production_bonus - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - production_factory_max_efficiency_factor = 0.1 - production_speed_arms_factory_factor = NORDIC_mil_industry_member_production_speed_arms_factory_factor # 0.1 - production_factory_efficiency_gain_factor = NORDIC_mil_industry_member_dmod_efficiency_gain_factor # 0.1 - equipment_conversion_speed = NORDIC_mil_industry_member_dmod_equipment_conversion_speed # 0.15 - production_factory_start_efficiency_factor = NORDIC_mil_industry_member_dmod_start_efficiency_factor # 0.1 -} - - -NORDIC_democratic_alliance_leader_dmod = { - enable = { always = yes } - icon = GFX_idea_NORDIC_nordic_council - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - democratic_drift = 0.025 - production_speed_buildings_factor = 0.15 - consumer_goods_factor = 0.2 - research_speed_factor = NORDIC_democratic_alliance_leader_dmod_research # 0.075 - training_time_factor = NORDIC_democratic_alliance_leader_dmod_training_time # 0.12 - production_factory_start_efficiency_factor = NORDIC_democratic_alliance_leader_dmod_prod_eff_start # 0.2 - war_support_factor = NORDIC_democratic_alliance_leader_dmod_war_support # -0.15 -} - -NORDIC_democratic_alliance_member_dmod = { - enable = { always = yes } - icon = GFX_idea_NORDIC_nordic_council - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - democratic_drift = 0.015 - production_speed_buildings_factor = 0.10 - consumer_goods_factor = 0.12 - research_speed_factor = NORDIC_democratic_alliance_member_dmod_research # 0.05 - training_time_factor = NORDIC_democratic_alliance_member_dmod_training_time # 0.08 - production_factory_start_efficiency_factor = NORDIC_democratic_alliance_member_dmod_prod_eff_start # 0.15 - war_support_factor = NORDIC_democratic_alliance_member_dmod_war_support # -0.1 -} - -NORDIC_communist_alliance_leader_dmod = { - enable = { always = yes } - icon = GFX_idea_NORDIC_northern_union - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - communism_drift = 0.025 - weekly_manpower = 350 - dig_in_speed_factor = -0.15 - production_factory_max_efficiency_factor = NORDIC_communist_alliance_leader_dmod_max_eff # 0.15 - max_planning_factor = NORDIC_communist_alliance_leader_dmod_max_planning # -0.1 - research_speed_factor = NORDIC_communist_alliance_leader_dmod_research # 0.075 - production_lack_of_resource_penalty_factor = NORDIC_communist_alliance_leader_dmod_resource_penalty # 0.1 -} - -NORDIC_communist_alliance_member_dmod = { - enable = { always = yes } - icon = GFX_idea_NORDIC_northern_union - - remove_trigger = { NORDIC_basic_joint_trigger = no } - - communism_drift = 0.015 - weekly_manpower = 200 - dig_in_speed_factor = -0.10 - production_factory_max_efficiency_factor = NORDIC_democratic_alliance_member_dmod_max_eff # 0.1 - max_planning_factor = NORDIC_communist_alliance_member_dmod_max_planning # -0.08 - research_speed_factor = NORDIC_communist_alliance_member_dmod_research # 0.05 - production_lack_of_resource_penalty_factor = NORDIC_communist_alliance_member_dmod_resource_penalty # 0.06 } \ No newline at end of file diff --git a/data/blank_mod/common/military_industrial_organization/policies/_general_policies.txt b/data/blank_mod/common/military_industrial_organization/policies/_general_policies.txt new file mode 100644 index 0000000000..a59a0d4033 --- /dev/null +++ b/data/blank_mod/common/military_industrial_organization/policies/_general_policies.txt @@ -0,0 +1,75 @@ +mio_policy_general_ruthless_contracts = { + icon = GFX_mio_policy_ruthless_contracts + allowed = { always = yes } + available = { has_mio_size > 5} + organization_modifier = { + military_industrial_organization_funds_gain = 0.1 + } +} + +mio_policy_general_assembly_line_optimisers = { + icon = GFX_mio_policy_assembly_line_optimisers + allowed = { + OR = { + has_mio_equipment_type = small_plane_airframe + has_mio_equipment_type = medium_plane_airframe + has_mio_equipment_type = large_plane_airframe + has_mio_equipment_type = small_plane_cas_airframe + has_mio_equipment_type = small_plane_naval_bomber_airframe + has_mio_equipment_type = medium_plane_fighter_airframe + has_mio_equipment_type = medium_plane_scout_plane_airframe + has_mio_equipment_type = large_plane_maritime_patrol_plane_airframe + has_mio_equipment_type = armor + has_mio_equipment_type = motorized + has_mio_equipment_type = mechanized + has_mio_equipment_type = anti_tank + has_mio_equipment_type = flame + has_mio_equipment_type = anti_air + has_mio_equipment_type = artillery + has_mio_equipment_type = rocket + has_mio_equipment_type = infantry + has_mio_equipment_type = railway_gun + has_mio_equipment_type = train + } + } + available = { has_mio_size > 5} + production_bonus = { + same_as_mio = { + production_efficiency_cap_factor = 0.05 + production_efficiency_gain_factor = 0.05 + } + } +} + +mio_policy_general_vertical_integration = { + icon = GFX_mio_policy_vertical_integration + allowed = { always = yes } + available = { has_mio_size > 5} + production_bonus = { + same_as_mio = { + production_resource_need_factor = -0.1 + production_resource_penalty_factor = 0.1 + } + } +} + +mio_policy_general_mechanical_genius = { + icon = GFX_mio_policy_mechanical_genius + allowed = { always = yes } + available = { has_mio_size > 5} + equipment_bonus = { + same_as_mio = { + reliability = 0.1 + } + } +} + +mio_policy_general_experimental_development_teams = { + icon = GFX_mio_policy_experimental_development_teams + allowed = { always = yes } + available = { has_mio_size > 5} + organization_modifier = { + military_industrial_organization_research_bonus = 0.2 + } +} + diff --git a/data/blank_mod/common/on_actions/09_aat_on_actions.txt b/data/blank_mod/common/on_actions/09_aat_on_actions.txt new file mode 100644 index 0000000000..175e0d59a4 --- /dev/null +++ b/data/blank_mod/common/on_actions/09_aat_on_actions.txt @@ -0,0 +1,128 @@ + +on_actions = { + + #### MIO on actions + # ROOT is MIO + on_mio_size_increased = {} + # NB : all the following also exist at MIO level + # use on-action here if the purpose is to execute for any MIO + # use on-action at MIO level to execute just for one precise MIO + # i.e. don't use this here : if = { limit = { is_military_industrial_organisation = ... } } } + on_mio_design_team_assigned_to_tech = {} + on_mio_design_team_assigned_to_variant = {} + on_mio_industrial_manufacturer_assigned = {} + on_mio_tech_research_cancelled = {} + on_mio_tech_research_completed = {} + on_mio_industrial_manufacturer_unassigned = {} + + + #Not run on a specific country. + on_startup = { + #SET UP MIO SIZE IN 1939 BOOKMARK + effect = { + if = { + limit = { + has_dlc = "Arms Against Tyranny" + date > 1939.01.01 #1939 Bookmark + } + every_country = { + limit = { + is_major = yes + } + every_military_industrial_organization = { + add_mio_size = 4 + } + } + every_country = { + limit = { + is_major = no + } + every_military_industrial_organization = { + add_mio_size = 3 + } + } + } + } + } + + on_new_term_election = { + random_events = { + } + } + + #ROOT is capitulated country, FROM is winner. + on_capitulation_immediate = { + } + + # ROOT is capitulated country, FROM is winner + on_capitulation = { + } + + ##ROOT is affected country + on_uncapitulation = { + } + + # FROM is the country that is hosting the government in exile. + # ROOT is the government in exile + on_government_exiled = { + } + + #Root is exile + #From is old host + on_exile_government_reinstated = { + } + + on_create_faction = { + } + + on_liberate = { + } + #ROOT is the nation being released, FROM is the overlord + on_release_as_free = { + } + + #ROOT is winner #FROM gets annexed - This fires just before FROM gets annexed, meaning the country and everything it owns still exists. It will also fire on_annex and on_civil_war_end + on_civil_war_end_before_annexation = { + } + + #ROOT = attacking side + #FROM = defending side + #fired when two countries end up at war with each other (on_war is fired when a country goes to war against anyone and is not fired again when it enters war against another country unless it went to peace first) + on_war_relation_added = { # ---> Fires in 2nd place (1st is on_declare_war) -> This one is triggered ALWAYS + } + + on_peaceconference_ended = { + } + + on_peace = { + } + + # ROOT is new controller, FROM is old controller, FROM.FROM is state ID. + on_state_control_changed = { + } + + on_puppet = { #ROOT = nation being puppeted, FROM = overlord + } + + #ROOT is winner, FROM gets annexed. For civil wars on_civil_war_end is also fired. + on_annex = { + } + + #ROOT is subject FROM is previous overlord + on_subject_free = { + } + + on_ruling_party_change = { + } + + #FROM is faction leader on join faction requests. THIS DOES NOT FIRE ON ADD_TO_FACTION EFFECT! USE ON_OFFER_JOIN_FACTION! + on_join_faction = { + } + + #FROM is country getting invited. THIS GETS TRIGGERED WHEN THE COUNTRY BEING OFFERED ACTUALLY JOINS THE FACTION (AND ALSO TRIGGERED ON ADD_TO_ACTION EFFECT TACK SÅ MYCKET) + on_offer_join_faction = { + } + # FROM is the faction Leader, ROOT is the country leaving the faction + on_leave_faction = { + } +} \ No newline at end of file diff --git a/data/blank_mod/common/scripted_effects/DEN_scripted_effects.txt b/data/blank_mod/common/scripted_effects/DEN_scripted_effects.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_effects/FIN_scripted_effects.txt b/data/blank_mod/common/scripted_effects/FIN_scripted_effects.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_effects/GER_scripted_effects.txt b/data/blank_mod/common/scripted_effects/GER_scripted_effects.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_effects/NORDIC_scripted_effects.txt b/data/blank_mod/common/scripted_effects/NORDIC_scripted_effects.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_effects/NOR_scripted_effects.txt b/data/blank_mod/common/scripted_effects/NOR_scripted_effects.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_effects/SWE_scripted_effects.txt b/data/blank_mod/common/scripted_effects/SWE_scripted_effects.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_localisation/AAT_Denmark_scripted_loc.txt b/data/blank_mod/common/scripted_localisation/AAT_Denmark_scripted_loc.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_localisation/AAT_Iceland_scripted_loc.txt b/data/blank_mod/common/scripted_localisation/AAT_Iceland_scripted_loc.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_localisation/AAT_Nordics_scripted_loc.txt b/data/blank_mod/common/scripted_localisation/AAT_Nordics_scripted_loc.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_localisation/AAT_Norway_scripted_loc.txt b/data/blank_mod/common/scripted_localisation/AAT_Norway_scripted_loc.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_localisation/AAT_Sweden_scripted_loc.txt b/data/blank_mod/common/scripted_localisation/AAT_Sweden_scripted_loc.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_localisation/AAT_finland_scripted_loc.txt b/data/blank_mod/common/scripted_localisation/AAT_finland_scripted_loc.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_triggers/DEN_scripted_triggers.txt b/data/blank_mod/common/scripted_triggers/DEN_scripted_triggers.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_triggers/FIN_scripted_triggers.txt b/data/blank_mod/common/scripted_triggers/FIN_scripted_triggers.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_triggers/ICE_scripted_triggers.txt b/data/blank_mod/common/scripted_triggers/ICE_scripted_triggers.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_triggers/NORDIC_scripted_triggers.txt b/data/blank_mod/common/scripted_triggers/NORDIC_scripted_triggers.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_triggers/NOR_scripted_triggers.txt b/data/blank_mod/common/scripted_triggers/NOR_scripted_triggers.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/blank_mod/common/scripted_triggers/SWE_scripted_triggers.txt b/data/blank_mod/common/scripted_triggers/SWE_scripted_triggers.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/data/configurables/cultureGroupToGraphics.txt b/data/configurables/cultureGroupToGraphics.txt index 4eea594775..be6aecf37a 100644 --- a/data/configurables/cultureGroupToGraphics.txt +++ b/data/configurables/cultureGroupToGraphics.txt @@ -646,7 +646,7 @@ nordic_uralic = { democratic = { "gfx/leaders/Europe/portrait_europe_generic_5.dds" "gfx/leaders/FIN/Portrait_Finland_Risto_Heikki_Ryti.dds" - "gfx/leaders/NOR/Portrait_Norway_Johan_Nygaardsvold.dds" + "gfx/leaders/NOR/portrait_NOR_johan_nygaardsvold.dds" "gfx/leaders/EST/portrait_est_konstantin_pats.dds" GFX_Estonia_Jaan_Tonisson } From 25c7a9d7c34f91378b0e15e47cf7b3b3b0c3e89e Mon Sep 17 00:00:00 2001 From: cetvrtak <59363714+cetvrtak@users.noreply.github.com> Date: Tue, 28 Nov 2023 09:23:25 +0100 Subject: [PATCH 2/2] Update debug & generic decisions --- .../common/decisions/_debug_decisions.txt | 145 +++++++++++++++--- .../common/decisions/_generic_decisions.txt | 36 ++++- 2 files changed, 158 insertions(+), 23 deletions(-) diff --git a/data/blank_mod/common/decisions/_debug_decisions.txt b/data/blank_mod/common/decisions/_debug_decisions.txt index b288319ea9..232dd6751a 100644 --- a/data/blank_mod/common/decisions/_debug_decisions.txt +++ b/data/blank_mod/common/decisions/_debug_decisions.txt @@ -1,11 +1,44 @@ debug_decisions = { + debug_show_decisions = { + priority = 100 + allowed = { + always = yes + } + + visible = { + is_ai = no + is_debug = yes + NOT = { has_global_flag = show_debug_decisions_flag } + } + complete_effect = { + set_global_flag = show_debug_decisions_flag + } + } + + debug_hide_decisions = { + priority = -1 + allowed = { + always = yes + } + + visible = { + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag + } + complete_effect = { + clr_global_flag = show_debug_decisions_flag + } + } + research_all_tank_techs_nsb = { icon = generic_tank visible = { is_ai = no is_debug = yes + has_global_flag = show_debug_decisions_flag } complete_effect = { @@ -213,7 +246,9 @@ debug_decisions = { } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no @@ -233,7 +268,9 @@ debug_decisions = { } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no @@ -264,7 +301,9 @@ debug_decisions = { } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no @@ -284,11 +323,13 @@ debug_decisions = { icon = generic_research available = { - always = yes + is_ai = no } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no @@ -311,16 +352,19 @@ debug_decisions = { } } + create_operative_debug = { icon = generic_research available = { - always = yes + is_ai = no } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no @@ -344,11 +388,13 @@ debug_decisions = { icon = generic_research available = { - always = yes + is_ai = no } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no @@ -370,11 +416,13 @@ debug_decisions = { icon = generic_research available = { - always = yes + is_ai = no } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no @@ -397,21 +445,20 @@ debug_decisions = { harm_operative_debug = { available = { - num_of_operatives > 0 + #num_of_operatives > 0 } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no cost = 0 complete_effect = { - random_operative = { - harm_operative_leader = 1 - #Some easter egg from Vanilla HoI4 - can be removed safely - } + add_political_power = 1000 } ai_will_do = { @@ -426,7 +473,9 @@ debug_decisions = { } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } fire_only_once = no @@ -453,11 +502,13 @@ debug_decisions = { slot_machine = { # we pegi 18 now available = { - always = yes + is_ai = no } visible = { - always = yes + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag } days_remove = 777 @@ -468,6 +519,15 @@ debug_decisions = { } decryption_tech_1 = { + available = { + is_ai = no + } + + visible = { + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag + } days_remove = 100 modifier = { decryption = 1 @@ -475,6 +535,15 @@ debug_decisions = { } decryption_tech_2 = { + available = { + is_ai = no + } + + visible = { + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag + } days_remove = 100 modifier = { decryption = 1 @@ -482,6 +551,15 @@ debug_decisions = { } decryption_tech_3 = { + available = { + is_ai = no + } + + visible = { + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag + } days_remove = 100 modifier = { decryption = 1 @@ -489,6 +567,15 @@ debug_decisions = { } encryption_tech_1 = { + available = { + is_ai = no + } + + visible = { + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag + } days_remove = 100 modifier = { encryption = 1 @@ -496,6 +583,15 @@ debug_decisions = { } encryption_tech_2 = { + available = { + is_ai = no + } + + visible = { + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag + } days_remove = 100 modifier = { encryption = 1 @@ -503,6 +599,15 @@ debug_decisions = { } encryption_tech_3 = { + available = { + is_ai = no + } + + visible = { + is_ai = no + is_debug = yes + has_global_flag = show_debug_decisions_flag + } days_remove = 100 modifier = { encryption = 1 diff --git a/data/blank_mod/common/decisions/_generic_decisions.txt b/data/blank_mod/common/decisions/_generic_decisions.txt index 98f5ce2f94..898479438a 100644 --- a/data/blank_mod/common/decisions/_generic_decisions.txt +++ b/data/blank_mod/common/decisions/_generic_decisions.txt @@ -78,7 +78,7 @@ political_actions = { modifier = { stability_weekly = 0.005 - consumer_goods_factor = 0.05 + consumer_goods_factor = 0.10 industrial_capacity_factory = -0.1 } @@ -1428,7 +1428,8 @@ war_measures = { visible = { has_defensive_war = yes - has_offensive_war = no + has_offensive_war = no + num_of_controlled_states > 0 } fire_only_once = no @@ -1595,7 +1596,7 @@ war_measures = { cost = GER_war_bonds_var?50 modifier = { - consumer_goods_factor = -0.05 + consumer_goods_factor = -0.20 } ai_will_do = { @@ -1661,7 +1662,36 @@ war_measures = { add_war_support = GER_war_bonds_war_support_var } } + } + + diversify_special_forces = { + + icon = GFX_decision_generic_military + + available = { + date > 1940.1.1 + } + + visible = { + has_dlc = "Arms Against Tyranny" + } + + fire_only_once = yes + + cost = 50 + + complete_effect = { + add_potential_special_forces_tree = yes + } + ai_will_do = { + factor = 201 + modifier = { + factor = 0 + is_major = no + } + } } + } foreign_politics = {