LIB_fractured_united_states_diplomacy = {

	LIB_support_atlantic_states_of_america = {
		available = {
			ASA = {
				exists = yes
				is_subject = no
				custom_trigger_tooltip = {
					tooltip = ROOT_party_popularity_above_12_to_support_THIS
					check_variable = {
						party_popularity@ruling_party > 0.12
					}
				}
			}
		}
		visible = {
			ASA = {
				exists = yes
			}
		}
		allowed = { TAG = LIB }
		fire_only_once = yes
		cost = 0
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		
		}
	}
	LIB_support_greats_lake_confederacy = {
		available = {
			MIN = {
				exists = yes
				is_subject = no
				custom_trigger_tooltip = {
					tooltip = ROOT_party_popularity_above_12_to_support_THIS
					check_variable = {
						party_popularity@ruling_party > 0.12
					}
				}
			}
		}
		visible = {
			MIN = {
				exists = yes
			}
		}
		allowed = { TAG = LIB }
		fire_only_once = yes
		cost = 0
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		
		}
	}
	LIB_support_manhattan_commune = {
		available = {
			MHC = {
				exists = yes
				is_subject = no
				custom_trigger_tooltip = {
					tooltip = ROOT_party_popularity_above_12_to_support_THIS
					check_variable = {
						party_popularity@ruling_party > 0.12
					}
				}
			}
		}
		visible = {
			MHC = {
				exists = yes
			}
		}
		allowed = { TAG = LIB }
		fire_only_once = yes
		cost = 0
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		
		}
	}
	LIB_support_texas = {
		available = {
			TEX = {
				exists = yes
				is_subject = no
				custom_trigger_tooltip = {
					tooltip = ROOT_party_popularity_above_12_to_support_THIS
					check_variable = {
						party_popularity@ruling_party > 0.12
					}
				}
			}
		}
		visible = {
			TEX = {
				exists = yes
			}
		}
		allowed = { TAG = LIB }
		fire_only_once = yes
		cost = 0
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		
		}
	}
	LIB_support_california = {
		available = {
			CAL = {
				exists = yes
				is_subject = no
				custom_trigger_tooltip = {
					tooltip = ROOT_party_popularity_above_12_to_support_THIS
					check_variable = {
						party_popularity@ruling_party > 0.12
					}
				}
			}
		}
		visible = {
			CAL = {
				exists = yes
			}
		}
		allowed = { TAG = LIB }
		fire_only_once = yes
		cost = 0
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		
		}
	}
	LIB_support_new_england = {
		available = {
			NEG = {
				exists = yes
				is_subject = no
				custom_trigger_tooltip = {
					tooltip = ROOT_party_popularity_above_12_to_support_THIS
					check_variable = {
						party_popularity@ruling_party > 0.12
					}
				}
			}
		}
		visible = {
			NEG = {
				exists = yes
			}
		}
		allowed = { TAG = LIB }
		fire_only_once = yes
		cost = 0
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		
		}
	}


}


LIB_US_Investment_Diplomacy = {
	
	
LIB_Seek_Plantation_Company  = {
    available = {
		custom_trigger_tooltip = {
			tooltip = LIB_USA_congress_voted_on_liberia_tooltip
			has_country_flag = LIB_request_gov_road_investment
		}
		custom_trigger_tooltip = {
			tooltip = Ocenaia_has_infrastructure_to_support_new_buildings
			
		}
		set_temp_variable = { loan_size_to_check = 200}
		has_less_than_specific_loan_size = yes

    }
    visible = {
		always = yes
    }
	allowed = { TAG = LIB }
	
	fire_only_once = yes
    cost = 10
	days_remove = 60
	
	ai_will_do = {
		base = 1
		modifier = {
			factor = 2
			set_temp_variable = { loan_size_to_check = 40 }
			has_less_than_specific_loan_size = yes			
		}
		modifier = {
			factor = 5
			set_temp_variable = { loan_size_to_check = 20 }
			has_less_than_specific_loan_size = yes			
		}
		modifier = {
			factor = 0
			set_temp_variable = { loan_size_to_check = 40 }
			has_less_than_specific_loan_size = no			
		}
	}
	
	modifier = {
		consumer_goods_expected_value = 0.03
	}
	complete_effect = {
		set_temp_variable = { loans_amount = 2 }
		take_loan_without_inflation_effect = yes			
    }
	remove_effect = {
		random_owned_controlled_state ={
			limit = {
				is_core_of = ROOT 
				
			}
			hidden_effect = {
				add_to_variable = { Oceania_extra_state_shared_building_slots = 1 }
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = cotton_farm
				level = 1
				instant_build = yes
			}
		}
	}
}

LIB_US_Gov_Port_Investment = {
		available = {
			custom_trigger_tooltip = {
				tooltip = LIB_USA_congress_voted_on_liberia_tooltip
				has_country_flag = LIB_request_gov_road_investment
			}
			has_stability > 0.3
			298 = {
				has_resources_amount = {
					resource = wood
					amount > 7
					state = 298
				}
				infrastructure > 2
			}
			set_temp_variable = { loan_size_to_check = 200}
			has_less_than_specific_loan_size = yes
		}
		visible = {
			always = yes
	}
	allowed = { TAG = LIB }
	
	fire_only_once = yes
	cost = 10
	days_remove = 280
	
	ai_will_do = {
		base = 1
		modifier = {
			factor = 2
			set_temp_variable = { loan_size_to_check = 40 }
			has_less_than_specific_loan_size = yes			
		}
		modifier = {
			factor = 5
			set_temp_variable = { loan_size_to_check = 20 }
			has_less_than_specific_loan_size = yes			
		}
		modifier = {
			factor = 0
			set_temp_variable = { loan_size_to_check = 40 }
			has_less_than_specific_loan_size = no			
		}
	}
	modifier = {
	}
	complete_effect = {
		USA = { country_event = { days = 280 id = liberia.35 } }
		hidden_effect = {
			set_temp_variable = { loans_amount = 2 }
			take_loan_without_inflation_effect = yes			
		}
	}
	remove_effect = {
		298 = {
			add_building_construction = {
				type = naval_base
				level = 2
				province = 7959
				instant_build = yes
			}
		}
    }
}
	
LIB_procter_and_gamble_chemical_plant = {
	available = {
		has_country_flag = afr_reform_distributed_health_pamphlets
		OR = {
		}
		custom_trigger_tooltip = {
			tooltip = Ocenaia_has_infrastructure_to_support_new_buildings
			
		}
		set_temp_variable = { loan_size_to_check = 200}
    	has_less_than_specific_loan_size = yes
    }
    visible = {
		always = yes
    }
	allowed = { TAG = LIB }
	fire_only_once = yes
	
	ai_will_do = {
    	base = 1
    	modifier = {
        	factor = 2
        	set_temp_variable = { loan_size_to_check = 40 }
        	has_less_than_specific_loan_size = yes       	 
    	}
    	modifier = {
        	factor = 5
        	set_temp_variable = { loan_size_to_check = 20 }
        	has_less_than_specific_loan_size = yes       	 
    	}
    	modifier = {
        	factor = 0
        	set_temp_variable = { loan_size_to_check = 40 }
        	has_less_than_specific_loan_size = no       	 
    	}
	}


    cost = 10
	days_remove = 360
	
	modifier = {
		consumer_goods_expected_value = 0.03
	}
	remove_effect = {
		random_owned_controlled_state ={
			limit = {
				is_core_of = ROOT 
				
			}
			hidden_effect = {
				add_to_variable = { Oceania_extra_state_shared_building_slots = 1 }
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}
	complete_effect = {
		set_country_flag = LIB_procter_and_gamble_chemical_plant_flag
		hidden_effect = {
			set_temp_variable = { loans_amount = 1 }
			take_loan_without_inflation_effect = yes
		}
    }
}

LIB_Seek_Textile_Company  = {
    available = {
		OR = {
		}
		cotton_farm > 1
		custom_trigger_tooltip = {
			tooltip = Ocenaia_has_infrastructure_to_support_new_buildings
			
		}
		set_temp_variable = { loan_size_to_check = 200}
    	has_less_than_specific_loan_size = yes
    }
    visible = {
		always = yes
    }
	allowed = { TAG = LIB }
	
	fire_only_once = yes
	
	ai_will_do = {
    	base = 1
    	modifier = {
        	factor = 2
        	set_temp_variable = { loan_size_to_check = 40 }
        	has_less_than_specific_loan_size = yes       	 
    	}
    	modifier = {
        	factor = 5
        	set_temp_variable = { loan_size_to_check = 20 }
        	has_less_than_specific_loan_size = yes       	 
    	}
    	modifier = {
        	factor = 0
        	set_temp_variable = { loan_size_to_check = 40 }
        	has_less_than_specific_loan_size = no       	 
    	}
	}


    cost = 10
	days_remove = 360
	
	#modifier = {
	#}
	complete_effect = {
		hidden_effect = {
			set_temp_variable = { loans_amount = 3 }
			take_loan_without_inflation_effect = yes			
		}
	}
	remove_effect = {
		random_owned_controlled_state ={
			limit = {
				is_core_of = ROOT 
				
			}
			hidden_effect = {
				add_to_variable = { Oceania_extra_state_shared_building_slots = 1 }
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = fabric_weavery
				level = 1
				instant_build = yes
			}
		}
	}
}

}

LIB_American_Civil_War_Diplomacy = {

LIB_CSA_send_volunteer = {

    available = {
        has_war_support > 0.5                                                                           
    }

    visible = {
		has_completed_focus = LIB_support_the_south
    }
	allowed = { TAG = LIB }
	
	fire_only_once = no

    cost = 0
	
	ai_will_do = {
		factor = 100
	}
	
	days_remove = 720
	
	days_re_enable = 100
	
	cancel_trigger = {
		NOT = {
			OR = {
				USA = {
					has_offensive_war_with = CSA
				}
				CSA = {
					has_offensive_war_with = USA
				}
			}   
		}
	}
	
	complete_effect = {
		add_ai_strategy = {
			type = send_volunteers_desire
			id = CSA
			value = 200
		}
	}
	
	modifier = {
		send_volunteers_tension = -1
		send_volunteer_divisions_required = -1.5
		send_volunteer_size = 4
		
	}
	
	remove_effect = {
		add_ai_strategy = {
			type = send_volunteers_desire
			id = CSA
			value = -200
		}
    }
}

}














