namespace = CTS
character_event = {
	id = CTS.001
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		any_realm_province = { # any_demesne_province (보유 작위 영역, 봉신 작위 영역 제외) or any_realm_province (보유 전체 영역)
			if = { limit = { has_hospital = no } build_holding = { type = hospital } }
			if = { limit = { NOT = { hospital_has_building = hospital_building_1 } } add_to_extra_holding = { type = hospital building = hospital_building_1 } }
			if = { limit = { NOT = { hospital_has_building = hospital_building_2 } } add_to_extra_holding = { type = hospital building = hospital_building_2 } }
			if = { limit = { NOT = { hospital_has_building = hospital_building_3 } } add_to_extra_holding = { type = hospital building = hospital_building_3 } }
			if = { limit = { NOT = { hospital_has_building = hospital_building_4 } } add_to_extra_holding = { type = hospital building = hospital_building_4 } }
			if = { limit = { NOT = { hospital_has_building = hospital_building_5 } } add_to_extra_holding = { type = hospital building = hospital_building_5 } }
			if = { limit = { NOT = { hospital_has_building = leper_colony_1 } } add_to_extra_holding = { type = hospital building = leper_colony_1 } }
			if = { limit = { NOT = { hospital_has_building = soup_kitchen_1 } } add_to_extra_holding = { type = hospital building = soup_kitchen_1 } }
			if = { limit = { NOT = { hospital_has_building = chapel_1 } } add_to_extra_holding = { type = hospital building = chapel_1 } }
			if = { limit = { NOT = { hospital_has_building = translation_house_1 } } add_to_extra_holding = { type = hospital building = translation_house_1 } }
			if = { limit = { NOT = { hospital_has_building = pilgrims_inn_1 } } add_to_extra_holding = { type = hospital building = pilgrims_inn_1 } }
			if = { limit = { NOT = { hospital_has_building = library_1 } } add_to_extra_holding = { type = hospital building = library_1 } }
			if = { limit = { NOT = { hospital_has_building = pharmacology_laboratory_1 } } add_to_extra_holding = { type = hospital building = pharmacology_laboratory_1 } }
			if = { limit = { NOT = { hospital_has_building = medical_academy_1 } } add_to_extra_holding = { type = hospital building = medical_academy_1 } }
			if = { limit = { NOT = { hospital_has_building = observatory_1 } } add_to_extra_holding = { type = hospital building = observatory_1 } }

# 교역소
#			if = { limit = { has_trade_post = no } build_holding = { type = trade_post } }
#			if = { limit = { NOT = { trade_post_has_building = tr_port_1 } } add_to_extra_holding = { type = trade_post building = tr_port_1 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_port_2 } } add_to_extra_holding = { type = trade_post building = tr_port_2 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_port_3 } } add_to_extra_holding = { type = trade_post building = tr_port_3 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_enclave_1 } } add_to_extra_holding = { type = trade_post building = tr_enclave_1 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_enclave_2 } } add_to_extra_holding = { type = trade_post building = tr_enclave_2 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_enclave_3 } } add_to_extra_holding = { type = trade_post building = tr_enclave_3 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_garrison_1 } } add_to_extra_holding = { type = trade_post building = tr_garrison_1 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_garrison_2 } } add_to_extra_holding = { type = trade_post building = tr_garrison_2 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_garrison_3 } } add_to_extra_holding = { type = trade_post building = tr_garrison_3 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_silk_road_1 } } add_to_extra_holding = { type = trade_post building = tr_silk_road_1 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_silk_road_2 } } add_to_extra_holding = { type = trade_post building = tr_silk_road_2 } }
#			if = { limit = { NOT = { trade_post_has_building = tr_silk_road_3 } } add_to_extra_holding = { type = trade_post building = tr_silk_road_3 } }
		}
	}
}

#########################################
#
# id = CTS.101
# 모든 직할 작위의 법을 개정합니다.
#
#########################################
character_event = {
	id = CTS.101
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		any_demesne_title = {
			limit = { higher_tier_than = baron }
			# 왕권법 변경
			# crown_authority_0
			# crown_authority_1
			# crown_authority_2
			# crown_authority_3
			# crown_authority_4
			if = { limit = { NOT = { has_law = crown_authority_4 } } add_law = { law = crown_authority_4 cooldown = no opinion_effect = no } }
			
			# 주교서임법 변경
			# investiture_law_0
			# investiture_law_1
			if = { limit = { NOT = { has_law = investiture_law_1 } } add_law = { law = investiture_law_1 cooldown = no opinion_effect = no } }
			
			# 중앙집권법 변경
			# centralization_0
			# centralization_1
			# centralization_2
			# centralization_3
			# centralization_4
			if = { limit = { NOT = { has_law = centralization_4 } } add_law = { law = centralization_4 cooldown = no opinion_effect = no } }
			
			# 부족조직화법 변경
			# tribal_organization_0
			# tribal_organization_1
			# tribal_organization_2
			# tribal_organization_3
			# tribal_organization_4
			if = { limit = { NOT = { has_law = tribal_organization_4 } } add_law = { law = tribal_organization_4 cooldown = no opinion_effect = no } }
			
			# 자문회 권리법 변경
			if = { limit = { has_law = law_voting_power_1 } add_law = { law = law_voting_power_0 cooldown = no opinion_effect = no } }
			if = { limit = { has_law = war_voting_power_1 } add_law = { law = war_voting_power_0 cooldown = no opinion_effect = no } }
			if = { limit = { has_law = revoke_title_voting_power_1 } add_law = { law = revoke_title_voting_power_0 cooldown = no opinion_effect = no } }
			if = { limit = { has_law = imprison_voting_power_1 } add_law = { law = imprison_voting_power_0 cooldown = no opinion_effect = no } }
			if = { limit = { has_law = grant_title_voting_power_1 } add_law = { law = grant_title_voting_power_0 cooldown = no opinion_effect = no } }
			if = { limit = { has_law = banish_voting_power_1 } add_law = { law = banish_voting_power_0 cooldown = no opinion_effect = no } }
			if = { limit = { has_law = execution_voting_power_1 } add_law = { law = execution_voting_power_0 cooldown = no opinion_effect = no } }
			if = { limit = { has_law = succession_voting_power_1 } add_law = { law = succession_voting_power_0 cooldown = no opinion_effect = no } }
			
			# 국외 상속법 변경
			# out_of_realm_inheritance_law_0
			# out_of_realm_inheritance_law_1
			if = { limit = { NOT = { has_law = out_of_realm_inheritance_law_1 } } add_law = { law = out_of_realm_inheritance_law_1 cooldown = no opinion_effect = no } }
			
			# 봉신간 전쟁법 변경
			# vassal_wars_law_0
			# vassal_wars_law_1
			# vassal_wars_law_2
			if = { limit = { NOT = { has_law = vassal_wars_law_2 } } add_law = { law = vassal_wars_law_2 cooldown = no opinion_effect = no } }
			
			# 여성권리법 변경
			# status_of_women_0
			# status_of_women_1
			# status_of_women_2
			# status_of_women_3
			# status_of_women_4
			if = { limit = { NOT = { has_law = status_of_women_4 } } add_law = { law = status_of_women_4 cooldown = no opinion_effect = no } }
			
			# 작위회수법 변경
			# revoke_title_law_0
			# revoke_title_law_1
			# revoke_title_law_2
			if = { limit = { NOT = { has_law = revoke_title_law_2 } } add_law = { law = revoke_title_law_2 cooldown = no opinion_effect = no } }
			
			# 지방관 임명법 변경
			# vice_royalty_0
			# vice_royalty_1
			# vice_royalty_2
			if = { limit = { NOT = { has_law = vice_royalty_2 } } add_law = { law = vice_royalty_2 cooldown = no opinion_effect = no } }
			
			# 행정법 변경
			# feudal_administration
			# imperial_administration
			if = { limit = { NOT = { has_law = imperial_administration } } add_law = { law = imperial_administration cooldown = no opinion_effect = no } }
			# ze_administration_laws_0
			# ze_administration_laws_1
			# ze_administration_laws_2
			if = { limit = { NOT = { has_law = ze_administration_laws_2 } } add_law = { law = ze_administration_laws_2 cooldown = no opinion_effect = no } }
			
			# 계승법 변경
			# succ_gavelkind			gavelkind			분할 상속제
			# succ_elective_gavelkind	elective_gavelkind	선거 분할 상속제
			# succ_seniority			seniority			연장자 상속제
			# succ_primogeniture		primogeniture		장자 상속제
			# succ_feudal_elective		feudal_elective	봉건 선거제
			# succ_tanistry			tanistry			족장 후계자
			# succ_ultimogeniture		ultimogeniture		말자 상속제
			#succession = seniority
			add_law = { law = succ_seniority cooldown = no opinion_effect = no }
			#add_law = { law = succ_primogeniture cooldown = no opinion_effect = no }
			
			# 성별법 변경
			# cognatic_succession		cognatic			남성 우선 계승
			# agnatic_succession		agnatic			남성 계승
			# true_cognatic_succession	true_cognatic		양성 평등 계승
			# enatic_succession			enatic			여성 계승
			# enatic_cognatic_succession	enatic_cognatic	여성 우선 계승
			#gender_succ = cognatic
			add_law = { law = cognatic_succession cooldown = no opinion_effect = no }
			#add_law = { law = agnatic_succession cooldown = no opinion_effect = no }
			
			#recalc_succession = yes
		}
	}
}


#########################################
#
# id = CTS.102
# 모든 봉신 작위의 법을 개정합니다.
#
#########################################
character_event = {
	id = CTS.102
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		any_demesne_title = { any_de_jure_vassal_title = {
			limit = { higher_tier_than = baron owner = { ai = yes } }
			# 왕권법 변경
			# crown_authority_0
			# crown_authority_1
			# crown_authority_2
			# crown_authority_3
			# crown_authority_4
			#if = { limit = { NOT = { has_law = crown_authority_4 } } add_law = { law = crown_authority_4 cooldown = no opinion_effect = no } }
			
			# 주교서임법 변경
			# investiture_law_0
			# investiture_law_1
			#if = { limit = { NOT = { has_law = investiture_law_1 } } add_law = { law = investiture_law_1 cooldown = no opinion_effect = no } }
			
			# 중앙집권법 변경
			# centralization_0
			# centralization_1
			# centralization_2
			# centralization_3
			# centralization_4
			#if = { limit = { NOT = { has_law = centralization_4 } } add_law = { law = centralization_4 cooldown = no opinion_effect = no } }
			
			# 부족조직화법 변경
			# tribal_organization_0
			# tribal_organization_1
			# tribal_organization_2
			# tribal_organization_3
			# tribal_organization_4
			#if = { limit = { NOT = { has_law = tribal_organization_4 } } add_law = { law = tribal_organization_4 cooldown = no opinion_effect = no } }
			
			# 자문회 권리법 변경
			#if = { limit = { has_law = law_voting_power_1 } add_law = { law = law_voting_power_0 cooldown = no opinion_effect = no } }
			#if = { limit = { has_law = war_voting_power_1 } add_law = { law = war_voting_power_0 cooldown = no opinion_effect = no } }
			#if = { limit = { has_law = revoke_title_voting_power_1 } add_law = { law = revoke_title_voting_power_0 cooldown = no opinion_effect = no } }
			#if = { limit = { has_law = imprison_voting_power_1 } add_law = { law = imprison_voting_power_0 cooldown = no opinion_effect = no } }
			#if = { limit = { has_law = grant_title_voting_power_1 } add_law = { law = grant_title_voting_power_0 cooldown = no opinion_effect = no } }
			#if = { limit = { has_law = banish_voting_power_1 } add_law = { law = banish_voting_power_0 cooldown = no opinion_effect = no } }
			#if = { limit = { has_law = execution_voting_power_1 } add_law = { law = execution_voting_power_0 cooldown = no opinion_effect = no } }
			#if = { limit = { has_law = succession_voting_power_1 } add_law = { law = succession_voting_power_0 cooldown = no opinion_effect = no } }
			
			# 국외 상속법 변경
			# out_of_realm_inheritance_law_0
			# out_of_realm_inheritance_law_1
			if = { limit = { NOT = { has_law = out_of_realm_inheritance_law_1 } } add_law = { law = out_of_realm_inheritance_law_1 cooldown = no opinion_effect = no } }
			
			# 봉신간 전쟁법 변경
			# vassal_wars_law_0
			# vassal_wars_law_1
			# vassal_wars_law_2
			if = { limit = { NOT = { has_law = vassal_wars_law_2 } } add_law = { law = vassal_wars_law_2 cooldown = no opinion_effect = no } }
			
			# 여성권리법 변경
			# status_of_women_0
			# status_of_women_1
			# status_of_women_2
			# status_of_women_3
			# status_of_women_4
			if = { limit = { NOT = { has_law = status_of_women_4 } } add_law = { law = status_of_women_4 cooldown = no opinion_effect = no } }
			
			# 작위회수법 변경
			# revoke_title_law_0
			# revoke_title_law_1
			# revoke_title_law_2
			#if = { limit = { NOT = { has_law = revoke_title_law_2 } } add_law = { law = revoke_title_law_2 cooldown = no opinion_effect = no } }
			
			# 지방관 임명법 변경
			# vice_royalty_0
			# vice_royalty_1
			# vice_royalty_2
			#if = { limit = { NOT = { has_law = vice_royalty_2 } } add_law = { law = vice_royalty_2 cooldown = no opinion_effect = no } }
			
			# 행정법 변경
			# feudal_administration
			# imperial_administration
			#if = { limit = { NOT = { has_law = imperial_administration } } add_law = { law = imperial_administration cooldown = no opinion_effect = no } }
			# ze_administration_laws_0
			# ze_administration_laws_1
			# ze_administration_laws_2
			#if = { limit = { NOT = { has_law = ze_administration_laws_2 } } add_law = { law = ze_administration_laws_2 cooldown = no opinion_effect = no } }
			
			# 계승법 변경
			# succ_gavelkind			gavelkind			분할 상속제
			# succ_elective_gavelkind	elective_gavelkind	선거 분할 상속제
			# succ_seniority			seniority			연장자 상속제
			# succ_primogeniture		primogeniture		장자 상속제
			# succ_feudal_elective		feudal_elective	봉건 선거제
			# succ_tanistry			tanistry			족장 후계자
			# succ_ultimogeniture		ultimogeniture		말자 상속제
			#succession = seniority
			#add_law = { law = succ_seniority cooldown = no opinion_effect = no } }
			#add_law = { law = succ_primogeniture cooldown = no opinion_effect = no }
			
			# 성별법 변경
			# cognatic_succession		cognatic			남성 우선 계승
			# agnatic_succession		agnatic			남성 계승
			# true_cognatic_succession	true_cognatic		양성 평등 계승
			# enatic_succession			enatic			여성 계승
			# enatic_cognatic_succession	enatic_cognatic	여성 우선 계승
			#gender_succ = enatic
			add_law = { law = enatic_succession cooldown = no opinion_effect = no }
			#add_law = { law = agnatic_succession cooldown = no opinion_effect = no }
			
			#recalc_succession = yes
		} }
	}
}
