# cost is the Meritocracy cost
# duration is in days
# ai_will_do has to be 10 for AI to do it (with >=99 Meritocracy).

expand_bureaucracy_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		development_cost = -1.0
		core_creation = -1.0
	}
	effect = {
		if = {
			limit = { has_country_flag = mng_expanded_palace_bureaucracy_flag }
			add_country_modifier = {
				name = eoc_expanded_palace_bureaucracy_modifier
				duration = 3650
			}
		}
	}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

conduct_census_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		global_tax_modifier = 2.5
		state_governing_cost = -1
	}
	effect = {
		if = {
			limit = { has_country_flag = mng_empowered_pop_census_flag }
			add_country_modifier = {
				name = eoc_census_modifier
				duration = 3650
			}
		}
	}
	removed_effect = {}
	ai_will_do = {
		factor = 100
		modifier = {
			factor = 0.1
			NOT = { tax_income_percentage = 0.25 }
		}
		modifier = {
			factor = 1.5
			tax_income_percentage = 0.3
		}
		modifier = {
			factor = 1.5
			tax_income_percentage = 0.35
		}
		modifier = {
			factor = 1.5
			tax_income_percentage = 0.4
		}
		modifier = {
			factor = 1.5
			tax_income_percentage = 0.45
		}
		modifier = {
			factor = 1.5
			tax_income_percentage = 0.5
		}
		modifier = {
			factor = 1.5
			tax_income_percentage = 0.55
		}
		modifier = {
			factor = 1.5
			tax_income_percentage = 0.6
		}
	}
}

promote_naval_officers_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		ship_durability = 1
		naval_morale = 1
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 50
		modifier = {
			factor = 3
			navy_tradition = 50
		}
	}
}

increase_tariff_control_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		global_prov_trade_power_modifier = 2.5
		global_own_trade_power = 1
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
		modifier = {
			factor = 0.1
			NOT = { trade_income_percentage = 0.25 }
		}
		modifier = {
			factor = 1.5
			trade_income_percentage = 0.3
		}
		modifier = {
			factor = 1.5
			trade_income_percentage = 0.35
		}
		modifier = {
			factor = 1.5
			trade_income_percentage = 0.4
		}
		modifier = {
			factor = 1.5
			trade_income_percentage = 0.45
		}
		modifier = {
			factor = 1.5
			trade_income_percentage = 0.5
		}
		modifier = {
			factor = 1.5
			trade_income_percentage = 0.55
		}
		modifier = {
			factor = 1.5
			trade_income_percentage = 0.6
		}
	}
}

improve_defence_effort_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = { 
		defensiveness = 2.5
		fort_maintenance_modifier = -1
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 50
		modifier = {
			factor = 2
			is_in_important_war = yes
		}
	}
}

boost_officer_corps_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		infantry_power = 1
		reinforce_speed = 2.5
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
		modifier = {
			factor = 0.1
			is_at_war = no
		}
		modifier = {
			factor = 10
			is_in_important_war = yes
		}
	}
}

####################################
# New Decrees for 1.35 made by     #
# Big Boss                  #
####################################

fund_new_centers_of_education_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		technology_cost = -1
		global_institution_spread = 2.5 
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

proclaim_dynastic_name_decree = { 
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		imperial_mandate = 0.5 
		all_estate_loyalty_equilibrium = 0.1
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

issue_the_great_warnings_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		all_estate_influence_modifier = -0.1
		yearly_corruption = -1
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

# encourage_the_dockyard_industry = {
	# cost = 20
	# duration = 3650
	# modifier = {
		# global_ship_recruit_speed = -0.2
		# global_ship_cost = -0.1
	# }
	# ai_will_do = {
		# factor = 100
	# }
# }

six_ordinances_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		reduced_liberty_desire = 100
		global_unrest = -20
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

sacred_edict_of_confucianism_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		harmonization_speed = 2.5
		monthly_karma = -0.05
		years_of_nationalism = -50
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

promote_taoist_studies_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		church_loyalty_modifier = 0.1
		monarch_lifespan = 2.5 
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

appoint_entrusted_eunuchs_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		eunuchs_loyalty_modifier = 0.1
		advisor_cost = -1.5
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

# enforce_haijin_policy_decree = {  
	# cost = 20
	# duration = 3650
	# modifier = {
		# burghers_loyalty_modifier = 0.1
		# trade_efficiency = 0.15
	# }
	# ai_will_do = {
		# factor = 100
	# }
# }

increase_trade_cooperation_decree = { 
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		reduced_trade_penalty_on_non_main_tradenode = 2.5
		innovativeness_gain = 5
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

reinforce_the_inner_guard_decree = {
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		global_spy_defence = 3.3
		improve_relation_modifier = 2
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

# exile_lawless_bureaucrats_decree = {
	# cost = 20
	# duration = 3650
	# modifier = {
		# meritocracy = 0.33 
		# colonist_placement_chance = 0.15
	# }
	# ai_will_do = {
		# factor = 100
	# }
# }

# encourage_homogenity_decree = {
	# cost = 20
	# duration = 3650
	# modifier = {
		# culture_conversion_cost = -0.2
		# culture_conversion_speed = 0.5 
	# }
	# ai_will_do = {
		# factor = 100
	# }
# }

issue_bureaucratic_imperial_seal = { 
	cost = 20
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		min_autonomy = -50
		global_autonomy = -0.5
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

