﻿REPLACE:honorary_titles_bureaucracy = {
	implementation_price = price:implement_bureaucracy_price
	maintenance_price = price:maintain_bureaucracy_price
	removal_price = price:remove_bureaucracy_price
	maintenance_price_modifier = {
		value = country_economical_base
		multiply = 0.003
	}

	estates_that_like = {
		nobles_estate
		crown_estate
	}
	estates_that_dislike = {
		burghers_estate
	}

	potential = {
		has_dlc = "d008_fate_of_the_phoenix"
	}

	#neutral
	neutral_modifier = {
		country_cabinet_efficiency = 0.1
	}

	#positive
	positive_modifier = {
		scale = { value = scope:maintenance }
		global_estate_target_satisfaction = small_permanent_target_satisfaction
	}

	#negative
	negative_modifier = {
		scale = {
			value = 1
			subtract = scope:maintenance
		}
		global_estate_satisfaction_from_legitimacy = -0.1
	}
}

REPLACE:court_eunuchs_bureaucracy = {
	implementation_price = price:implement_bureaucracy_price
	maintenance_price = price:maintain_bureaucracy_price
	removal_price = price:remove_bureaucracy_price
	maintenance_price_modifier = {
		value = country_economical_base
		multiply = 0.003
	}

	estates_that_like = {
		crown_estate
		clergy_estate
	}
	estates_that_dislike = {
		nobles_estate
	}

	potential = {
		has_dlc = "d008_fate_of_the_phoenix"
	}

	#neutral
	neutral_modifier = {
		may_hire_eunuch_advisors = yes
	}

	#positive
	positive_modifier = {
		scale = { value = scope:maintenance }
		country_child_education = 0.1
		global_monthly_literacy = 0.01
	}

	#negative
	negative_modifier = {
		scale = {
			value = 1
			subtract = scope:maintenance
		}
		stability_decay = 0.0025
	}
}

REPLACE:ritualistic_court_bureaucracy = {
	implementation_price = price:implement_bureaucracy_price
	maintenance_price = price:maintain_bureaucracy_price
	removal_price = price:remove_bureaucracy_price
	maintenance_price_modifier = {
		value = country_economical_base
		multiply = 0.003
	}
	potential = {
		has_dlc = "d008_fate_of_the_phoenix"
	}

	estates_that_like = {
		crown_estate
		clergy_estate
	}
	estates_that_dislike = {
		burghers_estate
	}

	#neutral
	neutral_modifier = {
		monthly_legitimacy = 0.1
		monthly_republican_tradition = 0.1
	}

	#positive
	positive_modifier = {
		scale = { value = scope:maintenance }
		diplomatic_reputation = 1
		annexation_speed_modifier = 0.15
		cultural_influence_modifier = 0.2
	}

	#negative
	negative_modifier = {
		scale = {
			value = 1
			subtract = scope:maintenance
		}
		global_estate_target_satisfaction = medium_permanent_target_satisfaction_penalty
	}
}

REPLACE:imperial_senate_bureaucracy = {
	implementation_price = price:implement_bureaucracy_price
	maintenance_price = price:maintain_bureaucracy_price
	removal_price = price:remove_bureaucracy_price
	maintenance_price_modifier = {
		value = country_economical_base
		multiply = 0.003
	}

	potential = {
		has_dlc = "d008_fate_of_the_phoenix"
	}

	estates_that_like = {
		nobles_estate
	}
	estates_that_dislike = {
		crown_estate
	}

	#neutral
	neutral_modifier = {
		parliament_duration_modifier = 0.5
	}

	#positive
	positive_modifier = {
		scale = { value = scope:maintenance }
		parliament_base_support = 0.1
		num_local_governors = 1
	}

	#negative
	negative_modifier = {
		scale = {
			value = 1
			subtract = scope:maintenance
		}
		monthly_legitimacy = -0.2
		monthly_republican_tradition = -0.2
	}
}

REPLACE:kephalai_bureaucracy = {
	implementation_price = price:implement_bureaucracy_price
	maintenance_price = price:maintain_bureaucracy_price
	removal_price = price:remove_bureaucracy_price
	maintenance_price_modifier = {
		value = country_economical_base
		multiply = 0.003
	}

	potential = {
		has_dlc = "d008_fate_of_the_phoenix"
	}

	allow = {
	}

	estates_that_like = {
		crown_estate
		burghers_estate
	}
	estates_that_dislike = {
		nobles_estate
	}

	#neutral
	neutral_modifier = {
		government_size = 1
	}

	#positive
	positive_modifier = {
		scale = { value = scope:maintenance }
		global_crown_estate_power = 0.25
	}

	#negative
	negative_modifier = {
		scale = {
			value = 1
			subtract = scope:maintenance
		}
		estate_enrichment = 0.2
		global_non_rural_monthly_prosperity = -0.002
	}
}

REPLACE:magister_militum_bureaucracy = {
	implementation_price = price:implement_bureaucracy_price
	maintenance_price = price:maintain_bureaucracy_price
	removal_price = price:remove_bureaucracy_price
	maintenance_price_modifier = {
		value = country_economical_base
		multiply = 0.003
	}

	potential = {
		has_dlc = "d008_fate_of_the_phoenix"
	}

	allow = {
	}

	estates_that_like = {
		crown_estate
		burghers_estate
	}
	estates_that_dislike = {
		nobles_estate
	}

	#neutral
	neutral_modifier = {
		monthly_army_tradition = 0.2
		monthly_navy_tradition = 0.2
	}

	#positive
	positive_modifier = {
		scale = { value = scope:maintenance }

		train_general_ability = 25
		train_admiral_ability = 25
		military_tactics = 0.2
	}

	#negative
	negative_modifier = {
		scale = {
			value = 1
			subtract = scope:maintenance
		}
		monthly_legitimacy = -0.2
		global_nobles_estate_power = 0.5
	}
}

REPLACE:allelengyon_bureaucracy = {
	implementation_price = price:implement_bureaucracy_price
	maintenance_price = price:maintain_bureaucracy_price
	removal_price = price:remove_bureaucracy_price
	maintenance_price_modifier = {
		value = country_economical_base
		multiply = 0.003
	}

	potential = {
		has_dlc = "d008_fate_of_the_phoenix"
	}

	allow = {
		OR = {
			custom_tooltip = {
				text = won_fate_of_the_phoenix_disaster_tt
				has_variable = won_fate_of_the_phoenix_disaster_variable
			}

			AND = {
				has_or_had_tag = TRE
				owns = location:constantinople
			}

		}
	}

	estates_that_like = {
		peasants_estate
	}
	estates_that_dislike = {
		nobles_estate
		burghers_estate
	}

	#neutral
	neutral_modifier = {
		estate_enrichment = -0.3
		global_peasant_enfranchisment = 0.05
	}

	#positive
	positive_modifier = {
		scale = { value = scope:maintenance }
		global_monthly_prosperity = 0.0025
	}

	#negative
	negative_modifier = {
		scale = {
			value = 1
			add = scope:entrenchment
			multiply = { value = 1 subtract = scope:maintenance }
		}
		global_monthly_development = -0.001
	}
}

