
TAN_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = TAN
            is_subject_of = TAN
        }
		strength_ratio = {
			tag = TAN
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = TAN
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = TAN
			}
			any_controlled_state = {
				is_core_of = TAN
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		TAN = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = TAN
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = TAN
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = TAN
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = TAN
		value = 9999
	}
}

GEO_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = GEO
            is_subject_of = GEO
        }
		strength_ratio = {
			tag = GEO
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = GEO
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = GEO
			}
			any_controlled_state = {
				is_core_of = GEO
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		GEO = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = GEO
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = GEO
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = GEO
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = GEO
		value = 9999
	}
}

KAZ_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KAZ
            is_subject_of = KAZ
        }
		strength_ratio = {
			tag = KAZ
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KAZ
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KAZ
			}
			any_controlled_state = {
				is_core_of = KAZ
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KAZ = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KAZ
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KAZ
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KAZ
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KAZ
		value = 9999
	}
}

AZR_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = AZR
            is_subject_of = AZR
        }
		strength_ratio = {
			tag = AZR
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = AZR
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = AZR
			}
			any_controlled_state = {
				is_core_of = AZR
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		AZR = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = AZR
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = AZR
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = AZR
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = AZR
		value = 9999
	}
}

ARM_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = ARM
            is_subject_of = ARM
        }
		strength_ratio = {
			tag = ARM
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = ARM
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = ARM
			}
			any_controlled_state = {
				is_core_of = ARM
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		ARM = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = ARM
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = ARM
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = ARM
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = ARM
		value = 9999
	}
}

BLR_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = BLR
            is_subject_of = BLR
        }
		strength_ratio = {
			tag = BLR
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = BLR
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = BLR
			}
			any_controlled_state = {
				is_core_of = BLR
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		BLR = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = BLR
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = BLR
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = BLR
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = BLR
		value = 9999
	}
}

KYR_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KYR
            is_subject_of = KYR
        }
		strength_ratio = {
			tag = KYR
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KYR
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KYR
			}
			any_controlled_state = {
				is_core_of = KYR
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KYR = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KYR
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KYR
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KYR
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KYR
		value = 9999
	}
}

TAJ_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = TAJ
            is_subject_of = TAJ
        }
		strength_ratio = {
			tag = TAJ
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = TAJ
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = TAJ
			}
			any_controlled_state = {
				is_core_of = TAJ
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		TAJ = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = TAJ
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = TAJ
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = TAJ
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = TAJ
		value = 9999
	}
}

TMS_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = TMS
            is_subject_of = TMS
        }
		strength_ratio = {
			tag = TMS
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = TMS
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = TMS
			}
			any_controlled_state = {
				is_core_of = TMS
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		TMS = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = TMS
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = TMS
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = TMS
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = TMS
		value = 9999
	}
}

UZB_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = UZB
            is_subject_of = UZB
        }
		strength_ratio = {
			tag = UZB
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = UZB
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = UZB
			}
			any_controlled_state = {
				is_core_of = UZB
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		UZB = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = UZB
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = UZB
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = UZB
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = UZB
		value = 9999
	}
}

KUB_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KUB
            is_subject_of = KUB
        }
		strength_ratio = {
			tag = KUB
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KUB
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KUB
			}
			any_controlled_state = {
				is_core_of = KUB
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KUB = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KUB
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KUB
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KUB
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KUB
		value = 9999
	}
}

BUK_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = BUK
            is_subject_of = BUK
        }
		strength_ratio = {
			tag = BUK
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = BUK
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = BUK
			}
			any_controlled_state = {
				is_core_of = BUK
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		BUK = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = BUK
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = BUK
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = BUK
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = BUK
		value = 9999
	}
}

ALT_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = ALT
            is_subject_of = ALT
        }
		strength_ratio = {
			tag = ALT
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = ALT
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = ALT
			}
			any_controlled_state = {
				is_core_of = ALT
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		ALT = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = ALT
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = ALT
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = ALT
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = ALT
		value = 9999
	}
}

KAL_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KAL
            is_subject_of = KAL
        }
		strength_ratio = {
			tag = KAL
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KAL
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KAL
			}
			any_controlled_state = {
				is_core_of = KAL
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KAL = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KAL
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KAL
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KAL
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KAL
		value = 9999
	}
}

KAR_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KAR
            is_subject_of = KAR
        }
		strength_ratio = {
			tag = KAR
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KAR
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KAR
			}
			any_controlled_state = {
				is_core_of = KAR
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KAR = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KAR
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KAR
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KAR
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KAR
		value = 9999
	}
}

CRI_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = CRI
            is_subject_of = CRI
        }
		strength_ratio = {
			tag = CRI
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = CRI
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = CRI
			}
			any_controlled_state = {
				is_core_of = CRI
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		CRI = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = CRI
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = CRI
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = CRI
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = CRI
		value = 9999
	}
}

TAT_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = TAT
            is_subject_of = TAT
        }
		strength_ratio = {
			tag = TAT
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = TAT
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = TAT
			}
			any_controlled_state = {
				is_core_of = TAT
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		TAT = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = TAT
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = TAT
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = TAT
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = TAT
		value = 9999
	}
}

CIN_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = CIN
            is_subject_of = CIN
        }
		strength_ratio = {
			tag = CIN
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = CIN
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = CIN
			}
			any_controlled_state = {
				is_core_of = CIN
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		CIN = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = CIN
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = CIN
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = CIN
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = CIN
		value = 9999
	}
}

DAG_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = DAG
            is_subject_of = DAG
        }
		strength_ratio = {
			tag = DAG
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = DAG
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = DAG
			}
			any_controlled_state = {
				is_core_of = DAG
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		DAG = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = DAG
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = DAG
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = DAG
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = DAG
		value = 9999
	}
}

BYA_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = BYA
            is_subject_of = BYA
        }
		strength_ratio = {
			tag = BYA
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = BYA
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = BYA
			}
			any_controlled_state = {
				is_core_of = BYA
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		BYA = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = BYA
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = BYA
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = BYA
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = BYA
		value = 9999
	}
}

CKK_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = CKK
            is_subject_of = CKK
        }
		strength_ratio = {
			tag = CKK
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = CKK
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = CKK
			}
			any_controlled_state = {
				is_core_of = CKK
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		CKK = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = CKK
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = CKK
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = CKK
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = CKK
		value = 9999
	}
}

YAK_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = YAK
            is_subject_of = YAK
        }
		strength_ratio = {
			tag = YAK
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = YAK
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = YAK
			}
			any_controlled_state = {
				is_core_of = YAK
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		YAK = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = YAK
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = YAK
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = YAK
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = YAK
		value = 9999
	}
}

VLA_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = VLA
            is_subject_of = VLA
        }
		strength_ratio = {
			tag = VLA
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = VLA
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = VLA
			}
			any_controlled_state = {
				is_core_of = VLA
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		VLA = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = VLA
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = VLA
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = VLA
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = VLA
		value = 9999
	}
}

KKP_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KKP
            is_subject_of = KKP
        }
		strength_ratio = {
			tag = KKP
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KKP
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KKP
			}
			any_controlled_state = {
				is_core_of = KKP
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KKP = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KKP
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KKP
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KKP
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KKP
		value = 9999
	}
}

YAM_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = YAM
            is_subject_of = YAM
        }
		strength_ratio = {
			tag = YAM
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = YAM
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = YAM
			}
			any_controlled_state = {
				is_core_of = YAM
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		YAM = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = YAM
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = YAM
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = YAM
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = YAM
		value = 9999
	}
}

TAY_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = TAY
            is_subject_of = TAY
        }
		strength_ratio = {
			tag = TAY
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = TAY
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = TAY
			}
			any_controlled_state = {
				is_core_of = TAY
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		TAY = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = TAY
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = TAY
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = TAY
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = TAY
		value = 9999
	}
}

OVO_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = OVO
            is_subject_of = OVO
        }
		strength_ratio = {
			tag = OVO
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = OVO
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = OVO
			}
			any_controlled_state = {
				is_core_of = OVO
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		OVO = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = OVO
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = OVO
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = OVO
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = OVO
		value = 9999
	}
}

NEN_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = NEN
            is_subject_of = NEN
        }
		strength_ratio = {
			tag = NEN
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = NEN
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = NEN
			}
			any_controlled_state = {
				is_core_of = NEN
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		NEN = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = NEN
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = NEN
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = NEN
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = NEN
		value = 9999
	}
}

ABK_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = ABK
            is_subject_of = ABK
        }
		strength_ratio = {
			tag = ABK
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = ABK
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = ABK
			}
			any_controlled_state = {
				is_core_of = ABK
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		ABK = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = ABK
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = ABK
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = ABK
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = ABK
		value = 9999
	}
}

KBK_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KBK
            is_subject_of = KBK
        }
		strength_ratio = {
			tag = KBK
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KBK
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KBK
			}
			any_controlled_state = {
				is_core_of = KBK
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KBK = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KBK
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KBK
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KBK
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KBK
		value = 9999
	}
}

NOA_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = NOA
            is_subject_of = NOA
        }
		strength_ratio = {
			tag = NOA
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = NOA
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = NOA
			}
			any_controlled_state = {
				is_core_of = NOA
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		NOA = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = NOA
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = NOA
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = NOA
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = NOA
		value = 9999
	}
}

VGE_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = VGE
            is_subject_of = VGE
        }
		strength_ratio = {
			tag = VGE
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = VGE
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = VGE
			}
			any_controlled_state = {
				is_core_of = VGE
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		VGE = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = VGE
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = VGE
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = VGE
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = VGE
		value = 9999
	}
}

BSK_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = BSK
            is_subject_of = BSK
        }
		strength_ratio = {
			tag = BSK
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = BSK
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = BSK
			}
			any_controlled_state = {
				is_core_of = BSK
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		BSK = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = BSK
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = BSK
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = BSK
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = BSK
		value = 9999
	}
}

KHI_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KHI
            is_subject_of = KHI
        }
		strength_ratio = {
			tag = KHI
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KHI
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KHI
			}
			any_controlled_state = {
				is_core_of = KHI
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KHI = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KHI
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KHI
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KHI
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KHI
		value = 9999
	}
}

UDM_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = UDM
            is_subject_of = UDM
        }
		strength_ratio = {
			tag = UDM
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = UDM
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = UDM
			}
			any_controlled_state = {
				is_core_of = UDM
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		UDM = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = UDM
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = UDM
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = UDM
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = UDM
		value = 9999
	}
}

CHU_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = CHU
            is_subject_of = CHU
        }
		strength_ratio = {
			tag = CHU
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = CHU
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = CHU
			}
			any_controlled_state = {
				is_core_of = CHU
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		CHU = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = CHU
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = CHU
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = CHU
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = CHU
		value = 9999
	}
}

MEL_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = MEL
            is_subject_of = MEL
        }
		strength_ratio = {
			tag = MEL
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = MEL
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = MEL
			}
			any_controlled_state = {
				is_core_of = MEL
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		MEL = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = MEL
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = MEL
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = MEL
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = MEL
		value = 9999
	}
}

SIB_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = SIB
            is_subject_of = SIB
        }
		strength_ratio = {
			tag = SIB
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = SIB
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = SIB
			}
			any_controlled_state = {
				is_core_of = SIB
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		SIB = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = SIB
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = SIB
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = SIB
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = SIB
		value = 9999
	}
}

CIR_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = CIR
            is_subject_of = CIR
        }
		strength_ratio = {
			tag = CIR
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = CIR
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = CIR
			}
			any_controlled_state = {
				is_core_of = CIR
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		CIR = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = CIR
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = CIR
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = CIR
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = CIR
		value = 9999
	}
}

GPM_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = GPM
            is_subject_of = GPM
        }
		strength_ratio = {
			tag = GPM
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = GPM
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = GPM
			}
			any_controlled_state = {
				is_core_of = GPM
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		GPM = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = GPM
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = GPM
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = GPM
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = GPM
		value = 9999
	}
}

NOV_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = NOV
            is_subject_of = NOV
        }
		strength_ratio = {
			tag = NOV
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = NOV
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = NOV
			}
			any_controlled_state = {
				is_core_of = NOV
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		NOV = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = NOV
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = NOV
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = NOV
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = NOV
		value = 9999
	}
}

PRM_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = PRM
            is_subject_of = PRM
        }
		strength_ratio = {
			tag = PRM
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = PRM
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = PRM
			}
			any_controlled_state = {
				is_core_of = PRM
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		PRM = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = PRM
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = PRM
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = PRM
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = PRM
		value = 9999
	}
}

ROS_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = ROS
            is_subject_of = ROS
        }
		strength_ratio = {
			tag = ROS
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = ROS
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = ROS
			}
			any_controlled_state = {
				is_core_of = ROS
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		ROS = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = ROS
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = ROS
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = ROS
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = ROS
		value = 9999
	}
}

STP_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = STP
            is_subject_of = STP
        }
		strength_ratio = {
			tag = STP
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = STP
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = STP
			}
			any_controlled_state = {
				is_core_of = STP
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		STP = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = STP
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = STP
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = STP
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = STP
		value = 9999
	}
}

VLG_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = VLG
            is_subject_of = VLG
        }
		strength_ratio = {
			tag = VLG
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = VLG
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = VLG
			}
			any_controlled_state = {
				is_core_of = VLG
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		VLG = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = VLG
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = VLG
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = VLG
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = VLG
		value = 9999
	}
}

URA_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = URA
            is_subject_of = URA
        }
		strength_ratio = {
			tag = URA
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = URA
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = URA
			}
			any_controlled_state = {
				is_core_of = URA
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		URA = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = URA
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = URA
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = URA
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = URA
		value = 9999
	}
}

KMI_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = KMI
            is_subject_of = KMI
        }
		strength_ratio = {
			tag = KMI
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = KMI
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = KMI
			}
			any_controlled_state = {
				is_core_of = KMI
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		KMI = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = KMI
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = KMI
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = KMI
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = KMI
		value = 9999
	}
}

EFR_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = EFR
            is_subject_of = EFR
        }
		strength_ratio = {
			tag = EFR
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = EFR
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = EFR
			}
			any_controlled_state = {
				is_core_of = EFR
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		EFR = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = EFR
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = EFR
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = EFR
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = EFR
		value = 9999
	}
}

VYA_recover_core_territory = {

	reversed = yes

	target_array = neighbors

	enable = {
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
            is_in_faction_with = VYA
            is_subject_of = VYA
        }
		strength_ratio = {
			tag = VYA
			ratio < 1.25
		}
        if = {
			limit = {
				is_subject = yes
			}
			OVERLORD = {
				strength_ratio = {
					tag = VYA
					ratio < 1.25
				}
			}
		}
		OR = {
            any_owned_state = {
				is_core_of = VYA
			}
			any_controlled_state = {
				is_core_of = VYA
			}
        }
	}

	enable_reverse = {
        NOT = {
            has_global_flag = second_russian_civil_war_in_progress
        }
		VYA = {
			has_war = no
			is_subject = no
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = conquer
		id = VYA
		value = 9999
	}

    ai_strategy = {
		type = consider_weak
		id = VYA
		value = 9999
	}

	ai_strategy = {
		type = antagonize
		id = VYA
		value = 9999
	}

	ai_strategy = {
		type = declare_war
		id = VYA
		value = 9999
	}
}
