#	Example:
# 
#	example_dynamic_modifier = {
#		icon = "GFX_idea_unknown" # optional, will show up in guis if icon is specified
#		enable = { always = yes } #optional, the modifier won't apply if not enabled
#		remove_trigger = { always = no } #optional, will remove the modifier if true
#       attacker_modifier = no  # if yes this modifier will also be read in combat for 
#                               # people engaging in the combat even if not in the state
#
#		# list of modifiers
#		fuel_cost = 321
#		max_fuel = var_max_fuel # will be taken from a variable
#	}
#
#
#	In a script file:
#
#	effect = {
#		add_dynamic_modifier = {
#			modifier = example_dynamic_modifier
#			scope = GER # optional, if you specify this your dynamic modifier scoped to this scope (root is the effect scope)
#			days = 14 # optional, will be removed after this many days passes
#		}
#	}
#
#	can be added to countries, states or unit leaders
#	will only updated daily, unless forced by force_update_dynamic_modifier effect

############################## STATE MODIFIERS ################################

AFG_wazisistan_uprising = {

	enable = { always = yes }
	
	remove_trigger = { 
		controller = {
			original_tag = AFG
		}
	}

	icon = GFX_modifiers_afg_waziristan_uprising

	compliance_growth = -0.25
	local_intel_to_enemies = 0.1
	local_org_regain = -0.25
	resistance_target = 0.05
	resistance_growth = 0.1
	army_speed_factor_for_controller = -0.2

} 

AFG_helmand_valley_authority = {

	enable = { always = yes }

	icon = GFX_modifiers_ETH_state_development

	local_building_slots_factor = 0.35
	local_supplies = 0.15
	state_production_speed_buildings_factor = 0.15

}

########################## NATIONAL SPIRIT MODIFIERS #############################

AFG_afghan_army_dynamic_modifier = {
	enable = { always = yes }

	icon = GFX_idea_chi_army_corruption3

	mobilization_speed = AFG_army_mobilization_speed #0
	modifier_army_sub_unit_irregular_infantry_defence_factor = AFG_army_modifier_army_sub_unit_irregular_infantry_defence_factor #0.1
	modifier_army_sub_unit_irregular_infantry_attack_factor = AFG_army_modifier_army_sub_unit_irregular_infantry_attack_factor #0.1
	army_defence_factor = AFG_army_modifier_army_defence_factor #-0.1
	army_attack_factor = AFG_army_modifier_army_attack_factor #-0.1
	army_org_factor = AFG_army_modifier_army_org_factor #-0.2
	army_morale_factor = AFG_army_modifier_army_morale_factor #0
	conscription = AFG_army_modifier_conscription #0
	modifier_army_sub_unit_irregular_infantry_max_org_factor = AFG_army_modifier_modifier_army_sub_unit_irregular_infantry_max_org_factor #0
	cavalry_attack_factor = AFG_army_modifier_cavalry_attack_factor #0
	cavalry_defence_factor = AFG_army_modifier_cavalry_defence_factor #0
	army_speed_factor = AFG_army_modifier_army_speed_factor #0
	experience_gain_army = AFG_army_modifier_experience_gain_army #0
	training_time_army_factor = AFG_army_modifier_training_time_army_factor #0
	army_infantry_attack_factor = AFG_army_modifier_army_infantry_attack_factor #0
	army_infantry_defence_factor = AFG_army_modifier_army_infantry_defence_factor #0
	army_artillery_attack_factor = AFG_army_modifier_army_artillery_attack_factor #0
	army_artillery_defence_factor = AFG_army_modifier_army_artillery_defence_factor #0
	terrain_penalty_reduction = AFG_army_modifier_terrain_penalty_reduction #0
	cas_damage_reduction = AFG_army_modifier_cas_damage_reduction #0
	army_core_defence_factor = AFG_army_modifier_army_core_defence_factor #0
	army_core_attack_factor = AFG_army_modifier_army_core_attack_factor #0
	conscription_factor = AFG_army_modifier_conscription_factor #0
	air_cas_efficiency = AFG_army_modifier_air_cas_efficiency #0
	breakthrough_factor = AFG_army_modifier_breakthrough_factor #0
	air_superiority_bonus_in_combat = AFG_army_modifier_air_superiority_bonus_in_combat #0
	supply_consumption_factor = AFG_army_modifier_supply_consumption_factor #0
	truck_attrition_factor = AFG_army_modifier_truck_attrition_factor #0
	supply_node_range = AFG_army_modifier_supply_node_range #0
	army_armor_attack_factor = AFG_army_modifier_army_armor_attack_factor #0
	motorized_attack_factor = AFG_army_modifier_motorized_attack_factor #0
	mechanized_attack_factor = AFG_army_modifier_mechanized_attack_factor #0
	equipment_capture_factor = AFG_army_modifier_equipment_capture_factor #0
	resistance_growth = AFG_army_modifier_resistance_growth #0
	army_leader_start_level = AFG_army_modifier_army_leader_start_level #0
	experience_gain_army_factor = AFG_army_modifier_experience_gain_army_factor #0
	command_power_gain = AFG_army_modifier_command_power_gain #0
	resistance_growth_on_our_occupied_states = AFG_army_modifier_resistance_growth_on_our_occupied_states #0
	org_loss_when_moving = AFG_army_modifier_org_loss_when_moving #0
	max_planning = AFG_army_modifier_max_planning #0
	
}

AFG_developing_industry_dynamic_modifier = {
	enable = { always = yes }

	icon = GFX_idea_generic_improved_industries

	consumer_goods_factor = AFG_industry_modifier_consumer_goods_factor #0.3
	production_speed_buildings_factor = AFG_industry_modifier_production_speed_buildings_factor #-0.1
	industrial_capacity_factory = AFG_industry_modifier_industrial_capacity_factory #-0.15
	production_speed_infrastructure_factor = AFG_industry_modifier_production_speed_infrastructure_factor #0
	production_speed_arms_factory_factor = AFG_industry_modifier_production_speed_arms_factory_factor #0
	production_speed_industrial_complex_factor = AFG_industry_modifier_production_speed_industrial_complex_factor #0
	production_factory_efficiency_gain_factor = AFG_industry_modifier_production_factory_efficiency_gain_factor  #0
	production_factory_max_efficiency_factor = AFG_industry_modifier_production_factory_max_efficiency_factor #0
	local_resources_factor = AFG_industry_modifier_local_resources_factor #0
	
}

AFG_afghan_soviet_cooperation_dynamic_modifier = {
	enable = { always = yes }

	icon = GFX_idea_afg_sov_afg_coop_modifier

	research_speed_factor = AFG_afg_sov_coop_research_speed_factor
	production_speed_buildings_factor = AFG_afg_sov_coop_production_speed_buildings_factor
	industrial_capacity_factory = AFG_afg_sov_coop_industrial_capacity_factory
	war_support_factor = AFG_afg_sov_coop_war_support_factor
	stability_factor = AFG_afg_sov_coop_stability_factor
	political_power_factor = AFG_afg_sov_coop_political_power_factor
	
}