##########################################################################
# Empire edicts
##########################################################################

country_edict = {
	name = "information_quarantine"
	modifier = {
		pop_ethic_shift = -0.10
		all_technology_research_speed = -0.05
	}
	
	influence_cost = 1
		
	allow = {
	}
	
	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			NOR = {
				has_ethic = ethic_collectivist
				has_ethic = ethic_fanatic_collectivist
			}
		}		
	}	
}

country_edict = {
	name = "encourage_free_thought"
	modifier = {
		pop_ethic_shift = 0.15
		all_technology_research_speed = 0.10
	}
	
	influence_cost = 1
		
	allow = {
	}
	
	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			NOR = {
				has_ethic = ethic_individualist
				has_ethic = ethic_fanatic_individualist
			}
		}		
	}
}

country_edict = {
	name = "map_the_stars"
	modifier = {
		science_ship_survey_speed = 0.25
		ship_anomaly_generation_chance_mult = 0.10
	}
	
	influence_cost = 1
		
	allow = {
	}
	
	ai_weight = {
		weight = 1
	}	
	
	prerequisites = {
		"tech_global_research_initiative"
	}
}

country_edict = {
	name = "engineering_research_focus"
	modifier = {
		country_engineering_tech_research_speed = 0.3
		country_society_tech_research_speed = -0.10
		country_physics_tech_research_speed = -0.10
	}
	
	influence_cost = 1
		
	allow = {
		NOR = {
			has_country_edict = physics_research_focus
			has_country_edict = society_research_focus
		}
	}
	
	ai_weight = {
		weight = 0
	}	
}

country_edict = {
	name = "physics_research_focus"
	modifier = {
		country_engineering_tech_research_speed = -0.10
		country_society_tech_research_speed = -0.10
		country_physics_tech_research_speed = 0.3
	}
	
	influence_cost = 1
		
	allow = {
		NOR = {
			has_country_edict = engineering_research_focus
			has_country_edict = society_research_focus
		}
	}
	
	ai_weight = {
		weight = 0
	}	
}

country_edict = {
	name = "society_research_focus"
	modifier = {
		country_engineering_tech_research_speed = -0.10
		country_society_tech_research_speed = 0.3
		country_physics_tech_research_speed = -0.10
	}
	
	influence_cost = 1
		
	allow = {
		NOR = {
			has_country_edict = engineering_research_focus
			has_country_edict = physics_research_focus
		}
	}
	
	ai_weight = {
		weight = 0
	}		
}

country_edict = {
	name = "social_welfare_programs"
	modifier = {
		pop_happiness = 0.15
		tile_resource_energy_mult = -0.2
		tile_resource_minerals_mult = -0.2
	}
	
	influence_cost = 1
		
	allow = {
	}
	
	ai_weight = {
		weight = 0
	}
	
	prerequisites = {
		"tech_living_state"
	}
}

country_edict = {
	name = "the_grand_fleet"
	modifier = {
		navy_size_mult = 0.35
		ship_reparation_speed_mult = 0.15
		country_ship_upgrade_cost_mult = -0.15
	}
	
	influence_cost = 2
		
	allow = {
	}
	
	ai_weight = {
		weight = 1
	}	
	
	prerequisites = {
		"tech_interstellar_fleet_traditions"
	}
}

country_edict = {
	name = "share_the_burden"
	modifier = {
		slave_production_output = 0.2
		slave_food_output = 0.2
		pop_robot_production_output = 0.2
	}
	
	influence_cost = 2
		
	allow = {
		has_policy_flag = slavery_allowed_regulated
	}
	
	ai_weight = {
		weight = 1
	}	
	
	prerequisites = {
		"tech_artificial_moral_codes"
	}
}

##########################################################################
# Event edicts
##########################################################################

country_edict = {
	name = "crystal_sonar"
	modifier = {
		
	}

	influence_cost = 0

	potential = {
		has_country_flag = crystal_sonar_edict_available
	}

	allow = {
	}
	
	ai_weight = {
		weight = 0
	}	
}

country_edict = {
	name = "greater_crystal_bounty"
	modifier = {
		
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = greater_crystal_bounty_edict_available
	}

	allow = {
	}
	
	ai_weight = {
		weight = 0
	}	
}

country_edict = {
	name = "crystal_bounty"
	modifier = {
	
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = crystal_bounty_edict_available
	}

	allow = {
	}
	
	ai_weight = {
		weight = 0
	}	
}

country_edict = {
	name = "droning_optimizations"
	modifier = {
		tile_resource_minerals_mult = 0.15
		tile_resource_energy_mult = -0.05
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = droning_optimizations_edict_available
	}
		
	allow = {
	}
	
	ai_weight = {
		weight = 1
	}	
}

country_edict = {
	name = "drone_bounty"
	modifier = {
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = drone_bounty_edict_available
	}

	allow = {
	}

	ai_weight = {
		weight = 0
	}	
}

country_edict = {
	name = "masters_writings_politics"
	modifier = {
		planet_building_cost_mult = -0.1
		building_time_mult = -0.1
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = edict_masters_writings_politics
	}

	allow = {
	}
	
	ai_weight = {
		weight = 1
	}	
}

country_edict = {
	name = "masters_writings_diplomacy"
	modifier = {
		max_embassies = 1
		country_trade_attractiveness = 0.10
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = edict_masters_writings_diplomacy
	}

	allow = {
	}
	
	ai_weight = {
		weight = 1
	}
}

country_edict = {
	name = "masters_writings_philosophy"
	modifier = {
		country_society_tech_research_speed = 0.1
		country_leader_cap = 1
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = edict_masters_writings_philosophy
	}

	allow = {
	}
	
	ai_weight = {
		weight = 1
	}
}

country_edict = {
	name = "masters_writings_war"
	modifier = {
		navy_size_mult = 0.1
		army_upkeep_mult = -0.15
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = edict_masters_writings_war
	}

	allow = {
	}
	
	ai_weight = {
		weight = 1
	}
}

country_edict = {
	name = "improved_work_environment"
	modifier = {
		pop_happiness = 0.05
		category_biology_research_speed_mult = 0.1
		category_statecraft_research_speed_mult = 0.1
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = edict_improved_work_environment
	}

	allow = {
	}
	
	ai_weight = {
		weight = 1
	}
}

country_edict = {
	name = "renewable_energy"
	modifier = {
		pop_happiness = 0.05
		category_industry_research_speed_mult = 0.1
		category_materials_research_speed_mult = 0.1
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = edict_renewable_energy
	}

	allow = {
	}
	
	ai_weight = {
		weight = 1
	}
}

country_edict = {
	name = "super_sensors"
	modifier = {
		planet_sensor_range_mult = 0.25
	}
	
	influence_cost = 1

	potential = {
		has_country_flag = edict_super_sensors
	}

	allow = {
	}
	
	ai_weight = {
		weight = 0
	}
}

country_edict = {
	name = "nomal"
	modifier = {

		max_energy = 100000         #能源儲備上限 +100K
		max_minerals = 100000         #礦物儲備上限 +100K
		max_influence = 100000         #影響力儲備上限 +100K
		country_core_sector_system_cap = 5        #直屬星系 +5 
		science_ship_survey_speed = 1.00 		#星系调查速度+100%
		ship_anomaly_research_speed_mult = 1.00		 #异常事件调查速度+100%
		ship_anomaly_generation_chance_mult = 0.3 		#异常事件发生概率+30%
		ship_anomaly_fail_risk = -0.30 				#异常事件调查失败概率
		country_leader_cap = 30                 #領袖上限 +30
		leader_skill_levels = 2                       #領袖技能 +1
		country_leader_pool_size = 5                 #領袖池規模 +5
		leader_age = 500                         #領袖壽命 +500年
		shipsize_mining_station_construction_speed_mult = 1.00                 #採礦站建造速度 +100%
		shipsize_observation_station_construction_speed_mult = 1.00     #觀測站建造速度 +100%
		shipsize_research_station_construction_speed_mult = 1.00         #研究站建造速度 +100%
		shipsize_outpost_station_construction_speed_mult = 1.00         #邊境哨站建造速度 +100%
		shipsize_terraform_station_construction_speed_mult = 1.00         #地形轉換站建造速度 +100%
	
	}
	
	influence_cost = 0

	potential = {
		is_ai = no
	}

	allow = {
	}
	
	ai_weight = {
		weight = 0
	}
}

country_edict = {
	name = "hard"
	modifier = {

		max_energy = 100000         #能源儲備上限 +100K
		max_minerals = 100000         #礦物儲備上限 +100K
		max_influence = 100000         #影響力儲備上限 +100K
		all_technology_research_speed = -0.2		 #科技研究速度-20%
		tile_resource_energy_mult = -0.20

	}
	
	influence_cost = 0

	potential = {
		is_ai = no
	}

	allow = {
	}
	
	ai_weight = {
		weight = 0
	}
}

country_edict = {
	name = "crazy"
	modifier = {

		tile_resource_food_mult = -0.20                         #格子食物產出 -20%
		tile_resource_minerals_mult = -0.20                 #格子礦物產出 -20% (Insane AI)
		tile_resource_energy_mult = -0.30                 #格子能量產出 -20% (Insane AI)
		tile_resource_physics_research_mult = -0.20         #格子物理科技產出 -20% (Insane AI)
		tile_resource_society_research_mult = -0.20         #格子社會科技產出 -20% (Insane AI)
		tile_resource_engineering_research_mult = -0.20         #格子工程科技產出 -20% (Insane AI)
		all_technology_research_speed = -0.3		 #科技研究速度-30%
		ship_weapon_damage = -0.25                                         #艦船武器攻擊力 -25% (FE)
		ship_hitpoints_mult = -0.30                                         #艦船耐久度 -30% (FE)
		ship_shield_hp_mult = -0.30                                         #護盾耐久度 -30% (FE)
		ship_armor_mult = -0.50                                                 #艦船裝甲值 -0.50%
		ship_fire_rate_mult = -0.30                                         #艦船武器開火速率 -30%
		ship_accuracy_mult = -0.20                                        #艦船命中率 -20%
		ship_evasion_mult = -0.20                                         #艦船閃避加成 -20%
	}
	
	influence_cost = 0

	potential = {
		is_ai = no
	}

	allow = {
	}
	
	ai_weight = {
		weight = 0
	}
}