prospect_for_resources = {
	
	####    #   #   ####    ####    #####   ####   
	#   #   #   #   #   #   #   #   #       #   #  
	####    #   #   ####    ####    ####    ####   
	#  #    #   #   #   #   #   #   #       #  #   
	#   #   #####   ####    ####    #####   #   #

	#Liberia: Expand Firestone Harbel Rubber Plantations
	liberia_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 298
			}
		}

		visible = {
			OR = {
				controls_state = 298
				any_country = {
					is_subject_of = ROOT
					controls_state = 298
				}
				ROOT = {
					has_resources_rights = {
						state = 298
						resources = { rubber }
					}
				}
			}
			298 = {
				NOT = {
					has_state_flag = liberia_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					298 = {
						has_resistance = yes
					}
				}
				298 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = liberia_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			298 = {
				set_state_flag = liberia_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = liberia_rubber_II
		}
	}

	#Liberia: Develop Firestone Harbel Rubber Plantations
	liberia_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 298
			}
		}

		visible = {
			OR = {
				controls_state = 298
				any_country = {
					is_subject_of = ROOT
					controls_state = 298
				}
				ROOT = {
					has_resources_rights = {
						state = 298
						resources = { rubber }
					}
				}
			}
			298 = {
				NOT = {
					has_state_flag = liberia_rubber_II_flag
				}
				has_state_flag = liberia_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					298 = {
						has_resistance = yes
					}
				}
				298 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = liberia_rubber_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			298 = {
				set_state_flag = liberia_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = liberia_rubber_III
		}
	}

	#Liberia: Intensify Firestone Harbel Rubber Plantations
	liberia_rubber_III = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 298
			}
		}

		visible = {
			OR = {
				controls_state = 298
				any_country = {
					is_subject_of = ROOT
					controls_state = 298
				}
				ROOT = {
					has_resources_rights = {
						state = 298
						resources = { rubber }
					}
				}
			}
			298 = {
				NOT = {
					has_state_flag = liberia_rubber_III_flag
				}
				has_state_flag = liberia_rubber_II_flag 
			}
		}

		available = {
			if = {
				limit = {
					298 = {
						has_resistance = yes
					}
				}
				298 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = liberia_rubber_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			298 = {
				set_state_flag = liberia_rubber_III_flag
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}
	}

	#Nigeria: Expand [558.GetName] Rubber Plantations
	nigeria_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 558
			}
		}

		visible = {
			OR = {
				controls_state = 558
				any_country = {
					is_subject_of = ROOT
					controls_state = 558
				}
				ROOT = {
					has_resources_rights = {
						state = 558
						resources = { rubber }
					}
				}
			}
			558 = {
				NOT = {
					has_state_flag = nigeria_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					558 = {
						has_resistance = yes
					}
				}
				558 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = nigeria_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			558 = {
				set_state_flag = nigeria_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 7
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = nigeria_rubber_II
		}
	}

	#Nigeria: Develop [558.GetName] Rubber Plantations
	nigeria_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 558
			}
		}

		visible = {
			OR = {
				controls_state = 558
				any_country = {
					is_subject_of = ROOT
					controls_state = 558
				}
				ROOT = {
					has_resources_rights = {
						state = 558
						resources = { rubber }
					}
				}
			}
			558 = {
				NOT = {
					has_state_flag = nigeria_rubber_II_flag
				}
				has_state_flag = nigeria_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					558 = {
						has_resistance = yes
					}
				}
				558 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = nigeria_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			558 = {
				set_state_flag = nigeria_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 15
				}
			}
		}
	}

	#Congo Belga: Expand [538.GetName] Rubber Plantations
	congo_belga_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 538
			}
		}

		visible = {
			OR = {
				controls_state = 538
				any_country = {
					is_subject_of = ROOT
					controls_state = 538
				}
				ROOT = {
					has_resources_rights = {
						state = 538
						resources = { rubber }
					}
				}
			}
			538 = {
				NOT = {
					has_state_flag = congo_belga_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					538 = {
						has_resistance = yes
					}
				}
				538 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = congo_belga_rubber_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			538 = {
				set_state_flag = congo_belga_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = congo_belga_rubber_II
		}
	}

	#Congo Belga: Develop [538.GetName] Rubber Plantations
	congo_belga_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 538
			}
		}

		visible = {
			OR = {
				controls_state = 538
				any_country = {
					is_subject_of = ROOT
					controls_state = 538
				}
				ROOT = {
					has_resources_rights = {
						state = 538
						resources = { rubber }
					}
				}
			}
			538 = {
				NOT = {
					has_state_flag = congo_belga_rubber_II_flag
				}
				has_state_flag = congo_belga_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					538 = {
						has_resistance = yes
					}
				}
				538 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = congo_belga_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			538 = {
				set_state_flag = congo_belga_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Congo Belga: Develop [718.GetName] Rubber Plantations
	congo_belga_rubber_III = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 718
			}
		}

		visible = {
			OR = {
				controls_state = 718
				any_country = {
					is_subject_of = ROOT
					controls_state = 718
				}
				ROOT = {
					has_resources_rights = {
						state = 718
						resources = { rubber }
					}
				}
			}
			718 = {
				NOT = {
					has_state_flag = congo_belga_rubber_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					718 = {
						has_resistance = yes
					}
				}
				718 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = congo_belga_rubber_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			718 = {
				set_state_flag = congo_belga_rubber_III_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Congo Belga: Develop [888.GetName] Rubber Plantations
	congo_belga_rubber_IV = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 888
			}
		}

		visible = {
			OR = {
				controls_state = 888
				any_country = {
					is_subject_of = ROOT
					controls_state = 888
				}
				ROOT = {
					has_resources_rights = {
						state = 888
						resources = { rubber }
					}
				}
			}
			888 = {
				NOT = {
					has_state_flag = congo_belga_rubber_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					888 = {
						has_resistance = yes
					}
				}
				888 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = congo_belga_rubber_IV
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			888 = {
				set_state_flag = congo_belga_rubber_IV_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Guinea: Expand [780.GetName] Rubber Plantations
	guinea_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 780
			}
		}

		visible = {
			OR = {
				controls_state = 780
				any_country = {
					is_subject_of = ROOT
					controls_state = 780
				}
				ROOT = {
					has_resources_rights = {
						state = 780
						resources = { rubber }
					}
				}
			}
			780 = {
				NOT = {
					has_state_flag = guinea_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					780 = {
						has_resistance = yes
					}
				}
				780 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = guinea_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			780 = {
				set_state_flag = guinea_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 3
				}
			}
		}
	}

	#Costa de Marfil: Expand [779.GetName] Rubber Plantations
	costa_de_marfil_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 779
			}
		}

		visible = {
			OR = {
				controls_state = 779
				any_country = {
					is_subject_of = ROOT
					controls_state = 779
				}
				ROOT = {
					has_resources_rights = {
						state = 779
						resources = { rubber }
					}
				}
			}
			779 = {
				NOT = {
					has_state_flag = costa_de_marfil_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					779 = {
						has_resistance = yes
					}
				}
				779 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = costa_de_marfil_rubber_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			779 = {
				set_state_flag = costa_de_marfil_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#Camerún: Expand Dizangué Rubber Plantations
	camerun_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 773
			}
		}

		visible = {
			OR = {
				controls_state = 773
				any_country = {
					is_subject_of = ROOT
					controls_state = 773
				}
				ROOT = {
					has_resources_rights = {
						state = 773
						resources = { rubber }
					}
				}
			}
			773 = {
				NOT = {
					has_state_flag = camerun_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					773 = {
						has_resistance = yes
					}
				}
				773 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = camerun_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			773 = {
				set_state_flag = camerun_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = camerun_rubber_II
		}
	}

	#Camerún: Develop Dizangué Rubber Plantations
	camerun_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 773
			}
		}

		visible = {
			OR = {
				controls_state = 773
				any_country = {
					is_subject_of = ROOT
					controls_state = 773
				}
				ROOT = {
					has_resources_rights = {
						state = 773
						resources = { rubber }
					}
				}
			}
			773 = {
				NOT = {
					has_state_flag = camerun_rubber_II_flag
				}
				has_state_flag = camerun_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					773 = {
						has_resistance = yes
					}
				}
				773 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = camerun_rubber_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			773 = {
				set_state_flag = camerun_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#República Centroafricana: Wild Rubber Scraping in [660.GetName]
	republica_centroafricana_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 660
			}
		}

		visible = {
			OR = {
				controls_state = 660
				any_country = {
					is_subject_of = ROOT
					controls_state = 660
				}
				ROOT = {
					has_resources_rights = {
						state = 660
						resources = { rubber }
					}
				}
			}
			660 = {
				NOT = {
					has_state_flag = republica_centroafricana_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					660 = {
						has_resistance = yes
					}
				}
				660 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = republica_centroafricana_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			660 = {
				set_state_flag = republica_centroafricana_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#Ghana: Expand [274.GetName] Rubber Plantations
	ghana_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 274
			}
		}

		visible = {
			OR = {
				controls_state = 274
				any_country = {
					is_subject_of = ROOT
					controls_state = 274
				}
				ROOT = {
					has_resources_rights = {
						state = 274
						resources = { rubber }
					}
				}
			}
			274 = {
				NOT = {
					has_state_flag = ghana_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					274 = {
						has_resistance = yes
					}
				}
				274 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = ghana_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			274 = {
				set_state_flag = ghana_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#Guinea Bissau: Expand [296.GetName] Rubber Plantations
	guinea_bissau_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 296
			}
		}

		visible = {
			OR = {
				controls_state = 296
				any_country = {
					is_subject_of = ROOT
					controls_state = 296
				}
				ROOT = {
					has_resources_rights = {
						state = 296
						resources = { rubber }
					}
				}
			}
			296 = {
				NOT = {
					has_state_flag = guinea_bissau_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					296 = {
						has_resistance = yes
					}
				}
				296 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = guinea_bissau_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			296 = {
				set_state_flag = guinea_bissau_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 2
				}
			}
		}
	}

	#Brasil: Expand [495.GetName] Rubber Plantations
	brasil_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 495
			}
		}

		visible = {
			OR = {
				controls_state = 495
				any_country = {
					is_subject_of = ROOT
					controls_state = 495
				}
				ROOT = {
					has_resources_rights = {
						state = 495
						resources = { rubber }
					}
				}
			}
			495 = {
				NOT = {
					has_state_flag = brasil_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					495 = {
						has_resistance = yes
					}
				}
				495 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brasil_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			495 = {
				set_state_flag = brasil_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 7
				}
			}
		}
	}

	#Brasil: Mobilize the Soldados da Borracha
	brasil_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 938
			}
		}

		visible = {
			OR = {
				controls_state = 938
				any_country = {
					is_subject_of = ROOT
					controls_state = 938
				}
				ROOT = {
					has_resources_rights = {
						state = 938
						resources = { rubber }
					}
				}
			}
			938 = {
				NOT = {
					has_state_flag = brasil_rubber_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					938 = {
						has_resistance = yes
					}
				}
				938 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brasil_rubber_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			938 = {
				set_state_flag = brasil_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 7
				}
			}
		}
	}

	#México: Expand [480.GetName] Guayule Plantations
	mexico_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 480
			}
		}

		visible = {
			OR = {
				controls_state = 480
				any_country = {
					is_subject_of = ROOT
					controls_state = 480
				}
				ROOT = {
					has_resources_rights = {
						state = 480
						resources = { rubber }
					}
				}
			}
			480 = {
				NOT = {
					has_state_flag = mexico_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					480 = {
						has_resistance = yes
					}
				}
				480 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = mexico_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			480 = {
				set_state_flag = mexico_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 6
				}
			}
		}
	}

	#México: Expand [475.GetName] Rubber Plantations
	mexico_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 475
			}
		}

		visible = {
			OR = {
				controls_state = 475
				any_country = {
					is_subject_of = ROOT
					controls_state = 475
				}
				ROOT = {
					has_resources_rights = {
						state = 475
						resources = { rubber }
					}
				}
			}
			475 = {
				NOT = {
					has_state_flag = mexico_rubber_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					475 = {
						has_resistance = yes
					}
				}
				475 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = mexico_rubber_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			475 = {
				set_state_flag = mexico_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 6
				}
			}
		}
	}

	#Costa Rica: Develop [316.GetName] Rubber Plantations
	costa_rica_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 316
			}
		}

		visible = {
			OR = {
				controls_state = 316
				any_country = {
					is_subject_of = ROOT
					controls_state = 316
				}
				ROOT = {
					has_resources_rights = {
						state = 316
						resources = { rubber }
					}
				}
			}
			316 = {
				NOT = {
					has_state_flag = costa_rica_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					316 = {
						has_resistance = yes
					}
				}
				316 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = costa_rica_rubber_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			316 = {
				set_state_flag = costa_rica_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#Panamá: Develop [304.GetName] Rubber Plantations
	panama_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 304
			}
		}

		visible = {
			OR = {
				controls_state = 304
				any_country = {
					is_subject_of = ROOT
					controls_state = 304
				}
				ROOT = {
					has_resources_rights = {
						state = 304
						resources = { rubber }
					}
				}
			}
			304 = {
				NOT = {
					has_state_flag = panama_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					304 = {
						has_resistance = yes
					}
				}
				304 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = panama_rubber_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			304 = {
				set_state_flag = panama_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#Bolivia: Wild Rubber Scraping in [487.GetName]
	bolivia_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 487
			}
		}

		visible = {
			OR = {
				controls_state = 487
				any_country = {
					is_subject_of = ROOT
					controls_state = 487
				}
				ROOT = {
					has_resources_rights = {
						state = 487
						resources = { rubber }
					}
				}
			}
			487 = {
				NOT = {
					has_state_flag = bolivia_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					487 = {
						has_resistance = yes
					}
				}
				487 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bolivia_rubber_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			487 = {
				set_state_flag = bolivia_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 3
				}
			}
		}
	}

	#Perú: Expand Iquitos Rubber Plantations
	peru_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 491
			}
		}

		visible = {
			OR = {
				controls_state = 491
				any_country = {
					is_subject_of = ROOT
					controls_state = 491
				}
				ROOT = {
					has_resources_rights = {
						state = 491
						resources = { rubber }
					}
				}
			}
			491 = {
				NOT = {
					has_state_flag = peru_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					491 = {
						has_resistance = yes
					}
				}
				491 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = peru_rubber_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			491 = {
				set_state_flag = peru_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = peru_rubber_II
		}
	}

	#Perú: Develop Iquitos Rubber Plantations
	peru_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 491
			}
		}

		visible = {
			OR = {
				controls_state = 491
				any_country = {
					is_subject_of = ROOT
					controls_state = 491
				}
				ROOT = {
					has_resources_rights = {
						state = 491
						resources = { rubber }
					}
				}
			}
			491 = {
				NOT = {
					has_state_flag = peru_rubber_II_flag
				}
				has_state_flag = peru_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					491 = {
						has_resistance = yes
					}
				}
				491 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = peru_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			491 = {
				set_state_flag = peru_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#Ecuador: Wild Rubber Scraping in [305.GetName]
	ecuador_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 305
			}
		}

		visible = {
			OR = {
				controls_state = 305
				any_country = {
					is_subject_of = ROOT
					controls_state = 305
				}
				ROOT = {
					has_resources_rights = {
						state = 305
						resources = { rubber }
					}
				}
			}
			305 = {
				NOT = {
					has_state_flag = ecuador_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					305 = {
						has_resistance = yes
					}
				}
				305 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = ecuador_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			305 = {
				set_state_flag = ecuador_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 3
				}
			}
		}
	}

	#Colombia: Develop [486.GetName] Rubber Plantations
	colombia_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 486
			}
		}

		visible = {
			OR = {
				controls_state = 486
				any_country = {
					is_subject_of = ROOT
					controls_state = 486
				}
				ROOT = {
					has_resources_rights = {
						state = 486
						resources = { rubber }
					}
				}
			}
			486 = {
				NOT = {
					has_state_flag = colombia_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					486 = {
						has_resistance = yes
					}
				}
				486 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = colombia_rubber_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			486 = {
				set_state_flag = colombia_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Venezuela: Develop [488.GetName] Rubber Plantations
	venezuela_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 488
			}
		}

		visible = {
			OR = {
				controls_state = 488
				any_country = {
					is_subject_of = ROOT
					controls_state = 488
				}
				ROOT = {
					has_resources_rights = {
						state = 488
						resources = { rubber }
					}
				}
			}
			488 = {
				NOT = {
					has_state_flag = venezuela_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					488 = {
						has_resistance = yes
					}
				}
				488 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = venezuela_rubber_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			488 = {
				set_state_flag = venezuela_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Guyana Inglesa: Expand Essequibo Rubber Plantations
	guyana_inglesa_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 687
			}
		}

		visible = {
			OR = {
				controls_state = 687
				any_country = {
					is_subject_of = ROOT
					controls_state = 687
				}
				ROOT = {
					has_resources_rights = {
						state = 687
						resources = { rubber }
					}
				}
			}
			687 = {
				NOT = {
					has_state_flag = guyana_inglesa_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					687 = {
						has_resistance = yes
					}
				}
				687 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = guyana_inglesa_rubber_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			687 = {
				set_state_flag = guyana_inglesa_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = guyana_inglesa_rubber_II
		}
	}

	#Guyana Inglesa: Develop Essequibo Rubber Plantations
	guyana_inglesa_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 687
			}
		}

		visible = {
			OR = {
				controls_state = 687
				any_country = {
					is_subject_of = ROOT
					controls_state = 687
				}
				ROOT = {
					has_resources_rights = {
						state = 687
						resources = { rubber }
					}
				}
			}
			687 = {
				NOT = {
					has_state_flag = guyana_inglesa_rubber_II_flag
				}
				has_state_flag = guyana_inglesa_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					687 = {
						has_resistance = yes
					}
				}
				687 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = guyana_inglesa_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			687 = {
				set_state_flag = guyana_inglesa_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#Malasia: Expand [1060.GetName] Rubber Plantations
	malasia_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1060
			}
		}

		visible = {
			OR = {
				controls_state = 1060
				any_country = {
					is_subject_of = ROOT
					controls_state = 1060
				}
				ROOT = {
					has_resources_rights = {
						state = 1060
						resources = { rubber }
					}
				}
			}
			1060 = {
				NOT = {
					has_state_flag = malasia_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1060 = {
						has_resistance = yes
					}
				}
				1060 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = malasia_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1060 = {
				set_state_flag = malasia_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = malasia_rubber_IV
		}
	}

	#Malasia: Expand [336.GetName] Rubber Plantations
	malasia_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 336
			}
		}

		visible = {
			OR = {
				controls_state = 336
				any_country = {
					is_subject_of = ROOT
					controls_state = 336
				}
				ROOT = {
					has_resources_rights = {
						state = 336
						resources = { rubber }
					}
				}
			}
			336 = {
				NOT = {
					has_state_flag = malasia_rubber_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					336 = {
						has_resistance = yes
					}
				}
				336 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = malasia_rubber_II
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			336 = {
				set_state_flag = malasia_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = malasia_rubber_V
		}
	}

	#Malasia: Expand [1064.GetName] Rubber Plantations
	malasia_rubber_III = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1064
			}
		}

		visible = {
			OR = {
				controls_state = 1064
				any_country = {
					is_subject_of = ROOT
					controls_state = 1064
				}
				ROOT = {
					has_resources_rights = {
						state = 1064
						resources = { rubber }
					}
				}
			}
			1064 = {
				NOT = {
					has_state_flag = malasia_rubber_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1064 = {
						has_resistance = yes
					}
				}
				1064 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = malasia_rubber_III
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1064 = {
				set_state_flag = malasia_rubber_III_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = malasia_rubber_VI
		}
	}

	#Malasia: Develop [1060.GetName] Rubber Plantations
	malasia_rubber_IV = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1060
			}
		}

		visible = {
			OR = {
				controls_state = 1060
				any_country = {
					is_subject_of = ROOT
					controls_state = 1060
				}
				ROOT = {
					has_resources_rights = {
						state = 1060
						resources = { rubber }
					}
				}
			}
			1060 = {
				NOT = {
					has_state_flag = malasia_rubber_IV_flag
				}
				has_state_flag = malasia_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					1060 = {
						has_resistance = yes
					}
				}
				1060 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = malasia_rubber_IV
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1060 = {
				set_state_flag = malasia_rubber_IV_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Malasia: Develop [336.GetName] Rubber Plantations
	malasia_rubber_V = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 336
			}
		}

		visible = {
			OR = {
				controls_state = 336
				any_country = {
					is_subject_of = ROOT
					controls_state = 336
				}
				ROOT = {
					has_resources_rights = {
						state = 336
						resources = { rubber }
					}
				}
			}
			336 = {
				NOT = {
					has_state_flag = malasia_rubber_V_flag
				}
				has_state_flag = malasia_rubber_II_flag
			}
		}

		available = {
			if = {
				limit = {
					336 = {
						has_resistance = yes
					}
				}
				336 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = malasia_rubber_V
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			336 = {
				set_state_flag = malasia_rubber_V_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Malasia: Develop [1064.GetName] Rubber Plantations
	malasia_rubber_VI = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1064
			}
		}

		visible = {
			OR = {
				controls_state = 1064
				any_country = {
					is_subject_of = ROOT
					controls_state = 1064
				}
				ROOT = {
					has_resources_rights = {
						state = 1064
						resources = { rubber }
					}
				}
			}
			1064 = {
				NOT = {
					has_state_flag = malasia_rubber_VI_flag
				}
				has_state_flag = malasia_rubber_III_flag
			}
		}

		available = {
			if = {
				limit = {
					1064 = {
						has_resistance = yes
					}
				}
				1064 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = malasia_rubber_VI
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1064 = {
				set_state_flag = malasia_rubber_VI_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Malasia: Develop [1061.GetName] Rubber Plantations
	malasia_rubber_VII = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1061
			}
		}

		visible = {
			OR = {
				controls_state = 1061
				any_country = {
					is_subject_of = ROOT
					controls_state = 1061
				}
				ROOT = {
					has_resources_rights = {
						state = 1061
						resources = { rubber }
					}
				}
			}
			1061 = {
				NOT = {
					has_state_flag = malasia_rubber_VII_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1061 = {
						has_resistance = yes
					}
				}
				1061 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = malasia_rubber_VII
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1061 = {
				set_state_flag = malasia_rubber_VII_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Indonesia: Expand [1051.GetName] Rubber Plantations
	indonesia_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1051
			}
		}

		visible = {
			OR = {
				controls_state = 1051
				any_country = {
					is_subject_of = ROOT
					controls_state = 1051
				}
				ROOT = {
					has_resources_rights = {
						state = 1051
						resources = { rubber }
					}
				}
			}
			1051 = {
				NOT = {
					has_state_flag = indonesia_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1051 = {
						has_resistance = yes
					}
				}
				1051 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indonesia_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1051 = {
				set_state_flag = indonesia_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}
	}

	#Indonesia: Expand [335.GetName] Rubber Plantations
	indonesia_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 335
			}
		}

		visible = {
			OR = {
				controls_state = 335
				any_country = {
					is_subject_of = ROOT
					controls_state = 335
				}
				ROOT = {
					has_resources_rights = {
						state = 335
						resources = { rubber }
					}
				}
			}
			335 = {
				NOT = {
					has_state_flag = indonesia_rubber_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					335 = {
						has_resistance = yes
					}
				}
				335 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indonesia_rubber_II
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			335 = {
				set_state_flag = indonesia_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}
	}

	#Indonesia: Expand [1049.GetName] Rubber Plantations
	indonesia_rubber_III = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1049
			}
		}

		visible = {
			OR = {
				controls_state = 1049
				any_country = {
					is_subject_of = ROOT
					controls_state = 1049
				}
				ROOT = {
					has_resources_rights = {
						state = 1049
						resources = { rubber }
					}
				}
			}
			1049 = {
				NOT = {
					has_state_flag = indonesia_rubber_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1049 = {
						has_resistance = yes
					}
				}
				1049 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indonesia_rubber_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1049 = {
				set_state_flag = indonesia_rubber_III_flag
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}
	}

	#Indonesia: Expand [672.GetName] Rubber Plantations
	indonesia_rubber_IV = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 672
			}
		}

		visible = {
			OR = {
				controls_state = 672
				any_country = {
					is_subject_of = ROOT
					controls_state = 672
				}
				ROOT = {
					has_resources_rights = {
						state = 672
						resources = { rubber }
					}
				}
			}
			672 = {
				NOT = {
					has_state_flag = indonesia_rubber_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					672 = {
						has_resistance = yes
					}
				}
				672 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indonesia_rubber_IV
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			672 = {
				set_state_flag = indonesia_rubber_IV_flag
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}
	}

	#Indochina: Expand Chup Rubber Plantation
	indochina_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 741
			}
		}

		visible = {
			OR = {
				controls_state = 741
				any_country = {
					is_subject_of = ROOT
					controls_state = 741
				}
				ROOT = {
					has_resources_rights = {
						state = 741
						resources = { rubber }
					}
				}
			}
			741 = {
				NOT = {
					has_state_flag = indochina_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					741 = {
						has_resistance = yes
					}
				}
				741 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indochina_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			741 = {
				set_state_flag = indochina_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = indochina_rubber_III
		}
	}

	#Indochina: Expand [1066.GetName] Rubber Plantations
	indochina_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1066
			}
		}

		visible = {
			OR = {
				controls_state = 1066
				any_country = {
					is_subject_of = ROOT
					controls_state = 1066
				}
				ROOT = {
					has_resources_rights = {
						state = 1066
						resources = { rubber }
					}
				}
			}
			1066 = {
				NOT = {
					has_state_flag = indochina_rubber_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1066 = {
						has_resistance = yes
					}
				}
				1066 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indochina_rubber_II
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1066 = {
				set_state_flag = indochina_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = indochina_rubber_IV
		}
	}

	#Indochina: Develop Chup Rubber Plantation
	indochina_rubber_III = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 741
			}
		}

		visible = {
			OR = {
				controls_state = 741
				any_country = {
					is_subject_of = ROOT
					controls_state = 741
				}
				ROOT = {
					has_resources_rights = {
						state = 741
						resources = { rubber }
					}
				}
			}
			741 = {
				NOT = {
					has_state_flag = indochina_rubber_III_flag
				}
				has_state_flag = indochina_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					741 = {
						has_resistance = yes
					}
				}
				741 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indochina_rubber_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			741 = {
				set_state_flag = indochina_rubber_III_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Indochina: Develop [1066.GetName] Rubber Plantations
	indochina_rubber_IV = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1066
			}
		}

		visible = {
			OR = {
				controls_state = 1066
				any_country = {
					is_subject_of = ROOT
					controls_state = 1066
				}
				ROOT = {
					has_resources_rights = {
						state = 1066
						resources = { rubber }
					}
				}
			}
			1066 = {
				NOT = {
					has_state_flag = indochina_rubber_IV_flag
				}
				has_state_flag = indochina_rubber_II_flag
			}
		}

		available = {
			if = {
				limit = {
					1066 = {
						has_resistance = yes
					}
				}
				1066 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indochina_rubber_IV
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1066 = {
				set_state_flag = indochina_rubber_IV_flag
				add_resource = {
					type = rubber
					amount = 8
				}
			}
		}
	}

	#Ceylon: Expand [422.GetName] Rubber Plantations
	ceylon_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 422
			}
		}

		visible = {
			OR = {
				controls_state = 422
				any_country = {
					is_subject_of = ROOT
					controls_state = 422
				}
				ROOT = {
					has_resources_rights = {
						state = 422
						resources = { rubber }
					}
				}
			}
			422 = {
				NOT = {
					has_state_flag = ceylon_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					422 = {
						has_resistance = yes
					}
				}
				422 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = ceylon_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			422 = {
				set_state_flag = ceylon_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 17
				}
			}
		}
	}

	#Siam: Expand Songkhla and Phuket Rubber Plantation
	siam_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 724
			}
		}

		visible = {
			OR = {
				controls_state = 724
				any_country = {
					is_subject_of = ROOT
					controls_state = 724
				}
				ROOT = {
					has_resources_rights = {
						state = 724
						resources = { rubber }
					}
				}
			}
			724 = {
				NOT = {
					has_state_flag = siam_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					724 = {
						has_resistance = yes
					}
				}
				724 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = siam_rubber_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			724 = {
				set_state_flag = siam_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = siam_rubber_II
		}
	}

	#Siam: Develop Songkhla and Phuket Rubber Plantation
	siam_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 724
			}
		}

		visible = {
			OR = {
				controls_state = 724
				any_country = {
					is_subject_of = ROOT
					controls_state = 724
				}
				ROOT = {
					has_resources_rights = {
						state = 724
						resources = { rubber }
					}
				}
			}
			724 = {
				NOT = {
					has_state_flag = siam_rubber_II_flag
				}
				has_state_flag = siam_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					724 = {
						has_resistance = yes
					}
				}
				724 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = siam_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			724 = {
				set_state_flag = siam_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 20
				}
			}
		}
	}

	#Borneo Del Norte: Expand [1024.GetName] Rubber Plantations
	borneo_del_norte_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1024
			}
		}

		visible = {
			OR = {
				controls_state = 1024
				any_country = {
					is_subject_of = ROOT
					controls_state = 1024
				}
				ROOT = {
					has_resources_rights = {
						state = 1024
						resources = { rubber }
					}
				}
			}
			1024 = {
				NOT = {
					has_state_flag = borneo_del_norte_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1024 = {
						has_resistance = yes
					}
				}
				1024 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = borneo_del_norte_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1024 = {
				set_state_flag = borneo_del_norte_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 13
				}
			}
		}
	}

	#Sarawak: Expand [333.GetName] Rubber Plantations
	sarawak_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 333
			}
		}

		visible = {
			OR = {
				controls_state = 333
				any_country = {
					is_subject_of = ROOT
					controls_state = 333
				}
				ROOT = {
					has_resources_rights = {
						state = 333
						resources = { rubber }
					}
				}
			}
			333 = {
				NOT = {
					has_state_flag = sarawak_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					333 = {
						has_resistance = yes
					}
				}
				333 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = sarawak_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			333 = {
				set_state_flag = sarawak_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 8
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = sarawak_rubber_II
		}
	}

	#Sarawak: Develop [333.GetName] Rubber Plantations
	sarawak_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 333
			}
		}

		visible = {
			OR = {
				controls_state = 333
				any_country = {
					is_subject_of = ROOT
					controls_state = 333
				}
				ROOT = {
					has_resources_rights = {
						state = 333
						resources = { rubber }
					}
				}
			}
			333 = {
				NOT = {
					has_state_flag = sarawak_rubber_II_flag
				}
				has_state_flag = sarawak_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					333 = {
						has_resistance = yes
					}
				}
				333 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = sarawak_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			333 = {
				set_state_flag = sarawak_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 8
				}
			}
		}
	}

	#India: Develop Kerala Rubber Plantation
	india_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 423
			}
		}

		visible = {
			OR = {
				controls_state = 423
				any_country = {
					is_subject_of = ROOT
					controls_state = 423
				}
				ROOT = {
					has_resources_rights = {
						state = 423
						resources = { rubber }
					}
				}
			}
			423 = {
				NOT = {
					has_state_flag = india_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					423 = {
						has_resistance = yes
					}
				}
				423 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = india_rubber_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			423 = {
				set_state_flag = india_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 12
				}
			}
		}
	}

	#Burma: Expand [994.GetName] Rubber Plantations
	burma_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 994
			}
		}

		visible = {
			OR = {
				controls_state = 994
				any_country = {
					is_subject_of = ROOT
					controls_state = 994
				}
				ROOT = {
					has_resources_rights = {
						state = 994
						resources = { rubber }
					}
				}
			}
			994 = {
				NOT = {
					has_state_flag = burma_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					994 = {
						has_resistance = yes
					}
				}
				994 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = burma_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			994 = {
				set_state_flag = burma_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 6
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = burma_rubber_II
		}
	}

	#Burma: Develop [994.GetName] Rubber Plantations
	burma_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 994
			}
		}

		visible = {
			OR = {
				controls_state = 994
				any_country = {
					is_subject_of = ROOT
					controls_state = 994
				}
				ROOT = {
					has_resources_rights = {
						state = 994
						resources = { rubber }
					}
				}
			}
			994 = {
				NOT = {
					has_state_flag = burma_rubber_II_flag
				}
				has_state_flag = burma_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					994 = {
						has_resistance = yes
					}
				}
				994 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = burma_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			994 = {
				set_state_flag = burma_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 6
				}
			}
		}
	}

	#Filipinas: Develop [1025.GetName] Rubber Plantations
	filipinas_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1025
			}
		}

		visible = {
			OR = {
				controls_state = 1025
				any_country = {
					is_subject_of = ROOT
					controls_state = 1025
				}
				ROOT = {
					has_resources_rights = {
						state = 1025
						resources = { rubber }
					}
				}
			}
			1025 = {
				NOT = {
					has_state_flag = filipinas_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1025 = {
						has_resistance = yes
					}
				}
				1025 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = filipinas_rubber_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			1025 = {
				set_state_flag = filipinas_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}
	}

	#Papua: Expand [523.GetName] Rubber Plantations
	papua_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 523
			}
		}

		visible = {
			OR = {
				controls_state = 523
				any_country = {
					is_subject_of = ROOT
					controls_state = 523
				}
				ROOT = {
					has_resources_rights = {
						state = 523
						resources = { rubber }
					}
				}
			}
			523 = {
				NOT = {
					has_state_flag = papua_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					523 = {
						has_resistance = yes
					}
				}
				523 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = papua_rubber_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			523 = {
				set_state_flag = papua_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = papua_rubber_II
		}
	}

	#Papua: Develop [523.GetName] Rubber Plantations
	papua_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 523
			}
		}

		visible = {
			OR = {
				controls_state = 523
				any_country = {
					is_subject_of = ROOT
					controls_state = 523
				}
				ROOT = {
					has_resources_rights = {
						state = 523
						resources = { rubber }
					}
				}
			}
			523 = {
				NOT = {
					has_state_flag = papua_rubber_II_flag
				}
				has_state_flag = papua_rubber_I_flag
			}
		}

		available = {
			if = {
				limit = {
					523 = {
						has_resistance = yes
					}
				}
				523 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = papua_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			523 = {
				set_state_flag = papua_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}
	}

	#China: Open Rubber Plantations in [1025.GetName]
	china_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 591
			}
		}

		visible = {
			OR = {
				controls_state = 591
				any_country = {
					is_subject_of = ROOT
					controls_state = 591
				}
				ROOT = {
					has_resources_rights = {
						state = 591
						resources = { rubber }
					}
				}
			}
			591 = {
				NOT = {
					has_state_flag = china_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					591 = {
						has_resistance = yes
					}
				}
				591 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_rubber_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			591 = {
				set_state_flag = china_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#China: Open Rubber Plantations in Xishuangbanna 
	china_rubber_II = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 325
			}
		}

		visible = {
			OR = {
				controls_state = 325
				any_country = {
					is_subject_of = ROOT
					controls_state = 325
				}
				ROOT = {
					has_resources_rights = {
						state = 325
						resources = { rubber }
					}
				}
			}
			325 = {
				NOT = {
					has_state_flag = china_rubber_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					325 = {
						has_resistance = yes
					}
				}
				325 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_rubber_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			325 = {
				set_state_flag = china_rubber_II_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}

	#Madagascar: Wild Rubber Scraping in [543.GetName]
	madagascar_rubber_I = {

		icon = rubber
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 543
			}
		}

		visible = {
			OR = {
				controls_state = 543
				any_country = {
					is_subject_of = ROOT
					controls_state = 543
				}
				ROOT = {
					has_resources_rights = {
						state = 543
						resources = { rubber }
					}
				}
			}
			543 = {
				NOT = {
					has_state_flag = madagascar_rubber_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					543 = {
						has_resistance = yes
					}
				}
				543 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = madagascar_rubber_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			543 = {
				set_state_flag = madagascar_rubber_I_flag
				add_resource = {
					type = rubber
					amount = 5
				}
			}
		}
	}
}