# Antarctica station module install gates. # Use this compact default to avoid enormous tooltip expansion from nested always=yes checks. antarctica_station_install_module_unlocked = { always = yes } antarctica_station_slot_unlocked_by_tier = { OR = { AND = { check_variable = { selected_antarctica_station_tier > 0 } OR = { check_variable = { selected_antarctica_station_selected_slot = 5 } check_variable = { selected_antarctica_station_selected_slot = 7 } check_variable = { selected_antarctica_station_selected_slot = 8 } check_variable = { selected_antarctica_station_selected_slot = 11 } check_variable = { selected_antarctica_station_selected_slot = 12 } check_variable = { selected_antarctica_station_selected_slot = 14 } } } AND = { check_variable = { selected_antarctica_station_tier > 1 } OR = { check_variable = { selected_antarctica_station_selected_slot = 1 } check_variable = { selected_antarctica_station_selected_slot = 2 } check_variable = { selected_antarctica_station_selected_slot = 6 } } } AND = { check_variable = { selected_antarctica_station_tier > 2 } OR = { check_variable = { selected_antarctica_station_selected_slot = 4 } check_variable = { selected_antarctica_station_selected_slot = 9 } check_variable = { selected_antarctica_station_selected_slot = 10 } check_variable = { selected_antarctica_station_selected_slot = 13 } } } } } antarctica_station_selected_slot_module_different = { custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_INSTALL_MODULE_DIFFERENT_TT OR = { check_variable = { selected_antarctica_station_selected_slot_installed_module < 1 } NOT = { check_variable = { selected_antarctica_station_selected_slot_installed_module = selected_antarctica_station_selected_module } } } } } antarctica_is_power_plant_slot_selected = { OR = { check_variable = { selected_antarctica_station_selected_slot = 2 } check_variable = { selected_antarctica_station_selected_slot = 11 } check_variable = { selected_antarctica_station_selected_slot = 13 } } } antarctica_is_housing_slot_selected = { OR = { check_variable = { selected_antarctica_station_selected_slot = 1 } check_variable = { selected_antarctica_station_selected_slot = 5 } check_variable = { selected_antarctica_station_selected_slot = 10 } } } antarctica_is_life_support_slot_selected = { check_variable = { selected_antarctica_station_selected_slot = 12 } } antarctica_is_fuel_storage_slot_selected = { OR = { check_variable = { selected_antarctica_station_selected_slot = 4 } check_variable = { selected_antarctica_station_selected_slot = 14 } } } antarctica_is_laboratory_slot_selected = { OR = { check_variable = { selected_antarctica_station_selected_slot = 6 } check_variable = { selected_antarctica_station_selected_slot = 7 } check_variable = { selected_antarctica_station_selected_slot = 8 } check_variable = { selected_antarctica_station_selected_slot = 9 } } } antarctica_is_module_researched = { if = { limit = { antarctica_is_power_plant_slot_selected = yes check_variable = { selected_antarctica_station_selected_module = 3 } } is_special_project_completed = sp:sp_caterpillar_3512b } if = { limit = { antarctica_is_power_plant_slot_selected = yes check_variable = { selected_antarctica_station_selected_module = 5 } } has_tech = advanced_renewables } if = { limit = { antarctica_is_power_plant_slot_selected = yes check_variable = { selected_antarctica_station_selected_module = 7 } } has_tech = improved_renewables } if = { limit = { antarctica_is_power_plant_slot_selected = yes check_variable = { selected_antarctica_station_selected_module = 8 } } has_tech = modern_renewables } if = { limit = { antarctica_is_power_plant_slot_selected = yes check_variable = { selected_antarctica_station_selected_module = 9 } } has_tech = improved_modern_renewables } if = { limit = { antarctica_is_power_plant_slot_selected = yes check_variable = { selected_antarctica_station_selected_module = 10 } } has_tech = advanced_modern_renewables } if = { limit = { antarctica_is_housing_slot_selected = yes check_variable = { selected_antarctica_station_selected_module = 3 } } is_special_project_completed = sp:sp_premium_living_quarters } } # Usage: Check if installing selected module will maintain positive power balance antarctica_can_install_module_power_balance = { custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_INSTALL_MODULE_POWER_BALANCE_TT check_variable = { var = selected_antarctica_station_preview_output_power value = 0 compare = greater_than_or_equals } } } # Usage: Check if installing selected module will maintain sufficient staff availability # preview_required_staff represents net available staff after swapping modules. # Negative value means insufficient staff capacity. antarctica_can_install_module_staff_availability = { custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_INSTALL_MODULE_STAFF_BALANCE_TT check_variable = { var = selected_antarctica_station_preview_output_required_staff value = 0 compare = greater_than_or_equals } } } # Usage: Check if installing a laboratory module would result in duplicate labs antarctica_can_install_module_no_duplicate_laboratories = { custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_INSTALL_MODULE_NO_DUPLICATE_LABS_TT OR = { NOT = { check_variable = { selected_antarctica_station_selected_module_category = 5 } } AND = { NOT = { check_variable = { global.antarctica_station_module_slot_6^selected_antarctica_station = selected_antarctica_station_selected_module } } NOT = { check_variable = { global.antarctica_station_module_slot_7^selected_antarctica_station = selected_antarctica_station_selected_module } } NOT = { check_variable = { global.antarctica_station_module_slot_8^selected_antarctica_station = selected_antarctica_station_selected_module } } NOT = { check_variable = { global.antarctica_station_module_slot_9^selected_antarctica_station = selected_antarctica_station_selected_module } } } } } } antarctica_station_check_possible_illegal_laboratories_installed = { custom_trigger_tooltip = { tooltip = ILLEGAL_ACTIVITIES_BUTTON_TRIGGER OR = { check_variable = { global.antarctica_station_module_slot_6^selected_antarctica_station = 5 } check_variable = { global.antarctica_station_module_slot_7^selected_antarctica_station = 5 } check_variable = { global.antarctica_station_module_slot_8^selected_antarctica_station = 5 } check_variable = { global.antarctica_station_module_slot_9^selected_antarctica_station = 5 } check_variable = { global.antarctica_station_module_slot_6^selected_antarctica_station = 7 } check_variable = { global.antarctica_station_module_slot_7^selected_antarctica_station = 7 } check_variable = { global.antarctica_station_module_slot_8^selected_antarctica_station = 7 } check_variable = { global.antarctica_station_module_slot_9^selected_antarctica_station = 7 } check_variable = { global.antarctica_station_module_slot_6^selected_antarctica_station = 8 } check_variable = { global.antarctica_station_module_slot_7^selected_antarctica_station = 8 } check_variable = { global.antarctica_station_module_slot_8^selected_antarctica_station = 8 } check_variable = { global.antarctica_station_module_slot_9^selected_antarctica_station = 8 } } } } # Usage: Info trigger for showing Antarctic winter seasonal effects # April-October = winter = 2x cost and time multiplier antarctica_station_install_module_winter_penalty = { custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_INSTALL_MODULE_WINTER_PENALTY_TT OR = { check_variable = { global.month = 4 } check_variable = { global.month = 5 } check_variable = { global.month = 6 } check_variable = { global.month = 7 } check_variable = { global.month = 8 } check_variable = { global.month = 9 } check_variable = { global.month = 10 } } } } is_startup_research_station = { custom_trigger_tooltip = { tooltip = has_startup_antarctica_station_TT OR = { original_tag = USA original_tag = SOV original_tag = ENG original_tag = ARG original_tag = CHL original_tag = AST original_tag = POL original_tag = FRA original_tag = GER original_tag = JAP original_tag = NZL original_tag = CHI original_tag = RAJ original_tag = ITA original_tag = SAF original_tag = KOR original_tag = BRA original_tag = UKR original_tag = URG original_tag = NRY original_tag = SPR original_tag = SWE original_tag = FIN original_tag = BUL original_tag = PRU original_tag = ECU original_tag = PAK } } } check_antarctica_marker_triggers = { check_variable = { global.antarctica_station_ids^temp_antarctica_station_id > 0 } OR = { NOT = { has_country_flag = antarctica_filters_active } AND = { check_variable = { global.antarctica_station_region^temp_antarctica_station_id = 1 } check_variable = { station_filter_america > 1 } } AND = { check_variable = { global.antarctica_station_region^temp_antarctica_station_id = 2 } check_variable = { station_filter_asia > 1 } } AND = { check_variable = { global.antarctica_station_region^temp_antarctica_station_id = 3 } check_variable = { station_filter_europe > 1 } } AND = { check_variable = { global.antarctica_station_region^temp_antarctica_station_id = 4 } check_variable = { station_filter_africa > 1 } } } } is_antarctica_station_tier_two = { custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_TIER_2_REQUIRED_TT check_variable = { selected_antarctica_station_tier > 1 } } } is_antarctica_station_tier_three = { custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_TIER_3_REQUIRED_TT check_variable = { selected_antarctica_station_tier > 2 } } } is_station_fuel_supply_ready = { custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_SEND_SUPPLIES_QUEUE_TT check_variable = { global.antarctica_station_delivery_days_remaining^selected_antarctica_station < 1 } check_variable = { global.antarctica_station_delivery_fuel_pending^selected_antarctica_station < 1 } } custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_NOT_FULLY_RENEWABLE NOT = { check_variable = { selected_antarctica_station_output_fuel_usage < 1 } } } } is_ai_allowed_to_build_antarctic_station = { is_ai = yes has_idea = at_member NOT = { has_country_flag = antarctica_treaty_leave_pending } NOT = { has_country_flag = antarctica_has_active_station } check_variable = { antarctica_station_setup_in_progress < 1 } NOT = { has_idea = depression } # To not deepen debt }