CRM_white_diplomacy = {

	CRM_send_weapons_to_ukraine = {
		icon = generic_prepare_civil_war

		available = {
			has_equipment = { infantry_equipment > 999 }
			UKR = { has_equipment = { infantry_equipment < 8001 } }
		}

		visible = {
			has_completed_focus = CRM_lend_lease_for_unr_soldiers
			DKR = { exists = yes }
		}

		fire_only_once = no

		days_remove = 14
		days_re_enable = 0

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		
		custom_cost_text = 1000_infantry_equipment_1


		ai_will_do = {
			factor = 2
		}

		remove_effect = {
			send_equipment = {
				target = UKR
				type = infantry_equipment
				amount = 1000
			}
		}
	}
	
	CRM_white_diplomacy_explaining = {

		icon = generic_research

		allowed = {
			tag = CRM
		}
        
		ai_will_do = {
			factor = 0
		}
	
		visible = {
			NOT = { has_country_flag = CRM_I_read_this }
		}
		
		remove_effect = {	
        	country_event = { id = crimea.30 }
	    }

    }
	
	CRM_integration_with_big_russia = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}
        
		ai_will_do = {
			factor = 100
		}
	
		visible = {
			NOT = { has_country_flag = CRM_I_read_this }
			SOV = { has_completed_focus = SOV_the_hands_do }
		}
		
		remove_effect = {	
			if = {
				limit = {
					SOV = { is_ai = yes }
					ROOT = { is_ai = no }
				}
				SOV = { change_tag_from = ROOT }
			}
			else = {
				custom_effect_tooltip = GAME_OVER_TT
			}
	        SOV = { 
			    annex_country = {
	            	target = CRM
	            	transfer_troops = yes
	            }
				country_event = { id = crimea.66 }
		    }
		}
    }
	
	CRM_friendship_with_BUL = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		cost = 50
		
		fire_only_once = yes
        
		ai_will_do = {
			factor = 4
		}
		
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = BUL }
			NOT = { BUL = { has_government = communism } }
			BUL = { 
				BUL_boris_iii = { is_country_leader = yes }
		    }
		}
	
		visible = {
			has_completed_focus = CRM_balkan_cooperation
		}
		
		remove_effect = {	
	        country_event = { id = crimea.13 days = 6 }
			hidden_effect = {
				BUL = { add_opinion_modifier = { target = SOV modifier = CRM_support_white_crimea } }
		    }
		}

    }
	
	CRM_friendship_with_YUG = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		cost = 25
		
		fire_only_once = yes
        
		ai_will_do = {
			factor = 10
		}
		
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = YUG }
			NOT = { YUG = { has_completed_focus = YUG_recognize_the_soviet_union } }
		}
	
		visible = {
			has_completed_focus = CRM_balkan_cooperation
		}
		
		remove_effect = {	
	        add_opinion_modifier = { target = YUG modifier = CRM_new_friends }
		    hidden_effect = {
			    YUG = { add_opinion_modifier = { target = ROOT modifier = CRM_new_friends } }
		        YUG = { add_opinion_modifier = { target = SOV modifier = CRM_support_white_crimea } }		
			}
	    }

    }
	
	CRM_propaganda_in_soviet_union = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		cost = 25
		
		days_remove = 30
		
		fire_only_once = yes
        
		ai_will_do = {
			factor = 10
		}
		
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			SOV = { has_government = communism }
			has_completed_focus = CRM_russain_patriotism
		}
	
		visible = {
			has_completed_focus = CRM_russain_patriotism
		}
		
		modifier = {
			consumer_goods_factor = 0.30
		}
		
		remove_effect = {	
	        add_political_power = 25
			SOV = { 
				add_popularity = {
				    ideology = fascism
				    popularity = 0.07 
				}
				add_stability = -0.03
		    }
        }
    }
	
	CRM_friendship_with_USA = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}
		
        days_remove = 100
		
		cost = 250
		
		fire_only_once = yes
        
		ai_will_do = {
			factor = 10
		}
		
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = USA }
			NOT = { USA = { has_government = communism } }
		}
	
		visible = {
			has_completed_focus = CRM_fat_allies
		}
		
		remove_effect = {	
	        add_opinion_modifier = { target = USA modifier = CRM_new_friends }
		    hidden_effect = {
		    USA = { add_opinion_modifier = { target = ROOT modifier = CRM_new_friends } } }
			137 = {
	            add_extra_state_shared_building_slots = 2
			    add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes           
				}
		    }
			add_tech_bonus = {
	            bonus = 1
	            uses = 1
	            category = industry
		    }
	    }
	}
	
	CRM_friendship_with_ROM = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		cost = 75
		
		fire_only_once = yes
        
		ai_will_do = {
			factor = 15
		}
		
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = ROM }
			ROM = {
				NOT = { has_government = communism } 
				has_capitulated = no	
			}
		}
	
		visible = {
			has_completed_focus = CRM_balkan_cooperation
		}
		
		remove_effect = {
	        add_opinion_modifier = { target = ROM modifier = CRM_new_friends }
		    hidden_effect = {
			    ROM = { add_opinion_modifier = { target = ROOT modifier = CRM_new_friends } }		
				ROM = { add_opinion_modifier = { target = SOV modifier = CRM_support_white_crimea } }	
		        ROM = {
		        	diplomatic_relation = {
				        country = CRM
				        relation = guarantee
				        active = yes
					}
			    }
		    }
	    }
	}
	
	CRM_upgrade_relations_with_ENG = {

		icon = generic_decision	

		allowed = {
			tag = CRM
		}

		days_remove = 30

		cost = 60
        modifier = {
			civilian_factory_use = 1
		}
		fire_only_once = yes
        ai_will_do = {
			factor = 3
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = ENG }
			ENG = { has_government = ROOT }
		}
		
		visible = {
			has_completed_focus = CRM_old_allies
		}
		
		remove_effect = {	
		    add_opinion_modifier = { target = ENG modifier = CRM_old_friends }
		    country_event = { id = crimea.77 }
			hidden_effect = {
				ENG = { add_opinion_modifier = { target = ROOT modifier = CRM_old_friends } }
			}
		}
 
	} 

	CRM_upgrade_relations_with_FRA = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 30

		cost = 60
        modifier = {
			civilian_factory_use = 1
		}
		fire_only_once = yes
        ai_will_do = {
			factor = 3
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = FRA }
			NOT = { FRA = { has_completed_focus = FRA_invite_communist_ministers } }
		}
		
		visible = {
			has_completed_focus = CRM_fra_allies
		}
		
		remove_effect = {	
	        add_opinion_modifier = { target = FRA modifier = CRM_new_friends }
			hidden_effect = {
				set_country_flag = CRM_up_relations_FRA
				FRA = { add_opinion_modifier = { target = ROOT modifier = CRM_old_friends } }
			}
		}
	} 

	CRM_upgrade_relations_with_GER = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 30

		cost = 60
        modifier = {
			civilian_factory_use = 1
		}
		fire_only_once = yes
        ai_will_do = {
			factor = 3
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = GER }
			NOT = { GER = { has_government = communism } }
		}
		
		visible = {
			has_completed_focus = CRM_ger_friend
		}
		
		remove_effect = {	
	        add_opinion_modifier = { target = GER modifier = CRM_new_friends }
			hidden_effect = {
				set_country_flag = CRM_up_relations_GER
				GER = { add_opinion_modifier = { target = ROOT modifier = CRM_old_friends } }
			}
		}
	} 

	CRM_upgrade_relations_with_UKR = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 30

		cost = 60
        modifier = {
			civilian_factory_use = 1
		}
		fire_only_once = yes
        ai_will_do = {
			factor = 3
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = UKR }
			NOT = { UKR = { has_completed_focus = UKR_communism_propaganda } }
		}
		
		visible = {
			has_completed_focus = CRM_ukr_allies
		}
		
		remove_effect = {	
	        add_opinion_modifier = { target = UKR modifier = CRM_new_friends }
			hidden_effect = {
				set_country_flag = CRM_up_relations_UA
				UKR = { add_opinion_modifier = { target = ROOT modifier = CRM_old_friends } }
			}
		}
	}
 
	CRM_investitions_ENG = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 60

		cost = 120
        modifier = {
			civilian_factory_use = 1
		}
		fire_only_once = yes
        ai_will_do = {
			factor = 1
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = ENG }
			ENG = { has_government = ROOT }
		}
		
		visible = {
			has_completed_focus = CRM_old_allies
			has_country_flag = CRM_up_relations_UK
		}
		
		remove_effect = {
			if = {
				limit = { has_idea = CRM_depression }
			    remove_ideas = CRM_depression
	            add_timed_idea = {
					idea = CRM_depression_2
					days = 730
				}

	        }
			add_ai_strategy = {
				type = alliance
				id = "ENG"
				value = 200
			}
	        set_country_flag = CRM_invest_UK		
	        137 = {
	            add_extra_state_shared_building_slots = 1
			    add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes           
				    }
						
		    }
	    }
	
    }
	
	CRM_investitions_FRA = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 60

		cost = 120
        modifier = {
			civilian_factory_use = 1
		}
		
		fire_only_once = yes
        ai_will_do = {
			factor = 1
		}
		available = { 
		NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
		NOT = { has_war_with = FRA }
		NOT = { FRA = { has_completed_focus = FRA_invite_communist_ministers } }
		}
		
		visible = {
			has_completed_focus = CRM_fra_allies
			has_country_flag = CRM_up_relations_FRA
		}
		
		remove_effect = {	
	        set_country_flag = CRM_invest_FRA
			if = {
				limit = { has_idea = CRM_depression }
			    remove_ideas = CRM_depression
	            add_timed_idea = {
					idea = CRM_depression_2
					days = 730
				}
			}
	        137 = {
	            add_extra_state_shared_building_slots = 1
			    add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes           
				}
		    }
		}
	}
	
	CRM_investitions_GER = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 60

		cost = 120
        modifier = {
			civilian_factory_use = 1
		}
		
		fire_only_once = yes
        ai_will_do = {
			factor = 1
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = GER }
		}
		
		visible = {
			has_completed_focus = CRM_ger_friend
			has_country_flag = CRM_up_relations_GER
		}
		
		remove_effect = {	
			if = {
				limit = { has_idea = CRM_depression }
	            remove_ideas = CRM_depression
		        add_timed_idea = {
					idea = CRM_depression_2
					days = 730
				}
			}
	        set_country_flag = CRM_invest_GER
	        1021 = {
	            add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes           
				}
				
		    }
			137 = {
	            add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes           
				}
		    }
	    }
    }
	
	CRM_investitions_UKR = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 60

		cost = 120
        modifier = {
			civilian_factory_use = 1
		}
		
		fire_only_once = yes
        ai_will_do = {
			factor = 10
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = UKR }
			NOT = { UKR = { has_completed_focus = UKR_communism_propaganda } }
		}
		
		visible = {
			has_completed_focus = CRM_ukr_allies
			has_country_flag = CRM_up_relations_UA
		}
		
		remove_effect = {
			if = {
				limit = { has_idea = CRM_depression }
			    remove_ideas = CRM_depression
		        add_timed_idea = {
					idea = CRM_depression_2
					days = 730
				}
			}
	        set_country_flag = CRM_invest_UA
	        if = {
		        limit =	{ UKR = { has_government = democratic } }
		        137 = {
		            add_extra_state_shared_building_slots = 1
				    add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes           
					}
			    }
		    }
			
			if = {
		        limit =	{ NOT = { UKR = { has_government = democratic } } }
		        137 = {
		            add_extra_state_shared_building_slots = 1
				    add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes           
					}
			    }
		    }
		}
	}
	
	CRM_alliance_with_ENG = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 7

		cost = 150
        modifier = {
			civilian_factory_use = 1
		}
		fire_only_once = yes
        ai_will_do = {
			factor = 1
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = ENG }
			ENG = { has_government = ROOT }
			is_in_faction = no
			ENG = { is_faction_leader = yes }
			has_country_flag = CRM_eng_support_us
		}
		
		visible = {
			has_completed_focus = CRM_old_allies
			has_country_flag = CRM_invest_UK
		}
		
		remove_effect = {
	        set_country_flag = CRM_alliance_UK		
	        ENG = { country_event = { id = crimea.7 days = 5 }    }
		
	    }

    }
	
	CRM_alliance_with_FRA = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 7

		cost = 150
        modifier = {
			civilian_factory_use = 1
		}
		fire_only_once = yes
        ai_will_do = {
			factor = 1
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = FRA }
			NOT = { FRA = { has_completed_focus = FRA_invite_communist_ministers } }
			is_in_faction = no
			FRA = { is_faction_leader = yes }
			NOT = { has_government = fascism }
		}
		
		visible = {
			has_completed_focus = CRM_old_allies
			has_country_flag = CRM_invest_FRA
		}
		
		remove_effect = {
	        set_country_flag = CRM_alliance_FRA				
	        FRA = { 
	        	country_event = { id = crimea.12 }
	    	}	
		}
    }
	
	CRM_alliance_with_GER = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 7

		cost = 150
        modifier = {
			civilian_factory_use = 1
		}
		fire_only_once = yes
        ai_will_do = {
			factor = 3
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = GER }
			if = {
				limit = { has_dlc = "Gotterdammerung" }
				NOT = { GER = { has_completed_focus = GER_oppose_hitler_ww } }
			} 
			else = {
				NOT = { GER = { has_completed_focus = GER_oppose_hitler } }
			}
			is_in_faction = no
			GER = { is_faction_leader = yes }
			has_country_flag = CRM_ger_support_us
		}
		
		visible = {
        has_country_flag = CRM_alliance_GER
		}
		
		remove_effect = {
	        set_country_flag = CRM_alliance_GER			
	        GER = { country_event = { id = crimea.16 days = 5 } }
	    }

    }
	
	CRM_alliance_with_UKR = {

		icon = generic_decision

		allowed = {
			tag = CRM
		}

		days_remove = 7

		cost = 150
        modifier = {
			civilian_factory_use = 1
		}
		
		fire_only_once = yes
        ai_will_do = {
			factor = 1
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = UKR }
			NOT = { UKR = { has_completed_focus = UKR_communism_propaganda } }
			is_in_faction = no
			UKR = { is_faction_leader = yes }
			has_country_flag = CRM_ukr_support_us
		}
		
		visible = {
			has_completed_focus = CRM_ukr_allies
			has_country_flag = CRM_invest_UK
		}
		
		remove_effect = {
	        set_country_flag = CRM_alliance_UA		
	        UKR = { country_event = { id = crimea.10 days = 5 } }
	    }
 	}

 	CRM_buy_a_time = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		cost = 100
		
		fire_only_once = yes
		
        ai_will_do = {
			factor = 10
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			has_active_mission = CRM_gain_foreign_recognition 
		}
		
		visible = {
			has_start_date < 1936.01.02
			has_active_mission = CRM_gain_foreign_recognition 
		}
		
		remove_effect = {	
	        add_days_mission_timeout = {
				mission = CRM_gain_foreign_recognition 
				days = 210
			}
		}
    }
	
	CRM_core_soviet_land_GER = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		days_remove = 60

		cost = 300
        modifier = {
			civilian_factory_use = 2
		}
		
		fire_only_once = yes
        ai_will_do = {
			factor = 20
		}
		available = { 
			NOT = { has_country_flag = CRM_we_are_stupid_losers }
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = GER }
			OR = {
				NOT = { has_government = democratic }
				GER = { has_government = ROOT }
			}
			has_completed_focus = CRM_seek_alies
		}
		
		visible = {
			always = yes
		}
		
		complete_effect = {
		add_days_mission_timeout = {
				mission = CRM_gain_foreign_recognition 
				days = 60
			}
		}
		
		remove_effect = {
	        GER = { add_opinion_modifier = { target = SOV modifier = CRM_support_white_crimea } }			
	        custom_effect_tooltip = CRM_prepare_to_war_tt
			set_country_flag = CRM_ger_support_us
			add_ideas = CRM_ger_with_us
		}
	}
	
	CRM_core_soviet_land_ENG = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		available = {
			has_country_flag = CRM_up_relations_UK
		}

		days_remove = 60

		cost = 300
        modifier = {
			civilian_factory_use = 2
		}
		
		fire_only_once = yes
        ai_will_do = {
			factor = 20
			modifier = {
				factor = 0.5
				has_government = fascism
			}
		}
		available = { 
			NOT = { has_country_flag = CRM_we_are_stupid_losers }
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = ENG }
	        ENG = { has_government = ROOT }
			has_completed_focus = CRM_seek_alies
		}
		
		visible = {
			always = yes
		}
		
		complete_effect = {
		add_days_mission_timeout = {
				mission = CRM_gain_foreign_recognition 
				days = 60
			}
		}
		
		remove_effect = {
	        ENG = { add_opinion_modifier = { target = SOV modifier = CRM_support_white_crimea } }			
	        custom_effect_tooltip = CRM_prepare_to_war_tt
			set_country_flag = CRM_eng_support_us
			add_ideas = CRM_eng_with_us
	    }
    }

	CRM_core_soviet_land_UKR = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		days_remove = 60

		cost = 300
        modifier = {
			civilian_factory_use = 2
		}
		
		fire_only_once = yes
        ai_will_do = {
			factor = 20
			modifier = {
				factor = 0.5
				has_government = fascism
			}
		}
		available = { 
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_war_with = UKR }
	        UKR = { 
	        	NOT = { has_government = communism } 
	        	has_country_flag = UKR_peace_with_CRM
	        }
			has_completed_focus = CRM_ukr_allies
		}
		
		visible = {
        	NOT = { has_country_flag = CRM_we_are_stupid_losers }
		}
		
		complete_effect = {
			add_days_mission_timeout = {
				mission = CRM_gain_foreign_recognition 
				days = 60
			}
		}
		
		remove_effect = {
	        UKR = { add_opinion_modifier = { target = SOV modifier = CRM_support_white_crimea } }			
	        custom_effect_tooltip = CRM_prepare_to_war_tt
			set_country_flag = CRM_ukr_support_us
			add_ideas = CRM_ukr_with_us
	    }
	
    }
	
	CRM_gain_foreign_recognition = {

		icon = eng_ally_imperialist_coup

		available = { #success effect
            OR = { has_idea = CRM_ger_with_us has_idea = CRM_ukr_with_us has_idea = CRM_eng_with_us CRM = { has_government = communism }  SOV = { has_completed_focus = SOV_the_hands_do }  }
			 
		}

		activation = {
			has_completed_focus = CRM_national_assembly
		}

		days_mission_timeout = 720

		fire_only_once = yes

		is_good = no

		timeout_effect = {
			if = {
				limit = {
					CRM = {
					    NOT = {
						    OR = { has_country_flag = CRM_ger_support_us has_country_flag = CRM_ukr_support_us  has_country_flag = CRM_eng_support_us  CRM = { has_government = communism } }
						}
					}
				}
				country_event = { id = crimea.47 }
				set_country_flag = CRM_we_are_stupid_losers
			}
		}
	}
	
	CRM_vladivostok_for_japan_ofer = {

		icon = generic_civil_support

		allowed = { }
        
		fire_only_once = yes
		ai_will_do = {
			factor = 10
		}
		available = {
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			JAP = { exists = yes NOT = { has_government = communism } NOT = { is_in_faction_with = ROOT } }
			408 = { CONTROLLER = { original_tag = SOV } }
			has_completed_focus = CRM_prepare_to_war_with_SOV
		}

	    days_remove = 30
		
		cost = 20
		
		visible = { has_completed_focus = CRM_prepare_to_war_with_SOV }
		
		remove_effect = {
				set_country_flag = cua_win_of_white_flag
			    JAP = { country_event = { id = crimea.26 }
		    }
	    }
	}

	CRM_kuban_for_ukraine_ofer = {

		icon = generic_civil_support

		allowed = { }
        
		fire_only_once = yes
		ai_will_do = {
			factor = 15
		}
		available = {
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			UKR = { exists = yes NOT = { has_government = communism } NOT = { is_in_faction_with = ROOT }  }
			has_completed_focus = CRM_prepare_to_war_with_SOV
		}

	    days_remove = 30
		
		cost = 20
		visible = { 
			has_completed_focus = CRM_prepare_to_war_with_SOV 
		}
		remove_effect = {
			set_country_flag = cua_win_of_white_flag
			UKR = { country_event = { id = crimea.27 } }
		}
	} 

	CRM_help_from_england = {

		icon = generic_civil_support

		fire_only_once = yes
		ai_will_do = {
			factor = 15
		}
		available = {
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			ENG = { exists = yes NOT = { has_government = communism } NOT = { has_war_with = ROOT } }
			has_country_flag = CRM_eng_support_us
		}

	    days_remove = 30
		
		cost = 50
		visible = { has_completed_focus = CRM_prepare_to_war_with_SOV }
		remove_effect = {
			add_offsite_building = { type = industrial_complex level = 2 }
			add_offsite_building = { type = arms_factory level = 2 }
		}
	}  

	CRM_oil_and_steeld_for_germany_ofer = {

		icon = generic_civil_support

		allowed = {  }
        
		fire_only_once = yes
		ai_will_do = {
			factor = 10
		}
		available = {
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			GER = { exists = yes NOT = { has_government = communism } NOT = { is_in_faction_with = ROOT } }
			229 = { CONTROLLER = { original_tag = SOV } }
			has_completed_focus = CRM_prepare_to_war_with_SOV
		}

	    days_remove = 30
		
		cost = 20
		visible = { has_completed_focus = CRM_prepare_to_war_with_SOV }
		remove_effect = {
			set_country_flag = cua_win_of_white_flag
			GER = { country_event = { id = crimea.29 } }
		}
	}


	CRM_murmanks_to_finland_ofer = {

		icon = generic_civil_support

		fire_only_once = yes
		ai_will_do = {
			factor = 10
		}
		available = {
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			NOT = { has_country_flag = CRM_claims_on_POL_FIN }
			FIN = { exists = yes NOT = { has_government = communism } NOT = { is_in_faction_with = ROOT } }
			213 = { CONTROLLER = { original_tag = SOV } }
			215 = { CONTROLLER = { original_tag = SOV } }
			216 = { CONTROLLER = { original_tag = SOV } }
			has_completed_focus = CRM_prepare_to_war_with_SOV
		}
        visible = { has_completed_focus = CRM_prepare_to_war_with_SOV }
	    days_remove = 30
		
		cost = 20
		
		remove_effect = {
			set_country_flag = cua_win_of_white_flag
			FIN = { country_event = { id = crimea.31 } }
		}
	
	}

	CRM_armenia_to_turkey = {

		icon = generic_civil_support

		allowed = {  }
        
		fire_only_once = yes
		ai_will_do = {
			factor = 10
		}
		available = {
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			TUR = { exists = yes NOT = { has_government = communism } NOT = { is_in_faction_with = ROOT } }
			230 = { CONTROLLER = { original_tag = SOV } }
			231 = { CONTROLLER = { original_tag = SOV } }
			has_completed_focus = CRM_prepare_to_war_with_SOV
		}

        visible = { 
        	has_completed_focus = CRM_prepare_to_war_with_SOV 
        }
	    days_remove = 30
		
		cost = 20
		
		remove_effect = {
			set_country_flag = cua_win_of_white_flag
			TUR = { country_event = { id = crimea.32 } }
		}
	}

 	CRM_attack_ussr = {

		icon = generic_civil_support

		fire_only_once = yes
		ai_will_do = {
			factor = 10
		}
		available = {
			NOT = { SOV = { has_completed_focus = SOV_the_hands_do } }
			has_war_with = SOV
		}

	    days_remove = 0
		visible = { has_completed_focus = CRM_war1 }
		cost = 25
		
		complete_effect = {
			country_event = { id = crimea.35 hours = 18 }
			country_event = { id = crimea.43 days = 48 }
			if = {
				limit = { 
					TUR = { has_country_flag = TUR_armenia_YES } 
				}
				TUR = { country_event = { id = crimea.33 hours = 10 } }
	        }
			if = {
			limit = { FIN = { has_country_flag = FIN_murmansk_YES } }
			FIN = { country_event = { id = crimea.33 hours = 10 } }
	        }
			if = {
			limit = { ENG = { has_country_flag = ENG_ally_YES } }
			ENG = { country_event = { id = crimea.33 hours = 10 } }
	        }
			if = {
			limit = { GER = { has_country_flag = GER_oil_YES } }
			GER = { country_event = { id = crimea.33 hours = 10 } }
	        }
			if = {
			limit = { UKR = {has_country_flag = UKR_kuban_YES } }
			UKR = { country_event = { id = crimea.33 hours = 10 } }
	        }
			if = {
			limit = { JAP = { has_country_flag = JAP_vladivostok_YES } }
			JAP = { country_event = { id = crimea.33 hours = 10 } }
	        }
		}
	}
	
}


CRM_corporative_economy = { 

	CRM_fast_economy_recover = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		days_remove = 110

		cost = 50
		
		fire_only_once = yes
        ai_will_do = {
			factor = 10
		}
		available = { 
		
		}
		
		visible = {


		}
		
		remove_effect = {
			custom_effect_tooltip = CRM_corporative_economic_bust_tt
			add_to_variable = { crm_sc_capacity_factory = 0.05 }
			add_to_variable = { crm_sc_capacity_dockyard = 0.05 }
			add_to_variable = { crm_sc_production_factory = 0.03 }
	        137 = {
	        add_extra_state_shared_building_slots = 1
		    add_building_construction = {
			type = industrial_complex
				level = 1
				instant_build = yes           
				}
		    }
		
	    }

	}

	CRM_rebuild_dockyards = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		days_remove = 120

		cost = 80
		
		fire_only_once = yes
        ai_will_do = {
			factor = 10
		}
		available = { 
		
		}
		
		visible = {


		}
		
		remove_effect = {
		custom_effect_tooltip = CRM_corporative_economic_bust_tt
		add_to_variable = { crm_sc_capacity_factory = 0.01 }
		add_to_variable = { crm_sc_capacity_dockyard = 0.07 }
		add_to_variable = { crm_sc_production_factory = 0.01 }
        }

    }
	
CRM_reorganize_factories = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		days_remove = 120

		cost = 80
		
		fire_only_once = yes
        ai_will_do = {
			factor = 10
		}
		available = { 
		
		}
		
		visible = {


		}
		
		remove_effect = {
		custom_effect_tooltip = CRM_corporative_economic_bust_tt
		add_to_variable = { crm_sc_capacity_factory = 0.07 }
		add_to_variable = { crm_sc_capacity_dockyard = 0.01 }
		add_to_variable = { crm_sc_production_factory = 0.01 }
        }

    }
	
CRM_new_rules_for_workers = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		days_remove = 120

		cost = 80
		
		fire_only_once = yes
        ai_will_do = {
			factor = 10
		}
		available = { 
		
		}
		
		visible = {


		}
		
		remove_effect = {
			custom_effect_tooltip = CRM_corporative_economic_bust_tt
			add_to_variable = { crm_sc_capacity_factory = 0.01 }
			add_to_variable = { crm_sc_capacity_dockyard = 0.01 }
			add_to_variable = { crm_sc_production_factory = 0.07 }
        }

    }

CRM_upgrade_oil_techologies = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
			
		}

		days_remove = 60

		cost = 50
		
		fire_only_once = yes
        ai_will_do = {
			factor = 10
		}
		available = { 
		
		}
		
		visible = {


		}
		
		remove_effect = {
		custom_effect_tooltip = CRM_corporative_economic_bust_tt
		add_to_variable = { crm_sc_production_oil = 0.07 }
        137 = {
        add_extra_state_shared_building_slots = 1
	    add_building_construction = {
		type = synthetic_refinery
			level = 1
			instant_build = yes           
			}
	    }
	
    }

}




}

CRM_army_focus = {
	CRM_army_focus1 = {
  
    icon = eng_propaganda_campaigns
   
    highlight_states = {
			highlight_state_targets = {
				state = 137
			}
		}
		available = {
			NOT = { has_government = communism }
			has_completed_focus = CRM_craft_some_divisions
		}

		visible = {	
		
		has_completed_focus = CRM_craft_some_divisions
		controls_state = 137
		
		}

		fire_only_once = yes

        days_remove = 30
		cost = 50
		

		modifier = {
			
		}

		ai_will_do = {
			factor = 1
		}
		
		
		remove_effect = {
		137 = {
		create_unit = {
						division = "name = \"Diviziya imeni Alexeyeva\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 1 start_equipment_factor = 1" 
						owner = ROOT
					}
		    }
		
		
		}
		
	}
	  
    CRM_army_focus2 = {
  
    icon = eng_propaganda_campaigns
   
    highlight_states = {
			highlight_state_targets = {
				state = 137
			}
		}
		available = {
			NOT = { has_government = communism }
			has_completed_focus = CRM_craft_some_divisions
		}

		visible = {	
		
		has_completed_focus = CRM_craft_some_divisions
		controls_state = 137
		
		}

		fire_only_once = yes

        days_remove = 20
		cost = 50
		

		modifier = {
			
		}

		ai_will_do = {
			factor = 1
		}
		
		
		remove_effect = {
		137 = {
		create_unit = {
						division = "name = \"Zhenskaya diviziya\" division_template = \"Pekhotnaya Diviziya\" start_experience_factor = 0.4 start_equipment_factor = 1" 
						owner = ROOT
					}
		}
		
		
		}
		
	  }
	  
	CRM_army_focus3 = {
  
    icon = eng_propaganda_campaigns
   
    highlight_states = {
			highlight_state_targets = {
				state = 137
			}
		}
		available = {
			has_completed_focus = CRM_craft_some_divisions
		}

		visible = {	
		
		has_completed_focus = CRM_craft_some_divisions
		controls_state = 137
		
		}

		fire_only_once = yes

        days_remove = 25
		cost = 20
		

		modifier = {
			
		}

		ai_will_do = {
			factor = 1
		}
		
		
		remove_effect = {
		137 = {
		create_unit = {
						division = "name = \"Brigada teretorialnoj oborony\" division_template = \"Opolchenie\" start_experience_factor = 0.5 start_equipment_factor = 1" 
						owner = ROOT
					}
		}
		
		
		}
		
	}
	  
	CRM_army_focus4 = {
  
    icon = eng_propaganda_campaigns
   
    highlight_states = {
			highlight_state_targets = {
				state = 137
			}
		}
		available = {
			has_completed_focus = CRM_craft_some_divisions
		}

		visible = {	
		
		has_completed_focus = CRM_craft_some_divisions
		controls_state = 137
		
		}

		fire_only_once = yes

        days_remove = 30
		cost = 20
		

		modifier = {
			
		}

		ai_will_do = {
			factor = 1
		}
		
		
		remove_effect = {
		137 = {
		create_unit = {
						division = "name = \"Rezervisty\" division_template = \"Opolchenie\" start_experience_factor = 0.5 start_equipment_factor = 1" 
						owner = ROOT
					}
		        }
		
		    }
		
	    }
	  
    }
	
CRM_buy_arms = { 
 
 	CRM_buy_new_planes = {

		icon = generic_air

		allowed = {
			tag = CRM
			NOT = { has_dlc = "By Blood Alone" }
		}

		visible = {
			tag = CRM
		}

		days_remove = 30
		days_re_enable = 60

		cost = 100
        modifier = {
			civilian_factory_use = 2
		}
		fire_only_once = no

		remove_effect = {
			if = {
				limit = {
					NOT = { has_dlc = "By Blood Alone" }
				}
				add_equipment_to_stockpile = {
					type = fighter_equipment_1
					amount = 75
					producer = CRM
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = small_plane_airframe_1
					amount = 75
					producer = ENG
					variant_name = "Hawker Hurricane"
				}	
			}
		}

	}
	
 CRM_buy_new_planes2 = {

		icon = generic_air

		allowed = {
			tag = CRM
			NOT = { has_dlc = "By Blood Alone" }
		}

		visible = {
			tag = CRM
		}

		days_remove = 30
		days_re_enable = 60

		cost = 100
        modifier = {
			civilian_factory_use = 2
		}
		fire_only_once = no

		modifier = {
		}

		complete_effect = {
		}

		remove_effect = {
			if = {
				limit = {
					NOT = { has_dlc = "By Blood Alone" }
				}
				add_equipment_to_stockpile = {
					type = tac_bomber_equipment_1
					amount = 36
					producer = CRM
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = small_plane_cas_airframe_1
					amount = 36
					producer = ENG
					variant_name = "HP Hampden"
				}	
			}
		}

	}
	
 CRM_buy_new_tanks = {

		icon = generic_tank

		allowed = {
			tag = CRM
		}

		visible = {
			tag = CRM
		}

		days_remove = 30
		days_re_enable = 60

		cost = 100
        modifier = {
			civilian_factory_use = 3
		}
		fire_only_once = no

		modifier = {
		}

		complete_effect = {
		}

		remove_effect = {
			add_equipment_to_stockpile = {
			    type = light_tank_chassis_1
			    amount = 120
			    producer = ENG
			}
		}

	}
	
	
	
	
 CRM_request_infantry_equipment = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}

		days_remove = 60
		days_re_enable = 100

		cost = 120
        modifier = {
			civilian_factory_use = 2
		}
		fire_only_once = no

		visible = {
			tag = CRM
		}

		modifier = {
		}

		complete_effect = {
		}

		remove_effect = {
			add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = 3000
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = 300
			    producer = CRM
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = 200
			    producer = CRM
			}
		}

	}
 
 
 }
 
CRM_red_diplomacy = {

	CRM_send_weapons_to_dkr = {
		icon = generic_prepare_civil_war

		available = {
			has_equipment = { infantry_equipment > 999 }
			DKR = { has_equipment = { infantry_equipment < 8001 } }
		}

		visible = {
			has_completed_focus = CRM_help_fore_DKR
			DKR = { exists = yes }
		}

		fire_only_once = no

		days_remove = 14
		days_re_enable = 0

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		
		custom_cost_text = 1000_infantry_equipment_1


		ai_will_do = {
			factor = 2
		}

		remove_effect = {
			send_equipment = {
				target = DKR
				type = infantry_equipment
				amount = 1000
			}
		}
	}

 	CRM_soviet_help_industry = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}
        available = { NOT = { has_country_flag = CRM_offer_to_soviets_is_active } }
		days_remove = 14
        days_re_enable = 30
		cost = 100
        modifier = {
			political_power_cost = 0.5
		}

		visible = {
			tag = CRM
			NOT = { has_country_flag = CRM_soviet_accept }
			has_completed_focus = CRM_soviet_help
		}

		modifier = {
		}

		complete_effect = {
		add_stability = 0.02
		set_country_flag = CRM_offer_to_soviets_is_active
		}

		remove_effect = {
		
		    hidden_effect = {
		    clr_country_flag = CRM_offer_to_soviets_is_active
			random_list = {
				20 = {
					modifier = {
						factor = 5
						SOV = { has_opinion = { target = CRM value > 59 } }
					}
					country_event = crimea.51
					set_country_flag = CRM_soviet_accept
				}
				80 = {
					country_event = crimea.52
				}
			}
		   
		    }
			
		}

	}
	
CRM_soviet_help_general_construction = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM

		}
        available = { NOT = { has_country_flag = CRM_offer_to_soviets_is_active } }
		days_remove = 14
        days_re_enable = 30
		cost = 100
        modifier = {
			political_power_cost = 0.5
		}

		visible = {
			tag = CRM
			NOT = { has_country_flag = CRM_soviet_accept1 }
			has_completed_focus = CRM_soviet_help
		}

		modifier = {
		}

		complete_effect = {
		add_political_power = 25 
		set_country_flag = CRM_offer_to_soviets_is_active
		}

		remove_effect = {
		
		    hidden_effect = {
		    clr_country_flag =  CRM_offer_to_soviets_is_active
			random_list = {
				20 = {
					modifier = {
						factor = 5
						SOV = { has_opinion = { target = CRM value > 30 } }
					}
					country_event = crimea.53
					set_country_flag = CRM_soviet_accept1
				}
				80 = {
					country_event = crimea.52
				}
			}
		   
		    }
			
		}

	}
 


CRM_soviet_help_arms_factory = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = CRM
		}
        available = { NOT = { has_country_flag = CRM_offer_to_soviets_is_active } }
		days_remove = 14
        days_re_enable = 30
		cost = 100
        modifier = {
			political_power_cost = 0.5
		}

		visible = {
			tag = CRM
			NOT = { has_country_flag = CRM_soviet_accept2 }
			has_completed_focus = CRM_soviet_help
		}

		modifier = {
		}

		complete_effect = {
		add_war_support = 0.02
		set_country_flag = CRM_offer_to_soviets_is_active
		}

		remove_effect = {
		
		    hidden_effect = {
		    clr_country_flag = CRM_offer_to_soviets_is_active
			random_list = {
				20 = {
					modifier = {
						factor = 5
						SOV = { has_opinion = { target = CRM value > 59 } }
					}
					country_event = crimea.54
					set_country_flag = CRM_soviet_accept2
				}
				80 = {
					country_event = crimea.52
				}
			}
		   
		    }
			
		}

	}
	
}
 


 
 
 
 
	


	

	

	