# 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 = 15
	duration = 3650
	potential = {
		NOT = { has_country_flag = mng_expanded_palace_bureaucracy_flag } 
	}
	trigger = {
	}
	modifier = {
		development_cost = -0.1
		core_creation = -0.25
		governing_capacity_modifier = 0.15
	}
	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
	}
}

improved_expand_bureaucracy_decree = {
	cost = 15
	duration = 3650
	potential = {
		custom_trigger_tooltip = { 
			tooltip = has_unlocked_this_decree_tt
			has_country_flag = mng_expanded_palace_bureaucracy_flag
		}
	}
	trigger = {
	}
	modifier = {
		development_cost = -0.15
		core_creation = -0.25
		advisor_cost = -0.10
	}
	effect = {
		
	}
	removed_effect = {}
	ai_will_do = {
		factor = 10
	}
}

improved_conduct_census_decree = {
	cost = 15
	duration = 3650
	potential = {
		has_country_flag = mng_empowered_pop_census_flag
	}
	trigger = {
	}
	modifier = {
		global_tax_modifier = 0.25
		state_governing_cost = -0.15
		country_admin_power = 1 
	}
	effect = {
	}
	removed_effect = {}
	ai_will_do = {
		factor = 10
		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
		}
	}
}

conduct_census_decree = {
	cost = 15
	duration = 3650
	potential = {
		NOT = { has_country_flag = mng_empowered_pop_census_flag }													
	}
	trigger = {
	}
	modifier = {
		global_tax_modifier = 0.10
		inflation_action_cost = -0.25
		state_governing_cost = -0.15
	}
	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 = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		ship_durability = 0.15
		sunk_ship_morale_hit_recieved = -0.25
		naval_morale = 0.1
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 50
		modifier = {
			factor = 3
			navy_tradition = 50
		}
		modifier = {
			factor = 0
			NOT = { imperial_mandate = 90 }
		}
	}
}

increase_tariff_control_decree = {
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		global_prov_trade_power_modifier = 0.25
		trade_steering = 0.10
		global_own_trade_power = 0.15
	}
	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 = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = { 
		defensiveness = 0.15
		fort_maintenance_modifier = -0.25
		hostile_attrition = 1
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 50
		modifier = {
			factor = 2
			is_in_important_war = yes
		}
	}
}

boost_officer_corps_decree = {
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		infantry_power = 0.1
		reinforce_speed = 0.25
		reinforce_cost_modifier = -0.15
	}
	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 = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		technology_cost = -0.1
		idea_cost = -0.15
		embracement_cost = -0.25
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

proclaim_dynastic_name_decree = { 
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		imperial_mandate = 0.10
		all_estate_loyalty_equilibrium = 0.15
		prestige = 0.25
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

issue_the_great_warnings_decree = {
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		all_estate_influence_modifier = -0.1
		yearly_corruption = -0.15
		harsh_treatment_cost = -0.25
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

encourage_the_dockyard_industry = {
	cost = 15
	duration = 3650
	modifier = {
		global_ship_recruit_speed = -0.25
		global_ship_cost = -0.15
		global_sailors_modifier = 0.10
	}
	ai_will_do = {
		factor = 100
	}
}

six_ordinances_decree = {
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		reduced_liberty_desire = 10
		min_autonomy_in_territories = -0.15
		global_unrest = -2.5
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

sacred_edict_of_confucianism_decree = {
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		harmonization_speed = 0.25
		monthly_karma = -0.15
		years_of_nationalism = -10
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

promote_taoist_studies_decree = {
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		church_loyalty_modifier = 0.1
		tolerance_own = 1.5
		monarch_lifespan = 0.25 
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

appoint_entrusted_eunuchs_decree = {
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		eunuchs_loyalty_modifier = 0.1
		advisor_cost = -0.15
		monthly_support_heir_gain = 0.25
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

enforce_haijin_policy_decree = {  
	cost = 15
	duration = 3650
	modifier = {
		burghers_loyalty_modifier = 0.1
		trade_efficiency = 0.15
		global_foreign_trade_power = 0.25
	}
	ai_will_do = {
		factor = 100
	}
}

increase_trade_cooperation_decree = { 
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		reduced_trade_penalty_on_non_main_tradenode = 0.15
		innovativeness_gain = 0.25
		global_institution_spread = 0.10
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

reinforce_the_inner_guard_decree = {
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		global_spy_defence = 0.25
		improve_relation_modifier = 0.15
		spy_offence = 0.10
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

exile_lawless_bureaucrats_decree = {
	cost = 15
	duration = 3650
	modifier = {
		meritocracy = 0.25 
		colonist_placement_chance = 0.15
		global_colonial_growth = 10
	}
	ai_will_do = {
		factor = 100
	}
}

encourage_homogenity_decree = {
	cost = 15
	duration = 3650
	modifier = {
		same_culture_advisor_cost = -0.10
		culture_conversion_cost = -0.15
		culture_conversion_time = 0.25
	}
	ai_will_do = {
		factor = 100
	}
}

issue_bureaucratic_imperial_seal = { 
	cost = 15
	duration = 3650
	potential = {
	}
	trigger = {
	}
	modifier = {
		min_autonomy = -10
		autonomy_change_time = -0.25
		stability_cost_modifier = -0.15
	}
	effect = {}
	removed_effect = {}
	ai_will_do = {
		factor = 100
	}
}

