### search_filters = { FOCUS_FILTER_POLITICAL }
### search_filters = { FOCUS_FILTER_RESEARCH }
### search_filters = { FOCUS_FILTER_INDUSTRY }
### search_filters = { FOCUS_FILTER_STABILITY }
### search_filters = { FOCUS_FILTER_WAR_SUPPORT }
### search_filters = { FOCUS_FILTER_MANPOWER }
### search_filters = { FOCUS_FILTER_ANNEXATION }
### search_filters = { FOCUS_FILTER_ARMY_XP }
### search_filters = { FOCUS_FILTER_NAVY_XP }
### search_filters = { FOCUS_FILTER_AIR_XP }
### search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER }
### search_filters = { FOCUS_FILTER_MILITARY_CHARACTER }
### search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE }
### search_filters = { FOCUS_FILTER_HISTORICAL }


# <Joint Tree - Central Milestones>
joint_focus = {
	id = INSHOL_dutch_east_indies
	icon = GFX_focus_INS_dutch_east_indies
	text_icon = INSHOL_INS_focus_style

	available = {
		tag = INS
		is_subject_of = HOL
		if = {
			limit = {
				original_tag = HOL
			}
			INS = {
				has_completed_focus = INS_the_jewel_in_the_crown
			}
		}
	}
	prerequisite = { focus = INS_the_jewel_in_the_crown }
	mutually_exclusive = { }

    allow_branch = {
		has_dlc = "Thunder at Our Gates"
    	if = {
			limit = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
            NOT = {
            	AND = {
					INS = {
						has_completed_focus = INS_underground_revolution
					}
					#original_tag = INS
            	}
			}
		}
    }

	x = -19
	y = 0
	relative_position_id = INS_the_jewel_in_the_crown

	offset = {
		x = 24
		y = 0
		trigger = {
			tag = HOL
		}
	}

	offset = {
		x = 0
		y = 1
		trigger = {
			tag = INS
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL FOCUS_FILTER_HISTORICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_stability_factor value = 0.05 tooltip = stability_factor_tt }
			add_to_variable = { var = INS_dutch_east_indies_political_power_gain value = 0.1 tooltip = political_power_gain_tt }
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = 25

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_stability_factor value = 0.05 tooltip = stability_factor_tt }
			add_to_variable = { var = INS_dutch_east_indies_political_power_gain value = 0.1 tooltip = political_power_gain_tt }
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = 25
		}
	}
}

joint_focus = {
	id = INSHOL_reform_knil
	icon = GFX_focus_INS_reform_knil
	text_icon = INSHOL_INS_HOL_focus_style
	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}

		if = {
			limit = {
				original_tag = HOL
			}
			INS = {
				has_completed_focus = INS_the_jewel_in_the_crown
			}
		}
	}
	prerequisite = { focus = INS_the_jewel_in_the_crown }
	mutually_exclusive = {  }

    allow_branch = {
		has_dlc = "Thunder at Our Gates"
    	if = {
			limit = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
            NOT = {
				INS = {
					has_completed_focus = INS_underground_revolution
				}
			}
		}
    }

	x = -27
	y = 0

	offset = {
		x = 0
		y = 0
		trigger = {
			original_tag = HOL
		}
	}

	relative_position_id = INSHOL_dutch_east_indies
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 2.5 #why hasnt this been taken yet??? go take it!!
			original_tag = HOL
			date > 1939.1.1
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_HISTORICAL }

	completion_reward = {

	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_army_experience_gain_army
				value = 0.3
				tooltip = experience_gain_army_tt
			}
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_army_offence
				value = 0.1
				tooltip = army_attack_factor_tt
			}
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_army_defence
				value = 0.05
				tooltip = army_defence_factor_tt
			}
			custom_effect_tooltip = INS_netherlands_can_remove_autonomy_tt_50
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			add_political_power = 75
			INS = {
				add_autonomy_score = { 
					value = -50
					localization = INSHOL_reform_knil
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_army_experience_gain_army
				value = 0.3
				tooltip = experience_gain_army_tt
			}
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_army_offence
				value = 0.1
				tooltip = army_attack_factor_tt
			}
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_army_defence
				value = 0.05
				tooltip = army_defence_factor_tt
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_military_equipment_contracts
	icon = GFX_focus_INS_military_equipment_contracts
	text_icon = INSHOL_INS_HOL_focus_style

	available = { OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL } }

	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = { }

	bypass = {
		INS = {
			NOT = {
				is_subject_of = HOL
			}
		}
	}

	x = -4
	y = 1
	relative_position_id = INSHOL_reform_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
		}

		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 2000
					equipment_type = infantry_equipment
					seller_tags = { USA ENG HOL FRA BEL CAN AST }
				}
				add_equipment_subsidy = {
					cic = 500
					equipment_type = support_equipment
					seller_tags = { USA ENG HOL FRA BEL CAN AST }
				}
				add_equipment_subsidy = {
					cic = 500
					equipment_type = motorized_equipment
					seller_tags = { USA ENG HOL FRA BEL CAN AST }
				}
				add_equipment_subsidy = {
					cic = 500
					equipment_type = artillery_equipment
					seller_tags = { USA ENG HOL FRA BEL CAN AST }
				}
			}
			else = {
				add_offsite_building = {
					type = arms_factory
					level = 1
				}
				add_equipment_to_stockpile = { 
					type = infantry_equipment_1
					amount = 1000
				}
			}
			
		}

	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }

		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 1200
					equipment_type = infantry_equipment
					seller_tags = { USA ENG HOL FRA BEL CAN AST }
				}
				add_equipment_subsidy = {
					cic = 250
					equipment_type = support_equipment
					seller_tags = { USA ENG HOL FRA BEL CAN AST }
				}
				add_equipment_subsidy = {
					cic = 250
					equipment_type = motorized_equipment
					seller_tags = { USA ENG HOL FRA BEL CAN AST }
				}
				add_equipment_subsidy = {
					cic = 250
					equipment_type = artillery_equipment
					seller_tags = { USA ENG HOL FRA BEL CAN AST }
				}
			}
			else = {
				add_equipment_to_stockpile = { 
					type = infantry_equipment_1
					amount = 1000
				}
			}
			
		}
	}
}

joint_focus = {
	id = INSHOL_manado_military_academy
	icon = GFX_focus_generic_military_academy
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = { }

	x = -2
	y = 0
	relative_position_id = INSHOL_military_equipment_contracts
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.5
			original_tag = HOL
			date < 1938.4.1
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_MANPOWER }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = { INS_royal_netherlands_east_indies_army_training_time_factor = -0.25 tooltip = training_time_factor_tt }
			add_to_variable = { INS_royal_netherlands_east_indies_army_conscription_factor = 0.2 tooltip = conscription_factor_tt }
			custom_effect_tooltip = INS_netherlands_can_remove_autonomy_tt_100
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			INS = {
				add_autonomy_score = { 
					value = -100
					localization = INSHOL_manado_military_academy
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = { INS_royal_netherlands_east_indies_army_training_time_factor = -0.25 tooltip = training_time_factor_tt }
			add_to_variable = { INS_royal_netherlands_east_indies_army_conscription_factor = 0.2 tooltip = conscription_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_infantry_training_in_borneo
	icon = GFX_focus_INS_infantry_training_borneo
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_manado_military_academy }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_manado_military_academy
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = {  }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = { INS_royal_netherlands_east_indies_army_supply_consumption_factor = -0.15 tooltip = supply_consumption_factor_tt }
			add_to_variable = { INS_royal_netherlands_east_indies_army_out_of_supply_factor = -0.2 tooltip = out_of_supply_factor_tt }
			add_to_variable = { INS_royal_netherlands_east_indies_army_defence = 0.05 tooltip = army_defence_factor_tt }

			custom_effect_tooltip = INS_netherlands_can_remove_autonomy_tt_150
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			INS = {
				add_autonomy_score = { 
					value = -150
					localization = INSHOL_infantry_training_in_borneo
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = { INS_royal_netherlands_east_indies_army_supply_consumption_factor = -0.15 tooltip = supply_consumption_factor_tt }
			add_to_variable = { INS_royal_netherlands_east_indies_army_out_of_supply_factor = -0.2 tooltip = out_of_supply_factor_tt }
			add_to_variable = { INS_royal_netherlands_east_indies_army_defence = 0.05 tooltip = army_defence_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_modernize_knil
	icon = GFX_focus_chi_army_reform
	text_icon = INSHOL_INS_HOL_focus_style
	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}
	prerequisite = { focus = INSHOL_manado_military_academy focus = INSHOL_military_equipment_contracts }
	mutually_exclusive = {  }

	x = 1
	y = 2
	relative_position_id = INSHOL_manado_military_academy
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.4
			original_tag = HOL
			date < 1939.8.1 #arbitrary, just to add variation
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_ARMY_XP }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
				name = INSHOL_modernize_knil
			}
			add_mastery_bonus = {
				bonus = 0.1
				days = 240
				track = infantry
				name = INSHOL_modernize_knil
			}
			add_mastery_bonus = {
				bonus = 0.1
				days = 240
				track = combat_support
				name = INSHOL_modernize_knil
			}
			custom_effect_tooltip = INS_netherlands_can_remove_autonomy_tt_150
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			INS = {
				add_autonomy_score = { 
					value = -150 
					localization = INSHOL_modernize_knil
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
				name = INSHOL_modernize_knil
			}
			add_mastery_bonus = {
				bonus = 0.1
				days = 240
				track = infantry
				name = INSHOL_modernize_knil
			}
			add_mastery_bonus = {
				bonus = 0.1
				days = 240
				track = combat_support
				name = INSHOL_modernize_knil
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_rangers
	icon = GFX_focus_generic_jungle_training
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_modernize_knil }
	mutually_exclusive = {  }

	x = 0
	y = 1
	relative_position_id = INSHOL_modernize_knil

	cost = 10

	ai_will_do = {
		base = 1
		modifier = {
			add = 3
			NOT = {
				has_completed_focus = INSHOL_mountaineers
			}
		}
	}

	search_filters = { FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "No Compromise, No Surrender"
				}
				if = {
					limit = {
						NOT = { has_tech = rangers_tech }
					}
					set_technology = {
						rangers_tech = 1
						popup = yes
					}
					add_tech_bonus = {
						name = INSHOL_rangers
						bonus = 0.5
						uses = 1
						category = rangers_tech_cat
					}
				}
				else = {
					add_tech_bonus = {
						name = INSHOL_rangers
						bonus = 0.65
						uses = 2
						category = rangers_tech_cat
					}
				}
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					add_doctrine_cost_reduction = {
						name = INSHOL_rangers
						cost_reduction = 0.5
						uses = 1
						category = special_forces_doctrine
					}
					custom_effect_tooltip = ranger_subdoctrines_default_add_mastery_bonus_effect_tooltip
					hidden_effect = {
						add_mastery_bonus = {
							name = INSHOL_rangers
							bonus = 0.1
							days = 240
							sub_doctrine = rangers_1
						}
						add_mastery_bonus = {
							name = INSHOL_rangers
							bonus = 0.1
							days = 240
							sub_doctrine = rangers_2
						}
					}					
				}
				else = {
					army_experience = 50
				}
			}
			else = {
				every_army_leader = {
					random_select_amount = 4
					limit = {
						NOT = {
							OR = {
								has_trait = winter_expert
								has_trait = desert_fox
								has_trait = swamp_fox
								has_trait = trait_mountaineer
								has_trait = hill_fighter
								has_trait = jungle_rat
								has_trait = ranger
								has_trait = urban_assault_specialist
								has_trait = adaptable
							}
						}
					}

					add_trait = {
						trait = ranger
					}
				}
				add_tech_bonus = {
					bonus = 0.5
					uses = 1
					category = cat_special_forces_generic
					name = INSHOL_rangers
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "No Compromise, No Surrender"
				}
				if = {
					limit = {
						NOT = { has_tech = rangers_tech }
					}
					set_technology = {
						rangers_tech = 1
						popup = yes
					}
					add_tech_bonus = {
						name = INSHOL_rangers
						bonus = 0.5
						uses = 1
						category = rangers_tech_cat
					}
				}
				else = {
					add_tech_bonus = {
						name = INSHOL_rangers
						bonus = 0.65
						uses = 2
						category = rangers_tech_cat
					}
				}
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					add_doctrine_cost_reduction = {
						name = INSHOL_rangers
						cost_reduction = 0.5
						uses = 1
						category = special_forces_doctrine
					}
					custom_effect_tooltip = ranger_subdoctrines_default_add_mastery_bonus_effect_tooltip
					hidden_effect = {
						add_mastery_bonus = {
							name = INSHOL_rangers
							bonus = 0.1
							days = 240
							sub_doctrine = rangers_1
						}
						add_mastery_bonus = {
							name = INSHOL_rangers
							bonus = 0.1
							days = 240
							sub_doctrine = rangers_2
						}
					}					
				}
				else = {
					army_experience = 50
				}
			}
			else = {
				every_army_leader = {
					random_select_amount = 4
					limit = {
						NOT = {
							OR = {
								has_trait = winter_expert
								has_trait = desert_fox
								has_trait = swamp_fox
								has_trait = trait_mountaineer
								has_trait = hill_fighter
								has_trait = jungle_rat
								has_trait = ranger
								has_trait = urban_assault_specialist
								has_trait = adaptable
							}
						}
					}

					add_trait = {
						trait = ranger
					}
				}
				add_tech_bonus = {
					bonus = 0.5
					uses = 1
					category = cat_special_forces_generic
					name = INSHOL_rangers
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_mountaineers
	icon = GFX_focus_generic_hill_training
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_modernize_knil }
	mutually_exclusive = {  }

	x = 2
	y = 1
	relative_position_id = INSHOL_modernize_knil

	cost = 10

	ai_will_do = {
		base = 1
		modifier = {
			add = 3
			NOT = {
				has_completed_focus = INSHOL_rangers
			}
		}
	}

	search_filters = { FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					NOT = { has_tech = tech_mountaineers }
				}
				set_technology = {
					tech_mountaineers = 1
					popup = yes
				}
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					add_tech_bonus = {
						bonus = 0.5
						uses = 1
						category = mountaineers_tech
						name = INSHOL_mountaineers
					}
					add_doctrine_cost_reduction = {
						cost_reduction = 0.5
						uses = 1
						category = special_forces_doctrine
						name = INSHOL_mountaineers
					}
					custom_effect_tooltip = mountaineer_subdoctrines_default_add_mastery_bonus_effect_tooltip
					hidden_effect = {
						add_mastery_bonus = {
							name = INSHOL_mountaineers
							bonus = 0.1
							days = 240
							sub_doctrine = mountaineers_1
						}
						add_mastery_bonus = {
							name = INSHOL_mountaineers
							bonus = 0.1
							days = 240
							sub_doctrine = mountaineers_2
						}
					}					
				}
				else = {
					add_tech_bonus = {
						bonus = 0.75
						uses = 1
						category = mountaineers_tech
						name = INSHOL_mountaineers
					}
				}
			}
			else = {
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					add_tech_bonus = {
						bonus = 0.65
						uses = 2
						category = mountaineers_tech
						name = INSHOL_mountaineers
					}
					add_doctrine_cost_reduction = {
						cost_reduction = 0.5
						uses = 1
						category = special_forces_doctrine
						name = INSHOL_mountaineers
					}
					custom_effect_tooltip = mountaineer_subdoctrines_default_add_mastery_bonus_effect_tooltip
					hidden_effect = {
						add_mastery_bonus = {
							name = INSHOL_mountaineers
							bonus = 0.1
							days = 240
							sub_doctrine = mountaineers_1
						}
						add_mastery_bonus = {
							name = INSHOL_mountaineers
							bonus = 0.1
							days = 240
							sub_doctrine = mountaineers_2
						}
					}					
				}
				else = {
					add_tech_bonus = {
						bonus = 0.85
						uses = 2
						category = mountaineers_tech
						name = INSHOL_mountaineers
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					NOT = { has_tech = tech_mountaineers }
				}
				set_technology = {
					tech_mountaineers = 1
					popup = yes
				}
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					add_tech_bonus = {
						bonus = 0.5
						uses = 1
						category = mountaineers_tech
						name = INSHOL_mountaineers
					}
					add_doctrine_cost_reduction = {
						cost_reduction = 0.5
						uses = 1
						category = special_forces_doctrine
						name = INSHOL_mountaineers
					}
					custom_effect_tooltip = mountaineer_subdoctrines_default_add_mastery_bonus_effect_tooltip
					hidden_effect = {
						add_mastery_bonus = {
							name = INSHOL_mountaineers
							bonus = 0.1
							days = 240
							sub_doctrine = mountaineers_1
						}
						add_mastery_bonus = {
							name = INSHOL_mountaineers
							bonus = 0.1
							days = 240
							sub_doctrine = mountaineers_2
						}
					}					
				}
				else = {
					add_tech_bonus = {
						bonus = 0.75
						uses = 1
						category = mountaineers_tech
						name = INSHOL_mountaineers
					}
				}
			}
			else = {
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					add_tech_bonus = {
						bonus = 0.65
						uses = 2
						category = mountaineers_tech
						name = INSHOL_mountaineers
					}
					add_doctrine_cost_reduction = {
						cost_reduction = 0.5
						uses = 1
						category = special_forces_doctrine
						name = INSHOL_mountaineers
					}
					custom_effect_tooltip = mountaineer_subdoctrines_default_add_mastery_bonus_effect_tooltip
					hidden_effect = {
						add_mastery_bonus = {
							name = INSHOL_mountaineers
							bonus = 0.1
							days = 240
							sub_doctrine = mountaineers_1
						}
						add_mastery_bonus = {
							name = INSHOL_mountaineers
							bonus = 0.1
							days = 240
							sub_doctrine = mountaineers_2
						}
					}					
				}
				else = {
					add_tech_bonus = {
						bonus = 0.85
						uses = 2
						category = mountaineers_tech
						name = INSHOL_mountaineers
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_elevate_elite_infantry
	icon = GFX_focus_INS_elevate_elite_infantry
	text_icon = INSHOL_INS_focus_style

	available = {
		originaL_tag = INS
		has_army_manpower = { size > 400000 }
	}
	prerequisite = { focus = INSHOL_rangers focus = INSHOL_mountaineers }
	mutually_exclusive = {  }

	x = 1
	y = 2
	relative_position_id = INSHOL_modernize_knil

	cost = 10

	search_filters = {  }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_potential_special_forces_tree = yes
			}
			else = {
				add_tech_bonus = {
					bonus = 0.5
					uses = 2
					category = cat_special_forces_generic
					name = INSHOL_elevate_elite_infantry
				}
				army_experience = 50
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_potential_special_forces_tree = yes
			}
			else = {
				add_tech_bonus = {
					bonus = 0.5
					uses = 2
					category = cat_special_forces_generic
					name = INSHOL_elevate_elite_infantry
				}
				army_experience = 50
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_knil_engineers
	icon = GFX_focus_INS_knil_engineers
	text_icon = INSHOL_INS_HOL_focus_style

	available = { OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL } }

	prerequisite = { focus = INSHOL_modernize_knil }
	mutually_exclusive = { }

	x = -2
	y = 1
	relative_position_id = INSHOL_modernize_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = { is_ai = yes }
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {

		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				bonus = 0.75
				uses = 2
				category = electronics
				ahead_reduction = 1
				name = INSHOL_knil_engineers
			}
			
		}

		if = {
			limit = {
				original_tag = HOL
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				bonus = 0.75
				uses = 1
				category = electronics
				ahead_reduction = 1
				name = INSHOL_knil_engineers
			}
			
		}
	}
}

joint_focus = {
	id = INSHOL_produce_own_goods
	icon = GFX_focus_generic_reorient_production
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = { focus = INSHOL_license_dutch_weapon_blueprints }

	x = 2
	y = 2
	relative_position_id = INSHOL_reform_knil

	cost = 5

	search_filters = {  }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_artillerie_inrichtingen_organization = {
					add_mio_size = 1
				}
				mio:INS_artillerie_inrichtingen_pyrotechnische_organization = {
					add_mio_size = 1
				}
				mio:INS_bio_pharma_organization = {
					add_mio_size = 1
				}
			}
			else = {
				try_build_mil_in_core_otherwise_build_in_controlled = yes
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_artillerie_inrichtingen_organization = {
					add_mio_size = 1
				}
				mio:INS_artillerie_inrichtingen_pyrotechnische_organization = {
					add_mio_size = 1
				}
				mio:INS_bio_pharma_organization = {
					add_mio_size = 1
				}
			}
			else = {
				try_build_mil_in_core_otherwise_build_in_controlled = yes
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_license_dutch_weapon_blueprints
	icon = GFX_focus_INS_license_dutch_weapon_blueprints
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
	}

	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = { focus = INSHOL_produce_own_goods }

	x = 2
	y = 0
	relative_position_id = INSHOL_produce_own_goods

	cost = 10

	search_filters = { FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }

		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}

		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				bonus = 1.0
				uses = 1
				category = infantry_weapons
				ahead_reduction = 1
				name = INSHOL_license_dutch_weapon_blueprints
			}
			add_tech_bonus = {
				bonus = 1.0
				uses = 1
				category = motorized_equipment
				ahead_reduction = 1
				name = INSHOL_license_dutch_weapon_blueprints
			}	
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }

		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}

		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = infantry_weapons
				ahead_reduction = 1
				name = INSHOL_license_dutch_weapon_blueprints
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = motorized_equipment
				ahead_reduction = 1
				name = INSHOL_license_dutch_weapon_blueprints
			}	
		}
	}
}

joint_focus = {
	id = INSHOL_java_factories
	icon = GFX_goal_generic_construct_mil_factory
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_produce_own_goods focus = INSHOL_license_dutch_weapon_blueprints }
	mutually_exclusive = { }

	x = 1
	y = 1
	relative_position_id = INSHOL_produce_own_goods
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0 #give the player some time to do it themselves so they dont lose autonomy
			original_tag = HOL
			INS = { is_ai = no }
			date < 1939.1.1
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					impassable = no
				}
				prioritize = { 1051 1058 335 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			custom_effect_tooltip = INS_netherlands_can_remove_autonomy_tt_200
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			INS = {
				add_autonomy_score = { 
					value = -200
					localization = INSHOL_java_factories
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					impassable = no
				}
				prioritize = { 1051 1058 335 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_bangka_production_lines
	icon = GFX_focus_generic_military_industry
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS

		OR = {
			has_completed_focus = INS_aluminium_factory
			has_completed_focus = INS_bauxite_export
		}
		has_full_control_of_state = 1047 #Bangka
		1047 = {
			infrastructure > 3
		}
	}

	prerequisite = { focus = INSHOL_java_factories }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_java_factories

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			1047 = {
				if = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}

			custom_effect_tooltip = INS_knil_tt
			add_to_variable = { INS_royal_netherlands_east_indies_army_production_factory_max_efficiency_factor = 0.1 tooltip = production_factory_max_efficiency_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			1047 = {
				if = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}

			custom_effect_tooltip = INS_knil_tt
			add_to_variable = { INS_royal_netherlands_east_indies_army_production_factory_max_efficiency_factor = 0.1 tooltip = production_factory_max_efficiency_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_overallwagen
	icon = GFX_focus_INS_oweralwagen
	text_icon = INSHOL_INS_HOL_focus_style

	available = { OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL } }
	prerequisite = { focus = INSHOL_bangka_production_lines }
	mutually_exclusive = { focus = INSHOL_increase_funding_for_tix }

	x = 0
	y = 1
	relative_position_id = INSHOL_bangka_production_lines
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0 #dont take mutually exclusive focuses on behalf of the player
			original_tag = HOL
			INS = { is_ai = no }
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_HISTORICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				name = INSHOL_overallwagen
				bonus = 1.0
				uses = 1
				category = cat_armored_cars
			}
			add_tech_bonus = {
				name = INSHOL_overallwagen
				bonus = 0.5
				uses = 1
				category = armor
			}
		}

		if = {
			limit = {
				original_tag = HOL
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				name = INSHOL_overallwagen
				bonus = 0.75
				uses = 1
				category = cat_armored_cars
			}
		}
	}
}

joint_focus = {
	id = INSHOL_fund_ml_knil
	icon = GFX_focus_INS_fund_ml_knil
	text_icon = INSHOL_INS_HOL_focus_style
	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}
	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = {  }

	x = 8
	y = 2
	relative_position_id = INSHOL_reform_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0
			original_tag = HOL
			date < 1937.6.1 #dont rush all the focuses
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_AIR_XP FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_air_force_experience_gain_air
				value = 0.3
				tooltip = experience_gain_air_tt
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = air_equipment
				name = INSHOL_fund_ml_knil
			}
			custom_effect_tooltip = INS_netherlands_can_remove_autonomy_tt_100
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			INS = {
				add_autonomy_score = { 
					value = -100
					localization = INSHOL_java_factories
				}
			}
			air_experience = 100

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_air_force_experience_gain_air
				value = 0.3
				tooltip = experience_gain_air_tt
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = air_equipment
				name = INSHOL_fund_ml_knil
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
		}
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			air_experience = 25
		}
	}
}

joint_focus = {
	id = INSHOL_artillerie_inrichtingen
	icon = GFX_focus_INS_artillerie_inrichtingen
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_java_factories }
	mutually_exclusive = { }

	x = -3
	y = 2
	relative_position_id = INSHOL_java_factories
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_artillerie_inrichtingen_organization = {
					add_mio_size = 2
					add_mio_funds = 1000
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
		}
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_tech_bonus = {
					bonus = 1.0
					uses = 1
					category = artillery
					name = INSHOL_artillerie_inrichtingen
				}
			}
			else = {
				add_tech_bonus = {
					bonus = 1.4
					uses = 1
					category = artillery
					name = INSHOL_artillerie_inrichtingen
				}
			}
			
		}

	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_artillerie_inrichtingen_organization = {
					add_mio_size = 2
					add_mio_funds = 1000
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
		if = {
			limit = {
				INS = {
					is_subject_of = HOL
				}
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_tech_bonus = {
					bonus = 0.5
					uses = 1
					category = artillery
					name = INSHOL_artillerie_inrichtingen
				}
			}
			else = {
				add_tech_bonus = {
					bonus = 0.75
					uses = 1
					category = artillery
					name = INSHOL_artillerie_inrichtingen
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_ai_pyrotechnische
	icon = GFX_focus_INS_ai_pyrotechnische
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_artillerie_inrichtingen }
	mutually_exclusive = { }

	x = 1
	y = 1
	relative_position_id = INSHOL_artillerie_inrichtingen
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_artillerie_inrichtingen_pyrotechnische_organization = {
					add_mio_size = 2
					add_mio_funds = 1000
				}
				random_owned_controlled_state = {
					limit = {
						impassable = no
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						impassable = no
						free_building_slots = {
							building = arms_factory
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}

		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				bonus = 0.75
				uses = 2
				category = rocketry
				name = INSHOL_ai_pyrotechnische
			}
			
		}

	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_artillerie_inrichtingen_pyrotechnische_organization = {
					add_mio_size = 2
					add_mio_funds = 1000
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
		if = {
			limit = {
				INS = {
					is_subject_of = HOL
				}
			}
			add_tech_bonus = {
				bonus = 0.75
				uses = 1
				category = rocketry
				name = INSHOL_ai_pyrotechnische
			}
		}
	}
}

joint_focus = {
	id = INSHOL_bio_pharma
	icon = GFX_focus_INS_bio_pharma
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_artillerie_inrichtingen }
	mutually_exclusive = { }

	x = -1
	y = 1
	relative_position_id = INSHOL_artillerie_inrichtingen
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_bio_pharma_organization = {
					add_mio_size = 2
					add_mio_funds = 1000
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = support_tech
				name = INSHOL_bio_pharma
			}
			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_bio_pharma_organization = {
					add_mio_size = 2
					add_mio_funds = 1000
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
		if = {
			limit = {
				INS = {
					is_subject_of = HOL
				}
			}
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = support_tech
				name = INSHOL_bio_pharma
			}
		}
	}
}

joint_focus = {
	id = INSHOL_develop_fighters
	icon = GFX_goal_generic_air_fighter
	text_icon = INSHOL_INS_HOL_focus_style
	overlay = GFX_focus_fast_overlay_generic_clock

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_fund_ml_knil }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_fund_ml_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.4
			original_tag = HOL
			NOT = {
				has_completed_focus = INSHOL_east_indies_fokker_division
			}
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP }

	completion_reward_joint_originator = {
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				bonus = 1.0
				uses = 1
				category = light_fighter
				ahead_reduction = 1
				name = INSHOL_develop_fighters
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = cat_air_guns
				name = INSHOL_develop_fighters
			}
			air_experience = 50
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = INS_focus_time_reduce_fokker_tt
			
		}

		if = {
			limit = {
				original_tag = HOL
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = {
				INS = {
					is_subject_of = HOL
				}
				original_tag = HOL
			}
			add_tech_bonus = {
				bonus = 1.0
				uses = 1
				category = light_fighter
				name = INSHOL_develop_fighters
			}
			air_experience = 25
		}
	}
}

joint_focus = {
	id = INSHOL_develop_bombers
	icon = GFX_focus_generic_cas_aircraft
	text_icon = INSHOL_INS_HOL_focus_style
	overlay = GFX_focus_fast_overlay_generic_clock

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_fund_ml_knil }
	mutually_exclusive = { }

	x = 2
	y = 1
	relative_position_id = INSHOL_fund_ml_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.4
			original_tag = HOL
			NOT = {
				has_completed_focus = INSHOL_east_indies_fokker_division
			}
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_AIR_XP FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				bonus = 1.0
				uses = 1
				category = cas_bomber
				ahead_reduction = 1
				name = INSHOL_develop_bombers
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = cat_air_bombs
				name = INSHOL_develop_bombers
			}
			air_experience = 50
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = INS_focus_time_reduce_fokker_tt
			
		}

		if = {
			limit = {
				original_tag = HOL
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = {
				INS = {
					is_subject_of = HOL
				}
				original_tag = HOL
			}
			add_tech_bonus = {
				bonus = 1.0
				uses = 1
				category = cas_bomber
				ahead_reduction = 1
				name = INSHOL_develop_bombers
			}
			air_experience = 25
		}
	}
}

joint_focus = {
	id = INSHOL_bandung_aircraft_facility
	icon = GFX_focus_generic_aircraft_production
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS

		controls_state = 335 #West Java
	}

	prerequisite = { focus = INSHOL_develop_fighters focus = INSHOL_develop_bombers focus = INSHOL_hawk_75a7 }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_develop_fighters

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INSHOL_bandung_aircraft_facility_tt
			hidden_effect = {
				if = {
					limit = {
						has_completed_focus = INSHOL_develop_fighters
					}
					335 = { #West Java
						if = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 0
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
								type = arms_factory
								level = 1
								instant_build = yes
							}
						}
					}
				}

				if = {
					limit = {
						has_completed_focus = INSHOL_develop_bombers
					}
					335 = { #West Java
						if = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 0
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
								type = arms_factory
								level = 1
								instant_build = yes
							}
						}
					}
				}

				if = {
					limit = {
						has_completed_focus = INSHOL_hawk_75a7
					}
					335 = { #West Java
						if = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 0
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
								type = arms_factory
								level = 1
								instant_build = yes
							}
						}
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INSHOL_bandung_aircraft_facility_tt
			hidden_effect = {
				if = {
					limit = {
						has_completed_focus = INSHOL_develop_fighters
					}
					335 = { #West Java
						if = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 0
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
								type = arms_factory
								level = 1
								instant_build = yes
							}
						}
					}
				}

				if = {
					limit = {
						has_completed_focus = INSHOL_develop_bombers
					}
					335 = { #West Java
						if = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 0
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
								type = arms_factory
								level = 1
								instant_build = yes
							}
						}
					}
				}

				if = {
					limit = {
						has_completed_focus = INSHOL_hawk_75a7
					}
					335 = { #West Java
						if = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 0
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
								type = arms_factory
								level = 1
								instant_build = yes
							}
						}
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_netherlands_indies_air_doctrine
	icon = GFX_goal_generic_air_doctrine
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}

	prerequisite = { focus = INSHOL_develop_bombers}
	mutually_exclusive = { }

	x = 0
	y = 2
	relative_position_id = INSHOL_develop_bombers
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0 #no
			original_tag = HOL
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_AIR_XP }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = { INS_royal_netherlands_east_indies_air_force_experience_gain_air_factor = 0.1 tooltip = experience_gain_air_factor_tt }
			add_to_variable = { INS_royal_netherlands_east_indies_army_air_accidents_factor = -0.1 tooltip = air_accidents_factor_tt }
			air_experience = 75
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL } }
			air_experience = 100

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = { INS_royal_netherlands_east_indies_air_force_experience_gain_air_factor = 0.1 tooltip = experience_gain_air_factor_tt }
			add_to_variable = { INS_royal_netherlands_east_indies_army_air_accidents_factor = -0.1 tooltip = air_accidents_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_hawk_75a7
	icon = GFX_focus_INS_purchase_hawk
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				INS = {
					is_subject_of = HOL
				}
			}
			original_tag = INS
		}
	}
	prerequisite = { focus = INSHOL_fund_ml_knil }
	mutually_exclusive = { }

	x = -2
	y = 1
	relative_position_id = INSHOL_fund_ml_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0
			original_tag = HOL
			date < 1939.1.1
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP FOCUS_FILTER_HISTORICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			# ADD RESEARCH
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				set_technology = {
					basic_small_airframe = 1
					popup = yes
				}
			}
			else = {
				set_technology = {
					fighter1 = 1
					popup = yes
				}
			}

			# TECH BONUSES ARE ALWAYS GIVEN
			add_tech_bonus = {
				name = INSHOL_hawk_75a7
				bonus = 1.0
				uses = 1
				category = light_air
			}
			add_tech_bonus = {
				name = INSHOL_hawk_75a7
				bonus = 0.25
				uses = 3
				category = light_air
			}

			# If you have AAT: Give 600 CIC, give 50 fighters, with a BBA check for which type
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 600
					equipment_type = small_plane_airframe
					seller_tags = { USA }
				}

				if = {
					limit = {
						has_dlc = "By Blood Alone"
					}
					add_equipment_to_stockpile = { 
						type = small_plane_airframe_1
						amount = 50
						producer = USA
					}
				}
				else = {
					add_equipment_to_stockpile = { 
						type = fighter_equipment_1
						amount = 50
						producer = USA
					}
				}
			}

			# If you don't have AAT: Give 80 fighters, with a BBA check for which type.
			else = {
				if = {
					limit = {
						has_dlc = "By Blood Alone"
					}
					add_equipment_to_stockpile = { 
						type = small_plane_airframe_1
						amount = 80
						producer = USA
					}
				}
				else = {
					add_equipment_to_stockpile = { 
						type = fighter_equipment_1
						amount = 80
						producer = USA
					}
				}
			}
			
		}

		if = {
			limit = {
				original_tag = HOL
			}

			
		}
	}

	completion_reward_joint_member = {
		# ADD RESEARCH
		if = {
			limit = {
				INS = {
					is_subject_of = HOL
				}
				original_tag = HOL
			}
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				set_technology = {
					basic_small_airframe = 1
					popup = yes
				}
			}
			else = {
				set_technology = {
					fighter1 = 1
					popup = yes
				}
			}

			# Member gets no CIC or tech bonus, only planes.
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_equipment_to_stockpile = { 
					type = small_plane_airframe_1
					amount = 50
					producer = USA
					variant_name = "H-75A Hawk"
				}
			}
			else = {
				add_equipment_to_stockpile = { 
					type = fighter_equipment_1
					amount = 50
					producer = USA
					variant_name = "H-75A Hawk"
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_increase_funding_for_tix
	icon = GFX_focus_INS_increase_funding_for_tix
	text_icon = INSHOL_INS_HOL_focus_style

	available = { OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL } }
	prerequisite = { focus = INSHOL_hawk_75a7 }
	mutually_exclusive = { focus = INSHOL_overallwagen }

	x = 0
	y = 2
	relative_position_id = INSHOL_hawk_75a7
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0 #dont take mutually exclusive focuses on behalf of the player
			original_tag = HOL
			INS = { is_ai = no }
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_RESEARCH }

	completion_reward = {

	}

	completion_reward_joint_originator = {
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				name = INSHOL_increase_funding_for_tix
				bonus = 1.0
				uses = 1
				category = medium_air
			}
			add_tech_bonus = {
				name = INSHOL_increase_funding_for_tix
				bonus = 0.3
				uses = 2
				category = air_equipment
			}
			
		}

		if = {
			limit = {
				original_tag = HOL
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = {
				OR = {
					INS = {
						is_subject_of = HOL
					}
					original_tag = INS
				}
			}
			add_tech_bonus = {
				name = INSHOL_increase_funding_for_tix
				bonus = 0.85
				uses = 1
				category = medium_air
			}
			add_tech_bonus = {
				name = INSHOL_increase_funding_for_tix
				bonus = 0.25
				uses = 1
				category = air_equipment
			}
			
		}
	}
}

#joint_focus = {
#	id = INSHOL_the_war_in_europe
#	icon = GFX_goal_generic_major_war
#	text_icon = INSHOL_INS_focus_style
#
#	available = {
#		original_tag = INS
#		is_subject_of = HOL
#		HOL = {
#			has_war_with_major = yes
#		}
#	}
#	prerequisite = { focus = INSHOL_reform_knil }
#	mutually_exclusive = { }
#
#	x = -13
#	y = 2
#	relative_position_id = INSHOL_reform_knil
#
#	cost = 5
#
#	search_filters = {  }
#
#	completion_reward_joint_originator = {
#		if = {
#			limit = { original_tag = INS }
#			custom_effect_tooltip = INS_knil_tt
#			add_to_variable = {
#				var = INS_royal_netherlands_east_indies_army_army_core_defence_factor
#				value = 0.1
#				tooltip = army_core_defence_factor_tt
#			}
#			add_to_variable = {
#				var = INS_royal_netherlands_east_indies_army_army_core_attack_factor
#				value = 0.1
#				tooltip = army_core_attack_factor_tt
#			}
#			add_to_variable = {
#				var = INS_royal_netherlands_east_indies_army_training_time_factor
#				value = -0.1
#				tooltip = training_time_factor_tt
#			}
#		}
#		else_if = {
#			limit = { original_tag = HOL }
#
#			
#
#		}
#	}
#
#	completion_reward_joint_member = {
#		if = {
#			limit = { original_tag = INS }
#
#		}
#		else_if = {
#			limit = { original_tag = HOL }
#
#		}
#	}
#}

joint_focus = {
	id = INSHOL_foundations_of_defense
	icon = GFX_focus_hol_the_foundations_of_defense
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		OR = {
			has_full_control_of_state = 1051
			any_other_country = {
				is_subject_of = HOL
				has_full_control_of_state = 1051
			}
		}
		has_full_control_of_state = 695
		custom_trigger_tooltip = {
			tooltip = HOL_pre_empt_venezuelan_aggression_tt
			NOT = {
				OR = {
					has_idea = HOL_shell_shocked_spectator_1
					has_idea = HOL_shell_shocked_spectator_2
					has_idea = HOL_shell_shocked_spectator_3
					has_idea = HOL_shell_shocked_spectator_4
					has_idea = HOL_shell_shocked_spectator_5
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = { }

	x = -10
	y = 1
	relative_position_id = INSHOL_reform_knil

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.2
			date < 1940.1.1
		}
		modifier = {
			factor = 0.5
			date < 1941.1.1
		}
		modifier = {
			factor = 3
			date > 1943.1.1
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }

	completion_reward = {

	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }

		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_the_foundations_of_defense
			1051 = {
				custom_effect_tooltip = HOL_the_foundations_of_defense_tt
				hidden_effect = {
					add_building_construction = {
						type = naval_base
						level = 10
						province = 4608
						instant_build = yes
					}
				}
			}
			695 = {
				add_building_construction = {
					type = naval_base
					level = 2
					province = 153
					instant_build = yes
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }

		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_the_foundations_of_defense
			1051 = {
				custom_effect_tooltip = HOL_the_foundations_of_defense_tt
				hidden_effect = {
					add_building_construction = {
						type = naval_base
						level = 10
						province = 4608
						instant_build = yes
					}
				}
			}
			695 = {
				add_building_construction = {
					type = naval_base
					level = 2
					province = 153
					instant_build = yes
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_emergency_dockyard_construction
	icon = GFX_focus_SWE_coastal_support
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
		HOL = {
			has_war_with_major = yes
		}
		controls_state = 1058 #Batavia
	}
	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = { }

	x = -2
	y = 0
	relative_position_id = INSHOL_foundations_of_defense

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_timed_idea = {
				idea = INS_emergency_dockyard_construction_idea
				days = 180
			}
			1058 = { #Batavia
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_timed_idea = {
				idea = INS_emergency_dockyard_construction_idea
				days = 180
			}
			1058 = { #Batavia
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_establish_vk_knil
	icon = GFX_focus_SWE_lottakoren
	text_icon = INSHOL_INS_HOL_focus_style
	available = {
		OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL }
		INS = {
			OR = {
				has_idea = extensive_conscription
				has_idea = service_by_requirement
				has_idea = all_adults_serve
				has_idea = scraping_the_barrel
			}
		}
	}
	prerequisite = { focus = INSHOL_foundations_of_defense }
	mutually_exclusive = { }

	x = 1
	y = 1
	relative_position_id = INSHOL_foundations_of_defense
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_HISTORICAL }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_army_conscription
				value = 0.02
				tooltip = conscription_tt
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_knil_tt
			add_to_variable = {
				var = INS_royal_netherlands_east_indies_army_conscription
				value = 0.02
				tooltip = conscription_tt
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_eastern_conscription
	icon = GFX_focus_ETH_peacekeeping_forces
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL }
		INS = {
			OR = {
				has_idea = service_by_requirement
				has_idea = all_adults_serve
				has_idea = scraping_the_barrel
			}
		}
	}
	prerequisite = { focus = INSHOL_establish_vk_knil }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_establish_vk_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			division_template = {
				name = "Indigenous Auxiliary Corps"
				is_locked = yes
				regiments = {
					irregular_infantry = { x = 0 y = 0 }
					irregular_infantry = { x = 0 y = 1 }
					irregular_infantry = { x = 1 y = 0 }
					irregular_infantry = { x = 1 y = 1 }
				}
			}

			1051 = { #East Java
				create_unit = {
					division = "name = \"Legion of Mangku Negoro\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 2
					id = 1520
					prioritize_location = 10491 #Surakarta
				}
				create_unit = {
					division = "name = \"Legion of Paku Alam\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 2
					id = 1520
					prioritize_location = 13406 #Yogyakarta
				}
				create_unit = {
					division = "name = \"Barisan Bankalan\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 1
					id = 1520
					prioritize_location = 13383 #Madura
				}
				create_unit = {
					division = "name = \"Barisan Sumenep\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 1
					id = 1520
					prioritize_location = 4306 #Madura
				}
				create_unit = {
					division = "name = \"Barisan Pamekasan\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 1
					id = 1520
					prioritize_location = 4306 #Madura
				}
			}
			custom_effect_tooltip = INS_netherlands_can_remove_autonomy_tt_75
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			INS = {
				add_autonomy_score = { 
					value = -75
					localization = INSHOL_eastern_conscription
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			division_template = {
				name = "Indigenous Auxiliary Corps"
				is_locked = yes
				regiments = {
					irregular_infantry = { x = 0 y = 0 }
					irregular_infantry = { x = 0 y = 1 }
					irregular_infantry = { x = 1 y = 0 }
					irregular_infantry = { x = 1 y = 1 }
				}
			}

			1051 = { #East Java
				create_unit = {
					division = "name = \"Legion of Mangku Negoro\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 2
					id = 1520
					prioritize_location = 10491 #Surakarta
				}
				create_unit = {
					division = "name = \"Legion of Paku Alam\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 2
					id = 1520
					prioritize_location = 13406 #Yogyakarta
				}
				create_unit = {
					division = "name = \"Barisan Bankalan\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 1
					id = 1520
					prioritize_location = 13383 #Madura
				}
				create_unit = {
					division = "name = \"Barisan Sumenep\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 1
					id = 1520
					prioritize_location = 4306 #Madura
				}
				create_unit = {
					division = "name = \"Barisan Pamekasan\" division_template = \"Indigenous Auxiliary Corps\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1"
					owner = INS
					allow_spawning_on_enemy_provs = no
					count = 1
					id = 1520
					prioritize_location = 4306 #Madura
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

joint_focus = {
	id = INSHOL_recall_gerardus_johannes_berenschot
	icon = GFX_focus_INS_recall_gerardus_johannes_berenschot
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL }
		has_war_with_major = yes
	}
	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = {  }

	x = -1
	y = 1
	relative_position_id = INSHOL_reform_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_HISTORICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			INS_gerardus_johannes_berenschot = {
				custom_effect_tooltip = unlock_general_tt
			}

		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			add_political_power = 100
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			INS_gerardus_johannes_berenschot = {
				custom_effect_tooltip = unlock_general_tt
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
		}
	}
}

joint_focus = {
	id = INSHOL_transfer_of_henri_winkelman
	icon = GFX_focus_generic_military_mission
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL }
		HOL = { has_completed_focus = HOL_appoint_new_supreme_commander }
	}
	prerequisite = { focus = INSHOL_reform_knil }
	mutually_exclusive = {  }

	x = 1
	y = 1
	relative_position_id = INSHOL_reform_knil
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 2
			original_tag = HOL
			has_capitulated = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			has_capitulated = no
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_HISTORICAL }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }
			HOL_henri_winkelman = {
				set_nationality = INS
			}
			add_political_power = 75

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }

		}
		else_if = {
			limit = { original_tag = HOL }
			country_event = {
				id = INS_loyalist_events.1
				hours = 4
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				HOL = {
					HOL_henri_winkelman = {
						set_nationality = INS
					}
					add_political_power = 75
				}
			}
			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				INS = {
					add_autonomy_score = { 
						value = 250
						localization = INS_loyalist_events.1.t
					}
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_emergency_naval_purchases
	icon = GFX_focus_generic_refit_civilian_ships
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
		HOL = {
			has_war_with_major = yes
		}
	}
	prerequisite = { focus = INSHOL_emergency_dockyard_construction }
	mutually_exclusive = { }

	x = -2
	y = 1
	relative_position_id = INSHOL_emergency_dockyard_construction

	cost = 10

	search_filters = {  }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			create_equipment_variant = {
				name = "Surabaya Class"
				type = ship_hull_light_1
				upgrades = {
					ship_torpedo_upgrade = 0
					destroyer_engine_upgrade = 0
					ship_anti_air_upgrade = 0
					ship_ASW_upgrade = 0
				}
				modules = {
					fixed_ship_anti_air_slot=ship_anti_air_1
					fixed_ship_engine_slot=light_ship_engine_1
					mid_1_custom_slot=ship_torpedo_1
					rear_1_custom_slot=ship_mine_sweeper_1
					fixed_ship_battery_slot=ship_light_battery_1
					fixed_ship_torpedo_slot=ship_torpedo_1
				}
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Soerabaja"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Batavia"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Bandoeng"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Semarang"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Medan"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Padang"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Palembang"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Makassar"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Balikpapan"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Tarakan"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Hr.Ms. Ambon"
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			create_equipment_variant = {
				name = "Surabaya Class"
				type = ship_hull_light_1
				upgrades = {
					ship_torpedo_upgrade = 0
					destroyer_engine_upgrade = 0
					ship_anti_air_upgrade = 0
					ship_ASW_upgrade = 0
				}
				modules = {
					fixed_ship_anti_air_slot=ship_anti_air_1
					fixed_ship_engine_slot=light_ship_engine_1
					mid_1_custom_slot=ship_torpedo_1
					rear_1_custom_slot=ship_mine_sweeper_1
					fixed_ship_battery_slot=ship_light_battery_1
					fixed_ship_torpedo_slot=ship_torpedo_1
				}
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class I"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class II"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class III"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class IV"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class V"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class VI"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class VII"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class VIII"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class IX"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class X"
			}
			create_ship = {
				type = ship_hull_light_1
				equipment_variant = "Surabaya Class"
				creator = INS
				name = "Surabaya Class XI"
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL} }

		}
	}
}

# <Joint Tree - Military Equipment Contracts>


# <Joint Tree - East Indies Investments>
joint_focus = {
	id = INSHOL_east_indies_investments
	icon = GFX_focus_INS_east_indies_investments
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}

	allow_branch = {
		OR = {
			original_tag = INS
			original_tag = HOL
		}
		has_dlc = "Thunder at Our Gates"
    	if = {
			limit = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
            NOT = {
				INS = {
					has_completed_focus = INS_underground_revolution
				}
			}
		}
	}

	prerequisite = { focus = INSHOL_dutch_east_indies }
	#prerequisite = { focus = HOL_obtain_foreign_colonial_investments_taog }
	mutually_exclusive = { }

	x = 5
	y = 1
	relative_position_id = INSHOL_dutch_east_indies

	ai_will_do = {
		base = 0.6

		# FOCUS SPECIFIC MODIFIERS HERE

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_HISTORICAL }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = -100
				localization = INSHOL_east_indies_investments
			}
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_stability_factor value = 0.05 tooltip = stability_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = -100
				localization = INSHOL_east_indies_investments
			}
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_stability_factor value = 0.05 tooltip = stability_factor_tt }

		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_expand_shell
	icon = GFX_focus_INS_expand_shells_infrastructure
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_east_indies_investments }
	mutually_exclusive = { }

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	x = 0
	y = 1
	relative_position_id = INSHOL_east_indies_investments

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_INTERNATIONAL_TRADE FOCUS_FILTER_RESEARCH FOCUS_FILTER_HISTORICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = idea_INS_royal_dutch_shell_concern
		}
		else_if = {
			limit = { original_tag = HOL }
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = HOL_royal_dutch_shell

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = idea_INS_royal_dutch_shell_concern
		}
		else_if = {
			limit = { original_tag = HOL }
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = HOL_royal_dutch_shell
		}
	}
}

joint_focus = {
	id = INSHOL_reduce_land_ownership_taxes
	icon = GFX_focus_generic_farmland
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_east_indies_investments }
	mutually_exclusive = { }

	x = 2
	y = 1
	relative_position_id = INSHOL_east_indies_investments

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			1058 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			672 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			1048 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			334 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			1052 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			custom_effect_tooltip = newline_tt
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_resources_to_overlord_factor value = 0.05 tooltip = resources_to_overlord_factor_tt }
			add_to_variable = { var = INS_dutch_east_indies_mic_to_overlord_factor value = 0.1 tooltip = mic_to_overlord_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL }
			


		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			1058 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			672 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			1048 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			334 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			1052 = {
				if = {
					limit = { OR = { is_fully_controlled_by = INS is_fully_controlled_by = HOL } }
					add_extra_state_shared_building_slots = 1
				}
			}
			custom_effect_tooltip = newline_tt
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_resources_to_overlord_factor value = 0.05 tooltip = resources_to_overlord_factor_tt }
			add_to_variable = { var = INS_dutch_east_indies_mic_to_overlord_factor value = 0.1 tooltip = mic_to_overlord_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL }
		}
	}
}

joint_focus = {
	id = INSHOL_investments_in_civ_railways
	icon = GFX_focus_generic_railroad
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = {
			AND = {
				original_tag = HOL
				has_subject = INS
			}
			AND = {
				original_tag = INS
				is_subject_of = HOL
			}
		}
	}
	prerequisite = { focus = INSHOL_reduce_land_ownership_taxes }
	#prerequisite = { focus = INSHOL_borneo_and_the_grote_oost }
	mutually_exclusive = { }

	x = 3
	y = 1
	relative_position_id = INSHOL_reduce_land_ownership_taxes

	cost = 10

	search_filters = { FOCUS_FILTER_TFV_AUTONOMY }

	ai_will_do = { #this one is different than the standard due to the focuses nature
		base = 0.5
		modifier = {
			add = 0.5
			original_tag = HOL
			date > 1937.1.1
		}
		modifier = {
			add = 1
			original_tag = HOL
			date > 1938.1.1
		}
		modifier = {
			add = 1
			original_tag = HOL
			date > 1939.1.1
		}
		modifier = {
			add = 2
			original_tag = INS
			compare_autonomy_progress_ratio < 0.8
			compare_autonomy_progress_ratio > 0.3
		}
		modifier = {
			add = 2
			original_tag = INS
			compare_autonomy_progress_ratio < 0.8
			compare_autonomy_progress_ratio > 0.3
			date > 1937.1.1
		}
		modifier = {
			add = 2
			original_tag = INS
			has_completed_focus = INSHOL_begin_negotiations_soetardjo
		}
		modifier = {
			add = 5 #dont let HOL nuke our autonomy lol
			original_tag = INS
			compare_autonomy_progress_ratio < 0.3
		}
	}

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INSHOL_investments_in_civ_railways_tt
			hidden_effect = {
				add_autonomy_score = { 
					value = 250 
					localization = INSHOL_investments_in_civ_railways
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			custom_effect_tooltip = INSHOL_investments_in_civ_railways_tt
			hidden_effect = {
				INS = {
					add_autonomy_score = { 
						value = -250 
						localization = INSHOL_investments_in_civ_railways
					}
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
		}
		else_if = {
			limit = { original_tag = HOL }
		}
	}
}

joint_focus = {
	id = INSHOL_rubber_taxation
	icon = GFX_focus_generic_rubber_plantations
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS

		INS = {
			controls_state = 1049 #Medan and Riouw
		}
	}
	prerequisite = { focus = INSHOL_expand_shell }
	mutually_exclusive = {  }

	x = -1
	y = 1
	relative_position_id = INSHOL_expand_shell

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_TFV_AUTONOMY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = 250 
				localization = INSHOL_rubber_taxation
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				give_resource_rights = {
					receiver = HOL 
					state = 1049 #Medan and Riouw 
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = 250 
				localization = INSHOL_rubber_taxation
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				give_resource_rights = {
					receiver = HOL 
					state = 1049 #Medan and Riouw 
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_work_with_oil_barons
	icon = GFX_focus_INS_work_with_oil_barons
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL

		INS = {
			has_resources_in_country = {
				resource = oil
				amount > 299
				extracted = yes
			}
		}
	}
	prerequisite = { focus = INSHOL_rubber_taxation }
	mutually_exclusive = {  }

	x = -1
	y = 2
	relative_position_id = INSHOL_rubber_taxation

	ai_will_do = {
		base = 0
		modifier = {
			add = 2
			has_resources_in_country = {
				resource = oil
				amount > 400
				extracted = yes
			}
		}
		modifier = {
			add = 5
			has_completed_focus = INS_all_in_on_rubber
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			every_controlled_state = {
				limit = {
					is_in_array = {
						array = INS.owned_states_at_game_start
						value = THIS
					}
					has_resources_amount = {
						resource = oil
						amount > 0
					}
				}
				add_dynamic_modifier = {
					modifier = INS_oil_baron_state
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = 150

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			every_controlled_state = {
				limit = {
					is_in_array = {
						array = INS.owned_states_at_game_start
						value = THIS
					}
					has_resources_amount = {
						resource = oil
						amount > 0
					}
				}
				add_dynamic_modifier = {
					modifier = INS_oil_baron_state
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = 150

		}
	}
}

joint_focus = {
	id = INSHOL_indonesian_cheap_labor
	icon = GFX_focus_generic_full_employment
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_rubber_taxation }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_rubber_taxation

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.5
			date < 1939.1.1
		}
		modifier = {
			factor = 1.5
			date > 1940.6.1
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_INDUSTRY }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = 100
				localization = INSHOL_indonesian_cheap_labor
			}
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = {
				var = INS_dutch_east_indies_stability_factor
				value = -0.05
				tooltip = stability_factor_tt
			}
			add_to_variable = {
				var = INS_dutch_east_indies_consumer_goods_factor
				value = -0.075
				tooltip = consumer_goods_factor_tt
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_indonesian_cheap_labor

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = 100
				localization = INSHOL_indonesian_cheap_labor
			}
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = {
				var = INS_dutch_east_indies_stability_factor
				value = -0.05
				tooltip = stability_factor_tt
			}
			add_to_variable = {
				var = INS_dutch_east_indies_consumer_goods_factor
				value = -0.075
				tooltip = consumer_goods_factor_tt
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_indonesian_cheap_labor
		}
	}
}

joint_focus = {
	id = INSHOL_east_indies_fokker_division
	icon = GFX_focus_hol_fokker
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_east_indies_investments }
	mutually_exclusive = { }

	x = -2
	y = 1
	relative_position_id = INSHOL_east_indies_investments

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 1.5 #if INS is clearly trying to do the develop fighter/bomber focuses, maybe go do this
			INS = {
				has_completed_focus = INSHOL_fund_ml_knil
				is_ai = yes
			}
		}
		modifier = {
			factor = 7.5 #also player privilege
			INS = {
				has_completed_focus = INSHOL_fund_ml_knil
				is_ai = no
			}
		}
		modifier = {
			factor = 1.5
			INS = {
				has_completed_focus = INSHOL_hawk_75a7
			}
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = {  }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_fokker_organization = {
					add_mio_size = 2
					add_mio_research_bonus = 0.1
				}
			}
			else = {
				custom_effect_tooltip = unlock_mio_tt
				show_ideas_tooltip = fokker_ins
			}

		}
		else_if = {
			limit = { original_tag = HOL }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:HOL_fokker_organization = {
					add_mio_size = 1
				}
			}
		}
		INS = {
			reduce_focus_completion_cost = {
				focus = INSHOL_develop_bombers
				cost = 35
			}
			reduce_focus_completion_cost = {
				focus = INSHOL_develop_fighters
				cost = 35
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:INS_fokker_organization = {
					add_mio_size = 2
					add_mio_research_bonus = 0.1
				}
			}
			else = {
				custom_effect_tooltip = unlock_mio_tt
				show_ideas_tooltip = fokker_ins
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:HOL_fokker_organization = {
					add_mio_size = 1
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_padang_port
	icon = GFX_focus_POL_develop_polish_shipbuilding
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
		INS = {
			has_full_control_of_state = 1048 #Padang
		}
	}
	prerequisite = { focus = INSHOL_expand_shell }
	prerequisite = { focus = INSHOL_reduce_land_ownership_taxes }
	mutually_exclusive = {  }

	x = 1
	y = 1
	relative_position_id = INSHOL_expand_shell

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.5
			date < 1938.1.1
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			1048 = { #Padang
				if = {
					limit = {
						free_building_slots = {
							building = naval_base
							size > 3
							province = 10382
						}
					}
					add_building_construction = {
						type = naval_base
						level = 4
						instant_build = yes
						province = 10382
					}
				}
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				add_autonomy_score = { 
					value = -75
					localization = INSHOL_padang_port
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			1048 = { #Padang
				if = {
					limit = {
						free_building_slots = {
							building = naval_base
							size > 3
							province = 10382
						}
					}
					add_building_construction = {
						type = naval_base
						level = 4
						instant_build = yes
						province = 10382
					}
				}
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				add_autonomy_score = { 
					value = -75
					localization = INSHOL_padang_port
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_coffee_plantations
	icon = GFX_focus_generic_coffee
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_padang_port }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_padang_port

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.5
			date < 1938.6.1
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 1055 667 1053 344 673 1048 1056 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 1055 667 1053 344 673 1048 1056 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 1055 667 1053 344 673 1048 1056 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 1055 667 1053 344 673 1048 1056 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_subsidize_bauxite
	icon = GFX_focus_generic_aluminum
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS

		INS = {
			has_completed_focus = INS_the_bangka_project
		}
	}

	bypass = {
		INS = {
			has_completed_focus = INS_the_bangka_project
			NOT = {
				has_dynamic_modifier = {
					modifier = INS_bangka_bauxite_export
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_reduce_land_ownership_taxes }
	mutually_exclusive = {  }

	x = 1
	y = 1
	relative_position_id = INSHOL_reduce_land_ownership_taxes

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 3
			INS = {
				is_ai = no #this focus has a prequisite requiring INS to do something. the player should see feedback from this. but if INS is AI, who cares
			}
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_bangka_bauxite_export_tt
			add_to_variable = { var = INS_bangka_bauxite_export_consumer_goods_factor value = -0.05  tooltip = consumer_goods_factor_tt }

			1047 = {
				add_resource = {
					type = aluminium
					amount = 20
				}
				add_resource = {
					type = tungsten
					amount = 6
				}
			}			
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				add_autonomy_score = { 
					value = -50 
					localization = INSHOL_subsidize_bauxite
				}
			}
			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_bangka_bauxite_export_tt
			add_to_variable = { var = INS_bangka_bauxite_export_consumer_goods_factor value = -0.05  tooltip = consumer_goods_factor_tt }

			1047 = {
				add_resource = {
					type = aluminium
					amount = 20
				}
				add_resource = {
					type = tungsten
					amount = 6
				}
			}	
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				add_autonomy_score = { 
					value = -50 
					localization = INSHOL_subsidize_bauxite
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_agricultural_subsidies
	icon = GFX_focus_generic_modernize_agriculture_2
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_subsidize_bauxite }
	prerequisite = { focus = INSHOL_coffee_plantations }
	mutually_exclusive = {  }

	x = 0
	y = 2
	relative_position_id = INSHOL_subsidize_bauxite

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			every_owned_state = {
				limit = {
					is_in_array = {
						array = INS.owned_states_at_game_start
						value = THIS
					}
					impassable = no
				}
				add_extra_state_shared_building_slots = 1
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				add_autonomy_score = { 
					value = -150 
					localization = INSHOL_agricultural_subsidies
				}
			}
			
			add_ideas = HOL_agricultural_taxes
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			every_owned_state = {
				limit = {
					is_in_array = {
						array = INS.owned_states_at_game_start
						value = THIS
					}
					impassable = no
				}
				add_extra_state_shared_building_slots = 1
			}

		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				add_autonomy_score = { 
					value = -150 
					localization = INSHOL_agricultural_subsidies
				}
			}
			add_ideas = HOL_agricultural_taxes
		}
	}
}

joint_focus = {
	id = INSHOL_import_sugar
	icon = GFX_focus_INS_import_sugar
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_agricultural_subsidies }
	mutually_exclusive = {  }

	x = -1
	y = 1
	relative_position_id = INSHOL_agricultural_subsidies

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 3 #if this is the last focus needed to take industrialized colony, do it!
			NOT = {
				has_completed_focus = INSHOL_import_lumber
			}
			has_completed_focus = INSHOL_coffee_plantations
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					impassable = no
				}
				prioritize = { 1056 673 1051 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_cheap_sugar

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					impassable = no
				}
				prioritize = { 1056 673 1051 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_cheap_sugar
		}
	}
}

joint_focus = {
	id = INSHOL_import_lumber
	icon = GFX_focus_INS_import_lumber
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_agricultural_subsidies }
	mutually_exclusive = {  }

	x = 1
	y = 1
	relative_position_id = INSHOL_agricultural_subsidies

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 3 #if this is the last focus needed to take industrialized colony, do it!
			NOT = {
				has_completed_focus = INSHOL_import_sugar
			}
			has_completed_focus = INSHOL_coffee_plantations
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					impassable = no
				}
				prioritize = { 334 1055 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_cheap_lumber

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					impassable = no
				}
				prioritize = { 334 1055 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_cheap_lumber
		}
	}
}

joint_focus = {
	id = INSHOL_industrialized_colony
	icon = GFX_focus_INS_industrialized_colony
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS

		INS = {
			industrial_complex > 24
			OR = {
				arms_factory > 14
				dockyard > 14
				AND = {
					arms_factory > 9
					dockyard > 9
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_import_sugar focus = INSHOL_import_lumber }
	prerequisite = { focus = INSHOL_coffee_plantations }
	mutually_exclusive = { focus = HOL_continue_the_war_in_batavia_taog focus = INSHOL_autonomous_dominion }

	cancel_if_invalid = no
	continue_if_invalid = yes
	available_if_capitulated = yes

	x = 0
	y = 3
	relative_position_id = INSHOL_coffee_plantations

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 2 #if INS is going for republic, still be incentivised to take this if the extreme prequisites are met, but have some wiggleroom
			INS = {
				has_completed_focus = INSHOL_begin_negotiations_soetardjo
				is_ai = no
			}
		}
		modifier = {
			factor = 10 #if INS is ai just take it
			INS = {
				is_ai = yes
			}
		}
		modifier = {
			factor = 50 #if INS is a player not going for the republic, and has done the immense work needed to meet the requirements here, TAKE THE DAMN FOCUS!!!
			INS = {
				NOT = { has_completed_focus = INSHOL_begin_negotiations_soetardjo }
				is_ai = no
			}
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNATIONAL_TRADE }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_dynamic_modifier = {
				modifier = INS_industrialized_colony
			}
		}
		else_if = {
			limit = { original_tag = HOL }


			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_dynamic_modifier = {
				modifier = INS_industrialized_colony
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_economic_integration
	icon = GFX_focus_INS_economic_integration
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL }
		INS = {
			industrial_complex > 44
		}
	}

	cancel_if_invalid = no
	continue_if_invalid = yes

	prerequisite = { focus = INSHOL_industrialized_colony }
	mutually_exclusive = { focus = INSHOL_netherlands_indonesia_union focus = INSHOL_republic_of_indonesia }

	x = -4
	y = 1
	relative_position_id = INSHOL_industrialized_colony

	ai_will_do = {
		base = 0

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = { #Netherlands wants to do this
			add = 2
			original_tag = HOL
		}
		modifier = { #its getting close...
			add = 5
			original_tag = HOL
			INS = {
				has_completed_focus = INSHOL_autonomous_dominion
			}
		}
		modifier = { #INS only wants to do this if sideline the volksraad
			add = 5
			original_tag = INS
			has_completed_focus = INSHOL_sideline_the_volksraad
		}
		modifier = {
			factor = 0
			original_tag = HOL
			HOL_check_plan_alternate_monarchist = yes
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	offset = {
		trigger = {
			original_tag = INS
		}
		x = 0
	}

	cost = 10

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_RESEARCH FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY FOCUS_FILTER_INTERNAL_AFFAIRS }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = 300 
				localization = INSHOL_economic_integration
			}

			custom_effect_tooltip = INS_industrialized_colony_tt
			add_to_variable = { INS_industrialized_colony_cic_to_overlord_factor = 0.25 tooltip = cic_to_overlord_factor_tt }
			add_to_variable = { INS_industrialized_colony_mic_to_overlord_factor = 0.25 tooltip = mic_to_overlord_factor_tt }
			add_to_variable = { INS_industrialized_colony_production_speed_buildings_factor = 0.1 tooltip = production_speed_buildings_factor_tt }
			add_to_variable = { INS_industrialized_colony_research_speed_factor = 0.1 tooltip = research_speed_factor_tt }

			add_research_slot = 1

			custom_effect_tooltip = INS_cannot_become_independent_tt
		}
		else_if = {
			limit = { original_tag = HOL }
			add_stability = 0.1

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = 300 
				localization = INSHOL_economic_integration
			}

			custom_effect_tooltip = INS_industrialized_colony_tt
			add_to_variable = { INS_industrialized_colony_cic_to_overlord_factor = 0.25 tooltip = cic_to_overlord_factor_tt }
			add_to_variable = { INS_industrialized_colony_mic_to_overlord_factor = 0.25 tooltip = mic_to_overlord_factor_tt }
			add_to_variable = { INS_industrialized_colony_production_speed_buildings_factor = 0.1 tooltip = production_speed_buildings_factor_tt }
			add_to_variable = { INS_industrialized_colony_research_speed_factor = 0.1 tooltip = research_speed_factor_tt }

			add_research_slot = 1
			custom_effect_tooltip = INS_cannot_become_independent_tt
		}
		else_if = {
			limit = { original_tag = HOL }

			add_stability = 0.1

		}
	}
}


joint_focus = {
	id = INSHOL_sideline_the_volksraad
	icon = GFX_focus_INS_sideline_the_volksraad
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
	}
	prerequisite = { focus = INSHOL_dutch_east_indies }
	mutually_exclusive = { focus = INSHOL_begin_negotiations_soetardjo }

	ai_will_do = {
		base = 0.5
		modifier = {
			factor = 10
			date > 1937.1.1
		}
		modifier = {
			factor = 0
			HOL = {
				has_completed_focus = HOL_taog_guarantee_colonial_loyalty
			}
		}
	}

	x = -2
	y = 1
	relative_position_id = INSHOL_dutch_east_indies

	cost = 5

	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL FOCUS_FILTER_HISTORICAL }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_stability_factor value = 0.15 tooltip = stability_factor_tt }
			add_to_variable = { var = INS_dutch_east_indies_political_power_gain value = 0.25 tooltip = political_power_gain_tt }

			add_popularity = {
				ideology = democratic
				popularity = -0.1
			}
			add_popularity = {
				ideology = communism
				popularity = -0.05
			}
			effect_tooltip = {
				remove_advisor_role = {
					character = INS_soetardjo_kartohadikusomo
					slot = political_advisor 
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_stability_factor value = 0.15 tooltip = stability_factor_tt }
			add_to_variable = { var = INS_dutch_east_indies_political_power_gain value = 0.25 tooltip = political_power_gain_tt }

			add_popularity = {
				ideology = democratic
				popularity = -0.1
			}
			add_popularity = {
				ideology = communism
				popularity = -0.05
			}

			remove_advisor_role = {
				character = INS_mohammad_hunsi_tharmin
				slot = political_advisor 
			}
			remove_advisor_role = {
				character = INS_soetardjo_kartohadikusomo
				slot = political_advisor 
			}
			remove_advisor_role = {
				character = INS_adipati_soejono
				slot = political_advisor 
			}
			remove_advisor_role = {
				character = INS_oto_iskandar_di_nata
				slot = political_advisor 
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_prioritize_dutch_profits
	icon = GFX_focus_generic_supply_line
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
	}
	prerequisite = { focus = INSHOL_sideline_the_volksraad }
	mutually_exclusive = { }

	x = -2
	y = 1
	relative_position_id = INSHOL_sideline_the_volksraad

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_INTERNAL_AFFAIRS }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					impassable = no
					infrastructure < 5
				}
				prioritize = { 334 1049 }
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

			add_timed_idea = {
				idea = idea_INS_prioritizing_dutch_profits
				days = 365
			}

			if = {
				limit = {
					HOL = {
						is_ai = yes
					}
				}
				custom_effect_tooltip = newline_tt
				custom_effect_tooltip = INS_dutch_investment_rate_10
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_timed_idea = {
				idea = idea_HOL_prioritizing_dutch_profits
				days = 365
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					impassable = no
					infrastructure < 5
				}
				prioritize = { 334 1049 }
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

			add_timed_idea = {
				idea = idea_INS_prioritizing_dutch_profits
				days = 365
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_timed_idea = {
				idea = idea_HOL_prioritizing_dutch_profits
				days = 365
			}
		}
	}
}

joint_focus = {
	id = INSHOL_development_loans_netherlands
	icon = GFX_focus_RAJ_special_economic_zones
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
	}
	prerequisite = { focus = INSHOL_sideline_the_volksraad }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_sideline_the_volksraad

	cost = 10

	ai_will_do = {
		base = 0
	}

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_offsite_building = {
				type = industrial_complex
				level = 10
			}
			custom_effect_tooltip = INS_loans_timer
			effect_tooltip = {
				add_offsite_building = {
					type = industrial_complex
					level = -10
				}
				random_owned_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex 
						level = 1
					}
				}
			}
			hidden_effect = {
				add_timed_idea = { #Hidden idea, when it expires it runs the effects
					idea = idea_INS_hidden_debt_timer
					days = 365
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_offsite_building = {
				type = industrial_complex
				level = 10
			}
			custom_effect_tooltip = INS_loans_timer
			effect_tooltip = {
				add_offsite_building = {
					type = industrial_complex
					level = -10
				}
				random_owned_state = {
					limit = {
						industrial_complex > 0
					}
					remove_building = {
						type = industrial_complex 
						level = 1
					}
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
		}
	}
}

joint_focus = {
	id = INSHOL_emergency_powers_gov_general
	icon = GFX_focus_LAT_suspend_constitution_of_latvia
	text_icon = INSHOL_INS_HOL_focus_style


	available = {
		OR = { original_tag = INS original_tag = HOL } INS = { is_subject_of = HOL NOT = { has_autonomy_state = autonomy_dominion } }
		has_war_with_major = yes
	}
	prerequisite = { focus = INSHOL_sideline_the_volksraad }
	mutually_exclusive = { }

	x = 2
	y = 1
	relative_position_id = INSHOL_sideline_the_volksraad
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.4
			original_tag = HOL
		}
		modifier = {
			add = 5
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.1 #HOL AI doesn't really want to take this. its a dual-focus for MP reasons mostly
			original_tag = HOL
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = 500
				localization = INSHOL_emergency_powers_gov_general
			}
			add_stability = 0.05
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = 200
			add_war_support = -0.05

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = 500
				localization = INSHOL_emergency_powers_gov_general
			}
			add_stability = 0.05
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = 100
			add_war_support = -0.05
		}
	}
}

joint_focus = {
	id = INSHOL_request_economic_dev_subsidy
	icon = GFX_focus_generic_modernize_industry
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
		NOT = {
			has_idea = idea_INS_prioritizing_dutch_profits
		}
	}
	prerequisite = { focus = INSHOL_prioritize_dutch_profits }
	mutually_exclusive = { }

	x = -1
	y = 1
	relative_position_id = INSHOL_prioritize_dutch_profits

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_tech_bonus = {
				bonus = 1.0
				uses = 1
				category = construction_tech
				name = INSHOL_request_economic_dev_subsidy
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = industry
				name = INSHOL_request_economic_dev_subsidy
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = electronics
				name = INSHOL_request_economic_dev_subsidy
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					impassable = no
				}
				prioritize = { 1058 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_tech_bonus = {
				bonus = 1.0
				uses = 1
				category = construction_tech
				name = INSHOL_request_economic_dev_subsidy
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = industry
				name = INSHOL_request_economic_dev_subsidy
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = electronics
				name = INSHOL_request_economic_dev_subsidy
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					impassable = no
				}
				prioritize = { 1058 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_loyalty_to_crown
	icon = GFX_focus_generic_monarchy_2
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
	}
	prerequisite = { focus = INSHOL_prioritize_dutch_profits }
	mutually_exclusive = { }

	x = 1
	y = 1
	relative_position_id = INSHOL_prioritize_dutch_profits

	cost = 10

	search_filters = { FOCUS_FILTER_INTERNAL_AFFAIRS }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			every_owned_state = {
				limit = {
					is_in_array = {
						array = INS.default_noncore_states
						value = THIS
					}
				}
				add_compliance = 10
			}
			add_autonomy_score = { 
				value = -100 
				localization = INSHOL_loyalty_to_crown
			}
			if = {
				limit = {
					HOL = {
						is_ai = yes
					}
				}
				custom_effect_tooltip = newline_tt
				custom_effect_tooltip = INS_dutch_investment_rate_20
			}
			custom_effect_tooltip = newline_tt
			INS_andries_cornelis_dirk_de_graeff = {
				set_can_be_fired_in_advisor_role = {
					value = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			every_owned_state = {
				limit = {
					is_in_array = {
						array = INS.default_noncore_states
						value = THIS
					}
				}
				add_compliance = 10
			}
			add_autonomy_score = { 
				value = -100 
				localization = INSHOL_loyalty_to_crown
			}
			custom_effect_tooltip = newline_tt
			INS_andries_cornelis_dirk_de_graeff = {
				set_can_be_fired_in_advisor_role = {
					value = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

# <Joint Tree - Netherlands-Indonesia Naval Program>
joint_focus = {
	id = INSHOL_naval_program
	icon = GFX_focus_INS_naval_program
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_emergency_dockyard_construction focus = INSHOL_foundations_of_defense }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_emergency_dockyard_construction

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 2 #dont leave the player hanging
			INS = { is_ai = no}
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			country_event = {
				id = INS_dutch_events.4
				hours = 12
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			custom_effect_tooltip = INSHOL_naval_program_transfer_25_tt
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			country_event = {
				id = INS_dutch_events.4
				hours = 12
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			custom_effect_tooltip = INSHOL_naval_program_transfer_25_tt
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_hybrid_navy #TODO: maybe just summon magic ships for indonesia? could be more of a "private purchase" theme so no ships are lost by dutch
	icon = GFX_goal_generic_build_navy
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
	}
	prerequisite = { focus = INSHOL_naval_program }
	mutually_exclusive = { focus = INSHOL_request_naval_control }

	x = -1
	y = 1
	relative_position_id = INSHOL_naval_program

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 1058 } # Batavia
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL } }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 7 } # Holland
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 1058 } # Batavia
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL INS = { is_subject_of = HOL } }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 7 } # Holland
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_request_naval_control
	icon = GFX_focus_INS_request_naval_control
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject_of = HOL
		HOL = {
			is_government_in_exile = yes
		}
	}
	prerequisite = { focus = INSHOL_naval_program }
	mutually_exclusive = { focus = INSHOL_hybrid_navy }

	x = 1
	y = 1
	relative_position_id = INSHOL_naval_program

	cost = 5

	search_filters = { }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			HOL = {
				country_event = {
					id = INS_dutch_events.1
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = INSHOL_naval_program_transfer_100_2_tt
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			HOL = {
				country_event = {
					id = INS_dutch_events.1
					hours = 12
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_naval_secondchance
	icon = GFX_focus_generic_navy_research_bonus
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	allow_branch = {
		INS = {
			has_country_flag = {
				flag = INS_navy_transfer_rejected_flag
			}
			NOT = {
				has_completed_focus = INS_the_declaration_of_independence
			}
		}
	}
	prerequisite = { focus = INSHOL_request_naval_control }

	x = 1
	y = 2
	relative_position_id = INSHOL_naval_program

	cost = 10

	search_filters = {  }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				prioritize = { 335 1058 1051 }
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
					is_coastal = yes
					impassable = no
				}
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = INSHOL_naval_secondchance
				bonus = 1.0
				uses = 1
				category = dd_tech
			}
			add_tech_bonus = {
				name = INSHOL_naval_secondchance
				bonus = 0.5
				uses = 3
				category = naval_equipment
			}
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = INSHOL_naval_secondchance
				bonus = 0.75
				uses = 2
				category = naval_equipment
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_netherlands_indonesia_union
	icon = GFX_focus_INS_netherlands_indonesia_union
	text_icon = INSHOL_INS_HOL_focus_style

	ai_will_do = {
		base = 0.2

		modifier = {
			add = 100
			original_tag = HOL
			HOL_check_plan_alternate_monarchist = yes
		}

		modifier = {
			add = 0.5
			surrender_progress > 0.5
		}
		modifier = {
			add = 1
			has_capitulated = yes
		}
		modifier = {
			add = 1
			has_capitulated = yes
			days_since_capitulated > 150
		}
		modifier = {
			add = 1
			has_capitulated = yes
			days_since_capitulated > 300
		}
		modifier = {
			add = 1
			has_capitulated = yes
			days_since_capitulated > 400
		}
		modifier = {
			add = 1
			has_capitulated = yes
			days_since_capitulated > 500
		}
		modifier = {
			add = 1
			has_capitulated = yes
			days_since_capitulated > 600
		}
		modifier = {
			add = 1
			has_capitulated = yes
			days_since_capitulated > 700
		}

		modifier = { #INS wont do it
			factor = 0
			original_tag = INS
		}
		modifier = { #HOL will, but a player INS should always be able to do it instead
			factor = 0
			original_tag = HOL
			INS = { is_ai = no }
		}
	}

	available = {
		OR = {
			original_tag = HOL
			original_tag = INS
		}
	}
	prerequisite = { focus = INSHOL_autonomous_dominion focus = INSHOL_industrialized_colony }
	mutually_exclusive = { focus = INSHOL_republic_of_indonesia focus = INSHOL_economic_integration }

	x = -3
	y = 0
	relative_position_id = INSHOL_economic_integration

	cost = 10

	search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNAL_AFFAIRS }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			HOL = {
				country_event = {
					id = INS_union_events.5
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				indonesia_union_INS_START_effect = yes
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				country_event = {
					id = INS_union_events.8
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				indonesia_union_HOL_START_effect = yes
			}

			
		}
	}

	completion_reward_joint_member = {
	}
}

joint_focus = {
	id = INSHOL_begin_negotiations_soetardjo
	icon = GFX_focus_INS_begin_negotiations_soetardjo
	text_icon = INSHOL_INS_focus_style
	overlay = GFX_focus_fast_overlay_generic_clock

	available = {
		original_tag = INS
		is_subject_of = HOL
	}
	prerequisite = { focus = INSHOL_dutch_east_indies }
	mutually_exclusive = { focus = INSHOL_sideline_the_volksraad }

	x = -8
	y = 0
	relative_position_id = INSHOL_sideline_the_volksraad

	ai_will_do = {
		base = 1
		modifier = {
			factor = 0
			INS_check_plan_true_historical = yes #true historical wont do this
		}
		modifier = {
			add = 2
			HOL = {
				has_completed_focus = HOL_taog_guarantee_colonial_loyalty #this also blocks sideline the volksraad, but also makes this get more prioritized. that be the price for guaranteed loyalty
			}
		}
		modifier = {
			factor = 2 #increase chances, but if there's no other thing telling the AI to do this, then they still wont
			has_completed_focus = INS_governor_general_tjarda
		}
		modifier = {
			factor = 100 #(factor=0 if its not meant to take this so this wont break anything), so if the AI has already committed to doing this, and they're about to run out of time, then HURRY UP!!!!
			date > 1937.1.1
		}
	}

	cost = 10

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNAL_AFFAIRS FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_POLITICAL_CHARACTER }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = INS_soetardjo_kartohadikusomo
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = INS_focus_time_reduce_tjarda_tt
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = INS_soetardjo_kartohadikusomo
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_urge_gov_veto
	icon = GFX_focus_generic_subjugation
	text_icon = INSHOL_HOL_focus_style

	available = {
		original_tag = HOL
		has_subject = INS
	}
	prerequisite = { focus = INSHOL_begin_negotiations_soetardjo }
	mutually_exclusive = { }

	x = -2
	y = 1
	relative_position_id = INSHOL_begin_negotiations_soetardjo

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 1
			original_tag = INS
		}

		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = {
			factor = 0.3 #dont be mean
			INS = { is_ai = no }
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		# prioritize the player
		modifier = {
			factor = 1.5
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.75
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_INTERNAL_AFFAIRS }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = -250 
				localization = INSHOL_urge_gov_veto
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = -50

			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_autonomy_score = { 
				value = -250 
				localization = INSHOL_urge_gov_veto
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = -50
		}
	}
}

#joint_focus = {
#	id = INSHOL_eventual_autonomy
#	icon = GFX_focus_INS_eventual_autonomy
#	text_icon = INSHOL_INS_HOL_focus_style
#	overlay = GFX_focus_fast_overlay_generic_clock
#
#	available = {
#		OR = { original_tag = HOL original_tag = INS }
#		INS = { is_subject_of = HOL democratic > 0.25 }
#
#		custom_trigger_tooltip = {
#			tooltip = INSHOL_eventual_autonomy_req_tt
#			check_variable = {
#				var = INS_volksraad_counter
#				value = 4
#				compare = greater_than_or_equals
#			}
#		}
#
#		OR = {
#			industrial_complex > 19
#			AND = {
#				industrial_complex > 14
#				OR = {
#					arms_factory > 6
#					dockyard > 6
#				}
#			}
#		}
#	}
#	prerequisite = { focus = INSHOL_begin_negotiations_soetardjo }
#	mutually_exclusive = { }
#
#	cancel_if_invalid = no
#	continue_if_invalid = yes
#
#	x = 0
#	y = 2
#	relative_position_id = INSHOL_begin_negotiations_soetardjo
#	ai_will_do = {
#		base = 0
#		modifier = {
#			add = 0.6
#			original_tag = HOL
#		}
#		modifier = {
#			add = 100 #do this asap
#			original_tag = INS
#		}
#
#		###### INS:
#		# FOCUS SPECIFIC MODIFIERS HERE
#
#		###### HOL:
#		# FOCUS SPECIFIC MODIFIERS HERE
#		modifier = { #dont rush autonomy
#			factor = 0
#			original_tag = HOL
#			date < 1939.1.1
#		}
#
#		# Focus can be taken by HOL or INS, so de-prioritize this:
#		modifier = {
#			factor = 0.8
#			original_tag = HOL
#		}
#
#		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
#		modifier = {
#			factor = 1.1
#			original_tag = HOL
#			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
#		}
#		modifier = {
#			factor = 1.2
#			original_tag = HOL
#			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
#		}
#		modifier = {
#			factor = 1.3
#			original_tag = HOL
#			INS = {
#				INS_harry_kuneman = {
#					is_hired_as_advisor = yes
#				}
#			}
#		}
#		modifier = {
#			factor = 1.2
#			original_tag = HOL
#			INS = {
#				INS_dick_de_hoog = {
#					is_hired_as_advisor = yes
#				}
#			}
#		}
#		# prioritize the player
#		modifier = {
#			factor = 1.2 #INS can also take it, so not as important
#			original_tag = HOL
#			INS = {
#				is_ai = no
#			}
#		}
#		modifier = {
#			factor = 0.5
#			original_tag = HOL
#			INS = {
#				is_ai = yes
#			}
#		}
#	}
#
#	cost = 10
#
#	search_filters = { FOCUS_FILTER_INTERNAL_AFFAIRS FOCUS_FILTER_TFV_AUTONOMY }
#
#	completion_reward_joint_originator = {
#		if = {
#			limit = { original_tag = INS }
#			set_country_flag = {
#				flag = INS_governor_veto_available
#				value = 0
#			}
#			add_autonomy_score = { 
#				value = 300
#				localization = INSHOL_eventual_autonomy
#			}
#			custom_effect_tooltip = INS_dutch_east_indies_tt
#			add_to_variable = { var = INS_dutch_east_indies_autonomy_gain_warscore value = 1.5 tooltip = autonomy_gain_warscore_tt }
#		}
#		else_if = {
#			limit = { original_tag = HOL }
#			custom_effect_tooltip = INS_volksraad_decisions_no_reject
#
#			
#		}
#		custom_effect_tooltip = generic_skip_one_line_tt
#		custom_effect_tooltip = INS_focus_time_reduce_tjarda_tt
#	}
#
#	completion_reward_joint_member = {
#		if = {
#			limit = { original_tag = INS }
#			set_country_flag = {
#				flag = INS_governor_veto_available
#				value = 0
#			}
#			add_autonomy_score = { 
#				value = 300
#				localization = INSHOL_eventual_autonomy
#			}
#			custom_effect_tooltip = INS_volksraad_decisions_no_reject
#		}
#		else_if = {
#			limit = { original_tag = HOL }
#			custom_effect_tooltip = INS_volksraad_decisions_no_reject
#		}
#	}
#}

joint_focus = {
	id = INSHOL_education_reforms
	icon = GFX_focus_generic_education
	text_icon = INSHOL_INS_HOL_focus_style

	available = {
		OR = { original_tag = HOL original_tag = INS }
		INS = { is_subject_of = HOL }
	}
	prerequisite = { focus = INSHOL_begin_negotiations_soetardjo }
	mutually_exclusive = { }

	cancel_if_invalid = no
	continue_if_invalid = yes

	x = 0
	y = 1
	relative_position_id = INSHOL_begin_negotiations_soetardjo
	ai_will_do = {
		base = 0
		modifier = {
			add = 0.6
			original_tag = HOL
		}
		modifier = {
			add = 100 #do this asap
			original_tag = INS
		}

		###### INS:
		# FOCUS SPECIFIC MODIFIERS HERE

		###### HOL:
		# FOCUS SPECIFIC MODIFIERS HERE
		modifier = { #dont rush autonomy
			factor = 0
			original_tag = HOL
			date < 1939.1.1
		}

		# Focus can be taken by HOL or INS, so de-prioritize this:
		modifier = {
			factor = 0.8
			original_tag = HOL
		}

		# Each source of a "Netherlands is x more likely to take joint focuses" modifier
		modifier = {
			factor = 1.1
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_prioritize_dutch_profits }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_loyalty_to_crown }
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = { has_completed_focus = INSHOL_encourage_further_investment }
		}
		modifier = {
			factor = 1.3
			original_tag = HOL
			INS = {
				INS_harry_kuneman = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.2
			original_tag = HOL
			INS = {
				INS_dick_de_hoog = {
					is_hired_as_advisor = yes
				}
			}
		}
		modifier = {
			factor = 1.75
			original_tag = HOL
			HOL_check_plan_colonial_alternate_democratic = yes
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			HOL_check_plan_continental_alternate_democratic = yes
		}
		# prioritize the player
		modifier = {
			factor = 1.2 #INS can also take it, so not as important
			original_tag = HOL
			INS = {
				is_ai = no
			}
		}
		modifier = {
			factor = 0.5
			original_tag = HOL
			INS = {
				is_ai = yes
			}
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_RESEARCH }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_research_speed_factor value = 0.05 tooltip = research_speed_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_dutch_east_indies_tt
			add_to_variable = { var = INS_dutch_east_indies_research_speed_factor value = 0.05 tooltip = research_speed_factor_tt }
		}
		else_if = {
			limit = { original_tag = HOL }
		}
	}
}

joint_focus = {
	id = INSHOL_autonomous_dominion
	icon = GFX_focus_INS_eventual_autonomy
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		INS = { is_subject_of = HOL has_autonomy_state = autonomy_dominion democratic > 0.3 }

		has_country_flag = {
			flag = indonesia_volksraad_passed_12
		}

		industrial_complex > 24
		OR = {
			arms_factory > 14
			dockyard > 14
			AND = {
				arms_factory > 9
				dockyard > 9
			}
		}
	}

	bypass = {
		original_tag = INS
		is_subject = no
	}

	cancel_if_invalid = no
	continue_if_invalid = yes

	prerequisite = { focus = INSHOL_democracy }
	mutually_exclusive = { focus = INSHOL_industrialized_colony focus = HOL_continue_the_war_in_batavia_taog }

	ai_will_do = {
		base = 100 #do this as soon as possible
	}

	x = 3
	y = 6
	relative_position_id = INSHOL_begin_negotiations_soetardjo

	offset = {
		trigger = {
			originaL_tag = HOL
		}
		y = 0
	}

	cost = 5

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNAL_AFFAIRS FOCUS_FILTER_TFV_AUTONOMY }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			remove_ideas = idea_INS_netherlands_most_precious_jewel

			unlock_decision_category_tooltip = INS_unity_in_diversity_cat
			custom_effect_tooltip = INS_unity_in_diversity_explain_tt
		}
		else_if = {
			limit = { original_tag = HOL }

			

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			remove_ideas = idea_INS_netherlands_most_precious_jewel
			custom_effect_tooltip = newline_tt
			random_character = {
				limit = {
					is_country_leader = yes
				}
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = conservatism
						expire = 1965.1.1.1
						traits = {  } 
					}
				}	
			}
			set_politics = {
				ruling_party = democratic
				elections_allowed = no
				last_election = "1936.1.1"
				election_frequency = 48
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_republic_of_indonesia
	icon = GFX_focus_INS_republic_of_indonesia
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		is_subject = no

		industrial_complex > 39
		OR = {
			arms_factory > 19
			dockyard > 19
		}
	}
	prerequisite = { focus = INSHOL_autonomous_dominion }
	mutually_exclusive = { focus = INSHOL_netherlands_indonesia_union focus = INSHOL_economic_integration }

	cancel_if_invalid = no
	continue_if_invalid = yes

	x = -6
	y = 0
	relative_position_id = INSHOL_economic_integration

	cost = 5

	ai_will_do = {
		base = 8
	}

	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			unlock_decision_category_tooltip = INS_malay_unification_cat
			add_stability = 0.15
			add_war_support = 0.15
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			unlock_decision_category_tooltip = INS_malay_unification_cat
			add_stability = 0.15
			add_war_support = 0.15
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_request_east_timor
	icon = GFX_focus_INS_request_east_timor
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_begin_negotiations_soetardjo focus = INSHOL_sideline_the_volksraad }
	mutually_exclusive = { }

	x = 3
	y = 1
	relative_position_id = INSHOL_begin_negotiations_soetardjo

	cost = 5

	search_filters = { FOCUS_FILTER_ANNEXATION }

	ai_will_do = {
		base = 3
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			721 = {
				controller = {
					country_event = { id = INS_loyalist_events.22 hours = 6 }
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				transfer_state = 721
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			721 = {
				controller = {
					country_event = { id = INS_loyalist_events.22 hours = 6 }
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				transfer_state = 721
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_nationalist_coallition
	icon = GFX_focus_INS_the_declaration_of_independence
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		democratic > 0.2
	}
	prerequisite = { focus = INSHOL_education_reforms }
	mutually_exclusive = { focus = INSHOL_volksraad_compromises }

	x = -1
	y = 1
	relative_position_id = INSHOL_education_reforms

	cost = 10

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNAL_AFFAIRS FOCUS_FILTER_POLITICAL_CHARACTER }

	ai_will_do = {
		base = 3
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_will_not_keep_characters_tt
			custom_effect_tooltip = INSHOL_nationalist_coallition_tt
			custom_effect_tooltip = newline_tt
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = INS_wirantakusumah_v
			show_ideas_tooltip = INS_achmad_soebardjo
			show_ideas_tooltip = INS_surachman_tjokoadisurjo
			show_ideas_tooltip = INS_dr_boentaran_martooatmodjo
			show_ideas_tooltip = INS_ki_hajar_dewantara
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_will_not_keep_characters_tt
			custom_effect_tooltip = INSHOL_nationalist_coallition_tt
			custom_effect_tooltip = newline_tt
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = INS_wirantakusumah_v
			show_ideas_tooltip = INS_achmad_soebardjo
			show_ideas_tooltip = INS_surachman_tjokoadisurjo
			show_ideas_tooltip = INS_dr_boentaran_martooatmodjo
			show_ideas_tooltip = INS_ki_hajar_dewantara

		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_volksraad_compromises
	icon = GFX_focus_INS_autonomous_dominion
	text_icon = INSHOL_INS_focus_style
	overlay = GFX_focus_fast_overlay_generic_clock

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_education_reforms }
	mutually_exclusive = { focus = INSHOL_nationalist_coallition }

	x = 1
	y = 1
	relative_position_id = INSHOL_education_reforms

	cost = 10

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNAL_AFFAIRS }

	ai_will_do = {
		base = 1
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_will_keep_characters_tt
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = INS_focus_time_reduce_tjarda_tt
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_will_keep_characters_tt
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = INS_focus_time_reduce_tjarda_tt

		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_democracy
	icon = GFX_goal_support_democracy
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
		democratic > 0.25
	}
	prerequisite = { focus = INSHOL_nationalist_coallition focus = INSHOL_volksraad_compromises }
	mutually_exclusive = { }

	x = 1
	y = 2
	relative_position_id = INSHOL_nationalist_coallition

	cost = 5

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNAL_AFFAIRS FOCUS_FILTER_POLITICAL_CHARACTER }

	ai_will_do = {
		base = 3
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			hidden_effect = {
				random_character = {
					limit = {
						is_country_leader = yes
					}
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = conservatism
							expire = 1965.1.1.1
							traits = {  } 
						}
					}	
				}
				set_politics = {
					ruling_party = democratic
					elections_allowed = no
					last_election = "1936.1.1"
					election_frequency = 48
				}
			}

			custom_effect_tooltip = INSHOL_democratic_elections_tt

			custom_effect_tooltip = newline_tt
			INS_andries_cornelis_dirk_de_graeff = {
				set_can_be_fired_in_advisor_role = {
					value = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			hidden_effect = {
				random_character = {
					limit = {
						is_country_leader = yes
					}
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = conservatism
							expire = 1965.1.1.1
							traits = {  } 
						}
					}	
				}
			}
			set_politics = {
				ruling_party = democratic
				elections_allowed = yes
				last_election = "1936.1.1"
				election_frequency = 48
			}
			custom_effect_tooltip = newline_tt
			INS_andries_cornelis_dirk_de_graeff = {
				set_can_be_fired_in_advisor_role = {
					value = yes
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_establish_the_princely_council
	icon = GFX_goal_generic_national_unity
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_nationalist_coallition }
	mutually_exclusive = { }

	x = -1
	y = 1
	relative_position_id = INSHOL_nationalist_coallition

	cost = 10

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER }

	ai_will_do = {
		base = 3
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			indonesia_princely_advisors_effect_no_atjeh = yes
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			indonesia_princely_advisors_effect_no_atjeh = yes
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_nationalize_dutch_companies
	icon = GFX_focus_INS_nationalized_private_sector
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_nationalist_coallition }
	mutually_exclusive = { }

	x = -3
	y = 1
	relative_position_id = INSHOL_nationalist_coallition

	cost = 5

	search_filters = { FOCUS_FILTER_INDUSTRY }

	ai_will_do = {
		base = 3
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 1058 1051 335 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 1058
				}
				rename_batavia_to_jakarta_if_not_already_effect = yes
			}
			custom_effect_tooltip = INS_nationalize_companies_tt
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 1058 1051 335 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 1058
				}
				rename_batavia_to_jakarta_if_not_already_effect = yes
			}
			custom_effect_tooltip = INS_nationalize_companies_tt

		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_encourage_further_investment
	icon = GFX_focus_generic_industry_investment
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_volksraad_compromises }
	mutually_exclusive = { }

	x = 1
	y = 1
	relative_position_id = INSHOL_volksraad_compromises

	cost = 10

	search_filters = { FOCUS_FILTER_INTERNAL_AFFAIRS }

	ai_will_do = {
		base = 3
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_dutch_investment_rate_20
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INS_dutch_investment_rate_20

		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}

joint_focus = {
	id = INSHOL_princely_authority
	icon = GFX_focus_generic_monarchy_1
	text_icon = INSHOL_INS_focus_style

	available = {
		original_tag = INS
	}
	prerequisite = { focus = INSHOL_establish_the_princely_council }
	prerequisite = { focus = INSHOL_democracy }
	mutually_exclusive = { }

	x = -2
	y = 1
	relative_position_id = INSHOL_democracy

	cost = 5

	search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER }

	ai_will_do = {
		base = 3
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INSHOL_princely_authority_tt
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INSHOL_princely_authority_tt
		}
		else_if = {
			limit = { original_tag = HOL }

		}
	}
}



# <National Revolution - Reasserting Control>
joint_focus = {
	id = INSHOL_reasserting_control
	icon = GFX_focus_INS_reasserting_control
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
	}

    allow_branch = {
    	has_dlc = "Thunder at Our Gates"
    	if = {
			limit = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
			INS = {
				OR = {
					has_completed_focus = INS_seize_oppurtunity
		            NOT = {
						has_completed_focus = INS_the_jewel_in_the_crown
					}
				}
			}
		}
    }

	prerequisite = { }
	mutually_exclusive = { }

	x = 14
	y = 0
	relative_position_id = INSHOL_dutch_east_indies

	offset = {
		x = 43
		y = -1
		trigger = {
			tag = INS
		}
	}
	offset = {
		x = -4
		y = 0
		trigger = {
			tag = INS
			has_completed_focus = INS_seize_oppurtunity
		}
	}
	offset = {
		x = 57
		y = 0
		trigger = {
			tag = HOL
		}
	}

	cost = 5

	search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL FOCUS_FILTER_HISTORICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_war_support = 0.05
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				country_event = {
					id = INS_revolution_events.1
					days = 7
				}
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_war_support = 0.05
		}
		else_if = {
			limit = { original_tag = HOL }
			INS = {
				country_event = {
					id = INS_revolution_events.1
					days = 7
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_request_british_support
	icon = GFX_goal_generic_military_deal
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_reasserting_control }
	mutually_exclusive = { }

	x = -4
	y = 1
	relative_position_id = INSHOL_reasserting_control

	cost = 5

	ai_will_do = {
		base = 1
		modifier = {
			add = 5
			is_in_faction_with = ENG
		}
	}

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER FOCUS_FILTER_HISTORICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			ENG = {
				country_event = {
					id = INS_revolution_events.5
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				indonesia_HOL_british_support_effect = yes
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			ENG = {
				country_event = {
					id = INS_revolution_events.5
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				indonesia_HOL_british_support_effect = yes
			}
		}
	}
}

joint_focus = {
	id = INSHOL_franco_dutch_accord
	icon = GFX_focus_chi_reach_out_to_france
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
		custom_trigger_tooltip = {
			tooltip = war_escalation_3_or_more_tt
			INS = {
				check_variable = {
					var = INS_war_escalation_level
					value = 3
					compare = greater_than_or_equals
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_request_british_support }
	mutually_exclusive = { focus = INSHOL_london_batavia_accord focus = INSHOL_undermine_the_militias focus = INSHOL_flag_will_fly_again }

	x = -4
	y = 2
	relative_position_id = INSHOL_request_british_support

	cost = 10

	search_filters = { FOCUS_FILTER_POLITICAL }

	ai_will_do = {
		base = 0
		modifier = {
			add = 1
			is_historical_focus_on = no
		}
		modifier = {
			add = 5
			is_in_faction_with = FRA
			NOT = { is_in_faction_with = ENG }
		}
	}

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			FRA = {
				country_event = {
					id = INS_revolution_events.22
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = INS_fra_treaty_holside_tt
			effect_tooltip = {
				indonesia_HOL_sign_accord_FRA_effect = yes
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			FRA = {
				country_event = {
					id = INS_revolution_events.22
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = INS_fra_treaty_holside_tt
			effect_tooltip = {
				indonesia_HOL_sign_accord_FRA_effect = yes
			}
		}
	}
}

joint_focus = {
	id = INSHOL_london_batavia_accord
	icon = GFX_focus_chi_british_cooperation
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
		custom_trigger_tooltip = {
			tooltip = war_escalation_3_or_more_tt
			INS = {
				check_variable = {
					var = INS_war_escalation_level
					value = 3
					compare = greater_than_or_equals
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_indian_divisions }
	mutually_exclusive = { focus = INSHOL_franco_dutch_accord focus = INSHOL_undermine_the_militias focus = INSHOL_flag_will_fly_again }

	x = -2
	y = 2
	relative_position_id = INSHOL_request_british_support

	cost = 10

	ai_will_do = {
		base = 0
		modifier = {
			add = 2
			is_historical_focus_on = no
		}
	}

	search_filters = { FOCUS_FILTER_POLITICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			ENG = {
				country_event = {
					id = INS_revolution_events.2
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = INS_eng_treaty_holside_tt
			effect_tooltip = {
				indonesia_HOL_sign_accord_effect = yes
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			ENG = {
				country_event = {
					id = INS_revolution_events.2
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = INS_eng_treaty_holside_tt
			effect_tooltip = {
				indonesia_HOL_sign_accord_effect = yes
			}
		}
	}
}

joint_focus = {
	id = INSHOL_undermine_the_militias
	icon = GFX_goal_generic_position_armies
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_request_british_support }
	mutually_exclusive = { focus = INSHOL_franco_dutch_accord focus = INSHOL_london_batavia_accord focus = INSHOL_flag_will_fly_again }

	x = 0
	y = 2
	relative_position_id = INSHOL_request_british_support

	cost = 5

	ai_will_do = {
		base = 1
		modifier = {
			add = 1
			is_historical_focus_on = yes
		}
	}

	search_filters = { FOCUS_FILTER_POLITICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			indonesia_reduce_escalation_1_effect = yes
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = 200
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			indonesia_reduce_escalation_1_effect = yes
		}
		else_if = {
			limit = { original_tag = HOL }
			add_political_power = 200
		}
	}
}

joint_focus = {
	id = INSHOL_flag_will_fly_again
	icon = GFX_focus_hol_oranje_boven
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		is_in_faction = no
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_request_british_support }
	mutually_exclusive = { focus = INSHOL_franco_dutch_accord focus = INSHOL_london_batavia_accord focus = INSHOL_undermine_the_militias }

	x = 2
	y = 2
	relative_position_id = INSHOL_request_british_support

	cost = 5

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }

	ai_will_do = {
		base = 5 #do it if available
		modifier = {
			factor = 0
			is_historical_focus_on = yes
		}
	}

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_flag_will_fly

			if = {
				limit = {
					has_rule = can_join_factions
				}
				set_country_flag = HOL_can_join_factions_before_remove
			}
			if = {
				limit = {
					has_rule = can_create_factions
				}
				set_country_flag = HOL_can_create_factions_before_remove
			}
			
			set_rule = {
				can_join_factions = no
			}
			set_rule = {
				can_create_factions = no
			}
			custom_effect_tooltip = INSHOL_flag_will_fly_again_tt
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = HOL_flag_will_fly

			if = {
				limit = {
					has_rule = can_join_factions
				}
				set_country_flag = HOL_can_join_factions_before_remove
			}
			if = {
				limit = {
					has_rule = can_create_factions
				}
				set_country_flag = HOL_can_create_factions_before_remove
			}
			
			set_rule = {
				can_join_factions = no
			}
			set_rule = {
				can_create_factions = no
			}
			custom_effect_tooltip = INSHOL_flag_will_fly_again_tt
		}
	}
}

joint_focus = {
	id = INSHOL_indian_divisions
	icon = GFX_focus_RAJ_indian_gurkhas
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
		has_country_flag = { flag = HOL_british_light_support }
		RAJ = {
			is_subject_of = ENG
		}
	}
	prerequisite = { focus = INSHOL_request_british_support }
	mutually_exclusive = { }

	x = -2
	y = 1
	relative_position_id = INSHOL_request_british_support

	cost = 5

	search_filters = { FOCUS_FILTER_HISTORICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			division_template={
				name="Indian Division"
				division_names_group="RAJ_GAR_01"
				foreign_template_tag="RAJ"
				allow_new_equipment=yes
				allow_foreign_equipment=yes
				is_locked = yes
				support={
				}
				regiments={
					infantry={ x=0 y=0 }
					infantry={ x=0 y=1 }
					infantry={ x=0 y=2 }
					infantry={ x=1 y=0 }
					infantry={ x=1 y=1 }
					infantry={ x=1 y=2 }
					infantry={ x=2 y=0 }
					infantry={ x=2 y=1 }
					infantry={ x=2 y=2 }
				}
			}
			if = {
				limit = { has_event_target = INS_dutch_indonesia }
				event_target:INS_dutch_indonesia = {
					random_owned_controlled_state = {
						limit = {
							impassable = no
						}
						prioritize = { 1058 }
						create_unit = {
							division = "name = \"Indian Division\" division_template = \"Indian Division\" start_experience_factor = 0.1 start_equipment_factor = 1 start_manpower_factor = 1"
							owner = HOL
							allow_spawning_on_enemy_provs = no
							count = 5
						}
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						is_in_array = {
							array = INS.owned_states_at_game_start
							value = THIS
						}
					}
					create_unit = {
						division = "name = \"Indian Division\" division_template = \"Indian Division\" start_experience_factor = 0.1 start_equipment_factor = 1 start_manpower_factor = 1"
						owner = HOL
						allow_spawning_on_enemy_provs = no
						count = 5
					}
				}
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			division_template={
				name="Indian Division"
				division_names_group="RAJ_GAR_01"
				foreign_template_tag="RAJ"
				allow_new_equipment=yes
				allow_foreign_equipment=yes
				is_locked = yes
				support={
				}
				regiments={
					infantry={ x=0 y=0 }
					infantry={ x=0 y=1 }
					infantry={ x=0 y=2 }
					infantry={ x=1 y=0 }
					infantry={ x=1 y=1 }
					infantry={ x=1 y=2 }
					infantry={ x=2 y=0 }
					infantry={ x=2 y=1 }
					infantry={ x=2 y=2 }
				}
			}
			if = {
				limit = { has_event_target = INS_dutch_indonesia }
				event_target:INS_dutch_indonesia = {
					random_owned_controlled_state = {
						limit = {
							impassable = no
						}
						prioritize = { 1058 }
						create_unit = {
							division = "name = \"Indian Division\" division_template = \"Indian Division\" start_experience_factor = 0.1 start_equipment_factor = 1 start_manpower_factor = 1"
							owner = HOL
							allow_spawning_on_enemy_provs = no
							count = 5
						}
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						is_in_array = {
							array = INS.owned_states_at_game_start
							value = THIS
						}
					}
					create_unit = {
						division = "name = \"Indian Division\" division_template = \"Indian Division\" start_experience_factor = 0.1 start_equipment_factor = 1 start_manpower_factor = 1"
						owner = HOL
						allow_spawning_on_enemy_provs = no
						count = 5
					}
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_australian_divisions
	icon = GFX_focus_generic_commonwealth_build_infantry
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
		AST = {
			is_subject_of = ENG
		}
	}
	prerequisite = { focus = INSHOL_london_batavia_accord }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_london_batavia_accord

	cost = 10

	search_filters = {  }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			division_template={
				name="Australian Division"
				division_names_group="AST_INF_01"
				foreign_template_tag="AST"
				allow_new_equipment=yes
				allow_foreign_equipment=yes
				is_locked = yes
				support={
				}
				regiments={
					infantry={ x=0 y=0 }
					infantry={ x=0 y=1 }
					infantry={ x=0 y=2 }
					infantry={ x=1 y=0 }
					infantry={ x=1 y=1 }
					infantry={ x=1 y=2 }
					infantry={ x=2 y=0 }
					infantry={ x=2 y=1 }
					infantry={ x=2 y=2 }
				}
			}
			if = {
				limit = { has_event_target = INS_dutch_indonesia }
				event_target:INS_dutch_indonesia = {
					random_owned_controlled_state = {
						limit = {
							impassable = no
						}
						prioritize = { 1058 }
						create_unit = {
							division = "name = \"Australian Division\" division_template = \"Australian Division\" start_experience_factor = 0.1 start_equipment_factor = 1 start_manpower_factor = 1"
							owner = HOL
							allow_spawning_on_enemy_provs = no
							count = 8
						}
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						is_in_array = {
							array = INS.owned_states_at_game_start
							value = THIS
						}
					}
					create_unit = {
						division = "name = \"Australian Division\" division_template = \"Australian Division\" start_experience_factor = 0.1 start_equipment_factor = 1 start_manpower_factor = 1"
						owner = HOL
						allow_spawning_on_enemy_provs = no
						count = 8
					}
				}
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			division_template={
				name="Australian Division"
				division_names_group="AST_INF_01"
				foreign_template_tag="AST"
				allow_new_equipment=yes
				allow_foreign_equipment=yes
				is_locked = yes
				support={
				}
				regiments={
					infantry={ x=0 y=0 }
					infantry={ x=0 y=1 }
					infantry={ x=0 y=2 }
					infantry={ x=1 y=0 }
					infantry={ x=1 y=1 }
					infantry={ x=1 y=2 }
					infantry={ x=2 y=0 }
					infantry={ x=2 y=1 }
					infantry={ x=2 y=2 }
				}
			}
			if = {
				limit = { has_event_target = INS_dutch_indonesia }
				event_target:INS_dutch_indonesia = {
					random_owned_controlled_state = {
						limit = {
							impassable = no
						}
						prioritize = { 1058 }
						create_unit = {
							division = "name = \"Australian Division\" division_template = \"Australian Division\" start_experience_factor = 0.1 start_equipment_factor = 1 start_manpower_factor = 1"
							owner = HOL
							allow_spawning_on_enemy_provs = no
							count = 8
						}
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						is_in_array = {
							array = INS.owned_states_at_game_start
							value = THIS
						}
					}
					create_unit = {
						division = "name = \"Australian Division\" division_template = \"Australian Division\" start_experience_factor = 0.1 start_equipment_factor = 1 start_manpower_factor = 1"
						owner = HOL
						allow_spawning_on_enemy_provs = no
						count = 8
					}
				}
			}
		}
	}
}

# <National Revolution - Escalation>
joint_focus = {
	id = INSHOL_mass_mobilization
	icon = GFX_focus_SOV_mobilization_plan
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_reasserting_control }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_reasserting_control

	cost = 5

	ai_will_do = {
		base = 1
		modifier = {
			add = 2
			date > 1940.1.1
		}
	}

	search_filters = { FOCUS_FILTER_WAR_SUPPORT }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			add_stability = -0.05
		}
		else_if = {
			limit = { original_tag = HOL }
			indonesia_increase_escalation_1_effect = yes
			add_war_support = 0.1
			if = {
				limit = {
					has_event_target = INS_dutch_indonesia
				}
				event_target:INS_dutch_indonesia = {
					upgrade_economy_law = yes
				}
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			add_stability = -0.05
		}
		else_if = {
			limit = { original_tag = HOL }
			indonesia_increase_escalation_1_effect = yes
			add_war_support = 0.1
			if = {
				limit = {
					has_event_target = INS_dutch_indonesia
				}
				event_target:INS_dutch_indonesia = {
					upgrade_economy_law = yes
				}
			}
		}
	}
}

joint_focus = {
	id = INSHOL_increase_esclation_placeholder
	icon = GFX_focus_PRC_bolshevik_urbanization
	text_icon = INSHOL_INS_focus_style

	available = {
		tag = INS
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
		custom_trigger_tooltip = {
			tooltip = war_escalation_7_or_more_tt
			INS = {
				check_variable = {
					var = INS_war_escalation_level
					value = 7
					compare = greater_than_or_equals
				}
			}
		}
	}

	bypass = {
		OR = {
			if = {
				limit = {
					has_event_target = INS_dutch_indonesia
				}
				has_war_with = event_target:INS_dutch_indonesia
			}
			has_war_with = HOL
		}
	}
	
	will_lead_to_war_with = HOL
	prerequisite = { focus = INSHOL_reasserting_control }
	mutually_exclusive = { }

	x = 3
	y = 3
	relative_position_id = INSHOL_reasserting_control

	cost = 10

	ai_will_do = {
		base = 0.5
		modifier = {
			add = 0.5
			num_of_controlled_states > 3
		}
		modifier = {
			add = 1
			num_of_controlled_states > 4
		}
		modifier = {
			add = 2
			num_of_controlled_states > 5
		}
		modifier = {
			add = 2
			num_of_controlled_states > 6
		}
		modifier = {
			factor = 3
			has_active_mission = INS_militias_railway_pemuda_mission
		}
	}

	search_filters = { FOCUS_FILTER_POLITICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_event_target = INS_dutch_indonesia
				}
				declare_war_on = {
					target = event_target:INS_dutch_indonesia
					type = annex_everything
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			if = {
				limit = {
					has_event_target = INS_dutch_indonesia
				}
				declare_war_on = {
					target = event_target:INS_dutch_indonesia
					type = annex_everything
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
		}
	}
}

joint_focus = {
	id = INSHOL_comite_rijkseenheid
	icon = GFX_focus_INS_comite_rijksenheeid
	text_icon = INSHOL_HOL_focus_style

	available = {
		tag = HOL
		has_war_with = INS
	}
	prerequisite = { focus = INSHOL_increase_esclation_placeholder }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_increase_esclation_placeholder

	cost = 5

	search_filters = { FOCUS_FILTER_HISTORICAL }

	ai_will_do = {
		base = 2
	}

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = idea_HOL_comite_rijksenheeid
			if = {
				limit = {
					has_event_target = INS_dutch_indonesia
				}
				event_target:INS_dutch_indonesia = {
					add_ideas = idea_HOL_comite_rijksenheeid
				}
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			add_ideas = idea_HOL_comite_rijksenheeid
			if = {
				limit = {
					has_event_target = INS_dutch_indonesia
				}
				event_target:INS_dutch_indonesia = {
					add_ideas = idea_HOL_comite_rijksenheeid
				}
			}
		}
	}
}

# <National Revolution - Peace Negotiation>
joint_focus = {
	id = INSHOL_seek_foreign_help
	icon = GFX_focus_generic_diplomatic_treaty
	text_icon = INSHOL_INS_focus_style

	available = {
		tag = INS
		has_war_with = HOL
	}
	prerequisite = { focus = INSHOL_increase_esclation_placeholder }
	mutually_exclusive = { }

	x = 2
	y = 1
	relative_position_id = INSHOL_increase_esclation_placeholder

	cost = 5

	search_filters = { FOCUS_FILTER_POLITICAL }

	ai_will_do = {
		base = 2
		modifier = {
			add = 5
			INS_check_plan_true_historical = yes
		}
	}

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }

			if = {
				limit = {
					country_exists = USA
					NOT = {
						has_war_with = USA 
						is_embargoed_by = USA
						USA = {
							is_in_faction_with = HOL
						}
					}
				}
				if = {
					limit = {
						USA = { has_opinion = { target = ROOT value > 75 } }
					}
					if = {
						limit = {
							has_tech = improved_infantry_weapons
							USA = { has_tech = improved_infantry_weapons }
						}
						add_equipment_to_stockpile = { 
							type = infantry_equipment_2
							amount = var:INS_guns_from_seek_help_focus
							producer = USA
						}
					}
					else = {
						add_equipment_to_stockpile = { 
							type = infantry_equipment_1
							amount = var:INS_guns_from_seek_help_focus
							producer = USA
						}
					}
				}
				else = {
					USA = {
						custom_effect_tooltip = INS_chemical_imports_stolen_tt
					}
				}
			}

			if = {
				limit = {
					country_exists = JAP
					NOT = {
						has_war_with = JAP 
						is_embargoed_by = JAP
						JAP = {
							is_in_faction_with = HOL
						}
					}
				}
				if = {
					limit = {
						JAP = { has_opinion = { target = ROOT value > 75 } }
					}
					if = {
						limit = {
							has_tech = improved_infantry_weapons
							JAP = { has_tech = improved_infantry_weapons }
						}
						add_equipment_to_stockpile = { 
							type = infantry_equipment_2
							amount = var:INS_guns_from_seek_help_focus
							producer = JAP
						}
					}
					else = {
						add_equipment_to_stockpile = { 
							type = infantry_equipment_1
							amount = var:INS_guns_from_seek_help_focus
							producer = JAP
						}
					}
				}
				else = {
					JAP = {
						custom_effect_tooltip = INS_chemical_imports_stolen_tt
					}
				}
			}

			if = {
				limit = {
					country_exists = AST
					NOT = {
						has_war_with = AST 
						is_embargoed_by = AST
						AST = {
							is_in_faction_with = HOL
						}
						HOL = {
							has_completed_focus = INSHOL_australian_divisions
						}
					}
				}
				if = {
					limit = {
						AST = { has_opinion = { target = ROOT value > 75 } }
					}
					if = {
						limit = {
							has_tech = improved_infantry_weapons
							AST = { has_tech = improved_infantry_weapons }
						}
						add_equipment_to_stockpile = { 
							type = infantry_equipment_2
							amount = var:INS_guns_from_seek_help_focus
							producer = AST
						}
					}
					else = {
						add_equipment_to_stockpile = { 
							type = infantry_equipment_1
							amount = var:INS_guns_from_seek_help_focus
							producer = AST
						}
					}
				}
				else = {
					AST = {
						custom_effect_tooltip = INS_chemical_imports_stolen_tt
					}
				}
			}

			if = {
				limit = {
					country_exists = RAJ
					NOT = {
						has_war_with = RAJ 
						is_embargoed_by = RAJ
						RAJ = {
							is_in_faction_with = HOL
						}
						HOL = {
							has_completed_focus = INSHOL_indian_divisions
						}
					}
				}
				if = {
					limit = {
						RAJ = { has_opinion = { target = ROOT value > 75 } }
					}
					if = {
						limit = {
							has_tech = improved_infantry_weapons
							RAJ = { has_tech = improved_infantry_weapons }
						}
						add_equipment_to_stockpile = { 
							type = infantry_equipment_2
							amount = var:INS_guns_from_seek_help_focus
							producer = RAJ
						}
					}
					else = {
						add_equipment_to_stockpile = { 
							type = infantry_equipment_1
							amount = var:INS_guns_from_seek_help_focus
							producer = RAJ
						}
					}
				}
				else = {
					RAJ = {
						custom_effect_tooltip = INS_chemical_imports_stolen_tt
					}
				}
			}

			if = {
				limit = {
					country_exists = CHI
					NOT = {
						has_war_with = CHI 
						is_embargoed_by = CHI
						CHI = {
							is_in_faction_with = HOL
						}
					}
				}
				if = {
					limit = {
						CHI = { has_opinion = { target = ROOT value > 75 } }
					}
					if = {
						limit = {
							has_tech = improved_infantry_weapons
							CHI = { has_tech = improved_infantry_weapons }
						}
						add_equipment_to_stockpile = { 
							type = infantry_equipment_2
							amount = var:INS_guns_from_seek_help_focus
							producer = CHI
						}
					}
					else = {
						add_equipment_to_stockpile = { 
							type = infantry_equipment_1
							amount = var:INS_guns_from_seek_help_focus
							producer = CHI
						}
					}
				}
				else = {
					CHI = {
						custom_effect_tooltip = INS_chemical_imports_stolen_tt
					}
				}
			}

			if = {
				limit = {
					country_exists = PHI
					NOT = {
						has_war_with = PHI 
						is_embargoed_by = PHI
						PHI = {
							is_in_faction_with = HOL
						}
					}
				}
				if = {
					limit = {
						PHI = { has_opinion = { target = ROOT value > 75 } }
					}
					if = {
						limit = {
							has_tech = improved_infantry_weapons
							PHI = { has_tech = improved_infantry_weapons }
						}
						add_equipment_to_stockpile = { 
							type = infantry_equipment_2
							amount = var:INS_guns_from_seek_help_focus
							producer = PHI
						}
					}
					else = {
						add_equipment_to_stockpile = { 
							type = infantry_equipment_1
							amount = var:INS_guns_from_seek_help_focus
							producer = PHI
						}
					}
				}
				else = {
					PHI = {
						custom_effect_tooltip = INS_chemical_imports_stolen_tt
					}
				}
			}


		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			
		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}
}

joint_focus = {
	id = INSHOL_renville_agreement
	icon = GFX_focus_PHI_military_requisitions
	text_icon = INSHOL_INS_focus_style

	available = {
		tag = INS
		has_war_with = HOL
		custom_trigger_tooltip = {
			tooltip = war_escalation_10_or_more_tt
			INS = {
				check_variable = {
					var = INS_war_escalation_level
					value = 10
					compare = greater_than_or_equals
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_seek_foreign_help }
	mutually_exclusive = { focus = INSHOL_no_compromise focus = INSHOL_end_to_bloodshed }

	x = 0
	y = 1
	relative_position_id = INSHOL_seek_foreign_help

	cost = 5

	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_HISTORICAL }

	ai_will_do = {
		base = 2
		modifier = {
			add = 15
			INS_check_plan_true_historical = yes
		}
	}

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			USA = {
				country_event = {
					id = INS_revolution_events.33
					hours = 4
				}
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			USA = {
				country_event = {
					id = INS_revolution_events.33
					hours = 4
				}
			}
			
		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}
}

joint_focus = {
	id = INSHOL_no_compromise
	icon = GFX_focus_INS_no_compromise
	text_icon = INSHOL_INS_focus_style

	available = {
		tag = INS
		has_war_with = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
		custom_trigger_tooltip = {
			tooltip = war_escalation_8_or_more_tt
			INS = {
				check_variable = {
					var = INS_war_escalation_level
					value = 8
					compare = greater_than_or_equals
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_increase_esclation_placeholder }
	mutually_exclusive = { focus = INSHOL_renville_agreement focus = INSHOL_end_to_bloodshed }

	x = -4
	y = 1
	relative_position_id = INSHOL_seek_foreign_help

	cost = 5

	search_filters = { FOCUS_FILTER_POLITICAL }

	ai_will_do = {
		base = 0.2
		modifier = {
			add = 0.5
			num_of_controlled_states > 4
		}
		modifier = {
			add = 2
			num_of_controlled_states > 5
		}
		modifier = {
			add = 2
			num_of_controlled_states > 6
		}
		modifier = {
			add = 1
			strength_ratio = {
				tag = HOL
				ratio > 0.8
			}
		}
		modifier = {
			add = 1
			strength_ratio = {
				tag = HOL
				ratio > 1
			}
		}
		modifier = {
			add = 1
			strength_ratio = {
				tag = HOL
				ratio > 1.2
			}
		}
		modifier = {
			add = 2
			strength_ratio = {
				tag = HOL
				ratio > 1.5
			}
		}
		modifier = {
			add = 4
			strength_ratio = {
				tag = HOL
				ratio > 2
			}
		}
		modifier = {
			add = 10
			strength_ratio = {
				tag = HOL
				ratio > 3
			}
		}
		modifier = {
			factor = 0
			INS_check_plan_true_historical = yes
		}
	}

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			set_country_flag = INS_java_mission_ongoing
			activate_mission_tooltip = INS_take_batavia
			custom_effect_tooltip = INS_take_batavia_explination_tt
			custom_effect_tooltip = newline_tt
			add_timed_idea = {
				idea = INS_no_compromise_idea
				days = 240
			}

			# so you dont instantly win
#			if = {
#				limit = {
#					has_full_control_of_state = 1058
#					has_full_control_of_state = 335
#					has_full_control_of_state = 1051
#				}
#				hidden_effect = {
#					if = {
#						limit = {
#							has_event_target = INS_dutch_indonesia
#						}
#						event_target:INS_dutch_indonesia = {
#							random_owned_controlled_state = {
#								limit = {
#									any_neighbor_state = {
#										is_owned_by = INS
#									}
#									impassable = no
#								}
#								save_global_event_target_as = INS_extra_state_to_take
#							}
#							if = {
#								limit = {
#									NOT = {
#										has_event_target = INS_extra_state_to_take
#									}
#								}
#								random_owned_controlled_state = {
#									save_global_event_target_as = INS_extra_state_to_take
#								}
#							}
#						}
#					}
#				}
#				custom_effect_tooltip = newline_tt
#				custom_effect_tooltip = INS_we_will_need_another_tt
#			}
		}
		else_if = {
			limit = { original_tag = HOL }
			country_event = {
				id = INS_revolution_events.42
				hours = 4
			}
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			set_country_flag = INS_java_mission_ongoing
			activate_mission_tooltip = INS_take_batavia
			custom_effect_tooltip = INS_take_batavia_explination_tt
			custom_effect_tooltip = newline_tt
			add_timed_idea = {
				idea = INS_no_compromise_idea
				days = 240
			}
		}
		else_if = {
			limit = { original_tag = HOL }
			country_event = {
				id = INS_revolution_events.42
				hours = 4
			}
			
		}
	}
}

joint_focus = {
	id = INSHOL_linggadjati_agreement
	icon = GFX_focus_JAP_gather_royal_pacifists_support
	text_icon = INSHOL_INS_focus_style

	available = {
		tag = INS
		has_war_with = HOL
		has_country_flag = INS_revolution_has_started
	}
	prerequisite = { focus = INSHOL_no_compromise }
	mutually_exclusive = { }

	x = 0
	y = 1
	relative_position_id = INSHOL_no_compromise

	cost = 5

	ai_will_do = {
		base = 0
		modifier = {
			add = 3
			has_country_flag = INS_revolution_has_started
		}
	}

	search_filters = { FOCUS_FILTER_POLITICAL }

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INSHOL_increase_esclation_placeholder_tt
		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			custom_effect_tooltip = INSHOL_increase_esclation_placeholder_tt
		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}
}

joint_focus = {
	id = INSHOL_end_to_bloodshed
	icon = GFX_focus_INS_two_state_solution
	text_icon = INSHOL_INS_focus_style

	available = {
		tag = INS
		has_war_with = HOL
		custom_trigger_tooltip = {
			tooltip = INSHOL_revolution_ongoing_tt
			INS = {
				has_country_flag = {
					flag = INS_revolution_has_started
				}
			}
		}
	}
	prerequisite = { focus = INSHOL_increase_esclation_placeholder }
	mutually_exclusive = { focus = INSHOL_renville_agreement focus = INSHOL_no_compromise }

	x = -6
	y = 1
	relative_position_id = INSHOL_seek_foreign_help

	cost = 5

	search_filters = { FOCUS_FILTER_POLITICAL }

	ai_will_do = {
		base = 0
		modifier = {
			add = 0.5
			num_of_controlled_states < 6
		}
		modifier = {
			add = 1
			num_of_controlled_states < 5
		}
		modifier = {
			add = 1.5
			num_of_controlled_states < 4
		}
		modifier = {
			add = 3
			num_of_controlled_states < 3
		}
		modifier = {
			add = 2
			NOT = {
				controls_state = 1058
				controls_state = 335
				controls_state = 1051
			}
		}
		modifier = {
			factor = 0
			INS_check_plan_true_historical = yes
		}
	}

	completion_reward = {
	}

	completion_reward_joint_originator = {
		if = {
			limit = { original_tag = INS }
			HOL = {
				country_event = {
					id = INS_revolution_events.19
					hours = 8
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = INS_end_to_bloodshed_tt
		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}

	completion_reward_joint_member = {
		if = {
			limit = { original_tag = INS }
			HOL = {
				country_event = {
					id = INS_revolution_events.19
					hours = 8
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = INS_end_to_bloodshed_tt
		}
		else_if = {
			limit = { original_tag = HOL }
			
		}
	}
}