ws_management = { ws_auto_profile_standard = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_v160_set_profile_standard = yes } } } ws_auto_profile_safe = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_v160_set_profile_safe = yes } } } ws_auto_profile_resource = { icon = generic_prospect_for_resources cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_v160_set_profile_resource = yes } } } ws_auto_profile_manual = { icon = generic_construction cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_v160_set_profile_manual = yes } } } ws_choose_mode = { icon = generic_industry visible = { has_country_flag = ws_auto_profile_manual } cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_initialize = yes } country_event = { id = war_salvage.1 } } } ws_toggle_source = { icon = generic_industry visible = { has_country_flag = ws_auto_profile_manual } cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_initialize = yes if = { limit = { has_country_flag = ws_all_producers } clr_country_flag = ws_all_producers } else = { set_country_flag = ws_all_producers } } } } ws_cycle_reserve = { icon = generic_industry visible = { has_country_flag = ws_auto_profile_manual } cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_initialize = yes if = { limit = { check_variable = { ws_reserve_multiplier = 1 } } set_variable = { ws_reserve_multiplier = 2 } } else_if = { limit = { check_variable = { ws_reserve_multiplier = 2 } } set_variable = { ws_reserve_multiplier = 4 } } else = { set_variable = { ws_reserve_multiplier = 1 } } } } } ws_toggle_auto = { icon = generic_industry visible = { has_country_flag = ws_auto_profile_manual } cost = 0 ai_will_do = { factor = 0 } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met has_country_flag = ws_initialized check_variable = { ws_mode > 0 } } } complete_effect = { hidden_effect = { if = { limit = { has_country_flag = ws_auto } clr_country_flag = ws_auto } else = { set_country_flag = ws_auto } } } } ws_show_advanced = { icon = generic_civil_support visible = { NOT = { has_country_flag = ws_ui_advanced } } cost = 0 ai_will_do = { factor = 0 } complete_effect = { set_country_flag = ws_ui_advanced } } ws_hide_advanced = { icon = generic_civil_support visible = { has_country_flag = ws_ui_advanced NOT = { has_country_flag = ws_auto_profile_manual } } cost = 0 ai_will_do = { factor = 0 } complete_effect = { clr_country_flag = ws_ui_advanced } } ws_view_ledger = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_initialize = yes } country_event = { id = war_salvage.2 } } } } ws_processing = { ws_process_dec_rifles = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_rifles = yes has_equipment = { infantry_equipment > 2000 } } } complete_effect = { hidden_effect = { ws_process_rifles = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_support = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_support = yes has_equipment = { support_equipment > 300 } } } complete_effect = { hidden_effect = { ws_process_support = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_artillery = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_artillery = yes has_equipment = { artillery_equipment > 150 } } } complete_effect = { hidden_effect = { ws_process_artillery = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_aa = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_aa = yes has_equipment = { anti_air_equipment > 100 } } } complete_effect = { hidden_effect = { ws_process_aa = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_at = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_at = yes has_equipment = { anti_tank_equipment > 100 } } } complete_effect = { hidden_effect = { ws_process_at = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_trucks = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_trucks = yes has_equipment = { motorized_equipment > 500 } } } complete_effect = { hidden_effect = { ws_process_trucks = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_mech = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_mech = yes has_equipment = { mechanized_equipment > 200 } } } complete_effect = { hidden_effect = { ws_process_mech = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_trains = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_trains = yes has_equipment = { train_equipment > 50 } } } complete_effect = { hidden_effect = { ws_process_trains = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_light = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized has_dlc = "No Step Back" } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_light = yes has_equipment = { light_tank_chassis > 100 } } } complete_effect = { hidden_effect = { ws_process_light = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_medium = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized has_dlc = "No Step Back" } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_medium = yes has_equipment = { medium_tank_chassis > 100 } } } complete_effect = { hidden_effect = { ws_process_medium = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_heavy = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized has_dlc = "No Step Back" } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_heavy = yes has_equipment = { heavy_tank_chassis > 80 } } } complete_effect = { hidden_effect = { ws_process_heavy = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_light_old = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized NOT = { has_dlc = "No Step Back" } } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_light_old = yes has_equipment = { light_tank_chassis > 100 } } } complete_effect = { hidden_effect = { ws_process_light_old = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_medium_old = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized NOT = { has_dlc = "No Step Back" } } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_medium_old = yes has_equipment = { medium_tank_chassis > 100 } } } complete_effect = { hidden_effect = { ws_process_medium_old = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_heavy_old = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized NOT = { has_dlc = "No Step Back" } } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_heavy_old = yes has_equipment = { heavy_tank_chassis > 80 } } } complete_effect = { hidden_effect = { ws_process_heavy_old = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_small_air = { icon = generic_research cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized has_dlc = "By Blood Alone" } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_small_air = yes has_equipment = { small_plane_airframe > 100 } } } complete_effect = { hidden_effect = { ws_process_small_air = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_medium_air = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized has_dlc = "By Blood Alone" } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_medium_air = yes has_equipment = { medium_plane_airframe > 80 } } } complete_effect = { hidden_effect = { ws_process_medium_air = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_large_air = { icon = generic_research cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized has_dlc = "By Blood Alone" } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_large_air = yes has_equipment = { large_plane_airframe > 40 } } } complete_effect = { hidden_effect = { ws_process_large_air = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_fighters = { icon = generic_research cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized NOT = { has_dlc = "By Blood Alone" } } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_fighters = yes has_equipment = { small_plane_airframe > 100 } } } complete_effect = { hidden_effect = { ws_process_fighters = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_cas = { icon = generic_research cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized NOT = { has_dlc = "By Blood Alone" } } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_cas = yes has_equipment = { small_plane_airframe > 100 } } } complete_effect = { hidden_effect = { ws_process_cas = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_tac = { icon = generic_research cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized NOT = { has_dlc = "By Blood Alone" } } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_tac = yes has_equipment = { medium_plane_airframe > 80 } } } complete_effect = { hidden_effect = { ws_process_tac = yes } country_event = { id = war_salvage.2 } } } ws_process_dec_strat = { icon = generic_research cost = 0 ai_will_do = { factor = 0 } visible = { has_country_flag = ws_initialized NOT = { has_dlc = "By Blood Alone" } } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met ws_can_strat = yes has_equipment = { large_plane_airframe > 40 } } } complete_effect = { hidden_effect = { ws_process_strat = yes } country_event = { id = war_salvage.2 } } } } ws_logistics = { ws_cycle_resource_scale = { icon = generic_prospect_for_resources cost = 0 ai_will_do = { factor = 0 } complete_effect = { hidden_effect = { ws_initialize = yes if = { limit = { check_variable = { ws_resource_scale = 1 } } set_variable = { ws_resource_scale = 2 } } else_if = { limit = { check_variable = { ws_resource_scale = 2 } } set_variable = { ws_resource_scale = 4 } } else_if = { limit = { check_variable = { ws_resource_scale = 4 } } set_variable = { ws_resource_scale = 8 } } else_if = { limit = { check_variable = { ws_resource_scale = 8 } } set_variable = { ws_resource_scale = 16 } } else = { set_variable = { ws_resource_scale = 1 } } } } } ws_dec_steel = { icon = steel cost = 0 ai_will_do = { factor = 0 } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met has_country_flag = ws_initialized NOT = { OR = { has_idea = ws_contract_steel has_idea = ws_contract_steel_8 has_idea = ws_contract_steel_16 has_idea = ws_contract_steel_32 has_idea = ws_contract_steel_64 } } NOT = { has_capitulated = yes } OR = { AND = { check_variable = { ws_resource_scale = 1 } check_variable = { ws_iron > 59.999 } } AND = { check_variable = { ws_resource_scale = 2 } check_variable = { ws_iron > 119.999 } } AND = { check_variable = { ws_resource_scale = 4 } check_variable = { ws_iron > 239.999 } } AND = { check_variable = { ws_resource_scale = 8 } check_variable = { ws_iron > 479.999 } } AND = { check_variable = { ws_resource_scale = 16 } check_variable = { ws_iron > 959.999 } } } } } complete_effect = { ws_start_steel = yes } } ws_dec_aluminium = { icon = aluminium cost = 0 ai_will_do = { factor = 0 } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met has_country_flag = ws_initialized NOT = { OR = { has_idea = ws_contract_aluminium has_idea = ws_contract_aluminium_4 has_idea = ws_contract_aluminium_8 has_idea = ws_contract_aluminium_16 has_idea = ws_contract_aluminium_32 } } NOT = { has_capitulated = yes } OR = { AND = { check_variable = { ws_resource_scale = 1 } check_variable = { ws_alloy > 39.999 } } AND = { check_variable = { ws_resource_scale = 2 } check_variable = { ws_alloy > 79.999 } } AND = { check_variable = { ws_resource_scale = 4 } check_variable = { ws_alloy > 159.999 } } AND = { check_variable = { ws_resource_scale = 8 } check_variable = { ws_alloy > 319.999 } } AND = { check_variable = { ws_resource_scale = 16 } check_variable = { ws_alloy > 639.999 } } } } } complete_effect = { ws_start_aluminium = yes } } ws_dec_tungsten = { icon = tungsten cost = 0 ai_will_do = { factor = 0 } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met has_country_flag = ws_initialized NOT = { OR = { has_idea = ws_contract_tungsten has_idea = ws_contract_tungsten_2 has_idea = ws_contract_tungsten_4 has_idea = ws_contract_tungsten_8 has_idea = ws_contract_tungsten_16 } } NOT = { has_capitulated = yes } OR = { AND = { check_variable = { ws_resource_scale = 1 } check_variable = { ws_alloy > 59.999 } } AND = { check_variable = { ws_resource_scale = 2 } check_variable = { ws_alloy > 119.999 } } AND = { check_variable = { ws_resource_scale = 4 } check_variable = { ws_alloy > 239.999 } } AND = { check_variable = { ws_resource_scale = 8 } check_variable = { ws_alloy > 479.999 } } AND = { check_variable = { ws_resource_scale = 16 } check_variable = { ws_alloy > 959.999 } } } } } complete_effect = { ws_start_tungsten = yes } } ws_dec_maintenance = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met has_country_flag = ws_initialized NOT = { has_idea = ws_contract_maintenance } NOT = { has_capitulated = yes } check_variable = { ws_parts > 39.999 } } } complete_effect = { ws_start_maintenance = yes } } ws_dec_supply = { icon = generic_industry cost = 0 ai_will_do = { factor = 0 } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met has_country_flag = ws_initialized NOT = { has_idea = ws_contract_supply } NOT = { has_capitulated = yes } check_variable = { ws_parts > 59.999 } } } complete_effect = { ws_start_supply = yes } } ws_dec_repair = { icon = generic_construction cost = 0 ai_will_do = { factor = 0 } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met has_country_flag = ws_initialized NOT = { has_idea = ws_contract_repair } NOT = { has_capitulated = yes } check_variable = { ws_iron > 29.999 } check_variable = { ws_parts > 29.999 } } } complete_effect = { ws_start_repair = yes } } ws_dec_recovery = { icon = generic_army_support cost = 0 ai_will_do = { factor = 0 } available = { custom_trigger_tooltip = { tooltip = ws_tt_conditions_met has_country_flag = ws_initialized NOT = { has_idea = ws_contract_recovery } NOT = { has_capitulated = yes } check_variable = { ws_parts > 49.999 } } } complete_effect = { ws_start_recovery = yes } } }