on_actions = {
	on_startup = {
		effect = {
			######################
			###   GAME RULES   ###
			######################

			### Enable League of Nations (Host Country)
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_lonhq     option = rt56rp_gr_lonhq_enable_y } }

				set_global_flag = rt56rp_gr_lonhq_gflag

				LHQ = { add_equipment_to_stockpile = { type = convoy     amount = 50000 } }
				713 = {
					set_state_name = "League of Nations HQ"
					add_core_of = LHQ
					add_extra_state_shared_building_slots = 64
					set_building_level = { type = industrial_complex     level = 32     instant_build = yes }
					set_building_level = { type = arms_factory           level = 32     instant_build = yes }
				}
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_lonhq     option = rt56rp_gr_lonhq_enable_n } }

				LHQ = { set_equipment_fraction = 0.0 }
				FRA = { annex_country = { target = LHQ     transfer_troops = no } }
				713 = {
					remove_core_of = LHQ
					set_building_level = { type = industrial_complex     level = 0     instant_build = yes }
					set_building_level = { type = arms_factory           level = 0     instant_build = yes }
				}
			}


			### Baked-in Rules: War Declaration
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakedwar     option = rt56rp_gr_bakedwar_enable_y } }

				set_global_flag = rt56rp_gr_bakedwar_gflag
			}


			### Baked-in Rules: Dogpile Duration
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakeddogpile     option = rt56rp_gr_bakeddogpile_enable_6 } }

				set_global_flag = rt56rp_gr_bakeddogpile_gflag
				set_variable = { global.rt56rp_gr_bakeddogpile_var = 180 } # days
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakeddogpile     option = rt56rp_gr_bakeddogpile_enable_3 } }

				set_global_flag = rt56rp_gr_bakeddogpile_gflag
				set_variable = { global.rt56rp_gr_bakeddogpile_var = 90 } # days
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakeddogpile     option = rt56rp_gr_bakeddogpile_enable_2 } }

				set_global_flag = rt56rp_gr_bakeddogpile_gflag
				set_variable = { global.drt56rp_gr_bakeddogpile_var = 60 } # days
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakeddogpile     option = rt56rp_gr_bakeddogpile_enable_1 } }

				set_global_flag = rt56rp_gr_bakeddogpile_gflag
				set_variable = { global.rt56rp_gr_bakeddogpile_var = 30 } # days
			}


			### Baked-in Rules: Dogpile Duration (Attacker)
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakeddogpile_attacker     option = rt56rp_gr_bakeddogpile_attacker_enable_3 } }

				set_global_flag = rt56rp_gr_bakeddogpile_attacker_gflag
				set_variable = { global.rt56rp_gr_bakeddogpile_attacker_var = 90 } # days
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakeddogpile_attacker     option = rt56rp_gr_bakeddogpile_attacker_enable_2 } }

				set_global_flag = rt56rp_gr_bakeddogpile_attacker_gflag
				set_variable = { global.rt56rp_gr_bakeddogpile_attacker_var = 60 } # days
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakeddogpile_attacker     option = rt56rp_gr_bakeddogpile_attacker_enable_1 } }

				set_global_flag = rt56rp_gr_bakeddogpile_attacker_gflag
				set_variable = { global.drt56rp_gr_bakeddogpile_attacker_var = 30 } # days
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakeddogpile_attacker     option = rt56rp_gr_bakeddogpile_attacker_enable_0 } }

				set_global_flag = rt56rp_gr_bakeddogpile_attacker_gflag
				set_variable = { global.rt56rp_gr_bakeddogpile_attacker_var = 14 } # days
			}


			### Baked-in Rules: Faction Joining
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakedfaction     option = rt56rp_gr_bakedfaction_enable_y } }

				set_global_flag = rt56rp_gr_bakedfaction_gflag
			}


			### Baked-in Rules: Military Access
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_bakedmilaccess     option = rt56rp_gr_bakedmilaccess_enable_y } }

				set_global_flag = rt56rp_gr_bakedmilaccess_gflag
			}


			### Enable Vanilla Volunteer Restrictions
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_vanillarestrict_vol     option = rt56rp_gr_vanillarestrict_vol_enable_n } }

				every_possible_country = {
					set_rule = { can_send_volunteers = yes }
				}
			}
			else = {
				set_global_flag = rt56rp_gr_vanillarestrict_vol_gflag
			}


			### Enable Vanilla Faction Creation Restrictions
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_vanillarestrict_facc     option = rt56rp_gr_vanillarestrict_facc_enable_n } }

				every_possible_country = {
					set_rule = { can_create_factions = yes }
				}
			}


			### Enable Vanilla Faction Joining Restrictions
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_vanillarestrict_facj     option = rt56rp_gr_vanillarestrict_facj_enable_n } }

				every_possible_country = {
					add_ideas = rt56rp_unrestricted_join_faction_idea
				}
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_vanillarestrict_facj     option = rt56rp_gr_vanillarestrict_facj_enable_ai } }

				every_possible_country = {
					limit = { is_ai = no }
					add_ideas = rt56rp_unrestricted_join_faction_idea
				}
			}


			### Enable In-Game Ruleset
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_ruleset     option = rt56rp_gr_ruleset_enable_y } }

				set_global_flag = rt56rp_gr_ruleset_gflag
			}


			### Enable Dynamic Ranks
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_dr     option = rt56rp_gr_dr_enable_y } }

				set_global_flag = rt56rp_gr_dr_gflag		# not classified_enabled_gflag
				every_country = {
					limit = { is_ai = yes }
					add_ideas = classified_rank_AI
				}
			}
#			else_if = {
#				limit = { has_game_rule = { rule = rt56rp_gr_dr     option = rt56rp_gr_dr_enable_ai } }
#
#				set_global_flag = rt56rp_gr_dr_gflag
#				set_global_flag = rt56rp_gr_dr_ai_gflag
#			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_dr     option = rt56rp_gr_dr_enable_n } }

				clr_global_flag = rt56rp_gr_bakedwar_gflag
				clr_global_flag = rt56rp_gr_bakeddogpile_gflag
				clr_global_flag = rt56rp_gr_bakedfaction_gflag
			}
			

			### Enable National Ideas
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_nideas     option = rt56rp_gr_nideas_enable_y } }

				set_global_flag = rt56rp_gr_nideas_gflag
			}


			### Enable Formables
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_formables     option = rt56rp_gr_formables_enable_y } }

				set_global_flag = rt56rp_gr_formables_gflag
			}

			### Enable State Interactions
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions     option = rt56rp_gr_state_interactions_enable_y } }

				set_global_flag = rt56rp_gr_state_interactions_gflag
			}


			### Enable State Interactions: Coring
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_core     option = rt56rp_gr_state_interactions_core_enable_y } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_core_gflag		# not coring_button_allowed_gflag
				}
			}


			### Enable State Interactions: Resource Extraction
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_re     option = rt56rp_gr_state_interactions_re_enable_y } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_re_gflag
				}
			}


			### Enable State Interactions: Industrial Expansion
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_ie     option = rt56rp_gr_state_interactions_ie_1 } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_ie_1_gflag
				}
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_ie     option = rt56rp_gr_state_interactions_ie_2 } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_ie_2_gflag
				}
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_ie     option = rt56rp_gr_state_interactions_ie_3 } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_ie_3_gflag
				}
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_ie     option = rt56rp_gr_state_interactions_ie_4 } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_ie_4_gflag
				}
			}


			### Enable State Interactions: Construct Buildings
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_cb     option = rt56rp_gr_state_interactions_cb_enable_y } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_cb_gflag
				}
			}


			### Enable State Interactions: Send Money
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_money     option = rt56rp_gr_state_interactions_money_enable_y } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_money_gflag
				}
			}


			### Enable State Interactions: Events
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_state_interactions_events     option = rt56rp_gr_state_interactions_events_enable_y } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_state_interactions_events_gflag
				}
			}


			### Enable State Transfer Tool
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_stt     option = rt56rp_gr_stt_enable_y } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_stt_gflag
				}
			}
			else_if = {
				limit = { has_game_rule = { rule = rt56rp_gr_stt     option = rt56rp_gr_stt_enable_ys } }
				
				if = {
					limit = { has_global_flag = rt56rp_gr_state_interactions_gflag }
					set_global_flag = rt56rp_gr_stt_gflag
					set_global_flag = rt56rp_gr_stt_subjects_gflag
				}
			}


			### Enable Letters
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_letters     option = rt56rp_gr_letters_enable_y } }

				set_global_flag = rt56rp_gr_letters_gflag
			}


			### Enable Players of Discardian
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_pod     option = rt56rp_gr_pod_enable_y } }

				set_global_flag = rt56rp_gr_pod_gflag
			}


			### Enable Mercenaries
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_mercs     option = rt56rp_gr_mercs_enable_y } }

				set_global_flag = rt56rp_gr_mercs_gflag
			}


			### Enable Renaming States, Parties and Factions
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_rename     option = rt56rp_gr_rename_enable_y } }

				set_global_flag = rt56rp_gr_rename_gflag
			}


			### Enable Super Events (whole system; can be disabled per player)
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_superevents     option = rt56rp_gr_superevents_enable_y } }

				set_global_flag = rt56rp_gr_superevents_gflag
			}


			### Enable Music Triggers (whole system; can be disabled per player)
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_musictriggers     option = rt56rp_gr_musictriggers_enable_y } }

				set_global_flag = rt56rp_gr_musictriggers_gflag
			}


			### Enable Dismissing Generals
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_dismiss_general     option = rt56rp_gr_dismiss_general_enable_y } }

				set_global_flag = rt56rp_gr_dismiss_general_gflag
			}


			### Remove Starting Guarantees
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_starting_guarantees     option = rt56rp_gr_starting_guarantees_remove_y } }

				every_country = {
					every_country = {
						limit = { is_guaranteed_by = PREV }
						PREV = {
							diplomatic_relation = {
								country = PREV
								relation = guarantee
								active = no
							}
						}
					}
				}
			}


			### Enable Historical Multiplayer Mode
			if = {
				limit = { has_game_rule = { rule = rt56rp_gr_historical     option = rt56rp_gr_historical_enable_y } }
				
				
				set_global_flag = rt56rp_gr_historical_gflag

				clr_global_flag = rt56rp_gr_bakedwar_gflag
				clr_global_flag = rt56rp_gr_bakedfaction_gflag
				clr_global_flag = rt56rp_gr_ruleset_gflag
				clr_global_flag = rt56rp_gr_dr_gflag
				clr_global_flag = rt56rp_gr_dr_ai_gflag
				clr_global_flag = rt56rp_gr_nideas_gflag
				clr_global_flag = rt56rp_gr_state_interactions_core_gflag
				clr_global_flag = rt56rp_gr_stt_gflag
				clr_global_flag = rt56rp_gr_stt_subjects_gflag
				clr_global_flag = rt56rp_gr_letters_gflag
				clr_global_flag = rt56rp_gr_formables_gflag
				clr_global_flag = rt56rp_gr_pod_gflag
				clr_global_flag = rt56rp_gr_mercs_gflag
				clr_global_flag = rt56rp_gr_rename_gflag
				clr_global_flag = rt56rp_gr_realnuke_cooldown_gflag
				clr_global_flag = rt56rp_gr_dismiss_general_gflag
				
				
				# Allies: ENG, FRA, USA, CAN, SAF, AST, NZL, MEX, BRA
				AST = { add_ideas = { rt56rp_hist_civilian_economy } }
				BRA = { add_ideas = { rt56rp_hist_civilian_economy } }
				CAN = { add_ideas = { rt56rp_hist_civilian_economy } }
				ENG = { add_ideas = { rt56rp_hist_civilian_economy } }
				FRA = { add_ideas = { rt56rp_hist_civilian_economy } }
				MEX = { add_ideas = { rt56rp_hist_civilian_economy } }
				NZL = { add_ideas = { rt56rp_hist_civilian_economy } }
				RAJ = { add_ideas = { rt56rp_hist_civilian_economy } }
				SAF = { add_ideas = { rt56rp_hist_civilian_economy } }
				#USA = { }
				
				# Comintern: SOV, MON
				MON = { add_ideas = { rt56rp_hist_low_economic_mobilisation } }
				SOV = { add_ideas = { rt56rp_hist_low_economic_mobilisation } }
				
				# Axis: GER, ITA, HUN, ROM, BUL, SPR, FIN
				BUL = { add_ideas = { rt56rp_hist_civilian_economy } }
				FIN = { add_ideas = { rt56rp_hist_civilian_economy } }
				GER = { add_ideas = { rt56rp_hist_partial_economic_mobilisation } }
				HUN = { add_ideas = { rt56rp_hist_civilian_economy } }
				ITA = { add_ideas = { rt56rp_hist_partial_economic_mobilisation } }
				ROM = { add_ideas = { rt56rp_hist_civilian_economy } }
				SPR = { add_ideas = { rt56rp_hist_civilian_economy } }
				
				# GEACPS: JAP, MAN, SIA
				JAP = { add_ideas = { rt56rp_hist_partial_economic_mobilisation } }
				MAN = { add_ideas = { rt56rp_hist_civilian_economy } }
				SIA = { add_ideas = { rt56rp_hist_civilian_economy } }
				
				# Unaligned (all other countries on the map except Chia which keeps it's corrupted law)
				AFA = { add_ideas = { rt56rp_hist_civilian_economy } }
				ALB = { add_ideas = { rt56rp_hist_civilian_economy } }
				AUS = { add_ideas = { rt56rp_hist_civilian_economy } }
				BEL = { add_ideas = { rt56rp_hist_civilian_economy } }
				CZE = { add_ideas = { rt56rp_hist_civilian_economy } }
				DEN = { add_ideas = { rt56rp_hist_civilian_economy } }
				EST = { add_ideas = { rt56rp_hist_civilian_economy } }
				ETH = { add_ideas = { rt56rp_hist_civilian_economy } }
				FRI = { add_ideas = { rt56rp_hist_civilian_economy } }
				GRE = { add_ideas = { rt56rp_hist_civilian_economy } }
				HOL = { add_ideas = { rt56rp_hist_civilian_economy } }
				INS = { add_ideas = { rt56rp_hist_civilian_economy } }
				IRE = { add_ideas = { rt56rp_hist_civilian_economy } }
				LAT = { add_ideas = { rt56rp_hist_civilian_economy } }
				LIT = { add_ideas = { rt56rp_hist_low_economic_mobilisation } }
				LUX = { add_ideas = { rt56rp_hist_civilian_economy } }
				NOR = { add_ideas = { rt56rp_hist_civilian_economy } }
				PER = { add_ideas = { rt56rp_hist_civilian_economy } }
				PHI = { add_ideas = { rt56rp_hist_civilian_economy } }
				POL = { add_ideas = { rt56rp_hist_civilian_economy } }
				POR = { add_ideas = { rt56rp_hist_civilian_economy } }
				SWE = { add_ideas = { rt56rp_hist_civilian_economy } }
				SWI = { add_ideas = { rt56rp_hist_civilian_economy } }
				VEN = { add_ideas = { rt56rp_hist_civilian_economy } }
				YUG = { add_ideas = { rt56rp_hist_civilian_economy } }

				LHQ = {
					annex_country = { target = AFG     transfer_troops = no }
					annex_country = { target = ARG     transfer_troops = no }
					annex_country = { target = BOL     transfer_troops = no }
					annex_country = { target = CHL     transfer_troops = no }
					annex_country = { target = COL     transfer_troops = no }
					annex_country = { target = COS     transfer_troops = no }
					annex_country = { target = CUB     transfer_troops = no }
					annex_country = { target = DOM     transfer_troops = no }
					annex_country = { target = ECU     transfer_troops = no }
					annex_country = { target = ELS     transfer_troops = no }
					annex_country = { target = GUA     transfer_troops = no }
					annex_country = { target = HAI     transfer_troops = no }
					annex_country = { target = HON     transfer_troops = no }
					annex_country = { target = NIC     transfer_troops = no }
					annex_country = { target = PAN     transfer_troops = no }
					annex_country = { target = PAR     transfer_troops = no }
					annex_country = { target = PRU     transfer_troops = no }
					annex_country = { target = SAU     transfer_troops = no }
					annex_country = { target = SIK     transfer_troops = no }
					annex_country = { target = TIB     transfer_troops = no }
					annex_country = { target = URG     transfer_troops = no }
					every_state = {
						limit = { is_owned_by = LHQ }
						add_core_of = LHQ
						set_demilitarized_zone = yes
					}
				}
				
				# Country-specific changes
				BRA = {
					310 = {
						add_core_of = BRA
						remove_core_of = CAY
						transfer_state_to = BRA
					}
					687 = {
						add_core_of = BRA
						remove_core_of = GYA
						transfer_state_to = BRA
					}
				}
				CHI = {
					add_ideas = { rt56rp_hist_china_surrender_cap_idea }
					annex_country = { target = GXC     transfer_troops = no }
					annex_country = { target = PRC     transfer_troops = no }
					annex_country = { target = SHX     transfer_troops = no }
					annex_country = { target = XSM     transfer_troops = no }
					annex_country = { target = YUN     transfer_troops = no }
				}
				DEN = {
					annex_country = { target = ICE     transfer_troops = no }
					
					# Iceland Core
					every_state = {
						limit = { is_core_of = ICE }
						add_core_of = DEN
						remove_core_of = ICE
					}
				}
				ENG = {
					annex_country = { target = EGY     transfer_troops = no }
					annex_country = { target = IRQ     transfer_troops = no }
					annex_country = { target = LIB     transfer_troops = no }
					annex_country = { target = MPL     transfer_troops = no }
					
					# Egypt Compliance
					every_state = {
						limit = { is_core_of = EGY }
						set_compliance = 70.0
						remove_core_of = EGY
					}
					
					# IRQ Compliance
					every_state = {
						limit = { is_core_of = IRQ }
						set_compliance = 70.0
						remove_core_of = IRQ
					}
					
					# LIB Compliance
					every_state = {
						limit = { is_core_of = LIB }
						set_compliance = 70.0
						remove_core_of = LIB
					}
					
					# MPL Compliance
					every_state = {
						limit = { is_core_of = MPL }
						set_compliance = 70.0
						remove_core_of = MPL
					}
				}
				FRA = {
					# Belgian Congo Compliance
					every_state = {
						limit = { is_owned_by = COG }
						set_compliance = 70.0
						remove_core_of = COG
					}
					
					annex_country = { target = COG     transfer_troops = no }
					annex_country = { target = MNC     transfer_troops = no }
					
					# Monaco Core
					every_state = {
						limit = { is_core_of = MNC }
						add_core_of = FRA
						remove_core_of = MNC
					}
				}
				INS = {
					721 = {
						add_core_of = INS
						remove_core_of = LHQ
						transfer_state_to = INS
						set_demilitarized_zone = no
					}
				}
				ITA = {
					annex_country = { target = SAN     transfer_troops = no }
					
					# San Marino Core
					every_state = {
						limit = { is_core_of = SAN }
						add_core_of = ITA
						remove_core_of = SAN
					}
				}
				MAN = {
					every_state = {
						limit = { 
							is_owned_by = MEN
						}
						add_core_of = MAN
					}
					annex_country = { target = MEN     transfer_troops = no }
				}
				RAJ = {
					annex_country = { target = BHU     transfer_troops = no }
					annex_country = { target = NEP     transfer_troops = no }
					annex_country = { target = OMA     transfer_troops = no }
					annex_country = { target = YEM     transfer_troops = no }
					transfer_state = 658 	# UAE S
					transfer_state = 765 	# Qatar
					transfer_state = 858 	# UAE N
					transfer_state = 1007 	# Bahrain
					
					# Bhutan Core
					every_state = {
						limit = { is_core_of = BHU }
						add_core_of = RAJ
						remove_core_of = BHU
					}
					
					# Bahrain Compliance
					every_state = {
						limit = { is_core_of = BHR }
						set_compliance = 70.0
						remove_core_of = BHR
					}
					
					# Nepal Core
					every_state = {
						limit = { is_core_of = NEP }
						add_core_of = RAJ
						remove_core_of = NEP
					}
					
					# Oman Compliance
					every_state = {
						limit = { is_core_of = OMA }
						set_compliance = 70.0
						remove_core_of = OMA
					}
					
					# Qatar Compliance
					every_state = {
						limit = { is_core_of = QAT }
						set_compliance = 70.0
						remove_core_of = QAT
					}
					
					# UAE Compliance
					every_state = {
						limit = { is_core_of = UAE }
						set_compliance = 70.0
						remove_core_of = UAE
					}
					
					# Yemen Compliance
					every_state = {
						limit = { is_core_of = YEM }
						set_compliance = 70.0
						remove_core_of = YEM
					}
				}
				SAF = {
					542 = {
						add_core_of = SAF
						transfer_state_to = SAF
					}
					938 = {
						add_core_of = SAF
						transfer_state_to = SAF
					}
					939 = {
						add_core_of = SAF
						transfer_state_to = SAF
					}
				}
				SOV = {
					annex_country = { target = TAN     transfer_troops = no }
					329 = { add_core_of = SOV }
				}
				SPR = {
					every_state = {
						limit = { 
							is_owned_by = ADR
						}
						add_core_of = SPR
					}
					annex_country = { target = ADR     transfer_troops = no }
				}
				SWI = {
					annex_country = { target = LIE     transfer_troops = no }
					997 = {
						add_core_of = SWI
						remove_core_of = LIE
					}
				}
				
				# State-specific changes
				
				# Italy / Africa buff
				448 = { # Tripoli
					add_extra_state_shared_building_slots = 4
					add_building_construction = {
						type = industrial_complex
						level = 4
						instant_build = yes
					}
				}
				450 = { # Benghasi
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = industrial_complex
						level = 3
						instant_build = yes
					}
				}
				451 = { # Derna
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = industrial_complex
						level = 3
						instant_build = yes
					}
				}
				
				# USSR nerf
				195 = { # Leningrad
					remove_building  = {
						type = arms_factory
						level = 4 #started with 6, now 2
					}
				}
				217 = { # Stalingrad
					remove_building  = {
						type = arms_factory
						level = 1 #started with 1 now 0
					}
				}
				219 = { # Moscow
					remove_building  = {
						type = arms_factory
						level = 4 #started with 7, now 3
					}
				}
				
			}

			######################
		}
	}
}