#	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



      ##    ###    ########     ###    ##    ## 
      ##   ## ##   ##     ##   ## ##   ###   ## 
      ##  ##   ##  ##     ##  ##   ##  ####  ## 
      ## ##     ## ########  ##     ## ## ## ## 
##    ## ######### ##        ######### ##  #### 
##    ## ##     ## ##        ##     ## ##   ### 
 ######  ##     ## ##        ##     ## ##    ##

 ##################################
  ###### IMPERIAL INFLUENCE ######
 ##################################

 # Fake NS to show the modifiers Imperial Influence in the NS window
JAP_imperial_influence_dm = {
	icon = GFX_idea_JAP_imperial_influence
	enable = { always = yes }
	remove_trigger = {
		
	}

	custom_modifier_tooltip = JAP_imperial_influence_dm_tt
}

 # Fake NS to show the modifiers Imperial Influence in the NS window (for non-monarchist)
JAP_imperial_influence_communist_dm = {
	icon = GFX_idea_JAP_imperial_influence_communist
	enable = { always = yes }
	remove_trigger = {
		
	}

	custom_modifier_tooltip = JAP_imperial_influence_dm_tt
}

JAP_state_shinotism_dm = {
	icon = GFX_idea_state_shintoism
	enable = { always = yes }
	remove_trigger = {
		has_government = communism
	}

	surrender_limit = JAP_state_shinotism_surrender_limit
	war_support_factor = JAP_state_shinotism_war_support_factor
	pocket_penalty = JAP_state_shinotism_pocket_penalty
	stability_factor = JAP_state_shinotism_stability_factor
	justify_war_goal_time = JAP_state_shinotism_justify_war_goal_time
	research_speed_factor = JAP_state_shinotism_research_speed_factor

}

JAP_showa_statism_modifier = {
	icon = GFX_idea_JAP_showa_statism
	enable = { always = yes }
	remove_trigger = {
		OR = {
			has_government = communism
			has_government = democratic
		}
	}

	stability_factor = JAP_showa_statism_stability_factor
	conscription_factor = JAP_showa_statism_conscription_factor
	consumer_goods_factor = JAP_showa_statism_consumer_goods_factor
	political_power_factor = JAP_showa_statism_political_power_factor
	fascism_drift = JAP_showa_statism_fascism_drift
	monthly_population = JAP_showa_statism_monthly_population
	industrial_capacity_dockyard = JAP_showa_statism_industrial_capacity_dockyard
	industrial_capacity_factory = JAP_showa_statism_industrial_capacity_factory
	weekly_casualties_war_support = JAP_showa_statism_weekly_casualties_war_support
	weekly_convoys_war_support = JAP_showa_statism_weekly_convoys_war_support
	weekly_bombing_war_support = JAP_showa_statism_weekly_bombing_war_support
	industry_repair_factor = JAP_showa_statism_industry_repair_factor
	operative_slot = JAP_showa_statism_operative_slot

}

JAP_the_imperial_way_dm = {
	icon = GFX_idea_JAP_the_imperial_way
	enable = { always = yes }
	remove_trigger = {
		OR = {
			has_government = communism
			has_government = democratic
		}
	}

	war_support_factor = JAP_the_imperial_way_war_support_factor
	drift_defence_factor = JAP_the_imperial_way_drift_defence_factor
	conscription_factor = JAP_the_imperial_way_conscription_factor
	political_advisor_cost_factor = JAP_the_imperial_way_political_advisor_cost_factor
	stability_factor = JAP_the_imperial_way_stability_factor
	army_core_defence_factor = JAP_the_imperial_way_army_core_defence_factor
	army_core_attack_factor = JAP_the_imperial_way_army_core_attack_factor
	consumer_goods_factor = JAP_the_imperial_way_consumer_goods_factor
	offensive_war_stability_factor = JAP_the_imperial_way_offensive_war_stability_factor

}

JAP_civilian_cabinet_modifier = {
	icon = GFX_idea_JAP_the_civilian_cabinet
	enable = { always = yes }
	remove_trigger = {
		OR = {
			has_government = neutrality
			has_government = fascism
		}
	}

	political_advisor_cost_factor = JAP_civilian_cabinet_political_advisor_cost_factor
	high_command_cost_factor = JAP_civilian_cabinet_high_command_cost_factor
	army_chief_cost_factor = JAP_civilian_cabinet_army_chief_cost_factor 
	mobilization_laws_cost_factor = JAP_civilian_cabinet_mobilization_laws_cost_factor
	consumer_goods_factor = JAP_civilian_cabinet_consumer_goods_factor
	resource_trade_cost_bonus_per_factory = JAP_civilian_cabinet_resource_trade_cost_bonus_per_factory
	military_leader_cost_factor = JAP_civilian_cabinet_military_leader_cost_factor
	political_power_factor = JAP_civilian_cabinet_political_power_factor
	stability_factor = JAP_civilian_cabinet_stability_factor
	war_support_factor = JAP_civilian_cabinet_war_support_factor
	military_industrial_organization_research_bonus = JAP_civilian_cabinet_military_industrial_organization_research_bonus
	conscription = JAP_civilian_cabinet_conscription
	unit_leader_as_advisor_cp_cost_factor = JAP_civilian_cabinet_unit_leader_as_advisor_cp_cost_factor
	army_leader_start_defense_level = JAP_civilian_cabinet_army_leader_start_defense_level
	justify_war_goal_time = JAP_civilian_cabinet_justify_war_goal_time
	democratic_drift = JAP_civilian_cabinet_democratic_drift

}

JAP_communist_party_modifier = {
	icon = GFX_idea_JAP_the_japanese_communist_party
	enable = { always = yes }
	remove_trigger = {
		OR = {
			has_government = neutrality
			has_government = fascism
		}
	}

	communism_drift = JAP_communist_party_communism_drift 
	political_power_factor = JAP_communist_party_political_power_factor
	conscription_factor = JAP_communist_party_conscription_factor
	research_speed_factor = JAP_communist_party_research_speed_factor
	offensive_war_stability_factor = JAP_communist_party_offensive_war_stability_factor
	annex_cost_factor = JAP_communist_party_annex_cost_factor
	puppet_cost_factor = JAP_communist_party_puppet_cost_factor
	defensive_war_stability_factor = JAP_communist_party_defensive_war_stability_factor
	operative_slot = JAP_communist_party_operative_slot
	enemy_operative_detection_chance_factor = JAP_communist_party_enemy_operative_detection_chance_factor
	enemy_operative_intel_extraction_rate = JAP_communist_party_enemy_operative_intel_extraction_rate
	enemy_operative_capture_chance_factor = JAP_communist_party_enemy_operative_capture_chance_factor
	army_core_defence_factor = JAP_communist_party_army_core_defence_factor
	weekly_manpower = JAP_communist_party_weekly_manpower

}

JAP_rounouha_modifier = {
	icon = GFX_idea_JAP_rounou_ha
	enable = { always = yes }
	remove_trigger = {
		OR = {
			has_government = neutrality
			has_government = fascism
		}
	}

	communism_drift = JAP_communist_party_communism_drift 
	political_power_factor = JAP_communist_party_political_power_factor
	conscription_factor = JAP_communist_party_conscription_factor
	research_speed_factor = JAP_communist_party_research_speed_factor
	offensive_war_stability_factor = JAP_communist_party_offensive_war_stability_factor
	annex_cost_factor = JAP_communist_party_annex_cost_factor
	puppet_cost_factor = JAP_communist_party_puppet_cost_factor
	defensive_war_stability_factor = JAP_communist_party_defensive_war_stability_factor
	operative_slot = JAP_communist_party_operative_slot
	enemy_operative_detection_chance_factor = JAP_communist_party_enemy_operative_detection_chance_factor
	enemy_operative_intel_extraction_rate = JAP_communist_party_enemy_operative_intel_extraction_rate
	enemy_operative_capture_chance_factor = JAP_communist_party_enemy_operative_capture_chance_factor
	army_core_defence_factor = JAP_communist_party_army_core_defence_factor
	weekly_manpower = JAP_communist_party_weekly_manpower

}

JAP_educating_the_peasants_modifier = { # Educating the Peasants NS
	enable = { always = yes }
	icon = GFX_idea_generic_research_bonus
	research_speed_factor = JAP_educating_the_peasants_modifier_research_speed_factor
}

JAP_imperial_army_dm = {
	icon = GFX_idea_JAP_imperial_army
	enable = { always = yes }

	custom_modifier_tooltip = JAP_japanese_armor_doctrine_tt

	army_infantry_attack_factor = JAP_army_army_infantry_attack_factor
	army_morale_factor = JAP_army_army_morale_factor
	army_defence_factor = JAP_army_army_defence_factor
	initiative_factor = JAP_army_initiative_factor
	army_artillery_attack_factor = JAP_army_army_army_artillery_attack_factor
	supply_consumption_factor = JAP_army_supply_consumption_factor
	acclimatization_cold_climate_gain_factor = JAP_army_acclimatization_cold_climate_gain_factor
	acclimatization_hot_climate_gain_factor = JAP_army_acclimatization_hot_climate_gain_factor
	army_core_attack_factor = JAP_army_army_core_attack_factor
	army_core_defence_factor = JAP_army_army_core_defence_factor
	planning_speed = JAP_army_planning_speed
	army_armor_attack_factor = JAP_army_army_armor_attack_factor
	army_armor_speed_factor = JAP_army_army_armor_speed_factor
	motorized_attack_factor = JAP_army_motorized_attack_factor
	mechanized_attack_factor = JAP_army_mechanized_attack_factor
	org_loss_when_moving = JAP_army_org_loss_when_moving
	army_org_factor = JAP_army_army_org_factor
	attrition = JAP_army_attrition
	air_superiority_bonus_in_combat = JAP_army_air_superiority_bonus_in_combat
	coordination_bonus = JAP_army_coordination_bonus
	conscription = JAP_army_conscription
	training_time_factor = JAP_army_training_time_factor
	experience_loss_factor = JAP_army_experience_loss_factor
	max_planning_factor = JAP_army_max_planning_factor
	conscription_factor = JAP_army_conscription_factor
	max_dig_in = JAP_army_max_dig_in
	dig_in_speed_factor = JAP_army_dig_in_speed_factor
}

# Different because different name, MAKE SURE MODIFIERS ABOVE AND BELOW ARE THE SAME 
JAP_national_army_dm = {
	icon = GFX_idea_JAP_imperial_army
	enable = { always = yes }

	custom_modifier_tooltip = JAP_japanese_armor_doctrine_tt

	army_infantry_attack_factor = JAP_army_army_infantry_attack_factor
	army_morale_factor = JAP_army_army_morale_factor
	army_defence_factor = JAP_army_army_defence_factor
	initiative_factor = JAP_army_initiative_factor
	army_artillery_attack_factor = JAP_army_army_army_artillery_attack_factor
	supply_consumption_factor = JAP_army_supply_consumption_factor
	acclimatization_cold_climate_gain_factor = JAP_army_acclimatization_cold_climate_gain_factor
	acclimatization_hot_climate_gain_factor = JAP_army_acclimatization_hot_climate_gain_factor
	army_core_attack_factor = JAP_army_army_core_attack_factor
	army_core_defence_factor = JAP_army_army_core_defence_factor
	planning_speed = JAP_army_planning_speed
	army_armor_attack_factor = JAP_army_army_armor_attack_factor
	army_armor_speed_factor = JAP_army_army_armor_speed_factor
	motorized_attack_factor = JAP_army_motorized_attack_factor
	mechanized_attack_factor = JAP_army_mechanized_attack_factor
	org_loss_when_moving = JAP_army_org_loss_when_moving
	army_org_factor = JAP_army_army_org_factor
	attrition = JAP_army_attrition
	air_superiority_bonus_in_combat = JAP_army_air_superiority_bonus_in_combat
	coordination_bonus = JAP_army_coordination_bonus
	conscription = JAP_army_conscription
	training_time_factor = JAP_army_training_time_factor
	experience_loss_factor = JAP_army_experience_loss_factor
	max_planning_factor = JAP_army_max_planning_factor
	conscription_factor = JAP_army_conscription_factor
	max_dig_in = JAP_army_max_dig_in
	dig_in_speed_factor = JAP_army_dig_in_speed_factor
}

JAP_imperial_navy_dm = {
	icon = GFX_idea_JAP_imperial_navy
	enable = { always = yes }

	naval_torpedo_hit_chance_factor = JAP_navy_naval_torpedo_hit_chance_factor
	ships_at_battle_start = JAP_navy_ships_at_battle_start
	navy_max_range_factor = JAP_navy_navy_max_range_factor
	naval_detection = JAP_navy_naval_detection
	naval_accidents_chance = JAP_navy_naval_accidents_chance
	convoy_escort_efficiency = JAP_navy_convoy_escort_efficiency
	naval_coordination = JAP_navy_naval_coordination
	naval_invasion_prep_speed = JAP_navy_naval_invasion_prep_speed
	amphibious_invasion = JAP_navy_amphibious_invasion
	naval_heavy_gun_hit_chance_factor = JAP_navy_naval_heavy_gun_hit_chance_factor
	navy_anti_air_attack_factor = JAP_navy_navy_anti_air_attack_factor
	naval_mine_hit_chance = JAP_navy_naval_mine_hit_chance
	naval_mines_damage_factor = JAP_navy_naval_mines_damage_factor
	navy_org_factor = JAP_navy_navy_org_factor
	experience_gain_navy_unit_factor = JAP_navy_experience_gain_navy_unit_factor
	repair_speed_factor = JAP_navy_repair_speed_factor
	refit_speed = JAP_navy_refit_speed
	naval_ship_recovery_chance = JAP_navy_naval_ship_recovery_chance
	#naval_torpedo_screen_penetration_factor = JAP_navy_naval_torpedo_screen_penetration_factor
}

# Different because different name, MAKE SURE MODIFIERS ABOVE AND BELOW ARE THE SAME 
JAP_japanese_navy_dm = {
	icon = GFX_idea_JAP_imperial_navy
	enable = { always = yes }

	naval_torpedo_hit_chance_factor = JAP_navy_naval_torpedo_hit_chance_factor
	ships_at_battle_start = JAP_navy_ships_at_battle_start
	navy_max_range_factor = JAP_navy_navy_max_range_factor
	naval_detection = JAP_navy_naval_detection
	naval_accidents_chance = JAP_navy_naval_accidents_chance
	convoy_escort_efficiency = JAP_navy_convoy_escort_efficiency
	naval_coordination = JAP_navy_naval_coordination
	naval_invasion_prep_speed = JAP_navy_naval_invasion_prep_speed
	amphibious_invasion = JAP_navy_amphibious_invasion
	naval_heavy_gun_hit_chance_factor = JAP_navy_naval_heavy_gun_hit_chance_factor
	navy_anti_air_attack_factor = JAP_navy_navy_anti_air_attack_factor
	naval_mine_hit_chance = JAP_navy_naval_mine_hit_chance
	naval_mines_damage_factor = JAP_navy_naval_mines_damage_factor
	navy_org_factor = JAP_navy_navy_org_factor
	experience_gain_navy_unit_factor = JAP_navy_experience_gain_navy_unit_factor
	repair_speed_factor = JAP_navy_repair_speed_factor
	refit_speed = JAP_navy_refit_speed
	naval_ship_recovery_chance = JAP_navy_naval_ship_recovery_chance
	#naval_torpedo_screen_penetration_factor = JAP_navy_naval_torpedo_screen_penetration_factor
}

JAP_army_and_naval_air_services_dm = {
	icon = GFX_idea_JAP_air_services
	enable = { always = yes }

	custom_modifier_tooltip = JAP_separate_air_services_tt

	custom_modifier_tooltip = JAP_lightweight_fighters_tt

	air_nav_efficiency = JAP_airforce_air_nav_efficiency
	air_wing_xp_loss_when_killed_factor = JAP_airforce_air_wing_xp_loss_when_killed_factor
	air_untrained_pilots_penalty_factor = JAP_airforce_air_untrained_pilots_penalty_factor
	air_cas_efficiency = JAP_airforce_air_cas_efficiency
	sortie_efficiency = JAP_airforce_sortie_efficiency
	air_escort_efficiency = JAP_airforce_air_escort_efficiency
	air_range_factor = JAP_airforce_air_range_factor
	air_defence_factor = JAP_airforce_air_defence_factor
	mines_planting_by_air_factor = JAP_airforce_mines_planting_by_air_factor
	port_strike = JAP_airforce_port_strike
	air_mission_efficiency = JAP_airforce_air_mission_efficiency
	#navy_carrier_air_attack_factor = JAP_airforce_navy_carrier_air_attack_factor
	#navy_carrier_air_targetting_factor = JAP_airforce_navy_carrier_air_targetting_factor
	air_accidents_factor = JAP_airforce_air_accidents_factor
}

# Different because different name, MAKE SURE MODIFIERS ABOVE AND BELOW ARE THE SAME (but don't include separate air services)
JAP_japanese_airforce_dm = {
	icon = GFX_idea_JAP_air_services
	enable = { always = yes }

	custom_modifier_tooltip = JAP_lightweight_fighters_tt

	air_nav_efficiency = JAP_airforce_air_nav_efficiency
	air_wing_xp_loss_when_killed_factor = JAP_airforce_air_wing_xp_loss_when_killed_factor
	air_untrained_pilots_penalty_factor = JAP_airforce_air_untrained_pilots_penalty_factor
	air_cas_efficiency = JAP_airforce_air_cas_efficiency
	sortie_efficiency = JAP_airforce_sortie_efficiency
	air_escort_efficiency = JAP_airforce_air_escort_efficiency
	air_range_factor = JAP_airforce_air_range_factor
	air_defence_factor = JAP_airforce_air_defence_factor
	mines_planting_by_air_factor = JAP_airforce_mines_planting_by_air_factor
	port_strike = JAP_airforce_port_strike
	air_mission_efficiency = JAP_airforce_air_mission_efficiency
	#navy_carrier_air_attack_factor = JAP_airforce_navy_carrier_air_attack_factor
	#navy_carrier_air_targetting_factor = JAP_airforce_navy_carrier_air_targetting_factor
	air_accidents_factor = JAP_airforce_air_accidents_factor
}

JAP_early_industrialization_efforts_dm = {
	icon = GFX_idea_JAP_japanese_economy
	enable = { always = yes }

	custom_modifier_tooltip = JAP_convoy_production_cost_tt

	industry_air_damage_factor = JAP_industry_industry_air_damage_factor 
	production_lack_of_resource_penalty_factor = JAP_industry_lack_of_resource_penalty_factor
	research_speed_factor = JAP_industry_research_speed_factor
	consumer_goods_factor = JAP_industry_consumer_goods_factor
	production_speed_industrial_complex_factor = JAP_industry_production_speed_industrial_complex_factor
	production_speed_arms_factory_factor = JAP_industry_production_speed_arms_factory_factor
	production_speed_dockyard_factor = JAP_industry_production_speed_dockyard_factor
	production_speed_buildings_factor = JAP_industry_production_speed_buildings_factor
	factory_energy_consumption = JAP_industry_factory_energy_consumption
	industrial_capacity_dockyard = JAP_industry_industrial_capacity_dockyard
	industrial_capacity_factory = JAP_industry_industrial_capacity_factory
	local_resources_factor = JAP_industry_local_resources_factor
	local_resources_coal_factor = JAP_industry_local_resources_coal_factor
	convoy_retreat_speed = JAP_industry_convoy_retreat_speed
	production_factory_max_efficiency_factor = JAP_industry_production_factory_max_efficiency_factor
	production_factory_efficiency_gain_factor = JAP_industry_production_factory_efficiency_gain_factor
	special_project_speed_factor = JAP_industry_special_project_speed_factor
	line_change_production_efficiency_factor = JAP_industry_line_change_production_efficiency_factor

}

JAP_the_economic_mirale_dm = {
	icon = GFX_idea_JAP_japanese_economy
	enable = { always = yes }

	custom_modifier_tooltip = JAP_convoy_production_cost_tt

	industry_air_damage_factor = JAP_industry_industry_air_damage_factor 
	production_lack_of_resource_penalty_factor = JAP_industry_lack_of_resource_penalty_factor
	research_speed_factor = JAP_industry_research_speed_factor
	consumer_goods_factor = JAP_industry_consumer_goods_factor
	production_speed_industrial_complex_factor = JAP_industry_production_speed_industrial_complex_factor
	production_speed_arms_factory_factor = JAP_industry_production_speed_arms_factory_factor
	production_speed_dockyard_factor = JAP_industry_production_speed_dockyard_factor
	production_speed_buildings_factor = JAP_industry_production_speed_buildings_factor
	factory_energy_consumption = JAP_industry_factory_energy_consumption
	industrial_capacity_dockyard = JAP_industry_industrial_capacity_dockyard
	industrial_capacity_factory = JAP_industry_industrial_capacity_factory
	local_resources_factor = JAP_industry_local_resources_factor
	local_resources_coal_factor = JAP_industry_local_resources_coal_factor
	convoy_retreat_speed = JAP_industry_convoy_retreat_speed
	production_factory_max_efficiency_factor = JAP_industry_production_factory_max_efficiency_factor
	production_factory_efficiency_gain_factor = JAP_industry_production_factory_efficiency_gain_factor
	special_project_speed_factor = JAP_industry_special_project_speed_factor
	line_change_production_efficiency_factor = JAP_industry_line_change_production_efficiency_factor

}

JAP_east_asia_co_prosperity_sphere_dm = {
	icon = GFX_idea_JAP_east_asian_co_prosperity
	enable = { always = yes }
	remove_trigger = {
		has_government = communism
	}

	autonomy_manpower_share_from_subjects = JAP_east_asia_co_prosperity_sphere_autonomy_manpower_share_from_subjects
	resources_to_overlord_factor = JAP_east_asia_co_prosperity_sphere_resources_to_overlord_factor
	production_speed_rail_way_factor = JAP_east_asia_co_prosperity_sphere_production_speed_rail_way_factor
	production_speed_supply_node_factor = JAP_east_asia_co_prosperity_sphere_production_speed_supply_node_factor
	research_speed_factor = JAP_east_asia_co_prosperity_sphere_research_speed_factor
	non_core_manpower = JAP_east_asia_co_prosperity_sphere_non_core_manpower

}

JAP_first_strike_principle_dm = {
	icon = GFX_idea_generic_japanese_conflict 
	enable = { always = yes }

	remove_trigger = {
		ROOT = { 
			NOT = {
				has_idea = JAP_first_strike_principle_1
			}
			NOT = {
				has_idea = JAP_first_strike_principle_2
			}
			NOT = {
				has_idea = JAP_first_strike_principle_3
			}
		}
	}

	custom_modifier_tooltip = JAP_first_strike_principle_dm_tt
}

JAP_kantai_kessen_dm = {
	icon = GFX_idea_generic_navy_cruiser_warfare 
	enable = { always = yes }

	remove_trigger = {
		ROOT = { 
			NOT = {
				has_idea = JAP_kantai_kessen_1
			}
			NOT = {
				has_idea = JAP_kantai_kessen_2
			}
			NOT = {
				has_idea = JAP_kantai_kessen_3
			}
		}
	}

	custom_modifier_tooltip = JAP_kantai_kessen_dm_tt
}

JAP_advanced_weapon_projects_dm = {
	icon = GFX_idea_JAP_advanced_weapons_programs 
	enable = { always = yes }
	production_speed_land_facility_factor = JAP_advanced_weapons_production_speed_land_facility_factor
	production_speed_air_facility_factor = JAP_advanced_weapons_production_speed_air_facility_factor
	sp_tag_jet_speed_factor = JAP_advanced_weapons_sp_tag_jet_speed_factor
	sp_tag_rocket_speed_factor = JAP_advanced_weapons_sp_tag_rocket_speed_factor
	sp_tag_tank_speed_factor = JAP_advanced_weapons_sp_tag_tank_speed_factor
	sp_tag_artillery_speed_factor = JAP_advanced_weapons_sp_tag_artillery_speed_factor
	sp_tag_surface_ship_speed_factor = JAP_advanced_weapons_sp_tag_surface_ship_speed_factor
	sp_commercial_nuclear_reactor_speed_factor = JAP_advanced_weapons_sp_commercial_nuclear_reactor_speed_factor
	sp_nuclear_warheads_speed_factor = JAP_advanced_weapons_sp_nuclear_warheads_speed_factor
	sp_nuclear_bomb_speed_factor = JAP_advanced_weapons_sp_nuclear_bomb_speed_factor
	production_speed_nuclear_reactor_factor = JAP_advanced_weapons_production_speed_nuclear_reactor_factor
	sp_air_intercontinental_bomber_speed_factor = JAP_advanced_weapons_sp_air_intercontinental_bomber_speed_factor
	sp_air_mothership_aircraft_speed_factor = JAP_advanced_weapons_sp_air_mothership_aircraft_speed_factor
	sp_nuclear_engines_speed_factor = JAP_advanced_weapons_sp_nuclear_engines_speed_factor
}

JAP_industrial_relocation_resources = {
	enable = { always = yes }
	icon = GFX_idea_ARG_economic_reactivation

	remove_trigger = {
		is_subject = yes
	}

	country_resource_oil = JAP_industrial_relocation_resources_country_resource_oil
	country_resource_tungsten = JAP_industrial_relocation_resources_country_resource_tungsten
	country_resource_chromium = JAP_industrial_relocation_resources_country_resource_chromium
	country_resource_rubber = JAP_industrial_relocation_resources_country_resource_rubber
}

### STATE MODIFIERS ###

JAP_operation_MO_military_offensive = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_japanese_offensive

	breakthrough_factor = 0.1
	army_attack_factor = 0.1
}

JAP_resource_extraction_investments_dm = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_generic_construction

	local_resources = 0.05
	local_building_slots = 1

}

JAP_chinese_offensive_military_offensive = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_japanese_offensive

	breakthrough_factor = 0.05
	army_attack_factor = 0.1
}

JAP_regional_development = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_generic_construction

	state_production_speed_buildings_factor = 0.1
}

JAP_intense_anti_guerilla_operation = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_desperate_defense

	local_factory_sabotage = -0.3
	local_resources = 0.05
	resistance_damage_to_garrison = -0.15
	resistance_garrison_penetration_chance = -0.15
	resistance_target = -0.25
	local_manpower = -0.25
	local_factories = -0.1
	compliance_growth = -0.2

}

KOR_resistance_against_colonial_rule_dm = { #STATE MODIFIER
	enable = { always = yes }

	remove_trigger = {
		NOT = { 
			OWNER = { 
				original_tag = KOR 
				is_subject_of = JAP
			} 
			OWNER = { original_tag = JAP } 
		}
	}

	icon = GFX_modifiers_generic_resistance

	#local_factory_sabotage = 0.05
	local_resources = -0.05
	local_factories = -0.05
	state_production_speed_buildings_factor = -0.1
	resistance_target = 0.1
	compliance_growth = -0.02

}

JAP_taiheyo_belt_modifier = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_taiheiyo_belt

	state_production_speed_buildings_factor = 0.1
}

JAP_state_under_army_control = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_army_control

	custom_modifier_tooltip	= JAP_state_under_army_control_tt
	state_production_speed_buildings_factor = -0.05
	conscription_factor = -0.1
}

JAP_state_under_rebel_control = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_rebel_control

	custom_modifier_tooltip = JAP_state_under_rebel_control_tt
	state_production_speed_buildings_factor = -0.05
	
}

JAP_state_infiltrated_by_the_jcp = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_GER_socialist_movement

	custom_modifier_tooltip	= JAP_state_infiltrated_by_the_jcp_tt
	
}

JAP_state_supporting_resistance_modifier = {
	enable = { always = yes  }
	icon = GFX_modifiers_bul_macedonian_revolutionaries
	resistance_damage_to_garrison = 0.15
	resistance_activity = 0.2
	resistance_growth = 0.5
	resistance_target = 0.8
	compliance_growth = -0.1
}

JAP_pro_japanese_sentiment_in_state = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_japanese_offensive

	breakthrough_factor = 0.1
	army_attack_factor = 0.1
}

JAP_ainu_revoluton_theory_implemented_dm = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_indigenous_socialism

	local_resources = 0.1
	local_building_slots = 1
	local_manpower = 0.25
	state_production_speed_buildings_factor = 0.1

}

JAP_urban_investments_modifier = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_taiheiyo_belt

	state_production_speed_buildings_factor = 0.1
	local_manpower = 0.1
	
}



#  #  ##  ###      ##  #  # ### 
## # #  #  #      #  # #  #  #  
# ## ####  #      #    ####  #  
#  # #  #  #      #  # #  #  #  
#  # #  #  #       ##  #  # ### 

CHI_corruption_in_the_administration = {
	icon = GFX_idea_ARG_political_corruption_modifier

	political_power_gain = CHI_corruption_pp_gain
	consumer_goods_factor = CHI_corruption_consumer_goods
	production_speed_buildings_factor = CHI_corruption_construction_speed
	cic_construction_boost_factor = CHI_corruption_cic_construction_boost_factor
	industry_free_repair_factor = CHI_corruption_free_repair_factor
	production_speed_arms_factory_factor = CHI_corruption_production_speed_arms_factory_factor
	conversion_cost_civ_to_mil_factor = CHI_corruption_conversion_cost_civ_to_mil_factor
	economy_cost_factor = CHI_corruption_economy_cost_factor
}

CHI_reorganized_administration = {
	icon = GFX_idea_chi_warlord_integration5

	political_power_gain = CHI_corruption_pp_gain
	consumer_goods_factor = CHI_corruption_consumer_goods
	production_speed_buildings_factor = CHI_corruption_construction_speed
	cic_construction_boost_factor = CHI_corruption_cic_construction_boost_factor
	industry_free_repair_factor = CHI_corruption_free_repair_factor
	production_speed_arms_factory_factor = CHI_corruption_production_speed_arms_factory_factor
	conversion_cost_civ_to_mil_factor = CHI_corruption_conversion_cost_civ_to_mil_factor
	economy_cost_factor = CHI_corruption_economy_cost_factor
}

CHI_illicit_trade = {
	icon = GFX_idea_CHI_illicit_trade_1


	consumer_goods_factor = CHI_illicit_trade_consumer_goods
	industrial_capacity_factory = CHI_illicit_trade_industrial_capacity_factory
	industrial_capacity_dockyard = CHI_illicit_trade_industrial_capacity_dockyard
}

CHI_inefficient_economy = {
	icon = GFX_idea_CHI_inefficient_economy

	production_factory_max_efficiency_factor = CHI_inefficient_economy_factory_max_efficiency_factor
	production_factory_efficiency_gain_factor = CHI_inefficient_economy_factory_efficiency_gain_factor
	base_fuel_gain_factor = CHI_inefficient_economy_base_fuel_gain_factor
}

CHI_neglected_countryside = {
	icon = GFX_idea_CHI_neglected_countryside

	communism_drift = CHI_neglected_countryside_communism_drift
	research_speed_factor = CHI_neglected_countryside_research_speed_factor
}

CHI_the_political_tutelage_dm = {
	icon = GFX_idea_CHI_the_political_tutelage_dm

	democratic_drift = CHI_the_political_tutelage_dm_democratic_drift
	production_speed_infrastructure_factor = CHI_the_political_tutelage_dm_production_speed_infrastructure_factor
	research_speed_factor = CHI_the_political_tutelage_dm_research_speed_factor
	faction_influence_contribution_factor = CHI_the_political_tutelage_dm_faction_influence_contribution_factor
	production_speed_buildings_factor = CHI_the_political_tutelage_dm_production_speed_buildings_factor
	consumer_goods_factor = CHI_the_political_tutelage_dm_consumer_goods_factor
	production_speed_industrial_complex_factor = CHI_the_political_tutelage_dm_production_speed_industrial_complex_factor
	global_building_slots = CHI_the_political_tutelage_dm_global_building_slots

	remove_trigger = {
		OR = { # Remove this and thus all the ticking democratic support if you have been subjugated or changed from the starting ideology/or democracy 
			is_subject = yes
			has_government = communism
			has_government = fascism
		}
	}

}

CHI_the_political_tutelage_upgraded_dm = {
	icon = GFX_idea_CHI_the_republic_restored

	democratic_drift = CHI_the_political_tutelage_dm_democratic_drift
	production_speed_infrastructure_factor = CHI_the_political_tutelage_dm_production_speed_infrastructure_factor
	research_speed_factor = CHI_the_political_tutelage_dm_research_speed_factor
	faction_influence_contribution_factor = CHI_the_political_tutelage_dm_faction_influence_contribution_factor
	production_speed_buildings_factor = CHI_the_political_tutelage_dm_production_speed_buildings_factor
	consumer_goods_factor = CHI_the_political_tutelage_dm_consumer_goods_factor
	production_speed_industrial_complex_factor = CHI_the_political_tutelage_dm_production_speed_industrial_complex_factor
	global_building_slots = CHI_the_political_tutelage_dm_global_building_slots
	political_power_factor = CHI_the_political_tutelage_dm_political_power_factor
	drift_defence_factor = CHI_the_political_tutelage_dm_drift_defence_factor

	remove_trigger = {
		OR = { # Remove this and thus all the ticking democratic support if you have been subjugated or changed from the starting ideology/or democracy 
			is_subject = yes
			has_government = communism
			has_government = fascism
		}
	}

}

CHI_corruption_in_the_armed_forces = {
	icon = GFX_idea_CHI_corruption_armed_forces

	# Army
	experience_gain_army_factor = CHI_corruption_in_the_armed_forces_experience_gain_army_factor
	army_org_factor = CHI_corruption_in_the_armed_forces_army_org_factor
	army_attack_factor = CHI_corruption_in_the_armed_forces_army_attack_factor
	army_defence_factor = CHI_corruption_in_the_armed_forces_army_defence_factor
	initiative_factor = CHI_corruption_in_the_armed_forces_initiative_factor
	max_dig_in = CHI_corruption_in_the_armed_forces_max_dig_in
	max_planning_factor = CHI_corruption_in_the_armed_forces_max_planning_factor
	command_power_gain_mult = CHI_corruption_in_the_armed_forces_command_power_gain_mult

	# Recruitment
	conscription_factor = CHI_corruption_in_the_armed_forces_conscription_factor
	army_morale_factor = CHI_corruption_in_the_armed_forces_army_morale_factor
	training_time_factor = CHI_corruption_in_the_armed_forces_training_time_factor

	#Illicit trade
	supply_consumption_factor = CHI_unstructured_logistics_supply_consumption_factor #was CHI_unstructured_logistics_supply_consumption_factor
	supply_node_range = CHI_unstructured_logistics_supply_node_range
	production_speed_rail_way_factor = CHI_unstructured_logistics_railway_construction_speed

	
	# experience_gain_air_factor = CHI_corruption_in_the_armed_forces 
} 

CHI_ROCAF = {
	icon = GFX_idea_CHI_air_force
	experience_gain_air_factor = CHI_ROCAF_experience_gain_air_factor 

	air_accidents_factor = CHI_ROCAF_air_accidents_factor
	air_wing_xp_loss_when_killed_factor = CHI_ROCAF_air_wing_xp_loss_when_killed_factor
	air_training_xp_gain_factor = CHI_ROCAF_air_training_xp_gain_factor

	air_power_projection_factor = CHI_ROCAF_air_power_projection_factor 
	air_home_defence_factor = CHI_ROCAF_air_home_defence_factor 
	air_bombing_targetting = CHI_ROCAF_air_bombing_targetting 
	air_escort_efficiency = CHI_ROCAF_air_escort_efficiency 
	air_strategic_bomber_bombing_factor = CHI_ROCAF_air_strategic_bomber_bombing_factor 
	air_strategic_bomber_night_penalty = CHI_ROCAF_air_strategic_bomber_night_penalty 
	air_manpower_requirement_factor = CHI_ROCAF_air_manpower_requirement_factor 
	air_interception_detect_factor = CHI_ROCAF_air_interception_detect_factor 
	air_intercept_efficiency = CHI_ROCAF_air_intercept_efficiency 
	air_superiority_bonus_in_combat = CHI_ROCAF_air_superiority_bonus_in_combat 
	air_range_factor = CHI_ROCAF_air_range_factor
	sp_tag_rocket_speed_factor = CHI_ROCAF_sp_tag_rocket_speed_factor
	sp_tag_jet_speed_factor = CHI_ROCAF_sp_tag_jet_speed_factor
	sp_tag_helicopter_speed_factor = CHI_ROCAF_sp_air_helicopter_speed_factor

	custom_modifier_tooltip = CHI_an_appropriate_design_tt
}

CHI_ROCN = {
	icon = GFX_idea_CHI_republic_of_china_navy
	
	experience_gain_navy_factor = CHI_ROCN_experience_gain_navy_factor
	mines_planting_by_air_factor = CHI_ROCN_mines_planting_by_air_factor
	Navy_intel_factor = CHI_ROCN_Navy_intel_factor
	Navy_intel_to_others = CHI_ROCN_Navy_intel_to_others

	custom_modifier_tooltip = CHI_ROCN_tt
}

CHI_protracted_warfare_idea = {
	icon = GFX_idea_CHI_protracted_warfare

	max_dig_in = CHI_protracted_warfare_max_dig_in
	dig_in_speed_factor = CHI_protracted_warfare_dig_in_speed_factor
	equipment_capture_factor = CHI_protracted_warfare_equipment_capture_factor
	cas_damage_reduction = CHI_protracted_warfare_cas_damage_reduction
	cat_mass_mobilization_cost_factor = CHI_decisive_battle_cat_mass_mobilization_cost_factor
	army_defence_factor = CHI_protracted_warfare_army_defence_factor
}

CHI_decisive_battle_idea = {
	icon = GFX_idea_CHI_decisive_battle

	#recon_factor_while_entrenched = CHI_decisive_battle_recon_factor_while_entrenched
	#dont_lose_dig_in_on_attack = CHI_decisive_battle_dont_lose_dig_in_on_attack
	army_attack_factor = CHI_decisive_battle_army_attack_factor
	breakthrough_factor = CHI_decisive_battle_breakthrough_factor
	org_loss_when_moving = CHI_decisive_battle_org_loss_when_moving
	cat_deep_battle_cost_factor = CHI_decisive_battle_cat_deep_battle_cost_factor
	unit_motorized_design_cost_factor = CHI_decisive_battle_unit_motorized_design_cost_factor
	unit_mechanized_design_cost_factor = CHI_decisive_battle_unit_mechanized_design_cost_factor
	modifier_army_sub_unit_armored_car_attack_factor = CHI_decisive_battle_modifier_army_sub_unit_armored_car_attack_factor
	modifier_army_sub_unit_armored_car_max_org_factor = CHI_decisive_battle_modifier_army_sub_unit_armored_car_max_org_factor
	modifier_army_sub_unit_armored_car_recon_attack_factor = CHI_decisive_battle_modifier_army_sub_unit_armored_car_recon_attack_factor
	modifier_army_sub_unit_armored_car_recon_max_org_factor = CHI_decisive_battle_modifier_army_sub_unit_armored_car_recon_max_org_factor
	special_forces_cap = CHI_decisive_battle_special_forces_cap
	invasion_preparation = CHI_decisive_battle_invasion_preparation
}

CHI_unstructured_logistics = {
	icon = GFX_idea_generic_supply_depot 

	supply_consumption_factor = CHI_unstructured_logistics_supply_consumption_factor
	supply_node_range = CHI_unstructured_logistics_supply_node_range
	production_speed_rail_way_factor = CHI_unstructured_logistics_railway_construction_speed
}

CHI_blue_shirt_society = {
	icon = GFX_idea_CHI_blue_shirt_society

	war_support_factor = CHI_blue_shirt_society_war_support_factor
	stability_factor = CHI_blue_shirt_society_stability_factor
	fascism_drift = CHI_blue_shirt_society_fascism_drift
	training_time_factor = CHI_blue_shirt_society_training_time_factor
	command_power_gain_mult = CHI_blue_shirt_society_command_power_gain_mult
	army_org_factor =  CHI_blue_shirt_society_army_org_factor
	army_morale_factor = CHI_blue_shirt_society_army_morale_factor
}

CHI_gung_ho_idea = {
	icon = GFX_idea_CHI_initiate_gung_ho_movement
	enable = {
		has_war = yes 
		has_completed_focus = CHI_initiate_the_gung_ho_movement
	}

	war_support_factor = CHI_gung_ho_idea_war_support_factor 
	production_speed_arms_factory_factor = CHI_gung_ho_idea_production_speed_arms_factory_factor
	production_factory_efficiency_gain_factor = CHI_gung_ho_idea_production_factory_efficiency_gain_factor 
	production_factory_max_efficiency_factor = CHI_gung_ho_idea_production_factory_max_efficiency_factor 
	industry_repair_factor = CHI_gung_ho_idea_repair_speed_factor 
	production_speed_facility_factor = CHI_gung_ho_idea_production_speed_facility_factor
	production_factory_start_efficiency_factor = CHI_gung_ho_idea_production_factory_start_efficiency_factor
}

CHI_new_life_movement = {
	icon = GFX_idea_CHI_new_life_movement

	consumer_goods_factor =  CHI_new_life_movement_consumer_goods_factor
	stability_factor = CHI_new_life_movement_stability_factor
	research_speed_factor = CHI_new_life_movement_research_speed_factor
	surrender_limit = CHI_new_life_movement_surrender_limit
	training_time_factor = CHI_new_life_movement_training_time_factor
	
}

CHI_soviet_support = {
	icon = GFX_idea_CHI_lend_lease_soviet
	remove_trigger = {
		has_war_with = SOV
	}

	army_armor_attack_factor = CHI_soviet_support_army_armor_attack_factor 
	army_armor_speed_factor = CHI_soviet_support_army_armor_speed_factor 

	custom_modifier_tooltip = CHI_soviet_support_dm_tt
}

CHI_american_support = {
	icon = GFX_idea_CHI_lend_lease_american
	

	experience_gain_air_factor = CHI_american_support_experience_gain_air_factor
	air_accidents_factor = CHI_american_support_air_accidents_factor

	custom_modifier_tooltip = CHI_american_support_dm_tt
}

CHI_nine_power_treaty_sea = {
	icon = GFX_idea_CHI_nine_power_treaty_sea

	consumer_goods_factor = nine_power_treaty_cg
	min_export = nine_power_min_export 
	enemy_justify_war_goal_time = nine_power_justify_war_goal_time
	# Lower amount of resources
	# Easier to buy resources for signatories
	# Fabrication war goal time for signatories 
}

CHI_american_reconstruction_support = {
	icon = GFX_idea_ARG_american_allyship

	remove_trigger = {
		has_war_with = USA
	}

	custom_modifier_tooltip = CHI_american_support_reconstruction_dm_tt
}

CHI_foreign_economic_support = {
	icon = GFX_idea_generic_supply_depot

	custom_modifier_tooltip = CHI_foreign_economic_support_dm_tt
}

CHI_academy_of_sciences_dm = {
	icon = GFX_idea_jap_supremacy_of_technology

	research_speed_factor = CHI_academy_of_sciences_dm_research_speed_factor

	remove_trigger = {
	}

}


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

CHI_bog_defensive_modifier = { #Defensive bonuses for NatCHI in core states
	enable = { 
		ROOT = {
			controller = {
				OR = {
					original_tag = CHI
					is_ally_with = CHI
				}
			}
		}

	} 
	icon = GFX_modifiers_CHI_bog_defensive_modifier 

	army_infantry_defence_factor = CHI_bog_defensive_modifier_army_infantry_defence_factor
	
}

CHI_declared_war_zone_idea = { #Defensive bonuses for NatCHI in core states
	enable = { 
	 	ROOT = {
	 		controller = {
	 			has_war_with = CHI
	 		}
	 	}
	} 
	icon = GFX_modifiers_CHI_declared_war_zone_idea

	breakthrough_factor = CHI_declare_war_zone_breakthrough_factor
	army_infantry_attack_factor = CHI_declare_war_zone_army_infantry_attack_factor
	army_artillery_attack_factor = CHI_declare_war_zone_army_artillery_attack_factor
	initiative_factor = CHI_declared_war_zone_initiative_factor 
	army_attack_speed_factor = CHI_declared_war_zone_army_attack_speed_factor #TODO_CM: Rework if cant get code support
	recon_factor_while_entrenched = CHI_declared_war_zone_recon_factor_while_entrenched #TODO_CM: Rework if cant get code support
	
}

CHI_shanghai_international_settlement = { #State Modifier
	enable = { always = yes }

	icon = GFX_modifiers_CHI_shanghai_international_settlement
	
	amphibious_invasion_defence = -0.35
	local_manpower = -0.15

}

CHI_local_rural_reconstruction_modifier = { #STATE MODIFIER
	enable = { always = yes }

	icon = GFX_modifiers_JAP_taiheiyo_belt

	state_production_speed_buildings_factor = 0.05
	
}

CHI_electrification_and_mass_education_modifier = {
	enable = { always = yes }

	remove_trigger = {
		ROOT = { 
			OWNER = {
				OR = {
					is_literally_china = no
					has_war_with = CHI
				}
			} # ROOT refers to the state on which the modifier is added
		}
	}

	icon = GFX_modifiers_ETH_state_development	

	state_production_speed_buildings_factor = 0.05
	local_building_slots_factor = 0.05
	state_production_speed_infrastructure_factor = 0.1
	local_manpower = 0.05

}

CHI_infiltrated_state_1 = {
	icon = GFX_modifiers_PRC_infiltrated_state_1	
	enable = { always = yes }

	out_of_supply_factor = -0.1
	max_dig_in_factor = 0.1

}

CHI_infiltrated_state_2 = {
	icon = GFX_modifiers_PRC_infiltrated_state_2	
	enable = { always = yes }

	army_attack_factor = 0.05
	out_of_supply_factor = -0.1
	max_dig_in_factor = 0.1
}

CHI_infiltrated_state_3 = {
	icon = GFX_modifiers_PRC_infiltrated_state_3	
	enable = { always = yes }

	breakthrough_factor = 0.05
	army_attack_factor = 0.05
	out_of_supply_factor = -0.1
	max_dig_in_factor = 0.1

}

