# FOREIGN POLICY foreign_politics = { RNG_core_state = { icon = GFX_decision_infiltrate_state allowed = { original_tag = RNG } visible = { JAP = { has_completed_focus = JAP_reorganized_national_government } is_ally_with = JAP } available = { NOT = { has_country_flag = RNG_coring_state_in_progress } } target_root_trigger = { original_tag = RNG } state_target = any_controlled_state target_trigger = { FROM = { NOT = { is_core_of = ROOT } is_fully_controlled_by = ROOT is_core_of = CHI any_neighbor_state = { is_core_of = ROOT } } } on_map_mode = map_and_decisions_view cost = 75 fire_only_once = yes days_remove = 70 ai_will_do = { base = 150 modifier = { factor = 0 has_political_power < 100 } modifier = { factor = 0.5 has_political_power < 125 } } complete_effect = { hidden_effect = { set_country_flag = { flag = RNG_coring_state_in_progress value = 1 days = 69 } } } remove_effect = { hidden_effect = { clr_country_flag = RNG_coring_state_in_progress } IF = { limit = { FROM = { NOT = { is_owned_by = ROOT } } } FROM = { add_core_of = ROOT transfer_state_to = ROOT } } ELSE = { FROM = { add_core_of = ROOT } } } cancel_trigger = { FROM = { NOT = { is_fully_controlled_by = ROOT } } } cancel_effect = { hidden_effect = { clr_country_flag = RNG_coring_state_in_progress } } } }