shroud_energy_cost = { add_resource = { energy = -1000 } } remove_shroud_flags = { optimize_memory hidden_effect = { remove_country_flag = high.1 remove_country_flag = high.2 remove_country_flag = high.3 remove_country_flag = high.4 remove_country_flag = high.5 remove_country_flag = high.6 remove_country_flag = high.7 remove_country_flag = high.8 remove_country_flag = high.9 remove_country_flag = high.10 remove_country_flag = high.11 remove_country_flag = high.12 remove_country_flag = high.13 remove_country_flag = high.14 remove_country_flag = high.15 remove_country_flag = high.16 remove_country_flag = medium.1 remove_country_flag = medium.2 remove_country_flag = medium.3 remove_country_flag = medium.4 remove_country_flag = medium.5 remove_country_flag = medium.6 remove_country_flag = medium.7 remove_country_flag = medium.8 remove_country_flag = medium.9 remove_country_flag = medium.10 remove_country_flag = medium.11 remove_country_flag = medium.12 remove_country_flag = medium.13 remove_country_flag = medium.14 remove_country_flag = medium.15 remove_country_flag = medium.16 remove_country_flag = low.1 remove_country_flag = low.2 remove_country_flag = low.3 remove_country_flag = low.4 remove_country_flag = low.5 remove_country_flag = low.6 remove_country_flag = low.7 remove_country_flag = low.8 remove_country_flag = low.9 remove_country_flag = low.10 remove_country_flag = low.11 remove_country_flag = low.12 remove_country_flag = low.13 remove_country_flag = low.14 remove_country_flag = low.15 remove_country_flag = low.16 } } randomize_shroud_flags = { optimize_memory random_list = { 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.1 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.2 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.3 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.4 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.5 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.6 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.7 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.8 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.9 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.10 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.11 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.12 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.13 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.14 } 25 = { modifier = { factor = 2 has_relic = r_zro_crystal } set_country_flag = high.15 } 25 = { if = { limit = { count_controlled_ship = { limit = { is_ship_size = psionic_avatar } count < 1 } count_owned_army = { limit = { army_type = shroud_army } count < 1 } } set_country_flag = high.16 } else = { set_country_flag = high.1 } } 125 = {} } random_list = { 25 = { if = { limit = { NOT = { has_country_flag = high.1 } } set_country_flag = medium.1 } else = { set_country_flag = medium.2 } } 25 = { if = { limit = { NOT = { has_country_flag = high.2 } } set_country_flag = medium.2 } else = { set_country_flag = medium.3 } } 25 = { if = { limit = { NOT = { has_country_flag = high.3 } } set_country_flag = medium.3 } else = { set_country_flag = medium.4 } } 25 = { if = { limit = { NOT = { has_country_flag = high.4 } } set_country_flag = medium.4 } else = { set_country_flag = medium.5 } } 25 = { if = { limit = { NOT = { has_country_flag = high.5 } } set_country_flag = medium.5 } else = { set_country_flag = medium.6 } } 25 = { if = { limit = { NOT = { has_country_flag = high.6 } } set_country_flag = medium.6 } else = { set_country_flag = medium.7 } } 25 = { if = { limit = { NOT = { has_country_flag = high.7 } } set_country_flag = medium.7 } else = { set_country_flag = medium.8 } } 25 = { if = { limit = { NOT = { has_country_flag = high.8 } } set_country_flag = medium.8 } else = { set_country_flag = medium.9 } } 25 = { if = { limit = { NOT = { has_country_flag = high.9 } } set_country_flag = medium.9 } else = { set_country_flag = medium.10 } } 25 = { if = { limit = { NOT = { has_country_flag = high.10 } } set_country_flag = medium.10 } else = { set_country_flag = medium.11 } } 25 = { if = { limit = { NOT = { has_country_flag = high.11 } } set_country_flag = medium.11 } else = { set_country_flag = medium.12 } } 25 = { if = { limit = { NOT = { has_country_flag = high.12 } } set_country_flag = medium.12 } else = { set_country_flag = medium.13 } } 25 = { if = { limit = { NOT = { has_country_flag = high.13 } } set_country_flag = medium.13 } else = { set_country_flag = medium.14 } } 25 = { if = { limit = { NOT = { has_country_flag = high.14 } } set_country_flag = medium.14 } else = { set_country_flag = medium.15 } } 25 = { if = { limit = { NOT = { has_country_flag = high.15 } } set_country_flag = medium.15 } else_if = { limit = { NOT = { has_country_flag = high.16 } count_controlled_ship = { limit = { is_ship_size = psionic_avatar } count < 1 } count_owned_army = { limit = { army_type = shroud_army } count < 1 } } set_country_flag = medium.16 } else = { set_country_flag = low.1 } } 25 = { if = { limit = { NOT = { has_country_flag = high.16 } count_controlled_ship = { limit = { is_ship_size = psionic_avatar } count < 1 } count_owned_army = { limit = { army_type = shroud_army } count < 1 } } set_country_flag = medium.16 } else = { set_country_flag = medium.1 } } 80 = {} } random_list = { 25 = { if = { limit = { NOR = { has_country_flag = high.1 has_country_flag = medium.1 } } set_country_flag = low.1 } else_if = { limit = { NOR = { has_country_flag = high.2 has_country_flag = medium.2 } } set_country_flag = low.2 } else = { set_country_flag = low.3 } } 25 = { if = { limit = { NOR = { has_country_flag = high.2 has_country_flag = medium.2 } } set_country_flag = low.2 } else_if = { limit = { NOR = { has_country_flag = high.3 has_country_flag = medium.3 } } set_country_flag = low.3 } else = { set_country_flag = low.4 } } 25 = { if = { limit = { NOR = { has_country_flag = high.3 has_country_flag = medium.3 } } set_country_flag = low.3 } else_if = { limit = { NOR = { has_country_flag = high.4 has_country_flag = medium.4 } } set_country_flag = low.4 } else = { set_country_flag = low.5 } } 25 = { if = { limit = { NOR = { has_country_flag = high.4 has_country_flag = medium.4 } } set_country_flag = low.4 } else_if = { limit = { NOR = { has_country_flag = high.5 has_country_flag = medium.5 } } set_country_flag = low.5 } else = { set_country_flag = low.6 } } 25 = { if = { limit = { NOR = { has_country_flag = high.5 has_country_flag = medium.5 } } set_country_flag = low.5 } else_if = { limit = { NOR = { has_country_flag = high.6 has_country_flag = medium.6 } } set_country_flag = low.6 } else = { set_country_flag = low.7 } } 25 = { if = { limit = { NOR = { has_country_flag = high.6 has_country_flag = medium.6 } } set_country_flag = low.6 } else_if = { limit = { NOR = { has_country_flag = high.7 has_country_flag = medium.7 } } set_country_flag = low.7 } else = { set_country_flag = low.8 } } 25 = { if = { limit = { NOR = { has_country_flag = high.7 has_country_flag = medium.7 } } set_country_flag = low.7 } else_if = { limit = { NOR = { has_country_flag = high.8 has_country_flag = medium.8 } } set_country_flag = low.8 } else = { set_country_flag = low.9 } } 25 = { if = { limit = { NOR = { has_country_flag = high.8 has_country_flag = medium.8 } } set_country_flag = low.8 } else_if = { limit = { NOR = { has_country_flag = high.9 has_country_flag = medium.9 } } set_country_flag = low.9 } else = { set_country_flag = low.10 } } 25 = { if = { limit = { NOR = { has_country_flag = high.9 has_country_flag = medium.9 } } set_country_flag = low.9 } else_if = { limit = { NOR = { has_country_flag = high.10 has_country_flag = medium.10 } } set_country_flag = low.10 } else = { set_country_flag = low.11 } } 25 = { if = { limit = { NOR = { has_country_flag = high.10 has_country_flag = medium.10 } } set_country_flag = low.10 } else_if = { limit = { NOR = { has_country_flag = high.11 has_country_flag = medium.11 } } set_country_flag = low.11 } else = { set_country_flag = low.12 } } 25 = { if = { limit = { NOR = { has_country_flag = high.11 has_country_flag = medium.11 } } set_country_flag = low.11 } else_if = { limit = { NOR = { has_country_flag = high.12 has_country_flag = medium.12 } } set_country_flag = low.12 } else = { set_country_flag = low.13 } } 25 = { if = { limit = { NOR = { has_country_flag = high.12 has_country_flag = medium.12 } } set_country_flag = low.12 } else_if = { limit = { NOR = { has_country_flag = high.13 has_country_flag = medium.13 } } set_country_flag = low.13 } else = { set_country_flag = low.14 } } 25 = { if = { limit = { NOR = { has_country_flag = high.13 has_country_flag = medium.13 } } set_country_flag = low.13 } else_if = { limit = { NOR = { has_country_flag = high.14 has_country_flag = medium.14 } } set_country_flag = low.14 } else = { set_country_flag = low.15 } } 25 = { if = { limit = { NOR = { has_country_flag = high.14 has_country_flag = medium.14 } } set_country_flag = low.14 } else_if = { limit = { NOR = { has_country_flag = high.15 has_country_flag = medium.15 } } set_country_flag = low.15 } else = { set_country_flag = low.16 } } 25 = { if = { limit = { NOR = { has_country_flag = high.15 has_country_flag = medium.15 } } set_country_flag = low.15 } else_if = { limit = { NOR = { has_country_flag = high.16 has_country_flag = medium.16 } } if = { limit = { count_controlled_ship = { limit = { is_ship_size = psionic_avatar } count < 1 } count_owned_army = { limit = { army_type = shroud_army } count < 1 } } set_country_flag = low.16 } else = { set_country_flag = low.1 } } else = { set_country_flag = low.1 } } 25 = { if = { limit = { NOR = { has_country_flag = high.16 has_country_flag = medium.16 } } if = { limit = { count_controlled_ship = { limit = { is_ship_size = psionic_avatar } count < 1 } count_owned_army = { limit = { army_type = shroud_army } count < 1 } } set_country_flag = low.16 } else = { set_country_flag = low.1 } } else_if = { limit = { NOR = { has_country_flag = high.1 has_country_flag = medium.1 } count_controlled_ship = { limit = { is_ship_size = psionic_avatar } count < 1 } count_owned_army = { limit = { army_type = shroud_army } count < 1 } } set_country_flag = low.1 } else = { set_country_flag = low.2 } } } } randomize_shroud_vision_desc = { if = { limit = { has_country_flag = generic_vision_1_cooldown has_country_flag = generic_vision_2_cooldown has_country_flag = generic_vision_3_cooldown has_country_flag = generic_vision_4_cooldown has_country_flag = generic_vision_5_cooldown has_country_flag = generic_vision_6_cooldown has_country_flag = generic_vision_7_cooldown has_country_flag = generic_vision_8_cooldown has_country_flag = generic_vision_9_cooldown } remove_country_flag = generic_vision_1_cooldown remove_country_flag = generic_vision_2_cooldown remove_country_flag = generic_vision_3_cooldown remove_country_flag = generic_vision_4_cooldown remove_country_flag = generic_vision_5_cooldown remove_country_flag = generic_vision_6_cooldown remove_country_flag = generic_vision_7_cooldown remove_country_flag = generic_vision_8_cooldown remove_country_flag = generic_vision_9_cooldown } random_list = { 1 = { set_country_flag = generic_vision_1 modifier = { factor = 0 has_country_flag = generic_vision_1_cooldown } } 1 = { set_country_flag = generic_vision_2 modifier = { factor = 0 has_country_flag = generic_vision_2_cooldown } } 1 = { set_country_flag = generic_vision_3 modifier = { factor = 0 has_country_flag = generic_vision_3_cooldown } } 1 = { set_country_flag = generic_vision_4 modifier = { factor = 0 has_country_flag = generic_vision_4_cooldown } } 1 = { set_country_flag = generic_vision_5 modifier = { factor = 0 has_country_flag = generic_vision_5_cooldown } } 1 = { set_country_flag = generic_vision_6 modifier = { factor = 0 has_country_flag = generic_vision_6_cooldown } } 1 = { set_country_flag = generic_vision_7 modifier = { factor = 0 has_country_flag = generic_vision_7_cooldown } } 1 = { set_country_flag = generic_vision_8 modifier = { factor = 0 has_country_flag = generic_vision_8_cooldown } } 1 = { set_country_flag = generic_vision_9 modifier = { factor = 0 has_country_flag = generic_vision_9_cooldown } } } } remove_shroud_visions_desc_flags = { if = { limit = { has_country_flag = generic_vision_1 } remove_country_flag = generic_vision_1 set_timed_country_flag = { flag = generic_vision_1_cooldown days = @delve_retrigger_cooldown # 30 years } } if = { limit = { has_country_flag = generic_vision_2 } remove_country_flag = generic_vision_2 set_timed_country_flag = { flag = generic_vision_2_cooldown days = @delve_retrigger_cooldown # 30 years } } if = { limit = { has_country_flag = generic_vision_3 } remove_country_flag = generic_vision_3 set_timed_country_flag = { flag = generic_vision_3_cooldown days = @delve_retrigger_cooldown # 30 years } } if = { limit = { has_country_flag = generic_vision_4 } remove_country_flag = generic_vision_4 set_timed_country_flag = { flag = generic_vision_4_cooldown days = @delve_retrigger_cooldown # 30 years } } if = { limit = { has_country_flag = generic_vision_5 } remove_country_flag = generic_vision_5 set_timed_country_flag = { flag = generic_vision_5_cooldown days = @delve_retrigger_cooldown # 30 years } } if = { limit = { has_country_flag = generic_vision_6 } remove_country_flag = generic_vision_6 set_timed_country_flag = { flag = generic_vision_6_cooldown days = @delve_retrigger_cooldown # 30 years } } if = { limit = { has_country_flag = generic_vision_7 } remove_country_flag = generic_vision_7 set_timed_country_flag = { flag = generic_vision_7_cooldown days = @delve_retrigger_cooldown # 30 years } } if = { limit = { has_country_flag = generic_vision_8 } remove_country_flag = generic_vision_8 set_timed_country_flag = { flag = generic_vision_8_cooldown days = @delve_retrigger_cooldown # 30 years } } if = { limit = { has_country_flag = generic_vision_9 } remove_country_flag = generic_vision_9 set_timed_country_flag = { flag = generic_vision_9_cooldown days = @delve_retrigger_cooldown # 30 years } } } happiness_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3030 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3050 }} } } } happiness_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3030 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3050 }} } } } happiness_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3030 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3050 }} } } } upkeep_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3031 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3051 }} } } } upkeep_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3031 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3051 }} } } } upkeep_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3031 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3051 }} } } } research_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3032 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3052 }} } } } research_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3032 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3052 }} } } } research_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3032 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3052 }} } } } shields_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3033 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3053 }} } } } shields_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3033 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3053 }} } } } shields_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3033 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3053 }} } } } weapons_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3034 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3054 }} } } } weapons_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3034 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3054 }} } } } weapons_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3034 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3054 }} } } } firingrate_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3035 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3055 }} } } } firingrate_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3035 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3055 }} } } } firingrate_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3035 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3055 }} } } } ethics_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3036 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3056 }} } } } ethics_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3036 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3056 }} } } } ethics_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3036 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3056 }} } } } influence_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3037 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3057 }} } } } influence_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3037 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3057 }} } } } influence_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3037 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3057 }} } } } unity_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3038 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3058 }} } } } unity_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3038 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3058 }} } } } unity_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3038 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3058 }} } } } evasion_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3039 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3059 }} } } } evasion_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3039 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3059 }} } } } evasion_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3039 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3059 }} } } } repair_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3040 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3050 }} } } } repair_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3040 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3051 }} } } } repair_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3040 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3052 }} } } } lifespan_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3041 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3053 }} } } } lifespan_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3041 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3054 }} } } } lifespan_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3041 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3055 }} } } } speed_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3042 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3056 }} } } } speed_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3042 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3057 }} } } } speed_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3042 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3058 }} } } } morale_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3043 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3059 }} } } } morale_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3043 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3050 }} } } } morale_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3043 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3051 }} } } } sensor_shroud_high = { hidden_effect = { random_list = { 70 = { country_event = { id = utopia.3044 }} 20 = { country_event = { id = utopia.3045 }} 10 = { country_event = { id = utopia.3052 }} } } } sensor_shroud_medium = { hidden_effect = { random_list = { 50 = { country_event = { id = utopia.3044 }} 30 = { country_event = { id = utopia.3045 }} 20 = { country_event = { id = utopia.3053 }} } } } sensor_shroud_low = { hidden_effect = { random_list = { 30 = { country_event = { id = utopia.3044 }} 40 = { country_event = { id = utopia.3045 }} 30 = { country_event = { id = utopia.3054 }} } } } avatar_shroud_high = { hidden_effect = { random_list = { 38 = { modifier = { factor = 0 mid_game_years_passed < 0 } country_event = { id = utopia.3020 } } 38 = { modifier = { mult = 2 mid_game_years_passed < 0 } country_event = { id = utopia.3021 } } 20 = { country_event = { id = utopia.3022 }} 10 = { country_event = { id = utopia.3023 }} } } } avatar_shroud_medium = { hidden_effect = { random_list = { 25 = { modifier = { factor = 0 mid_game_years_passed < 0 } country_event = { id = utopia.3020 } } 25 = { modifier = { mult = 2 mid_game_years_passed < 0 } country_event = { id = utopia.3021 } } 30 = { country_event = { id = utopia.3022 }} 20 = { country_event = { id = utopia.3023 }} } } } avatar_shroud_low = { hidden_effect = { random_list = { 15 = { modifier = { factor = 0 mid_game_years_passed < 0 } country_event = { id = utopia.3020 } } 15 = { modifier = { mult = 2 mid_game_years_passed < 0 } country_event = { id = utopia.3021 } } 40 = { country_event = { id = utopia.3022 }} 30 = { country_event = { id = utopia.3023 }} } } } add_shroud_cooldown_modifier = { if = { limit = { is_robot_empire = yes } add_modifier = { modifier = "shroud_cooldown_robot" days = $DAYS$ time_multiplier = value:scripted_modifier_mult_capped|MODIFIER|shroud_delve_cooldown|CAP|0.1| } } else_if = { limit = { is_hive_empire = yes } add_modifier = { modifier = "shroud_cooldown_hive" days = $DAYS$ time_multiplier = value:scripted_modifier_mult_capped|MODIFIER|shroud_delve_cooldown|CAP|0.1| } } else = { add_modifier = { modifier = "shroud_cooldown" days = $DAYS$ time_multiplier = value:scripted_modifier_mult_capped|MODIFIER|shroud_delve_cooldown|CAP|0.1| } } } remove_shroud_cooldown_modifier = { if = { limit = { is_robot_empire = yes } remove_modifier = "shroud_cooldown_robot" } else_if = { limit = { is_hive_empire = yes } remove_modifier = "shroud_cooldown_hive" } else = { remove_modifier = "shroud_cooldown" } } add_shroud_precog_cooldown_modifier = { if = { limit = { is_robot_empire = yes } add_modifier = { modifier = "shroud_precog_cooldown_robot" days = $DAYS$ } } else_if = { limit = { is_hive_empire = yes } add_modifier = { modifier = "shroud_precog_cooldown_hive" days = $DAYS$ } } else = { add_modifier = { modifier = "shroud_precog_cooldown" days = $DAYS$ } } }