

#Tributary state for ALL non-Chinese states - through events / missions - Ottomans and Romans had protectorates/dependencies/tributaries
tributary_state_general = {
	
	copy_from = default
	can_have_great_projects_moved_by_overlord = no

	is_potential_overlord = {
		NOT = { 
			is_subject_of_type = tributary_state_general
		}
		
		NOT = {		#exclusive from vanilla Tributary State
			is_subject_of_type = tributary_state
			OR = {
				has_reform = celestial_empire
				has_government_attribute = has_tributaries
				has_country_flag = can_create_tributaries_flag
				has_country_flag = can_create_tributaries_flag_estate
				is_nomad = yes
				religion_group = eastern
				technology_group = chinese
				technology_group = polynesian_tech
			}
		}
	}
	
	sprite = GFX_subject_tributary_state
	diplomacy_overlord_sprite = GFX_diplomacy_leadtributary
	diplomacy_subject_sprite = GFX_diplomacy_amtributary

	can_fight_independence_war = no
	joins_overlords_wars = no
	joins_colonial_wars = no
	is_voluntary = yes			#can leave whenever
	overlord_can_attack = yes
	takes_diplo_slot = no
	base_liberty_desire = -5
	relative_power_class = 1
	should_quit_wars_on_activation = no
	can_send_tribute = yes
	can_have_subjects_of_other_types = yes
	uses_military_focus = no
	overlord_protects_external = yes
	counts_for_borders = no
	can_use_claims = no
	share_rebel_popup = no
	can_transfer_in_peace = no
	can_set_mil_focus = no
	can_send_missionary_to_subject = no
	overlord_can_fabricate_for = no
	does_overlord_size_count_for_warscore_cost = no
	can_concentrate_development = no
	
	liberty_desire_development_ratio = 0.175
	trust_on_start = 0
	
	overlord_opinion_modifier = is_tributary
	subject_opinion_modifier = is_tributary
	
	can_fight = {
		independent_nations = yes
		same_overlord = tributary_state_general
		other_overlord = all
	}
	can_rival = {
		independent_nations = yes
		same_overlord = tributary_state_general
		other_overlord = all
	}
	can_ally = {
		independent_nations = yes
		same_overlord = tributary_state_general
		other_overlord = all
	}
	can_marry = {
		independent_nations = yes
		same_overlord = tributary_state_general
		other_overlord = all
	}

	# Subject Interactions:
	# (immediate)
	enforce_religion = no
	grant_core_claim = no
	bestow_gifts = yes
	send_additional_troops = yes
	demand_artifacts = yes
	demand_additional_tribute = yes
	block_settlement_growth = no
	allow_settlement_growth = no
	placate_rulers = no
	knowledge_sharing = no
	# (continuous)
	embargo_rivals = no

	# Modifiers:
	modifier_subject = clear # Tributaries don't get the ordinary subject_nation penalty 
	modifier_subject = {
		modifier = tributary_state_behind_overlord_tech_adm
		trigger = {
			ROOT = {
				NOT = { adm_tech = FROM }
			}
		}
	}
	modifier_subject = {
		modifier = tributary_state_behind_overlord_tech_dip
		trigger = {
			ROOT = {
				NOT = { dip_tech = FROM }
			}
		}
	}
	modifier_subject = {
		modifier = tributary_state_behind_overlord_tech_mil
		trigger = {
			ROOT = {
				NOT = { mil_tech = FROM }
			}
		}
	}
}


trade_company_subject = {
	
	copy_from = default

	is_potential_overlord = {
		has_institution = global_trade
	}
	
	sprite = GFX_subject_tradecompany_icon		#in vanilla
	diplomacy_overlord_sprite = GFX_subject_tradecompany_icon
	diplomacy_subject_sprite = GFX_subject_tradecompany_icon

	can_fight_independence_war = yes
	joins_overlords_wars = yes
	is_voluntary = no			#can't cancel subject
	takes_diplo_slot = no
	base_liberty_desire = -5
	can_release_in_peace = no			#can't be released, like colonies
	can_have_subjects_of_other_types = yes
	uses_military_focus = no
	overlord_protects_external = yes
	counts_for_borders = no
	can_use_claims = no
	share_rebel_popup = yes
	can_transfer_in_peace = no
	can_set_mil_focus = no
	can_send_missionary_to_subject = yes
	overlord_can_fabricate_for = yes
	can_concentrate_development = no
	transfer_trade_power = yes			#Trade Emphasis
	extend_trading_range = yes
	forms_trade_companies = no
	
	liberty_desire_development_ratio = 0.1
	max_government_rank = 1
	
	overlord_opinion_modifier = trade_company_subject_relation
	subject_opinion_modifier = trade_company_subject_relation
	
	can_fight = {
		independent_nations = yes		#Can fight own wars, make own allies (ex: Mughals), and have local rivals
		other_overlord = all
		neighboring_primitives = yes
	}
	can_rival = {
		independent_nations = yes
		other_overlord = all
		neighboring_primitives = yes
	}
	can_ally = {
		independent_nations = yes
		other_overlord = all
		neighboring_primitives = yes
	}
	
	# Subject Interactions:
	# (immediate)
	enforce_religion = no
	grant_core_claim = no
	send_additional_troops = yes
	block_settlement_growth = no
	allow_settlement_growth = no
	placate_rulers = no
	knowledge_sharing = yes
	# (continuous)
	embargo_rivals = yes
	increase_tariffs = yes
	decrease_tariffs = yes
	
}

#Foederatus / Foederati - for Pontus / Bosporan Kingdom and other future Roman vassal missions
foederatus_subject = {

	copy_from = default
	
	sprite = GFX_icon_march
	diplomacy_overlord_sprite = GFX_diplomacy_leadmarch
	diplomacy_subject_sprite = GFX_diplomacy_weakmarch

	is_potential_overlord = {
		NOT = { 
			is_subject_of_type = foederatus_subject
		}
	}

	# Properties:
	military_focus = 1.5
	has_power_projection = no
	gets_help_with_rebels = yes
	overlord_can_fabricate_for = no
	
	base_liberty_desire = -5
	liberty_desire_development_ratio = 0.175
	liberty_desire_same_dynasty = -5.0
	
	can_be_annexed = no
	
	forcelimit_to_overlord = 0.2

	max_government_rank = 2
	trust_on_start = 10

	can_fight_independence_war = yes
	joins_overlords_wars = yes
	joins_colonial_wars = yes
	relative_power_class = 2
	
	can_have_subjects_of_other_types = yes
	overlord_protects_external = yes
	counts_for_borders = no
	can_use_claims = no
	can_transfer_in_peace = no
	can_send_missionary_to_subject = no
	should_quit_wars_on_activation = no
	does_overlord_size_count_for_warscore_cost = no		#fights own wars, so warscore unaffected by overlord
	can_concentrate_development = no
	
	overlord_opinion_modifier = is_vassal
	subject_opinion_modifier = is_vassal
	
	can_fight = {
		independent_nations = yes
		same_overlord = foederatus_subject
		other_overlord = all
	}
	can_rival = {
		independent_nations = yes
		same_overlord = foederatus_subject
		other_overlord = all
	}
	can_ally = {
		independent_nations = yes
		same_overlord = foederatus_subject
		other_overlord = all
	}
	can_marry = {
		independent_nations = yes
		same_overlord = foederatus_subject
		other_overlord = all
	}

	# Subject Interactions:
	# (immediate)
	subsidize_armies = yes
	fortify_march = yes
	
	enforce_religion = no
	bestow_gifts = yes
	send_additional_troops = yes
	demand_artifacts = yes
	block_settlement_growth = no
	allow_settlement_growth = no
	placate_rulers = no
	knowledge_sharing = no
	# (continuous)
	embargo_rivals = no
	
}

#Fanzhen / Jiedushi
fanzhen_subject = {

	copy_from = default
	
	sprite = GFX_icon_march
	diplomacy_overlord_sprite = GFX_diplomacy_leadmarch
	diplomacy_subject_sprite = GFX_diplomacy_weakmarch

	is_potential_overlord = {
		NOT = { 
			is_subject_of_type = fanzhen_subject
		}
	}

	# Properties:
	has_power_projection = yes
	gets_help_with_rebels = no
	separatists_become_subjects = yes
	allows_taking_land_without_independence = yes
	overlord_can_fabricate_for = no
	
	trust_on_start = 0
	
	base_liberty_desire = 10
	military_focus = 1.5
	relative_power_class = 1
	should_quit_wars_on_activation = yes
	
	liberty_desire_development_ratio = 0.175
	liberty_desire_same_dynasty = -5.0
	
	can_be_annexed = no
	
	forcelimit_to_overlord = 0.2

	max_government_rank = 2

	can_fight_independence_war = yes
	joins_overlords_wars = yes
	joins_colonial_wars = yes
	
	can_have_subjects_of_other_types = yes
	overlord_protects_external = yes
	counts_for_borders = no
	can_use_claims = no
	can_transfer_in_peace = no
	can_send_missionary_to_subject = no
	should_quit_wars_on_activation = no
	does_overlord_size_count_for_warscore_cost = no		#fights own wars, so warscore unaffected by overlord
	can_concentrate_development = no
	
	overlord_opinion_modifier = is_vassal
	subject_opinion_modifier = is_vassal
	
	can_fight = {
		independent_nations = yes
		same_overlord = fanzhen_subject
		other_overlord = all
	}
	can_rival = {
		independent_nations = yes
		same_overlord = fanzhen_subject
		other_overlord = all
	}
	can_ally = {
		independent_nations = yes
		same_overlord = fanzhen_subject
		other_overlord = all
	}
	can_marry = {
		independent_nations = yes
		same_overlord = fanzhen_subject
		other_overlord = all
	}

	# Subject Interactions:
	# (immediate)
	subsidize_armies = yes
	scutage = no
	grant_core_claim = yes
	grant_province = yes
	place_relative_on_throne = no
	enforce_religion = no
	enforce_culture = no
	seize_territory = no
	bestow_gifts = yes
	send_additional_troops = yes
	demand_artifacts = no
	block_settlement_growth = no
	allow_settlement_growth = no
	placate_rulers = yes
	knowledge_sharing = no
	return_land = yes
	# (continuous)
	embargo_rivals = no
	
	# Modifiers
	
	modifier_overlord = clear #We don't want to duplicate the ones inherited from vassal
	modifier_subject = clear #Ditto
	modifier_subject = {
		modifier = subject_nation
	}
	modifier_overlord = {
		modifier = daimyo_subject
	}
	
}
