ROM_civil_war_debug_category = {
	ROM_seek_western_support_create_var_debug = {

		allowed = {
			original_tag = ROM
		}

		fire_only_once = no

		complete_effect = {
			set_variable = { ROM_western_support_var = 0 }
		}
	}
	ROM_seek_western_support_add_support_debug = {

		allowed = {
			original_tag = ROM
		}

		fire_only_once = no

		complete_effect = {
			add_to_variable = { ROM_western_support_var = 1}
		}
	}
	ROM_seek_western_support_variable_value_check = {

		allowed = {
			original_tag = ROM
		}

		fire_only_once = no

		complete_effect = {
			ROM = {
				add_political_power = ROM_western_support_var
			}
		}
	}
	ROM_seek_western_support_create_units_debug = {

		allowed = {
			original_tag = ROM
		}

		fire_only_once = no

		complete_effect = {
			division_template = {
				name = "Western Volunteers"
				is_locked = yes
				priority = 1
				division_names_group = ROM_INF_01
				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 = {
					engineer = { x = 0 y = 0 }
					artillery = { x = 0 y = 1 }
				}
			}
			for_loop_effect = {
				end = ROM_western_support_var
				add = 1
				capital_scope = {
					create_unit = {
						division = "name = \"Western Volunteers\" division_template = \"Western Volunteers\" start_experience_factor = 0.6 start_equipment_factor = 1 " 
						owner = ROM
					}
				}
			}
			clear_variable = ROM_western_support_var
		}
	}
	ROM_seek_western_support_guns_debug = {
		complete_effect = {
			set_temp_variable = {
				ROM_western_support_guns = ROM_western_support_var
			}
			multiply_temp_variable = {
				ROM_western_support_guns = 500
			}
			ROM = {
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = var:ROM_western_support_guns
					producer = ROM
				}
				add_political_power = ROM_western_support_guns
			}
			clear_variable = ROM_western_support_var
		}
	}
	ROM_request_balkan_aid_create_var_debug = {

		allowed = {
			original_tag = ROM
		}

		fire_only_once = no

		complete_effect = {
			set_variable = { ROM_balkan_aid_var = 0 }
		}
	}
	ROM_request_balkan_aid_add_support_debug = {

		allowed = {
			original_tag = ROM
		}

		fire_only_once = no

		complete_effect = {
			add_to_variable = { ROM_balkan_aid_var = 1}
		}
	}
	ROM_request_balkan_aid_variable_value_check = {

		allowed = {
			original_tag = ROM
		}

		fire_only_once = no

		complete_effect = {
			ROM = {
				add_political_power = ROM_balkan_aid_var
			}
		}
	}
	ROM_request_balkan_aid_guns_debug = {
		complete_effect = {
			set_temp_variable = {
				ROM_request_balkan_aid_guns = ROM_balkan_aid_var
			}
			multiply_temp_variable = {
				ROM_request_balkan_aid_guns = 1000
			}
			ROM = {
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = var:ROM_request_balkan_aid_guns
					producer = ROM
				}
				add_political_power = ROM_request_balkan_aid_guns
			}
			clear_variable = ROM_balkan_aid_var
		}
	}
	ROM_request_balkan_aid_artillery_debug = {
		complete_effect = {
			set_temp_variable = {
				ROM_request_balkan_aid_artillery = ROM_balkan_aid_var
			}
			multiply_temp_variable = {
				ROM_request_balkan_aid_artillery = 250
			}
			ROM = {
				add_equipment_to_stockpile = {
					type = artillery_equipment
					amount = var:ROM_request_balkan_aid_artillery
					producer = ROM
				}
				add_political_power = ROM_request_balkan_aid_artillery
			}
			clear_variable = ROM_balkan_aid_var
		}
	}
}
ROM_the_electoral_deadlock_category = {
	ROM_coalition_crackdown = {

		allowed = {
			tag = ROM
		}

		available = {
			hidden_trigger = { always = no }
		}

		cancel_trigger = {
			has_completed_focus = ROM_the_romanian_civil_war
		}

		activation = {
			has_completed_focus = ROM_contacts_in_moscow
		}

		fire_only_once = yes

		days_mission_timeout = 230

		timeout_effect = {
			complete_national_focus = ROM_the_romanian_civil_war
			effect_tooltip = {
				country_event = rt56.rom_general_election.5
			}
		}
	}
	ROM_communist_revolution = {

		icon = GFX_decision_category_USA_aid_britain

		allowed = {
			tag = ROM
		}

		available = {
			hidden_trigger = { always = no }
		}

		cancel_trigger = {
			has_completed_focus = ROM_the_romanian_civil_war
		}

		activation = {
			has_completed_focus = ROM_form_a_coalition
		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 230

		timeout_effect = {
			complete_national_focus = ROM_the_romanian_civil_war
			effect_tooltip = {
				country_event = rt56.rom_general_election.5
			}
		}
	}
	ROM_soviet_intervention = {

		icon = GFX_decision_category_USA_aid_britain

		allowed = {
			tag = ROM
		}

		available = {
			hidden_trigger = { always = no }
		}
		
		cancel_trigger = {
			OR = {
				ROM = {
					has_civil_war = no	
				}
				SOV = {
					NOT = {
						has_government = communism
					}
				}
			}
		}

		activation = {
			has_completed_focus = ROM_the_romanian_civil_war
			SOV = {
				has_government = communism
			}
		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 35

		timeout_effect = {
			SOV = {
				country_event = { id = rt56.rom_general_election.9 }
			}
		}
	}	
	ROM_ensure_eastern_loyalties_decisions = {

		icon = generic_political_discourse

		visible = {
			has_completed_focus = ROM_ensure_eastern_loyalties
			NOT = {
				has_completed_focus = ROM_the_romanian_civil_war
			}
		}

		ai_will_do = {
			base = 100
		}

		available = {
			NOT = {
				has_country_flag = ROM_ensuring_loyalties
			}
			NOT = {
				has_country_flag = ROM_romanian_civil_war_started
			}
		}

		cost = 10

        state_target = yes
		targets = {
			80 79 78 766
		}
        fire_only_once = yes

        days_remove = 15
        on_map_mode = map_and_decisions_view

		complete_effect = {
			set_country_flag = ROM_ensuring_loyalties
		}

		remove_effect = {
			FROM = { 
				set_state_flag = ensured_eastern_loyalties
			}
			clr_country_flag = ROM_ensuring_loyalties
			custom_effect_tooltip = ROM_ensure_eastern_loyalties_tt
		}
		ai_will_do = {
			factor = 10
		}				
	}
	ROM_recruit_peasant_militias_decisions = {
		icon = GFX_decision_generic_shovels

		visible = {
			has_completed_focus = ROM_peasant_militias
			NOT = {
				has_completed_focus = ROM_the_romanian_civil_war
			}
		}

		ai_will_do = {
			base = 100
		}

		available = {
			NOT = {
				has_country_flag = ROM_recruit_peasants
			}
			NOT = {
				has_country_flag = ROM_romanian_civil_war_started
			}
		}

		cost = 10

        state_target = yes
		targets = {
			80 79 78 766
		}
        fire_only_once = yes

        days_remove = 10
        on_map_mode = map_and_decisions_view
		

		complete_effect = {
			set_country_flag = ROM_recruit_peasants
		}

		remove_effect = {
			FROM = { 
				set_state_flag = recruited_peasants
			}
			clr_country_flag = ROM_recruit_peasants
			custom_effect_tooltip = ROM_recruiting_militias_tt
		}
		ai_will_do = {
			factor = 10
		}
	}
	ROM_seek_western_support_decisions = {

		visible = {
			has_completed_focus = ROM_seek_western_support
			NOT = {
				has_completed_focus = ROM_the_romanian_civil_war
			}
		}

		ai_will_do = {
			base = 100
		}

		available = {
			NOT = {
				has_country_flag = ROM_romanian_civil_war_started
			}
			FROM = {
				NOT = { has_government = communism }
				has_opinion = {
					target = ROOT
					value > 34
				}
			}
		}
		
		target_trigger = {
			FROM = {
				OR = {
					original_tag = FRA
					original_tag = ENG
					original_tag = ITA
					original_tag = SWE
					original_tag = POL
					original_tag = USA
				}
				is_subject = no
				has_capitulated = no
				has_civil_war = no
				has_war = no
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		fire_only_once = yes
		cost = 25
		
		days_remove = 15

		remove_effect = {
			FROM = { country_event = { id = rt56.rom_general_election.3 } }
		}
	}
	ROM_request_balkan_aid_decisions = {

		visible = {
			has_completed_focus = ROM_request_balkan_aid
			NOT = {
				has_completed_focus = ROM_the_romanian_civil_war
			}
		}

		ai_will_do = {
			base = 100
		}
		
		available = {
			NOT = {
				has_country_flag = ROM_romanian_civil_war_started
			}
			FROM = {
				NOT = { has_government = communism }
				has_opinion = {
					target = ROOT
					value > 34
				}
			}
		}
		
		target_trigger = {
			FROM = {
				OR = {
					original_tag = YUG
					original_tag = GRE
					original_tag = TUR
					original_tag = HUN
					original_tag = BUL
				}
				is_subject = no
				has_capitulated = no
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		fire_only_once = yes
		cost = 25
		
		days_remove = 15

		remove_effect = {
			FROM = { country_event = { id = rt56.rom_general_election.2 } }
		}
	}
	ROM_romanian_stalemate_decision = {

		visible = {
			has_civil_war = yes
			has_completed_focus = ROM_form_a_coalition
			has_completed_focus = ROM_the_romanian_civil_war
		}

		allowed = {
			original_tag = ROM
		}

		ai_will_do = {
			base = 100
		}

		available = {
			SOV = {	#sanity check, was happening when SOV wasn't even involved
				has_war_with = ROM
			}
			if = {
				limit = {
					country_exists = RPR
				}
				RPR = {
					has_capitulated = yes
				}
			}
			surrender_progress < 0.15
		}

		cancel_trigger = {
			surrender_progress > 0.2
		}

		days_remove = 45

		remove_effect = {
			SOV = { country_event = { id = rt56.rom_general_election.6 hours = 12 } }
		}

	}
}
ROM_subvert_moscow_authority_category = {
	ROM_prepare_defensive_battleplans = {

		visible = {
			has_completed_focus = ROM_subvert_moscow_authority
			has_war = no
		}

		fire_only_once = yes

		cost = 50

		days_remove = 90

		remove_effect = {
			custom_effect_tooltip = ROM_prepare_defensive_battleplans_tt
			set_country_flag = ROM_defensive_battleplan_prepared
		}
	}
	ROM_enact_battleplan_bessarabia = {

		visible = {
			has_completed_focus = ROM_subvert_moscow_authority
			has_war = no
		}

		available = {
			has_country_flag = ROM_defensive_battleplan_prepared
		}

		fire_only_once = yes

		complete_effect = {
			add_timed_idea = {
				idea = r56_ROM_battleplan_bessarabia
				days = 180
			}
		}
	}	
	ROM_prepare_cells = {

		visible = {
			NOT = {
				has_completed_focus = ROM_establish_the_upla
			}
			is_subject_of = SOV
			has_completed_focus = ROM_prepare_anti_soviet_cells
			has_war = no
			has_equipment = {
					infantry_equipment > 1000
					artillery_equipment > 25
					support_equipment > 50
				}
			}

        state_target = yes
        target_trigger = {
            FROM = {
				is_core_of = ROOT
                is_owned_and_controlled_by = ROOT
				state_population_k > 200
            }
        }
        fire_only_once = yes

		custom_cost_text = r56_15_command_power_cost
		custom_cost_trigger = {
			command_power > 15
		}		

		complete_effect = {
			add_command_power = -15
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -910
				producer = ROM
			}
			add_equipment_to_stockpile = {
				type = artillery_equipment
				amount = -12
				producer = ROM
			}	
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = -30
				producer = ROM
			}					
		}

   	    days_remove = 14
   	    on_map_mode = map_and_decisions_view

		remove_effect = {
			FROM = { 
				set_state_flag = prepared_anti_soviet_cell
			}
		}
		ai_will_do = {
			factor = 10
		}		
	}
	ROM_dobrudja_for_support = {

		visible = {
			has_completed_focus = ROM_reestablish_foreign_connections
			has_war = no
		}

		fire_only_once = yes

		cost = 50

		days_remove = 30

		remove_effect = {
			custom_effect_tooltip = ROM_dobruja_for_support_in_war_tt
			BUL = {
				country_event = {
					id = rt56.rom_com_bul_dobruja_trade.1 days = 2
				}
			}
		}
	}
	ROM_prepare_cells_in_ukraine = {

		visible = {
			NOT = {
				has_completed_focus = ROM_establish_the_upla
			}
			is_subject_of = SOV
			has_completed_focus = ROM_reestablish_foreign_connections
			has_war = no
			has_equipment = {
				infantry_equipment > 350
			}
			has_equipment = {
				artillery_equipment > 5
			}
			has_equipment = {
				support_equipment > 5
			}
		}

        state_target = yes
        target_trigger = {
            FROM = {
				is_core_of = UKR
                is_owned_and_controlled_by = SOV
				state_population_k > 200
				NOT = {
					state = 193 #Chernihiv
					state = 196 #Kherson
					state = 200 #Zaporizhzhia
					state = 221 #Kharkiv
					state = 225 #Sumy
					state = 227 #Donetsk
					state = 228 #Luhansk
					state = 259 #Poltava
				}
            }
        }
        fire_only_once = yes

		custom_cost_text = r56_15_command_power_cost
		custom_cost_trigger = {
			command_power > 15
		}		

		complete_effect = {
			add_command_power = -15
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -300
				producer = ROM
			}
			add_equipment_to_stockpile = {
				type = artillery_equipment
				amount = -1
				producer = ROM
			}	
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = -1
				producer = ROM
			}					
		}

        days_remove = 14
        on_map_mode = map_and_decisions_view

		remove_effect = {
			FROM = { 
				set_state_flag = prepared_ukrainian_anti_soviet_cell
			}
		}
		ai_will_do = {
			factor = 10
		}		
	}			
}
ROM_rebirth_of_greater_romania_category = {
	ROM_the_old_kingdom_enshrine_democratic_rights = {
		
		visible = {
			has_completed_focus = ROM_the_old_kingdom
		}
		available = {
			has_completed_focus = ROM_the_old_kingdom
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_old_kingdom
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_old_kingdom
		}
		
		remove_effect = {
			ROM_level_up_old_kingdom_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_old_kingdom
		}
	}
	ROM_the_old_kingdom_root_out_communists = {
		
		visible = {
			has_completed_focus = ROM_the_old_kingdom
		}
		available = {
			has_completed_focus = ROM_the_old_kingdom
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_old_kingdom
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes	

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_old_kingdom
		}
		
		remove_effect = {
			ROM_level_up_old_kingdom_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_old_kingdom
		}
	}
	ROM_the_old_kingdom_infrastructure_planning = {
		
		visible = {
			has_completed_focus = ROM_the_old_kingdom
		}
		available = {
			has_completed_focus = ROM_the_old_kingdom
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_old_kingdom
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_old_kingdom
		}
		
		remove_effect = {
			ROM_level_up_old_kingdom_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_old_kingdom
		}
	}
	ROM_the_old_kingdom_equality_in_national_elections = {
		
		visible = {
			has_completed_focus = ROM_the_old_kingdom
		}
		available = {
			has_completed_focus = ROM_the_old_kingdom
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_old_kingdom
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_old_kingdom
		}
		
		remove_effect = {
			ROM_level_up_old_kingdom_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_old_kingdom
		}
	}
	ROM_the_new_kingdom_equalize_the_new_and_old_kingdoms = {

		visible = {
			has_completed_focus = ROM_the_new_kingdom
		}
		available = {
			has_completed_focus = ROM_the_new_kingdom
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_new_kingdom
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes 

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_new_kingdom
		}
		
		remove_effect = {
			ROM_level_up_new_kingdom_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_new_kingdom
		}
	}
	ROM_the_new_kingdom_promote_pro_romanian_nationalism = {

		visible = {
			has_completed_focus = ROM_the_new_kingdom
		}
		available = {
			has_completed_focus = ROM_the_new_kingdom
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_new_kingdom
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes 

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_new_kingdom
		}
		
		remove_effect = {
			ROM_level_up_new_kingdom_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_new_kingdom
		}
	}
	ROM_the_new_kingdom_improve_railway_infrastructure = {

		visible = {
			has_completed_focus = ROM_the_new_kingdom
		}
		available = {
			has_completed_focus = ROM_the_new_kingdom
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_new_kingdom
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes 

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_new_kingdom
		}
		
		remove_effect = {
			ROM_level_up_new_kingdom_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_new_kingdom
		}
	}
	ROM_the_new_kingdom_guarantee_safety_for_minorities = {

		visible = {
			has_completed_focus = ROM_the_new_kingdom
		}
		available = {
			has_completed_focus = ROM_the_new_kingdom
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_new_kingdom
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes 

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_new_kingdom
		}
		
		remove_effect = {
			ROM_level_up_new_kingdom_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_new_kingdom
		}
	}
	ROM_the_east_anti_russian_campaigns = {

		visible = {
			has_completed_focus = ROM_the_east
		}
		available = {
			has_completed_focus = ROM_the_east
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_east
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes 

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_east
		}
		
		remove_effect = {
			ROM_level_up_the_east_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_east
		}
	}
	ROM_the_east_guarantee_political_liberties = {

		visible = {
			has_completed_focus = ROM_the_east
		}
		available = {
			has_completed_focus = ROM_the_east
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_east
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes 

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_east
		}
		
		remove_effect = {
			ROM_level_up_the_east_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_east
		}
	}
	ROM_the_east_the_anti_communist_bulwark = {

		visible = {
			has_completed_focus = ROM_the_east
		}
		available = {
			has_completed_focus = ROM_the_east
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_east
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes 

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_east
		}
		
		remove_effect = {
			ROM_level_up_the_east_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_east
		}
	}
	ROM_the_east_integrate_into_the_old_kingdom = {

		visible = {
			has_completed_focus = ROM_the_east
		}
		available = {
			has_completed_focus = ROM_the_east
			NOT = {
				has_country_flag = ROM_handling_demands_from_the_east
			}
		}

		cost = 25

		days_remove = 30

		fire_only_once = yes 

		complete_effect = {
			set_country_flag = ROM_handling_demands_from_the_east
		}
		
		remove_effect = {
			ROM_level_up_the_east_demands = yes
			clr_country_flag = ROM_handling_demands_from_the_east
		}
	}
}
ROM_the_iron_guard_threat_category = {
	ROM_the_iron_guard_insurrection = {

		icon = GFX_decision_revolt

		allowed = {
			tag = ROM
		}

		available = {
			hidden_trigger = { always = no }
		}

		cancel_trigger = {
			has_completed_focus = ROM_total_ban_on_paramilitaries
		}

		activation = {
			has_completed_focus = ROM_the_iron_guard_threat
		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 365

		timeout_effect = {
			ROM = {
				start_civil_war = {
					ideology = fascism
					size = 0.2
					army_ratio = 0.3
					capital = 84
				}
			}
		}		
	}
}
ROM_foreign_diplomacy_decision_category = {
	ROM_balkan_diplomacy_strengthen_ties = {
		allowed = {
			original_tag = ROM
		}
		visible = {}

		cost = 50

		days_remove = 30

		available = {
			has_war = no
			has_capitulated = no
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = democratic
			}
			NOT = {
				has_idea = ROOT_diplomatic_effort
			}
		}

		visible = {
			has_completed_focus = ROM_balkan_diplomacy
		}

		target_trigger = {
			FROM = {
				has_idea = r56_YUG_balkan_pact
				OR = {
					has_government = democratic
					has_government = neutrality
				}
				OR = {
					original_tag = TUR
					original_tag = GRE
					original_tag = YUG
				}
			}
		}

		complete_effect = {
			add_ideas = ROOT_diplomatic_effort
		}

		remove_effect = {
			remove_ideas = ROOT_diplomatic_effort
			FROM = {
				add_opinion_modifier = {
					target = ROM
					modifier = large_increase
				}
			}
		}
	}
	ROM_balkan_diplomacy_joint_economic_increase = {
		allowed = {
			original_tag = ROM
		}
		visible = {}

		cost = 50

		days_remove = 30

		available = {
			has_war = no
			has_capitulated = no
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = democratic
			}
			NOT = {
				has_idea = ROOT_diplomatic_effort
			}
		}

		visible = {
			has_completed_focus = ROM_balkan_diplomacy
		}

		target_trigger = {
			FROM = {
				has_idea = r56_YUG_balkan_pact
				OR = {
					has_government = democratic
					has_government = neutrality
				}
				OR = {
					original_tag = TUR
					original_tag = GRE
					original_tag = YUG
				}
			}
		}
		complete_effect = {
			add_ideas = ROOT_joint_economic_venture_effort
			FROM = {
				add_ideas = ROOT_joint_economic_venture_effort
			}
		}

		remove_effect = {
			remove_ideas = ROOT_joint_economic_venture_effort
			FROM = {
				remove_ideas = ROOT_joint_economic_venture_effort
				add_opinion_modifier = {
					target = ROM
					modifier = large_increase
				}
			}
		}
	
	}
	ROM_the_old_alliance_strengthen_ties = {
		allowed = {
			original_tag = ROM
		}
		visible = {}

		cost = 50

		days_remove = 30

		available = {
			has_war = no
			has_capitulated = no
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = democratic
			}
			NOT = {
				has_idea = ROOT_diplomatic_effort
			}
		}

		visible = {
			has_completed_focus = ROM_balkan_diplomacy
		}

		target_trigger = {
			FROM = {
				OR = {
					has_government = democratic
					has_government = neutrality
				}
				OR = {
					original_tag = FRA
					original_tag = CZE
					original_tag = YUG
				}
			}
		}

		complete_effect = {
			add_ideas = ROOT_diplomatic_effort
		}

		remove_effect = {
			remove_ideas = ROOT_diplomatic_effort
			FROM = {
				add_opinion_modifier = {
					target = ROM
					modifier = large_increase
				}
			}
		}
	}
	ROM_the_old_alliance_joint_economic_increase = {
		allowed = {
			original_tag = ROM
		}
		visible = {}

		cost = 50

		days_remove = 30

		available = {
			has_war = no
			has_capitulated = no
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = democratic
			}
			NOT = {
				has_idea = ROOT_diplomatic_effort
			}
		}

		visible = {
			has_completed_focus = ROM_balkan_diplomacy
		}

		target_trigger = {
			FROM = {
				OR = {
					has_government = democratic
					has_government = neutrality
				}
				OR = {
					original_tag = FRA
					original_tag = CZE
					original_tag = YUG
				}
			}
		}
		complete_effect = {
			add_ideas = ROOT_joint_economic_venture_effort
			FROM = {
				add_ideas = ROOT_joint_economic_venture_effort
			}
		}

		remove_effect = {
			remove_ideas = ROOT_joint_economic_venture_effort
			FROM = {
				remove_ideas = ROOT_joint_economic_venture_effort
				add_opinion_modifier = {
					target = ROM
					modifier = large_increase
				}
			}
		}
	}
	ROM_strengthen_fatherland_bulgaria = {
		allowed = {
			original_tag = ROM
		}

		visible = {
			has_completed_focus = ROM_pressure_fatherland_front
			NOT = {
				BUL = { has_country_flag = ROM_bul_killed_communist_contacts }
			}
		}

		available = {
			NOT = { BUL = { has_country_flag = banned_communism_flag } }
			NOT = { BUL = { has_idea = r56_ROM_BUL_strengthen_fatherland_idea } }
		}

		cost = 50

		complete_effect = {
			BUL = {
				add_timed_idea = {
					days = 35
					idea = r56_ROM_BUL_strengthen_fatherland_idea
				}
			}
		}
	}
	ROM_make_opposition_members_disappear = {
		allowed = {
			original_tag = ROM
		}

		visible = {
			has_completed_focus = ROM_pressure_fatherland_front
			NOT = {
				BUL = { has_country_flag = ROM_bul_killed_communist_contacts }
			}
		}

		available = {
			NOT = { BUL = { has_country_flag = banned_communism_flag } }
			NOT = { BUL = { has_idea = r56_ROM_BUL_removing_opposition_to_fatherland_idea } }
		}

		cost = 50

		complete_effect = {
			BUL = {
				add_timed_idea = {
					days = 35
					idea = r56_ROM_BUL_removing_opposition_to_fatherland_idea
				}
			}
		}
	}
	ROM_launch_bulgarian_coup = {
		allowed = {
			original_tag = ROM
		}

		visible = {
			has_completed_focus = ROM_pressure_fatherland_front
			NOT = {
				BUL = { has_country_flag = ROM_bul_killed_communist_contacts }
			}
		}

		available = {
			NOT = { BUL = { has_country_flag = banned_communism_flag } }
			NOT = { BUL = { has_war = yes } }
			BUL = { communism > 0.4 }
		}

		cost = 50

		remove_effect = {
			BUL = { country_event = { id = political.19 } }
		}
	}
}
ROM_carve_up_yugo_category = {

	# Pressing claims

	ROM_present_ultimatum = {

		icon = ENG_trade_unions_demand

		allowed = {
			original_tag = ROM
		}

		available = {
			all_state = {
				OR = {
					NOT = { 
						owner = {
							OR = {
								tag = YUG
								is_subject_of = YUG
							}
						}
					}
					OR = {
						has_state_flag = strongest_claimant_ROM
						has_state_flag = strongest_claimant_HUN
						has_state_flag = strongest_claimant_GER
						has_state_flag = strongest_claimant_ITA
						AND = {
							is_claimed_by = GER
							GER = { has_country_flag = invited_to_split_yugo }
						}
						AND = {
							is_claimed_by = ITA
							ITA = { has_country_flag = invited_to_split_yugo }
						}
						AND = {
							is_claimed_by = HUN
							HUN = { has_country_flag = invited_to_split_yugo }
						}
						is_claimed_by = ROM
					}
				}
			}
		}
		
		visible = {
			original_tag = ROM
		}

		cost = 0
		
		fire_only_once = yes

		complete_effect = {
			YUG = {
				country_event = DOD_romania.60
			}
		}

		ai_will_do = {
			factor = 100
		}

	}

	# Invite Germany

	ROM_invite_germany = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = ROM
		}

		available = {
			GER = {
				NOT = { has_country_flag = invited_to_split_yugo }
				any_owned_state = {
					any_neighbor_state = {
						owner = {
							OR = {
								tag = YUG
								is_subject_of = YUG
							}
						}
					}
				}
			}
		}
		
		visible = {
			original_tag = ROM
		}

		cost = 0
		
		fire_only_once = yes

		complete_effect = {
			GER = {
				country_event = DOD_romania.601
			}
		}

		ai_will_do = {
			factor = 100
		}

	}

	# Invite Italy

	ROM_invite_italy = {

		icon = hol_exchange_intelligence_data

		allowed = {
			original_tag = ROM
		}

		available = {
			ITA = {
				NOT = { has_country_flag = invited_to_split_yugo }
				any_owned_state = {
					any_neighbor_state = {
						owner = {
							OR = {
								tag = YUG
								is_subject_of = YUG
							}
						}
					}
				}
			}
		}
		
		visible = {
			original_tag = ROM
		}

		cost = 0
		
		fire_only_once = yes

		complete_effect = {
			ITA = {
				country_event = DOD_romania.601
			}
		}

		ai_will_do = {
			factor = 100
		}

	}

	# Invite Hungary

	ROM_invite_hungary = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = ROM
		}

		available = {
			HUN = {
				NOT = { has_country_flag = invited_to_split_yugo }
				any_owned_state = {
					any_neighbor_state = {
						owner = {
					OR = {
						tag = YUG
						is_subject_of = YUG
					}
				}
					}
				}
			}
		}
		
		visible = {
			original_tag = ROM
		}

		cost = 0
		
		fire_only_once = yes

		complete_effect = {
			HUN = {
				country_event = DOD_romania.601
			}
		}

		ai_will_do = {
			factor = 100
		}

	}

	#claiming Yugoslavia to prevent from some weird bugs appearing
	r56_ROM_claim_state_to_divide = {
		#ROM
		icon = {
			key = GFX_decision_ROM_claim_yugo_4
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_ROM value = 3 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_ROM
				}
			}
		}
		icon = {
			key = GFX_decision_ROM_claim_yugo_3
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_ROM value = 2 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_ROM
				}
			}
		}
		icon = {
			key = GFX_decision_ROM_claim_yugo_2
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_ROM value = 1 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_ROM
				}
			}
		}
		icon = {
			key = GFX_decision_ROM_claim_yugo_1
			trigger = {
				FROM = {
					NOT = {
						has_state_flag = strongest_claimant_ROM
						has_state_flag = strongest_claimant_ITA
					}
				}
			}
		}

		#ITA
		icon = {
			key = GFX_decision_ITA_claim_yugo_4
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_ITA value = 3 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_ITA
				}
			}
		}
		icon = {
			key = GFX_decision_ITA_claim_yugo_3
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_ITA value = 2 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_ITA
				}
			}
		}
		icon = {
			key = GFX_decision_ITA_claim_yugo_2
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_ITA value = 1 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_ITA
				}
			}
		}

		#HUN
		icon = {
			key = GFX_decision_HUN_claim_yugo_4
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_HUN value = 3 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_HUN
				}
			}
		}
		icon = {
			key = GFX_decision_HUN_claim_yugo_3
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_HUN value = 2 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_HUN
				}
			}
		}
		icon = {
			key = GFX_decision_HUN_claim_yugo_2
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_HUN value = 1 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_HUN
				}
			}
		}

		#GER
		icon = {
			key = GFX_decision_GER_claim_yugo_4
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_GER value = 3 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_GER
				}
			}
		}
		icon = {
			key = GFX_decision_GER_claim_yugo_3
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_GER value = 2 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_GER
				}
			}
		}
		icon = {
			key = GFX_decision_GER_claim_yugo_2
			trigger = {
				FROM = {
					FROM = { check_variable = {  var = claim_strength_GER value = 1 compare = greater_than_or_equals } }
					has_state_flag = strongest_claimant_GER
				}
			}
		}
		allowed = {
			OR = {
				original_tag = ROM
				original_tag = HUN
				original_tag = ITA
				original_tag = GER
			}
		}
		available = {
			FROM = {
				has_anyone_else_claimed_ROM = yes
			}
			OR = {
				GER = {
					has_country_flag = invited_to_split_yugo
				}
				ITA = {
					has_country_flag = invited_to_split_yugo
				}
				HUN = {
					has_country_flag = invited_to_split_yugo
				}
			}
		}
		
		visible = {
			has_country_flag = invited_to_split_yugo
			hidden_trigger = {
				NOT = { has_country_flag = claiming_a_yugoslav_state_flag }
			}
			FROM = {
				owner = {
					OR = {
						original_tag = YUG
						is_subject_of = YUG
					}
				}
			}
		}
		
		highlight_states = { 
			highlight_state_targets = {
				state = FROM
			} 
		}

		on_map_mode = map_and_decisions_view

		state_target = yes

		target_trigger = {
			FROM = {
				AND = {
					#region = 24	#Western Balkans - original area, BUT! What if Yugo, lets say, puppeted other countries? Would it make sense to divide them too? - Fantom
					#Moreover, effect handles Yugoslavian puppets!
					owner = {	#Should consider if Yugo has Zara, Istria and Litorale (Albania included, because why not if Yugo owns/subjugated them somehow?
						OR = {
							original_tag = YUG
							is_subject_of = YUG
						}
					}
				}
			}
		}

		cost = 10
		
		fire_only_once = no
		days_remove = 7
		
		remove_effect = {
			FROM = {
				custom_effect_tooltip = romania_total_claims_tt
				calculate_claimant_effect = yes
			}
			hidden_effect = { clr_country_flag = claiming_a_yugoslav_state_flag }
		}

		complete_effect = {
			hidden_effect = { set_country_flag = claiming_a_yugoslav_state_flag }
		}

		ai_will_do = {
			factor = 100
			modifier = {
				original_tag = HUN
				factor = 500
			}			
			modifier = {
				NOT = {
					FROM = {
						any_neighbor_state = {
							OR = {
								AND = {
									owner = {
										OR = {
											tag = YUG
											is_subject_of = YUG
										}
									}
									OR = {
										is_claimed_by = ROOT
										has_state_flag = strongest_claimant_@ROOT
									}
								}
								is_owned_by = ROOT
							}
						}
					}
				}
				factor = 0
			}
		}

	}
}
ROM_bulgaria_romania_union_category = {
	ROM_prepare_government_integration = {
		
		fire_only_once = yes

		days_remove = 35

		complete_effect = {
			BUL = {
				add_ideas = r56_ROM_BUL_political_unification
			}
			add_ideas = r56_ROM_BUL_political_unification
		}

		remove_effect = {
			hidden_effect = {
				BUL = {
					remove_ideas = r56_ROM_BUL_political_unification
				}
				remove_ideas = r56_ROM_BUL_political_unification
			}
		}
	}
	ROM_economic_unification = {
		
		fire_only_once = yes

		days_remove = 35
		
		complete_effect = {
			BUL = {
				add_ideas = ROOT_joint_economic_venture_effort
				
			}
			add_ideas = ROOT_joint_economic_venture_effort
		}

		remove_effect = {
			hidden_effect = {
				BUL = {
					remove_ideas = ROOT_joint_economic_venture_effort
				}
				remove_ideas = ROOT_joint_economic_venture_effort
			}
		}
	}
	ROM_military_restructuring = {
		
		fire_only_once = yes

		days_remove = 35
		
		complete_effect = {
			BUL = {
				add_ideas = r56_ROM_BUL_army_unification
			}
			add_ideas = r56_ROM_BUL_army_unification
		}

		remove_effect = {
			hidden_effect = {
				BUL = {
					remove_ideas = r56_ROM_BUL_army_unification
				}
				remove_ideas = r56_ROM_BUL_army_unification
			}
		}
	}
	ROM_formal_annexation_of_bulgaria = {

		fire_only_once = yes

		available = {
			has_decision = ROM_prepare_government_integration
			has_decision = ROM_economic_unification
			has_decision = ROM_military_restructuring
			BUL = { has_war = no }
		}
		
		days_remove = 35

		remove_effect = {
			BUL = {

				country_event = { id = rt56.rom_bulg_pressure.5  hours = 6 }
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				every_state = {
					limit = {
						OR = {
							region = 24
							region = 25
							region = 26
						}
						is_core_of = BUL
					}
					add_core_of = ROOT
				}
				annex_country = {
					target = BUL
					transfer_troops = yes
				}
			}
		}
	}
}
ROM_army_modernisation_category = {
	ROM_army_modernisation_the_professional_soldier_decision = {

		icon = GFX_decision_SWE_set_army_budget

		fire_only_once = yes

		visible = {
			has_completed_focus = ROM_army_modernisation_program
		}

		available = {
			has_country_flag = ROM_army_modernisation_fund_the_higher_war_school_decision_flag
			has_country_flag = ROM_army_modernisation_fund_the_nicolae_balcescu_academy_decision_flag
			NOT = {
				has_country_flag = ROM_modernising_the_army
			}
		}

		days_remove = 35

		custom_cost_trigger = {
			command_power > 10
			has_political_power > 10
		}
		custom_cost_text = decision_cost_CP_10_pp_10

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				add_political_power = -10
			}
			set_country_flag = ROM_modernising_the_army
		}


		remove_effect = {
			custom_effect_tooltip = ROM_the_army_profession_tt
			add_to_variable = { ROM_romanian_armed_forces_army_org_factor = 0.15 }			
			add_to_variable = { ROM_romanian_armed_forces_stability_factor = 0.05 }

			army_experience = 10
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 1
				uses = 1
				category = land_doctrine
			}
			clr_country_flag = ROM_modernising_the_army
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}
	}
	ROM_army_modernisation_fund_the_higher_war_school_decision = {

		icon = GFX_decision_SWE_set_army_budget

		fire_only_once = yes

		visible = {
			has_completed_focus = ROM_army_modernisation_program
		}

		available = {
			has_completed_focus = ROM_increase_domestic_production
			NOT = {
				has_country_flag = ROM_modernising_the_army
			}
		}

		days_remove = 35

		custom_cost_trigger = {
			command_power > 10
			has_political_power > 10
		}

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				add_political_power = -10
			}
			set_country_flag = ROM_modernising_the_army
		}


		custom_cost_text = decision_cost_CP_10_pp_10

		remove_effect = {
			set_country_flag = ROM_army_modernisation_fund_the_higher_war_school_decision_flag
			custom_effect_tooltip = ROM_the_higher_war_school_tt
			add_to_variable = { ROM_romanian_armed_forces_mobilization_laws_cost_factor = -0.2 }
			add_to_variable = { ROM_romanian_armed_forces_training_time_army_factor = -0.1 }
			add_to_variable = { ROM_romanian_armed_forces_infantry_defence_factor = 0.1 }

			army_experience = 10
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 1
				uses = 1
				category = land_doctrine
			}
			clr_country_flag = ROM_modernising_the_army
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}		
	}
	ROM_army_modernisation_fund_the_nicolae_balcescu_academy_decision = {

		icon = GFX_decision_SWE_set_army_budget

		fire_only_once = yes

		visible = {
			has_completed_focus = ROM_army_modernisation_program
		}

		available = {
			has_completed_focus = ROM_the_modern_battlefield
			NOT = {
				has_country_flag = ROM_modernising_the_army
			}
		}

		custom_cost_trigger = {
			command_power > 10
			has_political_power > 10
		}
		custom_cost_text = decision_cost_CP_10_pp_10

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				add_political_power = -10
			}
			set_country_flag = ROM_modernising_the_army
		}

		days_remove = 35

		remove_effect = {
			set_country_flag = ROM_army_modernisation_fund_the_nicolae_balcescu_academy_decision_flag
			custom_effect_tooltip = ROM_the_nicolae_balcescu_academy_tt
			add_to_variable = { ROM_romanian_armed_forces_experience_gain_army_factor = 0.1 }
			add_to_variable = { ROM_romanian_armed_forces_mobilization_laws_cost_factor = -0.1 }
			add_to_variable = { ROM_romanian_armed_forces_infantry_attack_factor = 0.1 }

			army_experience = 10
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 1
				uses = 1
				category = land_doctrine
			}
			clr_country_flag = ROM_modernising_the_army
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}
	}
	ROM_equipment_modernisation_open_pirochim_victoria_plant_decision = {

		icon = GFX_decision_ger_military_buildup

		fire_only_once = yes
		
		visible = {
			has_completed_focus = ROM_increase_domestic_production
			has_completed_focus = ROM_army_modernisation_program
		}

		available = {
			has_completed_focus = ROM_increase_domestic_production
			NOT = {
				has_country_flag = ROM_modernising_equipment
			}
		}

		days_remove = 35
		
		custom_cost_trigger = {
			command_power > 10
			has_political_power > 10
		}
		custom_cost_text = decision_cost_CP_10_pp_10

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				add_political_power = -10
			}
			set_country_flag = ROM_modernising_equipment
		}

		remove_effect = {
			clr_country_flag = ROM_modernising_equipment
			random_owned_controlled_state = {
				prioritize = {
					84
				}
				add_extra_state_shared_building_slots = 1				
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}			
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}
	}
	ROM_equipment_modernisation_found_tohan_decision = {

		icon = GFX_decision_ger_military_buildup

		fire_only_once = yes
		
		visible = {
			has_completed_focus = ROM_increase_domestic_production
			has_completed_focus = ROM_army_modernisation_program
		}

		available = {
			has_completed_focus = ROM_support_equipment_redesign
			NOT = {
				has_country_flag = ROM_modernising_equipment
			}
		}

		days_remove = 35

		custom_cost_trigger = {
			command_power > 10
			has_political_power > 10
		}
		custom_cost_text = decision_cost_CP_10_pp_10

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				add_political_power = -10
			}
			set_country_flag = ROM_modernising_equipment
		}

		remove_effect = {
			clr_country_flag = ROM_modernising_equipment
			random_owned_controlled_state = {
				prioritize = {
					84
				}
				add_extra_state_shared_building_slots = 1				
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}			
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}
	}
	ROM_equipment_modernisation_establish_ammunitions_factory_plopeni_mechanical_plant_decision = {

		icon = GFX_decision_ger_military_buildup

		fire_only_once = yes
		
		visible = {
			has_completed_focus = ROM_increase_domestic_production
			has_completed_focus = ROM_army_modernisation_program
		}

		available = {
			has_completed_focus = ROM_domestic_rifle_designs
			NOT = {
				has_country_flag = ROM_modernising_equipment
			}
		}

		days_remove = 35

		custom_cost_trigger = {
			command_power > 10
			has_political_power > 10
		}
		custom_cost_text = decision_cost_CP_10_pp_10

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				add_political_power = -10
			}
			set_country_flag = ROM_modernising_equipment
		}

		remove_effect = {
			clr_country_flag = ROM_modernising_equipment
			random_owned_controlled_state = {
				prioritize = {
					84
				}
				add_extra_state_shared_building_slots = 1				
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}			
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}
	}
}
ROM_romanian_red_army_decisions_category = {
	ROM_establish_our_red_army = {

		icon = GFX_decision_SWE_set_army_budget

		fire_only_once = yes

		visible = {
			
		}

		available = {
		}

		days_remove = 180

		cost = 50

		remove_effect = {
			set_country_flag = ROM_established_the_red_army
			add_ideas = r56_ROM_red_army
			custom_effect_tooltip = ROM_establish_our_red_army_tt
			add_to_variable = { ROM_romanian_armed_forces_attrition_factor = 0.1 }
			add_to_variable = { ROM_romanian_armed_forces_training_time_army_factor = 0.1 }
			add_to_variable = { ROM_romanian_armed_forces_army_org_factor = -0.1 }
			army_experience = 25
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}	
	}
	ROM_homeland_field_exercises = {
		icon = GFX_decision_SWE_set_army_budget

		fire_only_once = yes

		visible = {

		}

		available = {
			has_country_flag = ROM_established_the_red_army
			NOT = {
				has_country_flag = ROM_improving_the_red_army
			}
		}

		days_remove = 70

        custom_cost_text = xp_conversion_land_50_xp    
        custom_cost_trigger = {

            has_army_experience > 49
            has_political_power > 9

        }

		complete_effect = {
			set_country_flag = ROM_improving_the_red_army
		}

		remove_effect = {
			clr_country_flag = ROM_improving_the_red_army
			custom_effect_tooltip = ROM_homeland_field_exercises_tt
			add_to_variable = { ROM_romanian_armed_forces_attrition_factor = -0.05 }
			add_to_variable = { ROM_romanian_armed_forces_training_time_army_factor = -0.05 }
			add_to_variable = { ROM_romanian_armed_forces_army_org_factor = 0.05 }
			add_to_variable = { ROM_romanian_armed_forces_army_core_defence_factor = 0.05 }
			add_to_variable = { ROM_romanian_armed_forces_army_core_attack_factor = 0.05 }				
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}	

	}
	ROM_internal_war_games = {
		icon = GFX_decision_SWE_set_army_budget

		fire_only_once = yes

		visible = {

		}

		available = {
			has_country_flag = ROM_established_the_red_army
			NOT = {
				has_country_flag = ROM_improving_the_red_army
			}
		}

		days_remove = 70

        custom_cost_text = xp_conversion_land_50_xp    
        custom_cost_trigger = {

            has_army_experience > 49
            has_political_power > 9

        }

		complete_effect = {
			set_country_flag = ROM_improving_the_red_army
		}

		remove_effect = {
			clr_country_flag = ROM_improving_the_red_army
			custom_effect_tooltip = ROM_homeland_field_exercises_tt
			add_to_variable = { ROM_romanian_armed_forces_attrition_factor = -0.05 }
			add_to_variable = { ROM_romanian_armed_forces_training_time_army_factor = -0.05 }
			add_to_variable = { ROM_romanian_armed_forces_army_org_factor = 0.05 }
			add_to_variable = { ROM_romanian_armed_forces_army_core_defence_factor = 0.05 }
			add_to_variable = { ROM_romanian_armed_forces_army_core_attack_factor = 0.05 }			
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 1
			}
		}	

	}	
}
ROM_codreanu_assassination_category = {
	ROM_codreanu_assassination_mission = {

		allowed = {
			tag = ROM
		}

		available = {
			hidden_trigger = { always = no }
		}
		
		cancel_trigger = {
			ROM = {
				has_completed_focus = ROM_codreanus_iron_guard	
			}
		}

		activation = {
			has_completed_focus = ROM_the_iron_guard
		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 235

		timeout_effect = {
			effect_tooltip ={
				country_event = {
					id = rt56.rom_codreanu.2
				}				
			}
			if = {
				limit = {
					NOT = {
						has_country_flag = ROM_iron_guard_codreanu_died
					}
				}
				country_event = {
					id = rt56.rom_codreanu.2
				}
			}
		}
	}
}