on_actions = {
	#Do stuff
	on_startup = {
		effect = {
			SOV = {
				#Remove the retarded Generated Advisors who are unavailable unless you recruit characters in the history files, GG Paradox
				country_event = { id = russia2_russia.651 }
			}
            if = {
				limit = {
					has_game_rule = {
						rule = sov_enable_wide_putin
						option = SOV_ENABLE_WIDE_PUTIN
					}
				}
				set_global_flag = russia_reworked_wide_putin_enabled
			}
			#Disable vanilla Yalta Conference
			set_global_flag = had_yalta_conference
			#Disable form Siberia
			set_global_flag = form_siberian_republic_flag
			set_global_flag = far_east_integrated_flag
			set_global_flag = urals_integrated_flag
			set_global_flag = ainu_integrated_flag
			#Disable form Ural
			set_global_flag = form_idel_ural_flag
			#Disable Mountainous Republic
			set_global_flag = form_mountainous_republic_flag
			#Disable form Turkestan
			set_global_flag = form_turkestan_flag
			#Disable form Transcausasian Republic
			set_global_flag = form_transcaucasia_flag
			set_global_flag = azeris_united_flag
			set_global_flag = northern_caucasus_claimed_flag
			set_global_flag = anatolians_liberated_flag
			set_global_flag = kalmyk_khanate_restored_flag
			set_global_flag = crimean_khanate_restored_flag
			set_global_flag = anatolian_kurds_subjugated_flag
            #Transform AI game rules into country flags
			SOV = {
				if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = DEFAULT
						}
					}
					set_country_flag = RUS_AI_DEFAULT_BEHAVIOR #Unused
					set_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = JOSEPH_STALIN_COMMUNISM
						}
					}
					set_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = OPPOSE_STALIN_COMMUNISM
						}
					}
					set_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = LEON_TROTSKY_COMMUNISM
						}
					}
					set_country_flag = RUS_AI_LEON_TROTSKY_COMMUNISM_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = RANDOM_COMMUNISM
						}
					}
					random_list = {
						33 = {
							set_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
						}
						33 = {
							set_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
						}
						33 = {
							set_country_flag = RUS_AI_LEON_TROTSKY_COMMUNISM_BEHAVIOR
						}
					}
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = ALEXANDER_KERENSKY_DEMOCRATIC
						}
					}
					set_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = PAVEL_MILYUKOV_DEMOCRATIC
						}
					}
					set_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = ALEXANDER_KONOVALOV_DEMOCRATIC
						}
					}
					set_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = IVAN_NIKOLAEVICH_DEMOCRATIC
						}
					}
					set_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = RANDOM_DEMOCRATIC
						}
					}
					random_list = {
						25 = {
							set_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
						}
						25 = {
							set_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
						}
						25 = {
							set_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
						}
						25 = {
							set_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						}
					}
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = VLADIMIR_KIRILLOVICH_NEUTRALITY
						}
					}
					set_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = ANASTASIA_NIKOLAEVNA_NEUTRALITY
						}
					}
					set_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = ANDREY_VLASOV_NEUTRALITY
						}
					}
					set_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = PAVEL_BERMONDT_AVALOV_NEUTRALITY
						}
					}
					set_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = RANDOM_NEUTRALITY
						}
					}
					random_list = {
						25 = {
							set_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
						}
						25 = {
							set_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
						}
						25 = {
							set_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
						}
						25 = {
							set_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
						}
					}
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = KONSTANTIN_RODZAEVSKY_FASCIST
						}
					}
					set_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = ANASTASY_VONSYATSKY_FASCIST
						}
					}
					set_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = RANDOM_FASCIST
						}
					}
					random_list = {
						50 = {
							set_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
						}
						50 = {
							set_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
						}
					}
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = PETER_ARSHINOV_ANARCHIST
						}
					}
					set_country_flag = RUS_AI_PETER_ARSHINOV_ANARCHIST_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = VSEVOLOD_MIKHAILOVICH_EIKHENBAUM_ANARCHIST
						}
					}
					set_country_flag = RUS_AI_VSEVOLOD_MIKHAILOVICH_EIKHENBAUM_ANARCHIST_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = ALEXEI_BOROVOI_ANARCHIST
						}
					}
					set_country_flag = RUS_AI_ALEXEI_BOROVOI_ANARCHIST_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = CHAOS_REUNIFY_RUSSIA_ANARCHIST
						}
					}
					set_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = CHAOS_RUSSIAN_LEAGUE_ANARCHIST
						}
					}
					set_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = CHAOS_FREE_RUSSIA_ANARCHIST
						}
					}
					set_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = RANDOM_ANARCHIST
						}
					}
					random_list = {
						16 = {
							set_country_flag = RUS_AI_PETER_ARSHINOV_ANARCHIST_BEHAVIOR
						}
						16 = {
							set_country_flag = RUS_AI_VSEVOLOD_MIKHAILOVICH_EIKHENBAUM_ANARCHIST_BEHAVIOR
						}
						16 = {
							set_country_flag = RUS_AI_ALEXEI_BOROVOI_ANARCHIST_BEHAVIOR
						}
						16 = {
							set_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
						}
						16 = {
							set_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
						}
						16 = {
							set_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
						}
					}
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = RANDOM
						}
					}
					random_list = {
						5 = {
							set_country_flag = RUS_AI_JOSEPH_STALIN_COMMUNISM_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_OPPOSE_STALIN_COMMUNISM_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_LEON_TROTSKY_COMMUNISM_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_ALEXANDER_KERENSKY_DEMOCRATIC_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_PAVEL_MILYUKOV_DEMOCRATIC_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_ALEXANDER_KONOVALOV_DEMOCRATIC_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_IVAN_NIKOLAEVICH_DEMOCRATIC_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_PETER_ARSHINOV_ANARCHIST_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_VSEVOLOD_MIKHAILOVICH_EIKHENBAUM_ANARCHIST_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_ALEXEI_BOROVOI_ANARCHIST_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
						}
						5 = {
							set_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
						}
					}
				}
				else_if = {
					limit = {
						has_game_rule = {
							rule = RUS_ai_behavior
							option = FULL_RANDOM
						}
					}
					set_country_flag = RUS_AI_FULL_RANDOM_BEHAVIOR
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = ANARCHISM
					}
				}
				UKR = {
					set_country_flag = UKR_AI_ANARCHIST_BEHAVIOR
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = DEMOCRATIC
					}
				}
				UKR = {
					set_country_flag = UKR_AI_DEMOCRATIC_BEHAVIOR
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = NEUTRALITY
					}
				}
				UKR = {
					set_country_flag = UKR_AI_NEUTRALITY_BEHAVIOR
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = COMMUNISM
					}
				}
				UKR = {
					set_country_flag = UKR_AI_COMMUNIST_BEHAVIOR
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = FASCISM
					}
				}
				UKR = {
					set_country_flag = UKR_AI_FASCIST_BEHAVIOR
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = ISOLATED
					}
				}
				UKR = {
					set_country_flag = UKR_AI_ISOLATED_BEHAVIOR
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = AGGRESSIVE
					}
				}
				UKR = {
					set_country_flag = UKR_AI_AGGRESSIVE_BEHAVIOR
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = ALLIANCE_FINLAND
					}
				}
				UKR = {
					set_country_flag = UKR_AI_ALLIANCE_FINLAND_BEHAVIOR
				}
			}
			else_if = {
				limit = {
					OR = {
						has_game_rule = {
							rule = UKR_ai_behavior
							option = DEFAULT
						}
						has_game_rule = {
							rule = UKR_ai_behavior
							option = RANDOM
						}
					}
				}
				UKR = {
					random_list = {
						33 = {
							set_country_flag = UKR_AI_ANARCHIST_BEHAVIOR
						}
						33 = {
							random_list = {
								25 = {
									set_country_flag = UKR_AI_DEMOCRATIC_BEHAVIOR
								}
								25 = {
									set_country_flag = UKR_AI_NEUTRAL_BEHAVIOR
								}
								25 = {
									set_country_flag = UKR_AI_COMMUNIST_BEHAVIOR
								}
								25 = {
									set_country_flag = UKR_AI_FASCIST_BEHAVIOR
								}
							}
						}
						33 = {
							random_list = {
								33 = {
									set_country_flag = UKR_AI_ISOLATED_BEHAVIOR
								}
								33 = {
									set_country_flag = UKR_AI_AGGRESSIVE_BEHAVIOR
								}
								33 = {
									set_country_flag = UKR_AI_ALLIANCE_FINLAND_BEHAVIOR
								}
							}
						}
					}
				}
			}
			for_each_scope_loop = {
                array = global.russia_reworked_russian_states
                break = break_loop

				if = {
					limit = {
						meta_trigger = {
							text = {
								has_game_rule = {
									rule = [TAG_RULE]
									option = DEMOCRATIC
								}
							}
							TAG_RULE = "[THIS.GetTag]_ai_behavior"
						}
					}
					set_country_flag = RSC_AI_RANDOM_DEMOCRATIC_BEHAVIOR
				}
				else_if = {
					limit = {
						meta_trigger = {
							text = {
								has_game_rule = {
									rule = [TAG_RULE]
									option = NEUTRALITY
								}
							}
							TAG_RULE = "[THIS.GetTag]_ai_behavior"
						}
					}
					set_country_flag = RSC_AI_RANDOM_NEUTRAL_BEHAVIOR
				}
				else_if = {
					limit = {
						meta_trigger = {
							text = {
								has_game_rule = {
									rule = [TAG_RULE]
									option = COMMUNISM
								}
							}
							TAG_RULE = "[THIS.GetTag]_ai_behavior"
						}
					}
					set_country_flag = RSC_AI_RANDOM_COMMUNIST_BEHAVIOR
				}
				else_if = {
					limit = {
						meta_trigger = {
							text = {
								has_game_rule = {
									rule = [TAG_RULE]
									option = FASCISM
								}
							}
							TAG_RULE = "[THIS.GetTag]_ai_behavior"
						}
					}
					set_country_flag = RSC_AI_RANDOM_FASCIST_BEHAVIOR
				}
				else_if = {
					limit = {
						meta_trigger = {
							text = {
								has_game_rule = {
									rule = [TAG_RULE]
									option = RANDOM
								}
							}
							TAG_RULE = "[THIS.GetTag]_ai_behavior"
						}
					}
					random_list = {
						25 = {
							set_country_flag = RSC_AI_RANDOM_DEMOCRATIC_BEHAVIOR
						}
						25 = {
							set_country_flag = RSC_AI_RANDOM_NEUTRAL_BEHAVIOR
						}
						25 = {
							set_country_flag = RSC_AI_RANDOM_COMMUNIST_BEHAVIOR
						}
						25 = {
							set_country_flag = RSC_AI_RANDOM_FASCIST_BEHAVIOR
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = sov_enable_national_obligations
						option = DEFAULT
					}
				}
				set_global_flag = sov_national_obligations_allowed
			}
			if = {
				limit = {
					has_game_rule = {
						rule = sov_enable_achievements
						option = DEFAULT
					}
				}
				set_global_flag = russia_reworked_achievements_enabled
			}
			if = {
				limit = {
					has_game_rule = {
						rule = sov_civil_war_playable_nation
						option = BLR
					}
				}
				set_variable = { global.russia_switch_country_id_scw = BLR.id }
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = sov_civil_war_playable_nation
						option = CRI
					}
				}
				set_variable = { global.russia_switch_country_id_scw = CRI.id }
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = sov_civil_war_playable_nation
						option = TMS
					}
				}
				set_variable = { global.russia_switch_country_id_scw = TMS.id }
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = sov_civil_war_playable_nation
						option = KAZ
					}
				}
				set_variable = { global.russia_switch_country_id_scw = KAZ.id }
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = sov_civil_war_playable_nation
						option = GEO
					}
				}
				set_variable = { global.russia_switch_country_id_scw = GEO.id }
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = sov_civil_war_playable_nation
						option = AZR
					}
				}
				set_variable = { global.russia_switch_country_id_scw = AZR.id }
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = sov_civil_war_playable_nation
						option = ARM
					}
				}
				set_variable = { global.russia_switch_country_id_scw = ARM.id }
			}
			set_victory_points = {
				province = 6124
				value = 1
			}
			set_province_name = {
				id = 6124
				name = "Kirov"
			}
			set_victory_points = {
				province = 99
				value = 1
			}
			set_province_name = {
				id = 99
				name = "Syktyvkar"
			}
			#DESTROY FER
			every_state = {
				limit = {
					is_core_of = FER
				}
				FER = {
					remove_state_core = PREV
				}
			}
			if = {
				limit = {
					country_exists = FER
				}
				SOV = {
					annex_country = {
						target = FER
					}
				}
			}
			#DESTROY KOM
			every_state = {
				limit = {
					is_core_of = KOM
				}
				KOM = {
					remove_state_core = PREV
				}
			}
			if = {
				limit = {
					country_exists = KOM
				}
				SOV = {
					annex_country = {
						target = KOM
					}
				}
			}
			EFR = {
				add_state_core = 644
				add_state_core = 637
				add_state_core = 562
				add_state_core = 574
				add_state_core = 565
				add_state_core = 564
				add_state_core = 563
				add_state_core = 561
				add_state_core = 560
				add_state_core = 657
				add_state_core = 409
				add_state_core = 408
				add_state_core = 655
				add_state_core = 537
				add_state_core = 822
				add_state_core = 874
				add_state_core = 877
				add_state_core = 876
			}
			SIB = {
				add_state_core = 408
				add_state_core = 409
				add_state_core = 560
				add_state_core = 655
				add_state_core = 537
				add_state_core = 822
				add_state_core = 657
				add_state_core = 561
				add_state_core = 574
				add_state_core = 562
				add_state_core = 637
				add_state_core = 644
				add_state_core = 563
				add_state_core = 565
				add_state_core = 564
				add_state_core = 575
				add_state_core = 516
				add_state_core = 566
				add_state_core = 567
				add_state_core = 576
				add_state_core = 568
				add_state_core = 569
				add_state_core = 578
				add_state_core = 570
				add_state_core = 577
				add_state_core = 571
				add_state_core = 654
				add_state_core = 40
				add_state_core = 329
				add_state_core = 572
				add_state_core = 653
				add_state_core = 580
				add_state_core = 579
				add_state_core = 403
				add_state_core = 824
				add_state_core = 874
				add_state_core = 878
				add_state_core = 876
				add_state_core = 877
			}
			KAR = {
				add_state_core = 216
				add_state_core = 215
				add_state_core = 213
			}
			CIR = {
				add_state_core = 233
				add_state_core = 234
				add_state_core = 235
				add_state_core = 827
				add_state_core = 828
				add_state_core = 821
			}
			BSK = {
				add_state_core = 652
			}
			CRI = {
				add_state_core = 137
				add_state_core = 196
			}
			DAG = {
				add_state_core = 232
			}
			KAL = {
				add_state_core = 236
				add_state_core = 237
			}
			KUB = {
				add_state_core = 236
				add_state_core = 237
				add_state_core = 217
				add_state_core = 265
				add_state_core = 245
				add_state_core = 238
				add_state_core = 218
				add_state_core = 234
				add_state_core = 235
				add_state_core = 232
				add_state_core = 821
				add_state_core = 828
				add_state_core = 827
				add_state_core = 233
				add_state_core = 829
			}
			KMI = {
				add_state_core = 262
				add_state_core = 397
				add_state_core = 581
			}
			VYA = {
				add_state_core = 400
			}
			NOV = {
				add_state_core = 208
				add_state_core = 209
				add_state_core = 210
				add_state_core = 263
				add_state_core = 244
				add_state_core = 264
				add_state_core = 216
				add_state_core = 215
				add_state_core = 351
				add_state_core = 214
				add_state_core = 262
				add_state_core = 397
				add_state_core = 400
				add_state_core = 825
				add_state_core = 879
				add_state_core = 880
				add_state_claim = 195
			}
			PRM = {
				add_state_core = 398
			}
			ROS = {
				add_state_core = 218
				add_state_core = 238
				add_state_core = 245
			}
			STP = {
				add_state_core = 195
			}
			VLG = {
				add_state_core = 217
				add_state_core = 265
				add_state_core = 829
			}
			TAT = {
				add_state_core = 249
			}
			VGE = {
				add_state_core = 401
			}
			URA = {
				add_state_core = 403
				add_state_core = 581
				add_state_core = 573
				add_state_core = 582
				add_state_core = 572
				add_state_core = 653
				add_state_core = 580
				add_state_core = 579
				add_state_core = 398
				add_state_claim = 651
				add_state_claim = 652
			}
			if = {
				limit = {
					has_game_rule = {
						rule = sov_fragmentation_status
						option = SOV_FRAGMENTED
					}
				}
				set_global_flag = russia_reworked_can_switch_country
				SOV = {
					drop_cosmetic_tag = yes
					clr_global_flag = SOV_became_russia
					add_state_core = 207
					add_state_core = 206
					add_state_core = 241
					add_state_core = 204
					add_state_core = 194
					add_state_core = 201
					add_state_core = 199
					add_state_core = 198
					add_state_core = 202
					add_state_core = 193
					add_state_core = 225
					add_state_core = 259
					add_state_core = 203
					add_state_core = 834
					add_state_core = 192
					add_state_core = 197
					add_state_core = 196
					add_state_core = 226
					add_state_core = 200
					add_state_core = 221
					add_state_core = 227
					add_state_core = 228
					add_state_core = 231
					add_state_core = 229
					add_state_core = 230
					add_state_core = 407
					add_state_core = 406
					add_state_core = 402
					add_state_core = 587
					add_state_core = 583
					add_state_core = 590
					add_state_core = 588
					add_state_core = 589
					add_state_core = 404
					add_state_core = 586
					add_state_core = 732
					add_state_core = 742
					add_state_core = 405
					add_state_core = 830
					add_state_core = 585
					add_state_core = 823
					add_state_core = 832
					add_state_core = 584
				}
				for_each_scope_loop = {
					array = global.russia_reworked_russian_states

					if = {
						limit = {
							exists = yes
						}
						meta_effect = {
							text = {
								division_template = {
									name = "[TEMPLATE_NAME]"
									is_locked = no

									regiments = {
										infantry = { x = 0 y = 0 }
										infantry = { x = 0 y = 1 }
										infantry = { x = 0 y = 2 }
										infantry = { x = 1 y = 0 }
										infantry = { x = 1 y = 1 }
										infantry = { x = 1 y = 2 }
										infantry = { x = 2 y = 0 }
										infantry = { x = 2 y = 1 }
										infantry = { x = 2 y = 2 }
									}
									support = {
										artillery = { x = 0 y = 0 }
									}
								}
							}
							TEMPLATE_NAME = "[THIS.GetAdjective] Military Police"
						}
						meta_effect = {
							text = {
								division_template = {
									name = "[TEMPLATE_NAME]"
									is_locked = no

									regiments = {
										light_armor = { x = 0 y = 0 }
										light_armor = { x = 0 y = 1 }
										light_armor = { x = 1 y = 0 }
										light_armor = { x = 1 y = 1 }
										light_armor = { x = 1 y = 2 }
										motorized = { x = 2 y = 0 }
										motorized = { x = 2 y = 1 }
										motorized = { x = 2 y = 2 }
										motorized = { x = 2 y = 3 }
									}
								}
							}
							TEMPLATE_NAME = "[THIS.Capital.GetName] Tank Brigade"
						}

						set_temp_variable = { num_divisions_russian_state = THIS.owned_controlled_states }
						set_temp_variable = { tank_division_russian_state = 0 }
						clamp_temp_variable = {
							var = num_divisions_russian_state
							min = 3
							max = 50
						}

						while_loop_effect = {
							break = break
							limit = {
								check_variable = {
									var = num_divisions_russian_state
									value = 1
									compare = greater_than_or_equals
								}
							}

							random_owned_controlled_state = {
								meta_effect = {
									text = {
										create_unit = {
											division = "name = \"[UNIT_NAME]\" division_template = \"[TEMPLATE_NAME]\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
											owner = PREV
											allow_spawning_on_enemy_provs = yes
										}
									}
									UNIT_NAME = "[PREV.GetAdjective] Military Police [?num_divisions_russian_state]"
									TEMPLATE_NAME = "[PREV.GetAdjective] Military Police"
								}
							}
							add_to_temp_variable = { tank_division_russian_state = 1 }
							if = {
								limit = {
									check_variable = {
										var = tank_division_russian_state
										value = 10
										compare = greater_than_or_equals
									}
								}
								capital_scope = {
									meta_effect = {
										text = {
											create_unit = {
												division = "name = \"[UNIT_NAME]\" division_template = \"[TEMPLATE_NAME]\" start_experience_factor = 0.6 start_equipment_factor = 1.0"
												owner = PREV
												allow_spawning_on_enemy_provs = yes
											}
										}
										UNIT_NAME = "[THIS.GetName] Tank Brigade"
										TEMPLATE_NAME = "[THIS.GetName] Tank Brigade"
									}
								}
								set_temp_variable = { tank_division_russian_state = 0 }
							}
							subtract_from_temp_variable = { num_divisions_russian_state = 1 }
						}
						delete_unit_template_and_units = {
							division_template = "Strelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Gornostrelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Motostrelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Kavaleriyskaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "NKVD Pogranichnaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Mekhanizirovaniy Korpus"
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = sov_fragmentation_status
						option = SOV_UTTERLY_FRAGMENTED
					}
				}
				set_global_flag = russia_reworked_can_switch_country
				TAN = {
					leave_faction = yes
				}
				MON = {
					leave_faction = yes
				}
				UKR = {
					transfer_state = 834
					if = {
						limit = {
							NOT = {
								has_game_rule = {
									rule = sov_crimea_status
									option = SOV_CRIMEA_EXTENDED
								}
							}
						}
						transfer_state = 196
					}
				}
				BSK = {
					transfer_state = 652
				}
				SOV = {
					release = PRM
					release = TAT
					if = {
						limit = {
							has_game_rule = {
								rule = sov_novgorod_status
								option = SOV_NOVGOROD_EXTENDED
							}
						}
						release = NOV
						release = KAR
						release = KMI
						NOV = {
							transfer_state = 195
							transfer_state = 825
							transfer_state = 216
							transfer_state = 215
						}
					}
					else = {
						release = KAR
						release = KMI
						release = VYA
						release = STP
						release = NOV
					}
					if = {
						limit = {
							has_game_rule = {
								rule = sov_siberia_status
								option = SOV_SIBERIA_FULL
							}
						}
						release = SIB
						release = URA
						every_state = {
							limit = {
								is_core_of = SIB
								NOT = {
									is_owned_by = SIB
								}
							}
							SIB = {
								transfer_state = PREV
							}
						}
					}
					else_if = {
						limit = {
							has_game_rule = {
								rule = sov_siberia_status
								option = SOV_SIBERIA_EXTENDED
							}
						}
						release = URA
						release = SIB
						SIB = {
							transfer_state = 40
							transfer_state = 564
							transfer_state = 329
							transfer_state = 654
							transfer_state = 516
							transfer_state = 824
							transfer_state = 577
							transfer_state = 408
							transfer_state = 409
							transfer_state = 822
							transfer_state = 644
							transfer_state = 574
							transfer_state = 569
						}
					}
					else_if = {
						limit = {
							has_game_rule = {
								rule = sov_siberia_status
								option = SOV_SIBERIA_SEMI_EXTENDED
							}
						}
						release = EFR
						release = URA
						release = SIB
						SIB = {
							transfer_state = 40
							transfer_state = 564
							transfer_state = 329
							transfer_state = 654
							transfer_state = 516
							transfer_state = 824
							transfer_state = 577
							transfer_state = 569
						}
					}
					else = {
						release = EFR
						release = URA
						release = SIB
						SIB = {
							transfer_state = 569
						}
					}
					if = {
						limit = {
							country_exists = EFR
							has_game_rule = {
								rule = sov_far_east_status
								option = SOV_FAR_EAST_EXTENDED
							}
						}
						every_state = {
							limit = {
								is_core_of = EFR
								NOT = {
									is_owned_by = EFR
									is_owned_by = SIB
								}
							}
							EFR = {
								transfer_state = PREV
							}
						}
					}
					if = {
						limit = {
							has_game_rule = {
								rule = sov_urals_status
								option = SOV_URALS_EXTENDED
							}
						}
						every_state = {
							limit = {
								is_core_of = URA
								NOT = {
									is_owned_by = URA
									is_owned_by = SIB
								}
							}
							URA = {
								transfer_state = PREV
							}
						}
					}
					release = CRI
					if = {
						limit = {
							has_game_rule = {
								rule = sov_uzbekistan_status
								option = SOV_UZBEKISTAN_EXTENDED
							}
						}
						UZB = {
							transfer_state = 830
							transfer_state = 823
							transfer_state = 831
						}
					}
					if = {
						limit = {
							has_game_rule = {
								rule = sov_turkmenistan_status
								option = SOV_TURKMENISTAN_EXTENDED
							}
						}
						TMS = {
							transfer_state = 832
						}
					}
					if = {
						limit = {
							has_game_rule = {
								rule = sov_volga_germany_status
								option = SOV_VOLGA_GERMANY_RELEASED
							}
						}
						VGE = {
							transfer_state = 401
						}
					}
					else = {
						transfer_state = 829
					}
					if = {
						limit = {
							has_game_rule = {
								rule = sov_kuban_status
								option = SOV_KUBAN_RELEASED_AND_EXTENDED
							}
						}
						release = KUB
						KUB = {
							transfer_state = 237
							transfer_state = 827
							transfer_state = 828
							transfer_state = 821
							transfer_state = 232
						}
					}
					else_if = {
						limit = {
							has_game_rule = {
								rule = sov_kuban_status
								option = SOV_KUBAN_RELEASED
							}
						}
						release = CIR
						release = DAG
						release = KUB
						KUB = {
							transfer_state = 237
						}
						if = {
							limit = {
								has_game_rule = {
									rule = sov_circassia_status
									option = SOV_CIRCASSIA_EXTENDED
								}
							}
							CIR = {
								transfer_state = 827
								transfer_state = 828
								transfer_state = 821
							}
						}
					}
					else = {
						release = CIR
						release = DAG
						release = VLG
						release = ROS
						release = KAL
						if = {
							limit = {
								has_game_rule = {
									rule = sov_circassia_status
									option = SOV_CIRCASSIA_EXTENDED
								}
							}
							CIR = {
								transfer_state = 827
								transfer_state = 828
								transfer_state = 821
							}
						}
					}
					if = {
						limit = {
							has_game_rule = {
								rule = sov_georgia_status
								option = SOV_GEORGIA_EXTENDED
							}
						}
						GEO = {
							transfer_state = 826
						}
					}
					drop_cosmetic_tag = yes
					clr_global_flag = SOV_became_russia
					remove_ideas = SOV_Unhappy_peasants1
					add_state_core = 408
					add_state_core = 409
					add_state_core = 560
					add_state_core = 655
					add_state_core = 537
					add_state_core = 657
					add_state_core = 561
					add_state_core = 574
					add_state_core = 562
					add_state_core = 637
					add_state_core = 644
					add_state_core = 563
					add_state_core = 565
					add_state_core = 564
					add_state_core = 575
					add_state_core = 516
					add_state_core = 566
					add_state_core = 567
					add_state_core = 576
					add_state_core = 568
					add_state_core = 569
					add_state_core = 578
					add_state_core = 570
					add_state_core = 577
					add_state_core = 571
					add_state_core = 654
					add_state_core = 40
					add_state_core = 329
					add_state_core = 216
					add_state_core = 215
					add_state_core = 213
					add_state_core = 233
					add_state_core = 234
					add_state_core = 235
					add_state_core = 137
					add_state_core = 232
					add_state_core = 236
					add_state_core = 237
					add_state_core = 236
					add_state_core = 237
					add_state_core = 217
					add_state_core = 265
					add_state_core = 245
					add_state_core = 238
					add_state_core = 218
					add_state_core = 208
					add_state_core = 209
					add_state_core = 210
					add_state_core = 263
					add_state_core = 244
					add_state_core = 264
					add_state_core = 216
					add_state_core = 215
					add_state_core = 351
					add_state_core = 214
					add_state_core = 262
					add_state_core = 397
					add_state_core = 400
					add_state_core = 398
					add_state_core = 399
					add_state_core = 218
					add_state_core = 238
					add_state_core = 245
					add_state_core = 195
					add_state_core = 217
					add_state_core = 265
					add_state_core = 249
					add_state_core = 251
					add_state_core = 652
					add_state_core = 401
					add_state_core = 651
					add_state_core = 581
					add_state_core = 573
					add_state_core = 582
					add_state_core = 572
					add_state_core = 653
					add_state_core = 580
					add_state_core = 579
					add_state_core = 403
					add_state_core = 241
					add_state_core = 207
					add_state_core = 206
					add_state_core = 204
					add_state_core = 194
					add_state_core = 225
					add_state_core = 193
					add_state_core = 221
					add_state_core = 228
					add_state_core = 227
					add_state_core = 226
					add_state_core = 200
					add_state_core = 196
					add_state_core = 259
					add_state_core = 203
					add_state_core = 197
					add_state_core = 192
					add_state_core = 198
					add_state_core = 199
					add_state_core = 201
					add_state_core = 202
					add_state_core = 231
					add_state_core = 229
					add_state_core = 230
					add_state_core = 407
					add_state_core = 406
					add_state_core = 587
					add_state_core = 402
					add_state_core = 583
					add_state_core = 590
					add_state_core = 588
					add_state_core = 589
					add_state_core = 586
					add_state_core = 404
					add_state_core = 585
					add_state_core = 405
					add_state_core = 742
					add_state_core = 732
					add_state_core = 584
				}
				set_global_flag = SOV_stalingrad_renamed
				217 = {
					set_state_name = "Volgograd"
				}
				set_province_name = {
					id = 3529
					name = "Volgograd"
				}
				set_global_flag = SOV_leningrad_renamed
				195 = {
					set_state_name = "Saint Petersburg"
				}
				set_province_name = {
					id = 3151
					name = "Saint Petersburg"
				}
				set_global_flag = SOV_kirov_renamed
				400 = {
					set_state_name = "Vyatka"
				}
				set_province_name = {
					id = 6124
					name = "Vyatka"
				}
				if = {
					limit = {
						has_game_rule = {
							rule = sov_grand_moscow_status
							option = SOV_GRAND_MOSCOW_RELEASED
						}
					}
					GPM = {
						country_event = { id = russia2_russia.553 hours = 10 }
						add_state_core = 219
						add_state_core = 223
						add_state_core = 254
						add_state_core = 253
						add_state_core = 248
						add_state_core = 247
						add_state_core = 246
						add_state_core = 242
						add_state_core = 205
						add_state_core = 243
						add_state_core = 224
						add_state_core = 220
						add_state_core = 252
						add_state_core = 255
						add_state_core = 239
						add_state_core = 260
						add_state_core = 240
						add_state_core = 222
						add_state_core = 250
						add_state_core = 256
						add_state_core = 257
						add_state_core = 258
						add_state_core = 833
						add_state_core = 251
						add_state_core = 401
						every_state = {
							limit = {
								is_core_of = GPM
							}
							GPM = {
								transfer_state = PREV
							}
						}
						change_tag_from = SOV
						every_state = {
							limit = {
								is_core_of = SOV
							}
							remove_core_of = SOV
						}
					}
				}
				else = {
					SOV = {
						country_event = { id = russia2_russia.553 hours = 10 }
					}
				}
				TAN = {
					country_event = { id = russia2_russia.553 hours = 10 }
				}
				for_each_scope_loop = {
					array = global.russia_reworked_russian_states

					if = {
						limit = {
							exists = yes
						}
						meta_effect = {
							text = {
								division_template = {
									name = "[TEMPLATE_NAME]"
									is_locked = no

									regiments = {
										infantry = { x = 0 y = 0 }
										infantry = { x = 0 y = 1 }
										infantry = { x = 0 y = 2 }
										infantry = { x = 1 y = 0 }
										infantry = { x = 1 y = 1 }
										infantry = { x = 1 y = 2 }
										infantry = { x = 2 y = 0 }
										infantry = { x = 2 y = 1 }
										infantry = { x = 2 y = 2 }
									}
									support = {
										artillery = { x = 0 y = 0 }
									}
								}
							}
							TEMPLATE_NAME = "[THIS.GetAdjective] Military Police"
						}
						meta_effect = {
							text = {
								division_template = {
									name = "[TEMPLATE_NAME]"
									is_locked = no

									regiments = {
										light_armor = { x = 0 y = 0 }
										light_armor = { x = 0 y = 1 }
										light_armor = { x = 1 y = 0 }
										light_armor = { x = 1 y = 1 }
										light_armor = { x = 1 y = 2 }
										motorized = { x = 2 y = 0 }
										motorized = { x = 2 y = 1 }
										motorized = { x = 2 y = 2 }
										motorized = { x = 2 y = 3 }
									}
								}
							}
							TEMPLATE_NAME = "[THIS.Capital.GetName] Tank Brigade"
						}

						set_temp_variable = { num_divisions_russian_state = THIS.owned_controlled_states }
						set_temp_variable = { tank_division_russian_state = 0 }
						clamp_temp_variable = {
							var = num_divisions_russian_state
							min = 3
							max = 50
						}

						while_loop_effect = {
							break = break
							limit = {
								check_variable = {
									var = num_divisions_russian_state
									value = 1
									compare = greater_than_or_equals
								}
							}

							random_owned_controlled_state = {
								meta_effect = {
									text = {
										create_unit = {
											division = "name = \"[UNIT_NAME]\" division_template = \"[TEMPLATE_NAME]\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
											owner = PREV
											allow_spawning_on_enemy_provs = yes
										}
									}
									UNIT_NAME = "[PREV.GetAdjective] Military Police [?num_divisions_russian_state]"
									TEMPLATE_NAME = "[PREV.GetAdjective] Military Police"
								}
							}
							add_to_temp_variable = { tank_division_russian_state = 1 }
							if = {
								limit = {
									check_variable = {
										var = tank_division_russian_state
										value = 10
										compare = greater_than_or_equals
									}
								}
								capital_scope = {
									meta_effect = {
										text = {
											create_unit = {
												division = "name = \"[UNIT_NAME]\" division_template = \"[TEMPLATE_NAME]\" start_experience_factor = 0.6 start_equipment_factor = 1.0"
												owner = PREV
												allow_spawning_on_enemy_provs = yes
											}
										}
										UNIT_NAME = "[THIS.GetName] Tank Brigade"
										TEMPLATE_NAME = "[THIS.GetName] Tank Brigade"
									}
								}
								set_temp_variable = { tank_division_russian_state = 0 }
							}
							subtract_from_temp_variable = { num_divisions_russian_state = 1 }
						}
						delete_unit_template_and_units = {
							division_template = "Strelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Gornostrelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Motostrelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Kavaleriyskaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "NKVD Pogranichnaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Mekhanizirovaniy Korpus"
						}
					}
				}
				KAR = {
					if = {
						limit = {
							exists = yes
						}
						if = {
							limit = {
								has_dlc = "Man the Guns"
							}
							load_oob = "KAR_naval_mtg"
						}
						else = {
							set_naval_oob = "KAR_naval_legacy"
						}
					}
				}
				CRI = {
					if = {
						limit = {
							exists = yes
						}
						if = {
							limit = {
								has_dlc = "Man the Guns"
							}
							load_oob = "CRI_naval_mtg"
						}
						else = {
							set_naval_oob = "CRI_naval_legacy"
						}
					}
				}
				if = {
					limit = {
						country_exists = NOV
						195 = { is_owned_and_controlled_by = NOV }
						has_dlc = "Man the Guns"
					}
					NOV = {
						load_oob = "NOV_naval_mtg"
					}
				}
				else_if = {
					limit = {
						country_exists = NOV
						195 = { is_owned_and_controlled_by = NOV }
						NOT = {
							has_dlc = "Man the Guns"
						}
					}
					NOV = {
						load_oob = "NOV_naval_legacy"
					}
				}
				if = {
					limit = {
						country_exists = STP
						195 = { is_owned_and_controlled_by = STP }
						has_dlc = "Man the Guns"
					}
					STP = {
						load_oob = "STP_naval_mtg"
					}
				}
				else_if = {
					limit = {
						country_exists = STP
						195 = { is_owned_and_controlled_by = STP }
						NOT = {
							has_dlc = "Man the Guns"
						}
					}
					STP = {
						load_oob = "STP_naval_legacy"
					}
				}
				if = {
					limit = {
						country_exists = SIB
						408 = { is_owned_and_controlled_by = SIB }
						has_dlc = "Man the Guns"
					}
					SIB = {
						load_oob = "SIB_naval_mtg"
					}
				}
				else_if = {
					limit = {
						country_exists = SIB
						408 = { is_owned_and_controlled_by = SIB }
						NOT = {
							has_dlc = "Man the Guns"
						}
					}
					SIB = {
						load_oob = "SIB_naval_legacy"
					}
				}
				if = {
					limit = {
						country_exists = EFR
						408 = { is_owned_and_controlled_by = EFR }
						has_dlc = "Man the Guns"
					}
					EFR = {
						load_oob = "EFR_naval_mtg"
					}
				}
				else_if = {
					limit = {
						country_exists = EFR
						408 = { is_owned_and_controlled_by = EFR }
						NOT = {
							has_dlc = "Man the Guns"
						}
					}
					EFR = {
						load_oob = "EFR_naval_mtg"
					}
				}
				if = {
					limit = {
						country_exists = SOV
					}
					SOV = {
						division_template = {
							name = "Patrul'nyy Otryad Militsii"
							is_locked = no
							division_names_group = SOV_CAV_01

							regiments = {
								cavalry = { x = 0 y = 0 }
								cavalry = { x = 0 y = 1 }
								cavalry = { x = 0 y = 2 }
								cavalry = { x = 0 y = 3 }
							}
							support = 	{
								military_police = { x = 0 y = 0 }
							}
						}
						delete_unit_template_and_units = {
							division_template = "Strelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Gornostrelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Motostrelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Kavaleriyskaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "NKVD Pogranichnaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Mekhanizirovaniy Korpus"
						}
						destroy_ships = {
							type = destroyer
							count = all
						}
						destroy_ships = {
							type = ship_hull_submarine_1
							count = all
						}
						destroy_ships = {
							type = ship_hull_submarine_2
							count = all
						}
						destroy_ships = {
							type = ship_hull_heavy_1
							count = all
						}
						destroy_ships = {
							type = light_cruiser
							count = all
						}
						load_oob = "SOV_1936_fragmented_union"
					}
				}
			}
			if = {
				limit = {
					has_global_flag = hearts_of_malta_enabled
				}
				every_country = {
					if = {
						limit = {
							NOT = {
								is_in_array = { global.big_tower_achievement = THIS }
							}
						}
						add_to_array = { global.big_tower_achievement = THIS }
						set_variable = { global.big_tower_achievement_date@THIS = global.date }
						set_country_flag = russia_reworked_new_achievement
						if = {
							limit = {
								has_global_flag = russia_reworked_achievements_enabled
							}
							scoped_sound_effect = "russia_reworked_unlock_achievement"
						}
					}
				}
			}
		}
		effect = {
			every_state = {
				if = {
					limit = {
						is_on_continent = north_america
						NOT = {
							is_core_of = SOV
						}
					}
					set_state_flag = north_america_fascist_nation_puppet						
				}
			}
			463 = {
				set_state_flag = north_america_fascist_nation_puppet
			}
			650 = {
				set_state_flag = north_america_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_central_america_states = yes
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = central_america_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_south_america_states = yes
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = south_america_fascist_nation_puppet
			}
			720 = {
				set_state_flag = south_america_fascist_nation_puppet
			}
			299 = {
				set_state_flag = south_america_fascist_nation_puppet
			}
			649 = {
				set_state_flag = south_america_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_caraibes_state = yes
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = caraibe_america_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_middle_east_states = yes
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = middle_east_fascist_nation_puppet
			}
			every_state = {
				limit = {
					OR = {
						is_on_continent = africa
						state = 453
						state = 446
					}
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = africa_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_south_asia_state = yes
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = south_asia_fascist_nation_puppet
			}
			710 = {
				set_state_flag = south_asia_fascist_nation_puppet
			}
			712 = {
				set_state_flag = south_asia_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_south_east_asia_state = yes
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = south_east_asia_fascist_nation_puppet
			}
			711 = {
				set_state_flag = south_east_asia_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_east_asia_state = yes
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = east_asia_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_oceania_state = yes
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = oceania_fascist_nation_puppet
			}
			every_state = {
				limit = {
					is_on_continent = europe
					NOT = {
						is_core_of = SOV
					}
				}
				set_state_flag = europe_fascist_nation_puppet
			}			
		}
	}

	#Can release GPM
	on_capitulation_immediate  = {
		effect = {
			if = {
				limit = {
					ROOT = {
						original_tag = SOV
						NOT = {
							has_civil_war = yes
							has_global_flag = second_russian_civil_war_in_progress
						}
					}
					NOT = {
						any_state = {
							is_core_of = GPM
						}
					}
				}
				GPM = {
					add_state_core = 219
					add_state_core = 223
					add_state_core = 254
					add_state_core = 253
					add_state_core = 248
					add_state_core = 247
					add_state_core = 246
					add_state_core = 242
					add_state_core = 205
					add_state_core = 243
					add_state_core = 224
					add_state_core = 220
					add_state_core = 252
					add_state_core = 255
					add_state_core = 239
					add_state_core = 260
					add_state_core = 240
					add_state_core = 222
					add_state_core = 250
					add_state_core = 256
					add_state_core = 257
					add_state_core = 258
					add_state_core = 833
					add_state_core = 251
					add_state_core = 401
					add_ideas = SOV_Grand_muscovy
				}
			}
		}
	}
}
