#	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
#
#		# 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

UKR_outdated_army_system_mod = {
	
	icon = GFX_idea_UKR_outdated_army_system
	remove_trigger = { has_completed_focus = UKR_end_of_reform }
	custom_modifier_tooltip = UKR_outdated_army_system_tt

	conscription_factor = var_ukr_conscription_debuff
	army_org_Factor = var_ukr_army_org_debuff
	max_command_power = var_ukr_command_power_debuff
	training_time_army_factor = var_ukr_training_time_debuff
}

UKR_socialist_competitions_mod = {
	
	icon = GFX_idea_eng_spirit_of_the_industrial_revolution
	remove_trigger = { NOT = { has_government = communism } }

	local_resources_factor = ukr_sc_local_resources
	fuel_gain_factor = ukr_sc_production_oil
	industrial_capacity_factory = ukr_sc_capacity_factory
	industrial_capacity_dockyard = ukr_sc_capacity_dockyard
	production_factory_efficiency_gain_factor = ukr_sc_production_factory
	stability_factor = ukr_sc_stability
	MONTHLY_POPULATION = ukr_sc_population
	war_support_factor = ukr_sc_war_support
}

UKR_support_in_rada_mod = {
	
	icon = GFX_idea_UKR_rada_support
	remove_trigger = { NOT = { has_government = democratic } }

	stability_factor = ukr_sr_stability
	political_power_factor = ukr_sr_polit_power
	democratic_drift = ukr_sr_democratic
}

UKR_forced_economic_mobilization_mod = {
	
	icon = GFX_idea_generic_license_production
	remove_trigger = { NOT = { has_government = fascism } }

	conversion_cost_civ_to_mil_factor = ukr_fem_conversion_bonus
	production_speed_buildings_factor = ukr_fem_build_bonus
	line_change_production_efficiency_factor = ukr_fem_efficiency_bonus
}

UKR_for_ukraine_mod = {
	
	icon = GFX_idea_UKR_for_Ukraine
	remove_trigger = { 
		OR = {
			has_government = democratic
			has_government = communism
		}
	}
	
	production_speed_bunker_factor = var_ukr_fu_bunkers
	max_dig_in = 3
	army_core_attack_factor = var_ukr_fu_attack_factor
	army_core_defence_factor = var_ukr_fu_defence_factor
}

UKR_communists_purge_mod = {
	
	icon = GFX_idea_officers_purged
	remove_trigger = { has_country_flag = UKR_purge_effect_is_end }
	army_org_Factor = var_ukr_comm_org_debuff
	army_morale_factor = var_ukr_comm_morale_debuff
	planning_speed = var_ukr_comm_plan_debuff
	naval_coordination = var_ukr_comm_naval_debuff
	air_mission_efficiency = var_ukr_comm_air_debuff
}

UKR_bonuses_for_ucr_mod = {
	
	icon = GFX_idea_UKR_bonuses_for_ucr
	remove_trigger = { NOT = { has_government = neutrality } }

	political_power_factor = ucr_modifier_polit_power
	justify_war_goal_time = ucr_modifier_wargoal
	join_faction_tension = ucr_modifier_wargoal
	generate_wargoal_tension = ucr_modifier_wargoal
	lend_lease_tension = ucr_modifier_wargoal
}

UKR_anarchy_society = {
	icon = GFX_idea_ARG_no_gods_no_masters
	remove_trigger = { NOT = { has_government = neutrality } }
	stability_weekly = -0.01
	party_popularity_stability_factor = -0.15
	political_power_factor = var_as_politpower
	non_core_manpower = var_as_ncmanpower
	conscription_factor = var_as_conscription_factor
	global_building_slots_factor = var_as_build_slots
	surrender_limit = var_as_surrender
	research_speed_factor = var_as_research_speed
	drift_defence_factor = var_as_drift_defence
	production_speed_buildings_factor = var_as_build_speed
	industrial_capacity_factory = var_as_industry_capacity
	consumer_goods_factor = var_as_consumer_goods
	production_factory_max_efficiency_factor = var_as_max_efficiency
	production_factory_start_efficiency_factor = var_as_start_efficiency
	local_resources_factor = var_as_resources
	production_speed_bunker_factor = var_as_bunkers
	production_speed_synthetic_refinery_factor = var_as_oil_refinery_build
	justify_war_goal_time = var_as_wargoal_time
	resistance_growth = var_as_resistance
	compliance_gain = var_as_compliance_gain
}

UKR_anarchy_black_army = {
	icon = GFX_idea_MEX_politicised_army
	remove_trigger = { NOT = { has_government = neutrality } }
	custom_modifier_tooltip = UKR_anarchy_black_army_tt

	conscription = var_aba_conscription
	training_time_army_factor = var_aba_training
	army_org_factor = var_aba_organization
	army_morale_factor = var_aba_morale
	army_speed_factor = var_aba_speed
	cavalry_attack_factor = var_aba_cav_attack
	cavalry_defence_factor = var_aba_cav_defence
	attrition = var_aba_supply
	dig_in_speed_factor = var_aba_dig_speed
	resistance_damage_to_garrison_on_our_occupied_states = var_aba_resistance_damage
	army_leader_cost_factor = var_aba_leaders_cost
	army_leader_start_planning_level = var_aba_start_planning
	special_forces_cap = var_aba_specforces 
	operative_slot = var_aba_operatives
	mines_planting_by_fleets_factor = var_aba_mines_factor
	army_core_defence_factor = var_aba_core_defence
	intel_network_gain_factor = var_aba_network_gain
	out_of_supply_factor = var_aba_out_of_supply
	female_divisional_commander_chance = var_aba_female_commanders
}

UKR_deliveries_to_germany_mod = {
	icon = "can_wartime_prices_and_trade_board"
	industrial_capacity_factory = -0.1
	local_resources_factor = -0.1
	min_export = 0.15
}
UKR_deliveries_from_ukraine_mod = {
	icon = "can_wartime_prices_and_trade_board"
	industrial_capacity_factory = 0.05
	local_resources_factor = 0.05
}

UKR_freedom_for_nations = {
	icon = GFX_idea_FRA_scw_intervention_republicans_focus
	resistance_damage_to_garrison = -0.20
	army_core_defence_factor = var_ffn_defence
	non_core_manpower = var_ffn_manpower
}

UKR_the_inner_circle_dm = {
	icon = GFX_idea_FIN_socialist_welfare
	enable = { always = yes }
	remove_trigger = {
		NOT = { has_government = communism }
	}

	custom_modifier_tooltip = UKR_the_inner_circle_dm_tt

}

CRM_corporative_economic_mod = {
	icon = GFX_idea_man_five_year_plan_tank
	remove_trigger = { NOT = { has_government = fascism } }
     
	local_resources_factor = crm_sc_local_resources
	fuel_gain_factor = crm_sc_production_oil
	industrial_capacity_factory = crm_sc_capacity_factory
	industrial_capacity_dockyard = crm_sc_capacity_dockyard
	production_factory_efficiency_gain_factor = crm_sc_production_factory
	
}

CRM_white_army_mod = {
	icon = GFX_idea_CRM_white_army
	remove_trigger = { has_completed_focus = CRM_red_revolt }
	custom_modifier_tooltip = CRM_white_army_tt

	war_support_factor = var_crm_war_support_debuff
	army_org_Factor = var_crm_army_org_debuff
	mobilization_speed = var_crm_mobilization_speed_debuff
	training_time_factor = var_crm_training_time_debuff
	navy_leader_cost_factor = var_crm_nave_leader_cost_debuff
	naval_coordination = var_crm_naval_coordination_debuff
	air_ace_generation_chance_factor = var_crm_ace_generation_chance_debuff
    air_mission_efficiency = var_crm_mission_efficiency_debuff
	air_maximum_speed_factor = var_crm_maximum_speed_debuff
}

CRM_fragmentation_mod = {
	icon = GFX_idea_CRM_white_movement
	remove_trigger = { has_completed_focus = CRM_red_revolt }
	custom_modifier_tooltip = CRM_fragmentation_tt

	war_support_factor = var_crm_war_support_debuff2
	political_power_cost = var_crm_political_power_debuff
	max_command_power = var_crm_command_power_debuff
	stability_factor = var_crm_stability_debuff
}

#state modifiers

UKR_promt_skirmishes = {
	enable = { always = yes }

	icon = GFX_modifiers_bul_macedonian_revolutionaries
	
	state_resources_factor = -0.75
	state_production_speed_buildings_factor = -0.75
	army_speed_factor_for_controller = -0.25
	attrition_for_controller = 0.5
	local_org_regain = -0.75
	disable_strategic_redeployment = 1
}

UKR_deurbanization_mod = {
	enable = { always = yes }

	icon = GFX_modifiers_SOV_civilian_labor_in_defense
	
	recruitable_population_factor = 0.15
	state_production_speed_buildings_factor = 0.10
	local_resources = 0.15
}

UKR_dksr_military_devastation = {
	enable = { always = yes }

	icon = GFX_modifiers_UKR_dksr_military_devastation
	
	recruitable_population_factor = -0.35
	state_resources_factor = -0.75
	state_production_speed_buildings_factor = -0.50
	local_factories = -0.50
}

UKR_uss_modifier = {
	enable = { always = yes }

	icon = GFX_modifiers_bul_macedonian_revolutionaries
	
	resistance_growth = 0.25
	compliance_growth = -0.25
	resistance_damage_to_garrison = 0.30
}

DKR_bands_of_anarcho_communists = {
	enable = { always = yes }

	icon = GFX_modifiers_bul_macedonian_revolutionaries
	
	recruitable_population_factor = -0.30
	state_resources_factor = -0.25
	state_production_speed_buildings_factor = -0.25
	army_speed_factor_for_controller = -0.25
	disable_strategic_redeployment = 1
}

KUB_ukrainization_modifier = {
	enable = { always = yes }

	icon = GFX_modifiers_kub_ukrainization_modifier
	
	recruitable_population_factor = 0.30
	state_production_speed_buildings_factor = -0.25
	resistance_growth = 0.03
	resistance_target = 0.1
}

KUB_adygean_autonomy = {
	enable = { always = yes }

	icon = GFX_modifiers_kub_adygean_autonomy
	
	recruitable_population_factor = -0.30
	army_speed_factor_for_controller = -0.33
	state_production_speed_buildings_factor = -0.10
}

KUB_adygean_unrests = {
	enable = { always = yes }

	icon = GFX_modifiers_kub_adygean_autonomy
	
	recruitable_population_factor = -0.66
	army_speed_factor_for_controller = -0.50
	state_production_speed_buildings_factor = -0.33
}

CRI_land_irrigation = {
	enable = { always = yes }

	icon = GFX_modifiers_cri_land_irrigation
	
	recruitable_population_factor = 0.10
	state_production_speed_buildings_factor = 0.10
	local_resources = 0.15
}

CRI_no_water = {
	enable = { always = yes }

	icon = GFX_modifiers_cri_no_water
	
	recruitable_population_factor = -0.30
	state_production_speed_buildings_factor = -0.25
	local_building_slots_factor	= -0.25
	starting_compliance = 0.3
	army_speed_factor_for_controller = -0.25
}

CRI_islamist_insurgency = {
	enable = { always = yes }

	icon = GFX_modifiers_tur_traditionalist_insurgency
	
	recruitable_population_factor = -0.5
	local_building_slots_factor = -0.33
	state_resources_factor = -0.5
	state_production_speed_buildings_factor = -0.33
	army_speed_factor_for_controller = -0.33
}
