WH_Market_decisions = {

#ПЕРЕКЛЮЧЕНИЕ СТРАНИЦ
#ПЕРЕКЛЮЧЕНИЕ СТРАНИЦ

WH_Market_infantry_and_support_equipment_page = {
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
  has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock   }
   }
 }
 priority = 500
 complete_effect = {
custom_effect_tooltip = WH_Market_page_change
set_country_flag = WH_Market_artillery_page_unlock
}
}


WH_Market_investment_department_page_button = { 
icon = GFX_decision_generic_fundraising
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
  has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock  }
   }
 }
 priority = 499
 complete_effect = {
custom_effect_tooltip = WH_Market_page_change_button1
set_country_flag = WH_Market_investment_department_page_unlock
}
}

WH_Market_investment_department_page = { 
icon = GFX_decision_generic_fundraising
 visible = { 
has_country_flag = WH_Market_investment_department_page_unlock 
 }
 priority = 499
 complete_effect = {
custom_effect_tooltip = WH_Market_page_change_button2
clr_country_flag = WH_Market_investment_department_page_unlock
}
}

WH_Market_science_page_button = {
icon = GFX_decision_generic_research
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
  has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_investment_department_page_unlock
has_country_flag = WH_Market_geological_exploration_page_unlock }
   }
 }
 priority = 498
 complete_effect = {
custom_effect_tooltip = WH_Market_page_change_button3
set_country_flag = WH_Market_science_page_unlock
}
}

WH_Market_resources_page_button = {
icon = GFX_decision_generic_forestry
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
  has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_science_page_unlock
has_country_flag = WH_Market_geological_exploration_page_unlock  
has_country_flag = WH_Market_investment_department_page_unlock }
   }
 }
 priority = 498
 complete_effect = {
custom_effect_tooltip = WH_Market_page_change_button5
set_country_flag = WH_Market_geological_exploration_page_unlock
}
}

WH_Market_resources_page = {
icon = GFX_decision_generic_forestry
 visible = { 
has_country_flag = WH_Market_geological_exploration_page_unlock 
 }
 priority = 498
 complete_effect = {
custom_effect_tooltip = WH_Market_page_change_button4
clr_country_flag = WH_Market_geological_exploration_page_two_unlock
clr_country_flag = WH_Market_geological_exploration_page_unlock
}
}

WH_Market_science_page = {
icon = GFX_decision_generic_research
 visible = { 
has_country_flag = WH_Market_science_page_unlock 
 }
 priority = 498
 complete_effect = {
custom_effect_tooltip = WH_Market_page_change_button4
clr_country_flag = WH_Market_science_page_unlock
}
}

WH_Market_artillery_page = {
 visible = { has_country_flag = WH_Market_artillery_page_unlock }
  priority = 500
 complete_effect = {
 custom_effect_tooltip = WH_Market_page_change2
set_country_flag = WH_Market_logistics_page_unlock 
clr_country_flag = WH_Market_artillery_page_unlock
}}

WH_Market_logistics_page = {
 visible = { has_country_flag = WH_Market_logistics_page_unlock }
  priority = 500
 complete_effect = {
 custom_effect_tooltip = WH_Market_page_change3
set_country_flag = WH_Market_armored_vehicles_page_unlock
clr_country_flag = WH_Market_logistics_page_unlock 
}}

WH_Market_armored_vehicles_page = {
 visible = { has_country_flag = WH_Market_armored_vehicles_page_unlock }
  priority = 500
 complete_effect = {
 custom_effect_tooltip = WH_Market_page_change4
set_country_flag = WH_Market_aviation_page_unlock 
clr_country_flag = WH_Market_armored_vehicles_page_unlock } }

WH_Market_aviation_page = {
 visible = { has_country_flag = WH_Market_aviation_page_unlock }
  priority = 500
 complete_effect = {
 custom_effect_tooltip = WH_Market_page_change6
clr_country_flag = WH_Market_aviation_page_unlock 
set_country_flag = WH_Market_navy_page_unlock
}}

WH_Market_navy_page = {
 visible = { has_country_flag = WH_Market_navy_page_unlock }
  priority = 500
 complete_effect = {
 custom_effect_tooltip = WH_Market_page_change5
clr_country_flag = WH_Market_navy_page_unlock 
}}

#Пехотное снаряжение и доп. оснащение.
#Пехотное снаряжение и доп. оснащение.
#Пехотное снаряжение и доп. оснащение.
#Пехотное снаряжение и доп. оснащение.

WH_Market_infantry_equipment_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
 has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock }
   } }
}

WH_Market_infantry_equipment_one_decision = {
icon = GFX_decision_generic_industry
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
has_country_flag = WH_Market_logistics_page_unlock 
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock }
   } }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 15 }
 
  modifier = {
  civilian_factory_use = 16
  custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = infantry_equipment
    amount = 20000
 	}
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_infantry_equipment_two_decision = {
icon = GFX_decision_generic_industry
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock 
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock}
   } }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = infantry_equipment
    amount = 15000
	}
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_infantry_equipment_three_decision = {
icon = GFX_decision_generic_industry
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock }
   } }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = infantry_equipment
    amount = 10000
}
custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_infantry_equipment_four_decision = {
icon = GFX_decision_generic_industry
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock 
 has_country_flag = WH_Market_logistics_page_unlock
 has_country_flag = WH_Market_armored_vehicles_page_unlock
 has_country_flag = WH_Market_aviation_page_unlock 
 has_country_flag = WH_Market_navy_page_unlock
 has_country_flag = WH_Market_science_page_unlock 
 has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock}
   } }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = infantry_equipment
    amount = 5000 
}
custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


#Доп. Оснащение
#Доп. Оснащение
#Доп. Оснащение
#Доп. Оснащение

WH_Market_support_equipment_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
has_country_flag = WH_Market_logistics_page_unlock 
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock}
   } }
}

WH_Market_support_equipment_one_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock 
 has_country_flag = WH_Market_logistics_page_unlock
 has_country_flag = WH_Market_armored_vehicles_page_unlock
 has_country_flag = WH_Market_aviation_page_unlock 
 has_country_flag = WH_Market_navy_page_unlock
 has_country_flag = WH_Market_science_page_unlock 
 has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock}
   } }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = support_equipment
    amount = 1600
	}
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_support_equipment_two_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock 
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock}
   } }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = support_equipment
    amount = 1200 
}
custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_support_equipment_three_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
has_country_flag = WH_Market_logistics_page_unlock
has_country_flag = WH_Market_armored_vehicles_page_unlock 
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock}
   } }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = support_equipment
    amount = 800 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_support_equipment_four_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = { 
 NOT = { 
    OR = { 
 has_country_flag = WH_Market_artillery_page_unlock
has_country_flag = WH_Market_logistics_page_unlock 
has_country_flag = WH_Market_armored_vehicles_page_unlock
has_country_flag = WH_Market_aviation_page_unlock 
has_country_flag = WH_Market_navy_page_unlock
has_country_flag = WH_Market_science_page_unlock 
has_country_flag = WH_Market_geological_exploration_page_unlock
has_country_flag = WH_Market_investment_department_page_unlock}
   } }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = support_equipment
    amount = 400
}
custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

#Артиллерия
#Артиллерия
#Артиллерия
#Артиллерия


WH_Market_artillery_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
}

WH_Market_artillery_one_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = artillery_equipment
    amount = 1000 	}
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_artillery_two_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = artillery_equipment
    amount = 750 
	}
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_artillery_three_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = artillery_equipment
    amount = 500	}
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_artillery_four_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = artillery_equipment
    amount = 250 
	}
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

#ПВО
#ПВО
#ПВО
#ПВО


WH_Market_anti_air_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
}

WH_Market_anti_air_one_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = anti_air_equipment
    amount = 1000
}
custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_anti_air_two_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = anti_air_equipment
    amount = 750
}
custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_anti_air_three_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = anti_air_equipment
    amount = 500 
	}
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_anti_air_four_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = anti_air_equipment
    amount = 250  } 
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


#ПТО
#ПТО
#ПТО
#ПТО


WH_Market_anti_tank_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
}

WH_Market_anti_tank_one_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = anti_tank_equipment
    amount = 1000  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_anti_tank_two_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = anti_tank_equipment
    amount = 750  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_anti_tank_three_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = anti_tank_equipment
    amount = 500  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_anti_tank_four_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = anti_tank_equipment
    amount = 250  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


#РСЗО
#РСЗО
#РСЗО
#РСЗО


WH_Market_rocket_artillery_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
}

WH_Market_rocket_artillery_one_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = rocket_artillery
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = rocket_artillery_equipment
    amount = 1000  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_rocket_artillery_two_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = rocket_artillery
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = rocket_artillery_equipment
    amount = 750  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_rocket_artillery_three_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = rocket_artillery
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = rocket_artillery_equipment
    amount = 500  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_rocket_artillery_four_decision = {
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_artillery_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = rocket_artillery
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = rocket_artillery_equipment
    amount = 250  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


#Логистика
#Логистика
#Логистика
#Логистика


WH_Market_motorized_equipment_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
}

WH_Market_motorized_equipment_one_decision = {
icon = GFX_decision_generic_trucks
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = motorized_equipment
    amount = 1800  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_motorized_equipment_two_decision = {
icon = GFX_decision_generic_trucks
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = motorized_equipment
    amount = 1350  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_motorized_equipment_three_decision = {
icon = GFX_decision_generic_trucks
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = motorized_equipment
    amount = 900  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_motorized_equipment_four_decision = {
icon = GFX_decision_generic_trucks
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = motorized_equipment
    amount = 450  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}



#Конвои
#Конвои
#Конвои
#Конвои



WH_Market_convoy_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
}

WH_Market_convoy_one_decision = {
icon = GFX_decision_generic_human_torpedo
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = convoy
    amount = 700  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_convoy_two_decision = {
icon = GFX_decision_generic_human_torpedo
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = convoy
    amount = 525  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_convoy_three_decision = {
icon = GFX_decision_generic_human_torpedo
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = convoy
    amount = 350  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_convoy_four_decision = {
icon = GFX_decision_generic_human_torpedo
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = convoy
    amount = 175  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}




#Поезда
#Поезда
#Поезда
#Поезда




WH_Market_train_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
}

WH_Market_train_one_decision = {
icon = GFX_decision_generic_train
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = train_equipment
    amount = 120  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_train_two_decision = {
icon = GFX_decision_generic_train
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = train_equipment
    amount = 90  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_train_three_decision = {
icon = GFX_decision_generic_train
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = train_equipment
    amount = 60  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_train_four_decision = {
icon = GFX_decision_generic_train
icon = GFX_decision_generic_prepare_civil_war
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = train_equipment
    amount = 30  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

#Транспортные самолеты
#Транспортные самолеты
#Транспортные самолеты
#Транспортные самолеты




WH_Market_transport_plane_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_logistics_page_unlock }
}

WH_Market_transport_plane_one_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = bba_early_transport_plane
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = transport_plane_equipment
    amount = 400  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_transport_plane_two_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = bba_early_transport_plane
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = transport_plane_equipment
    amount = 300  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_transport_plane_three_decision = {
icon = GFX_decision_generic_air
 visible = { 
has_dlc = "By Blood Alone" 
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = bba_early_transport_plane
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = transport_plane_equipment
    amount = 200  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_transport_plane_four_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = bba_early_transport_plane
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = transport_plane_equipment
    amount = 100  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}






#Транспортные самолеты без длс
#Транспортные самолеты без длс
#Транспортные самолеты без длс
#Транспортные самолеты без длс


WH_Market_transport_plane_one_decision_no_dlc  = {
icon = GFX_decision_generic_air
 visible = {  
 NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = early_transport_plane
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {

    if = {
        limit = {
            has_tech = early_transport_plane
            NOT = {
                OR = {
                    has_tech = improved_transport_plane
                    has_tech = strategic_airlifter
                }
            }
        }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_1
            amount = 400
        }
    }

    if = {
        limit = {
            has_tech = improved_transport_plane
            NOT = { has_tech = strategic_airlifter }
        }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_2
            amount = 400
        }
    }

    if = {
        limit = { has_tech = strategic_airlifter }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_3
            amount = 400
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}

WH_Market_transport_plane_two_decision_no_dlc  = {
icon = GFX_decision_generic_air
 visible = {  
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = early_transport_plane
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = early_transport_plane
            NOT = {
                OR = {
                    has_tech = improved_transport_plane
                    has_tech = strategic_airlifter
                }
            }
        }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_1
            amount = 300
        }
    }

    if = {
        limit = {
            has_tech = improved_transport_plane
            NOT = { has_tech = strategic_airlifter }
        }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_2
            amount = 300
        }
    }

    if = {
        limit = { has_tech = strategic_airlifter }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_3
            amount = 300
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}


WH_Market_transport_plane_three_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = { 
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = early_transport_plane
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = early_transport_plane
            NOT = {
                OR = {
                    has_tech = improved_transport_plane
                    has_tech = strategic_airlifter
                }
            }
        }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_1
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = improved_transport_plane
            NOT = { has_tech = strategic_airlifter }
        }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_2
            amount = 200
        }
    }

    if = {
        limit = { has_tech = strategic_airlifter }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_3
            amount = 200
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}

WH_Market_transport_plane_four_decision_no_dlc  = {
icon = GFX_decision_generic_air
 visible = {  
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_logistics_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = early_transport_plane
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {

    if = {
        limit = {
            has_tech = early_transport_plane
            NOT = {
                OR = {
                    has_tech = improved_transport_plane
                    has_tech = strategic_airlifter
                }
            }
        }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_1
            amount = 100
        }
    }

    if = {
        limit = {
            has_tech = improved_transport_plane
            NOT = { has_tech = strategic_airlifter }
        }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_2
            amount = 100
        }
    }

    if = {
        limit = { has_tech = strategic_airlifter }
        add_equipment_to_stockpile = {
            type = transport_plane_equipment_3
            amount = 100
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}

#Бронетехника
#Бронетехника
#Бронетехника
#Бронетехника





WH_Market_armored_vehicles_category_decision = {
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
}

WH_Market_mechanized_equipment_one_decision = {
icon = GFX_decision_generic_motorized
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = mechanised_infantry
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = mechanized_equipment
    amount = 1200  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_mechanized_equipment_two_decision = {
icon = GFX_decision_generic_motorized
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = mechanised_infantry
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = mechanized_equipment
    amount = 900  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_mechanized_equipment_three_decision = {
icon = GFX_decision_generic_motorized
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = mechanised_infantry
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = mechanized_equipment
    amount = 600  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_mechanized_equipment_four_decision = {
icon = GFX_decision_generic_motorized
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = mechanised_infantry
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = mechanized_equipment
    amount = 300  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

#Корпуса танков
#Корпуса танков
#Корпуса танков
#Корпуса танков


WH_Market_medium_tank_category_decision = {
icon = GFX_decision_generic_merge_plant_tank
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
}

WH_Market_medium_tank_one_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_tank_chassis
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = medium_tank_chassis
    amount = 700  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_medium_tank_two_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_tank_chassis
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = medium_tank_chassis
    amount = 525 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_medium_tank_three_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_tank_chassis
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = medium_tank_chassis
    amount = 350  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_medium_tank_four_decision = {
icon = GFX_decision_generic_tank
 visible = {  
 has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_tank_chassis
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = medium_tank_chassis
    amount = 175  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}



#СРЕДНИЕ ТАНКИ БЕЗ ДЛС
#СРЕДНИЕ ТАНКИ БЕЗ ДЛС
#СРЕДНИЕ ТАНКИ БЕЗ ДЛС
#СРЕДНИЕ ТАНКИ БЕЗ ДЛС



WH_Market_medium_tank_one_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
  NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_tank
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
    if = {
        limit = {
            has_tech = basic_medium_tank
            NOT = {
                OR = {
                    has_tech = improved_medium_tank
                    has_tech = advanced_medium_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_1
            amount = 700
        }
    }

    if = {
        limit = {
            has_tech = improved_medium_tank
            NOT = { has_tech = advanced_medium_tank }
        }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_2
            amount = 700
        }
    }

    if = {
        limit = { has_tech = advanced_medium_tank }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_3
            amount = 700
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_medium_tank_two_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_tank
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {
    if = {
        limit = {
            has_tech = basic_medium_tank
            NOT = {
                OR = {
                    has_tech = improved_medium_tank
                    has_tech = advanced_medium_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_1
            amount = 525
        }
    }

    if = {
        limit = {
            has_tech = improved_medium_tank
            NOT = { has_tech = advanced_medium_tank }
        }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_2
            amount = 525
        }
    }

    if = {
        limit = { has_tech = advanced_medium_tank }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_3
            amount = 525
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_medium_tank_three_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_tank
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {
    if = {
        limit = {
            has_tech = basic_medium_tank
            NOT = {
                OR = {
                    has_tech = improved_medium_tank
                    has_tech = advanced_medium_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_1
            amount = 350
        }
    }

    if = {
        limit = {
            has_tech = improved_medium_tank
            NOT = { has_tech = advanced_medium_tank }
        }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_2
            amount = 350
        }
    }

    if = {
        limit = { has_tech = advanced_medium_tank }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_3
            amount = 350
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_medium_tank_four_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_tank
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
    if = {
        limit = {
            has_tech = basic_medium_tank
            NOT = {
                OR = {
                    has_tech = improved_medium_tank
                    has_tech = advanced_medium_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_1
            amount = 175
        }
    }

    if = {
        limit = {
            has_tech = improved_medium_tank
            NOT = { has_tech = advanced_medium_tank }
        }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_2
            amount = 175
        }
    }

    if = {
        limit = { has_tech = advanced_medium_tank }
        add_equipment_to_stockpile = {
            type = medium_tank_equipment_3
            amount = 175
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}

#Тяжелые танки
#Тяжелые танки
#Тяжелые танки
#Тяжелые танки





WH_Market_heavy_tank_category_decision = {
icon = GFX_decision_generic_merge_plant_tank
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
}

WH_Market_heavy_tank_one_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_heavy_tank_chassis
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = heavy_tank_chassis
    amount = 560  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_heavy_tank_two_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_heavy_tank_chassis
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = heavy_tank_chassis
    amount = 420 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_heavy_tank_three_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_heavy_tank_chassis
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = heavy_tank_chassis
    amount = 280  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_heavy_tank_four_decision = {
icon = GFX_decision_generic_tank
 visible = {  
 has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_heavy_tank_chassis
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = heavy_tank_chassis
    amount = 140  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


#Тяжелые танки без длс
#Тяжелые танки без длс
#Тяжелые танки без длс
#Тяжелые танки без длс


WH_Market_heavy_tank_one_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_heavy_tank
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {
    if = {
        limit = {
            has_tech = basic_heavy_tank
            NOT = {
                OR = {
                    has_tech = improved_heavy_tank
                    has_tech = advanced_heavy_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = heavy_tank_equipment_1
            amount = 560
        }
    }

    if = {
        limit = {
            has_tech = improved_heavy_tank
            NOT = { has_tech = advanced_heavy_tank }
        }
        add_equipment_to_stockpile = {
            type =  heavy_tank_equipment_2
            amount = 560
        }
    }

    if = {
        limit = { has_tech = advanced_heavy_tank }
        add_equipment_to_stockpile = {
            type =  heavy_tank_equipment_3
            amount = 560
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_heavy_tank_two_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_heavy_tank
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {
    if = {
        limit = {
            has_tech = basic_heavy_tank
            NOT = {
                OR = {
                    has_tech = improved_heavy_tank
                    has_tech = advanced_heavy_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = heavy_tank_equipment_1
            amount = 420
        }
    }

    if = {
        limit = {
            has_tech = improved_heavy_tank
            NOT = { has_tech = advanced_heavy_tank }
        }
        add_equipment_to_stockpile = {
            type =  heavy_tank_equipment_2
            amount = 420
        }
    }

    if = {
        limit = { has_tech = advanced_heavy_tank }
        add_equipment_to_stockpile = {
            type =  heavy_tank_equipment_3
            amount = 420
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_heavy_tank_three_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
 NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
has_tech = basic_heavy_tank
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {
    if = {
        limit = {
            has_tech = basic_heavy_tank
            NOT = {
                OR = {
                    has_tech = improved_heavy_tank
                    has_tech = advanced_heavy_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = heavy_tank_equipment_1
            amount = 280
        }
    }

    if = {
        limit = {
            has_tech = improved_heavy_tank
            NOT = { has_tech = advanced_heavy_tank }
        }
        add_equipment_to_stockpile = {
            type =  heavy_tank_equipment_2
            amount = 280
        }
    }

    if = {
        limit = { has_tech = advanced_heavy_tank }
        add_equipment_to_stockpile = {
            type =  heavy_tank_equipment_3
            amount = 280
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_heavy_tank_four_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
has_tech = basic_heavy_tank
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
    if = {
        limit = {
            has_tech = basic_heavy_tank
            NOT = {
                OR = {
                    has_tech = improved_heavy_tank
                    has_tech = advanced_heavy_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = heavy_tank_equipment_1
            amount = 140
        }
    }

    if = {
        limit = {
            has_tech = improved_heavy_tank
            NOT = { has_tech = advanced_heavy_tank }
        }
        add_equipment_to_stockpile = {
            type =  heavy_tank_equipment_2
            amount = 140
        }
    }

    if = {
        limit = { has_tech = advanced_heavy_tank }
        add_equipment_to_stockpile = {
            type =  heavy_tank_equipment_3
            amount = 140
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}






#Лёгкие танки
#Лёгкие танки
#Лёгкие танки
#Лёгкие танки






WH_Market_light_tank_category_decision = {
icon = GFX_decision_generic_merge_plant_tank
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
}

WH_Market_light_tank_one_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_light_tank_chassis
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = light_tank_chassis
    amount = 840  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_light_tank_two_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_light_tank_chassis
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = light_tank_chassis
    amount = 630 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_light_tank_three_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_light_tank_chassis
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = light_tank_chassis
    amount = 420  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_light_tank_four_decision = {
icon = GFX_decision_generic_tank
 visible = {  
 has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_light_tank_chassis
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = light_tank_chassis
    amount = 210  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}



#Лёгкие танки без длс
#Лёгкие танки без длс
#Лёгкие танки без длс
#Лёгкие танки без длс



WH_Market_light_tank_one_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
  NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_light_tank
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
    if = {
        limit = {
            has_tech = basic_light_tank
            NOT = {
                OR = {
                    has_tech = improved_light_tank
                    has_tech = advanced_light_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = light_tank_equipment_1
            amount = 840
        }
    }

    if = {
        limit = {
            has_tech = improved_light_tank
            NOT = { has_tech = advanced_light_tank }
        }
        add_equipment_to_stockpile = {
            type =  light_tank_equipment_2
            amount = 840
        }
    }

    if = {
        limit = { has_tech = advanced_light_tank }
        add_equipment_to_stockpile = {
            type =  light_tank_equipment_3
            amount = 840
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_light_tank_two_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
 NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_light_tank
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
    if = {
        limit = {
            has_tech = basic_light_tank
            NOT = {
                OR = {
                    has_tech = improved_light_tank
                    has_tech = advanced_light_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = light_tank_equipment_1
            amount = 630
        }
    }

    if = {
        limit = {
            has_tech = improved_light_tank
            NOT = { has_tech = advanced_light_tank }
        }
        add_equipment_to_stockpile = {
            type =  light_tank_equipment_2
            amount = 630
        }
    }

    if = {
        limit = { has_tech = advanced_light_tank }
        add_equipment_to_stockpile = {
            type =  light_tank_equipment_3
            amount = 630
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_light_tank_three_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
 NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_light_tank
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
  remove_effect = {
    if = {
        limit = {
            has_tech = basic_light_tank
            NOT = {
                OR = {
                    has_tech = improved_light_tank
                    has_tech = advanced_light_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = light_tank_equipment_1
            amount = 420
        }
    }

    if = {
        limit = {
            has_tech = improved_light_tank
            NOT = { has_tech = advanced_light_tank }
        }
        add_equipment_to_stockpile = {
            type =  light_tank_equipment_2
            amount = 420
        }
    }

    if = {
        limit = { has_tech = advanced_light_tank }
        add_equipment_to_stockpile = {
            type =  light_tank_equipment_3
            amount = 420
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_light_tank_four_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_light_tank
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
    if = {
        limit = {
            has_tech = basic_light_tank
            NOT = {
                OR = {
                    has_tech = improved_light_tank
                    has_tech = advanced_light_tank
                }
            }
        }
        add_equipment_to_stockpile = {
            type = light_tank_equipment_1
            amount = 210
        }
    }

    if = {
        limit = {
            has_tech = improved_light_tank
            NOT = { has_tech = advanced_light_tank }
        }
        add_equipment_to_stockpile = {
            type =  light_tank_equipment_2
            amount = 210
        }
    }

    if = {
        limit = { has_tech = advanced_light_tank }
        add_equipment_to_stockpile = {
            type =  light_tank_equipment_3
            amount = 210
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}


#СОВРЕМЕННЫЕ ТАНКИ
#СОВРЕМЕННЫЕ ТАНКИ
#СОВРЕМЕННЫЕ ТАНКИ
#СОВРЕМЕННЫЕ ТАНКИ



WH_Market_modern_tank_category_decision = {
icon = GFX_decision_generic_merge_plant_tank
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
}

WH_Market_modern_tank_one_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = main_battle_tank_chassis
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = modern_tank_chassis
    amount = 840  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_modern_tank_two_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = main_battle_tank_chassis
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = modern_tank_chassis
    amount = 630 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_modern_tank_three_decision = {
icon = GFX_decision_generic_tank
 visible = {  
  has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = main_battle_tank_chassis
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = modern_tank_chassis
    amount = 420  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_modern_tank_four_decision = {
icon = GFX_decision_generic_tank
 visible = {  
 has_dlc = "No Step Back"
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = main_battle_tank_chassis
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = modern_tank_chassis
    amount = 210  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}



#СОВРЕМЕННЫЕ ТАНКИ БЕЗ ДЛС
#СОВРЕМЕННЫЕ ТАНКИ БЕЗ ДЛС
#СОВРЕМЕННЫЕ ТАНКИ БЕЗ ДЛС
#СОВРЕМЕННЫЕ ТАНКИ БЕЗ ДЛС


WH_Market_modern_tank_one_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
 NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = main_battle_tank
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = modern_tank_equipment_1
    amount = 700  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_modern_tank_two_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
 NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = main_battle_tank
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = modern_tank_equipment_1
    amount = 525 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_modern_tank_three_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
 NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = main_battle_tank
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = modern_tank_equipment_1
    amount = 350  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_modern_tank_four_decision_no_dlc = {
icon = GFX_decision_generic_tank
 visible = {  
 NOT = { has_dlc = "No Step Back" }
 has_country_flag = WH_Market_armored_vehicles_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = main_battle_tank
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = modern_tank_equipment_1
    amount = 175  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


#Авиация
#Авиация
#Авиация
#Авиация


WH_Market_small_plane_category_decision = {
icon = GFX_decision_generic_merge_plant_aircraft
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_aviation_page_unlock }
}

WH_Market_small_plane_one_decision = {
icon = GFX_decision_generic_air
 visible = {  
  has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_small_airframe
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = small_plane_airframe
    amount = 800  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_small_plane_two_decision = {
icon = GFX_decision_generic_air
 visible = {  
  has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_small_airframe
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = small_plane_airframe
    amount = 600 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_small_plane_three_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_small_airframe
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = small_plane_airframe
    amount = 400  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_small_plane_four_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_small_airframe
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = small_plane_airframe
    amount = 200  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}




#Истребители без длс
#Истребители без длс
#Истребители без длс
#Истребители без длс





WH_Market_small_plane_one_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
 NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = fighter1
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {

    if = {
        limit = {
            has_tech = fighter1
            NOT = {
                OR = {
                    has_tech = fighter2
                    has_tech = fighter3
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_1
            amount = 800
        }
    }

    if = {
        limit = {
            has_tech = fighter2
            NOT = {
                OR = {
                    has_tech = fighter3
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_2
            amount = 800
        }
    }

    if = {
        limit = {
            has_tech = fighter3
            NOT = {
                OR = {
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_3
            amount = 800
        }
    }

    if = {
        limit = {
            has_tech = jet_fighter1
            NOT = { has_tech = jet_fighter2 }
        }
        add_equipment_to_stockpile = {
            type = jet_fighter_equipment_1
            amount = 800
        }
    }

    if = {
        limit = { has_tech = jet_fighter2 }
        add_equipment_to_stockpile = {
            type = jet_fighter_equipment_2
            amount = 800
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_small_plane_two_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
  NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = fighter1
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = fighter1
            NOT = {
                OR = {
                    has_tech = fighter2
                    has_tech = fighter3
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_1
            amount = 600
        }
    }

    if = {
        limit = {
            has_tech = fighter2
            NOT = {
                OR = {
                    has_tech = fighter3
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_2
            amount = 600
        }
    }

    if = {
        limit = {
            has_tech = fighter3
            NOT = {
                OR = {
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_3
            amount = 600
        }
    }

    if = {
        limit = {
            has_tech = jet_fighter1
            NOT = { has_tech = jet_fighter2 }
        }
        add_equipment_to_stockpile = {
            type = jet_fighter_equipment_1
            amount = 600
        }
    }

    if = {
        limit = { has_tech = jet_fighter2 }
        add_equipment_to_stockpile = {
            type = jet_fighter_equipment_2
            amount = 600
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_small_plane_three_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = fighter1
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = fighter1
            NOT = {
                OR = {
                    has_tech = fighter2
                    has_tech = fighter3
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_1
            amount = 400
        }
    }

    if = {
        limit = {
            has_tech = fighter2
            NOT = {
                OR = {
                    has_tech = fighter3
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_2
            amount = 400
        }
    }

    if = {
        limit = {
            has_tech = fighter3
            NOT = {
                OR = {
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_3
            amount = 400
        }
    }

    if = {
        limit = {
            has_tech = jet_fighter1
            NOT = { has_tech = jet_fighter2 }
        }
        add_equipment_to_stockpile = {
            type = jet_fighter_equipment_1
            amount = 400
        }
    }

    if = {
        limit = { has_tech = jet_fighter2 }
        add_equipment_to_stockpile = {
            type = jet_fighter_equipment_2
            amount = 400
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_small_plane_four_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = fighter1
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = fighter1
            NOT = {
                OR = {
                    has_tech = fighter2
                    has_tech = fighter3
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_1
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = fighter2
            NOT = {
                OR = {
                    has_tech = fighter3
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_2
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = fighter3
            NOT = {
                OR = {
                    has_tech = jet_fighter1
                    has_tech = jet_fighter2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = fighter_equipment_3
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = jet_fighter1
            NOT = { has_tech = jet_fighter2 }
        }
        add_equipment_to_stockpile = {
            type = jet_fighter_equipment_1
            amount = 200
        }
    }

    if = {
        limit = { has_tech = jet_fighter2 }
        add_equipment_to_stockpile = {
            type = jet_fighter_equipment_2
            amount = 200
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}


#Штурмовики
#Штурмовики
#Штурмовики
#Штурмовики



WH_Market_small_plane_cas_category_decision = {
icon = GFX_decision_generic_merge_plant_aircraft
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_aviation_page_unlock }
}

WH_Market_small_plane_cas_attention_decision = {
icon = GFX_decision_eng_propaganda_campaigns
 visible = {  
 has_country_flag = WH_Market_aviation_page_unlock
 NOT = {has_country_flag = WH_Market_cas_attention_off }}
 complete_effect = {
 set_country_flag = WH_Market_cas_attention_off
 custom_effect_tooltip = WH_Market_cas_attention_off_tooltip
 }
}

WH_Market_small_plane_cas_one_decision = {
icon = GFX_decision_generic_air
 visible = {  
  has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_small_airframe
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = small_plane_cas_airframe
    amount = 800  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_small_plane_cas_two_decision = {
icon = GFX_decision_generic_air
 visible = {  
  has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_small_airframe
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = small_plane_cas_airframe
    amount = 600 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_small_plane_cas_three_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_small_airframe
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = small_plane_cas_airframe
    amount = 400  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_small_plane_cas_four_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_small_airframe
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = small_plane_cas_airframe
    amount = 200  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }


}



#Штурмовики без длс
#Штурмовики без длс
#Штурмовики без длс
#Штурмовики без длс



WH_Market_small_plane_cas_one_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
  NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
has_tech = CAS1
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = CAS1
            NOT = {
                OR = {
                    has_tech = CAS2
                    has_tech = CAS3
                }
            }
        }
        add_equipment_to_stockpile = {
            type = CAS_equipment_1
            amount = 800
        }
    }

    if = {
        limit = {
            has_tech = CAS2
            NOT = { has_tech = CAS3 }
        }
        add_equipment_to_stockpile = {
            type = CAS_equipment_2
            amount = 800
        }
    }

    if = {
        limit = { has_tech = CAS3 }
        add_equipment_to_stockpile = {
            type = CAS_equipment_3
            amount = 800
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_small_plane_cas_two_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
  NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
has_tech = CAS1
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = CAS1
            NOT = {
                OR = {
                    has_tech = CAS2
                    has_tech = CAS3
                }
            }
        }
        add_equipment_to_stockpile = {
            type = CAS_equipment_1
            amount = 600
        }
    }

    if = {
        limit = {
            has_tech = CAS2
            NOT = { has_tech = CAS3 }
        }
        add_equipment_to_stockpile = {
            type = CAS_equipment_2
            amount = 600
        }
    }

    if = {
        limit = { has_tech = CAS3 }
        add_equipment_to_stockpile = {
            type = CAS_equipment_3
            amount = 600
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_small_plane_cas_three_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
has_tech = CAS1
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {

    if = {
        limit = {
            has_tech = CAS1
            NOT = {
                OR = {
                    has_tech = CAS2
                    has_tech = CAS3
                }
            }
        }
        add_equipment_to_stockpile = {
            type = CAS_equipment_1
            amount = 400
        }
    }

    if = {
        limit = {
            has_tech = CAS2
            NOT = { has_tech = CAS3 }
        }
        add_equipment_to_stockpile = {
            type = CAS_equipment_2
            amount = 400
        }
    }

    if = {
        limit = { has_tech = CAS3 }
        add_equipment_to_stockpile = {
            type = CAS_equipment_3
            amount = 400
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_small_plane_cas_four_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
 NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
has_tech = CAS1
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = CAS1
            NOT = {
                OR = {
                    has_tech = CAS2
                    has_tech = CAS3
                }
            }
        }
        add_equipment_to_stockpile = {
            type = CAS_equipment_1
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = CAS2
            NOT = { has_tech = CAS3 }
        }
        add_equipment_to_stockpile = {
            type = CAS_equipment_2
            amount = 200
        }
    }

    if = {
        limit = { has_tech = CAS3 }
        add_equipment_to_stockpile = {
            type = CAS_equipment_3
            amount = 200
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}


}


#Такты
#Такты
#Такты
#Такты



WH_Market_medium_plane_category_decision = {
icon = GFX_decision_generic_merge_plant_aircraft
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_aviation_page_unlock }
}

WH_Market_medium_plane_one_decision = {
icon = GFX_decision_generic_air
 visible = {  
  has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_airframe
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = medium_plane_airframe
    amount = 400  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_medium_plane_two_decision = {
icon = GFX_decision_generic_air
 visible = {  
  has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_airframe
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = medium_plane_airframe
    amount = 300 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_medium_plane_three_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_airframe
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = medium_plane_airframe
    amount = 200  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_medium_plane_four_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_medium_airframe
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = medium_plane_airframe
    amount = 100  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


#Такты без длс
#Такты без длс
#Такты без длс
#Такты без длс


WH_Market_medium_plane_one_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
   NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = tactical_bomber1
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = tactical_bomber1
            NOT = {
                OR = {
                    has_tech = tactical_bomber2
                    has_tech = tactical_bomber3
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_1
            amount = 400
        }
    }

    if = {
        limit = {
            has_tech = tactical_bomber2
            NOT = {
                OR = {
                    has_tech = tactical_bomber3
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_2
            amount = 400
        }
    }

    if = {
        limit = {
            has_tech = tactical_bomber3
            NOT = {
                OR = {
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_3
            amount = 400
        }
    }

    if = {
        limit = {
            has_tech = jet_tactical_bomber1
            NOT = { has_tech = jet_tactical_bomber2 }
        }
        add_equipment_to_stockpile = {
            type = jet_tac_bomber_equipment_1
            amount = 400
        }
    }

    if = {
        limit = { has_tech = jet_tactical_bomber2 }
        add_equipment_to_stockpile = {
            type = jet_tac_bomber_equipment_2
            amount = 400
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_medium_plane_two_decision_no_dlc  = {
icon = GFX_decision_generic_air
 visible = {  
  NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = tactical_bomber1
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
remove_effect = {

    if = {
        limit = {
            has_tech = tactical_bomber1
            NOT = {
                OR = {
                    has_tech = tactical_bomber2
                    has_tech = tactical_bomber3
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_1
            amount = 300
        }
    }

    if = {
        limit = {
            has_tech = tactical_bomber2
            NOT = {
                OR = {
                    has_tech = tactical_bomber3
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_2
            amount = 300
        }
    }

    if = {
        limit = {
            has_tech = tactical_bomber3
            NOT = {
                OR = {
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_3
            amount = 300
        }
    }

    if = {
        limit = {
            has_tech = jet_tactical_bomber1
            NOT = { has_tech = jet_tactical_bomber2 }
        }
        add_equipment_to_stockpile = {
            type = jet_tac_bomber_equipment_1
            amount = 300
        }
    }

    if = {
        limit = { has_tech = jet_tactical_bomber2 }
        add_equipment_to_stockpile = {
            type = jet_tac_bomber_equipment_2
            amount = 300
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_medium_plane_three_decision_no_dlc  = {
icon = GFX_decision_generic_air
 visible = {  
  NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
has_tech = tactical_bomber1
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = tactical_bomber1
            NOT = {
                OR = {
                    has_tech = tactical_bomber2
                    has_tech = tactical_bomber3
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_1
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = tactical_bomber2
            NOT = {
                OR = {
                    has_tech = tactical_bomber3
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_2
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = tactical_bomber3
            NOT = {
                OR = {
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_3
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = jet_tactical_bomber1
            NOT = { has_tech = jet_tactical_bomber2 }
        }
        add_equipment_to_stockpile = {
            type = jet_tac_bomber_equipment_1
            amount = 200
        }
    }

    if = {
        limit = { has_tech = jet_tactical_bomber2 }
        add_equipment_to_stockpile = {
            type = jet_tac_bomber_equipment_2
            amount = 200
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_medium_plane_four_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
  NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
has_tech = tactical_bomber1
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = tactical_bomber1
            NOT = {
                OR = {
                    has_tech = tactical_bomber2
                    has_tech = tactical_bomber3
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_1
            amount = 100
        }
    }

    if = {
        limit = {
            has_tech = tactical_bomber2
            NOT = {
                OR = {
                    has_tech = tactical_bomber3
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_2
            amount = 100
        }
    }

    if = {
        limit = {
            has_tech = tactical_bomber3
            NOT = {
                OR = {
                    has_tech = jet_tactical_bomber1
                    has_tech = jet_tactical_bomber2
                }
            }
        }
        add_equipment_to_stockpile = {
            type = tac_bomber_equipment_3
            amount = 100
        }
    }

    if = {
        limit = {
            has_tech = jet_tactical_bomber1
            NOT = { has_tech = jet_tactical_bomber2 }
        }
        add_equipment_to_stockpile = {
            type = jet_tac_bomber_equipment_1
            amount = 100
        }
    }

    if = {
        limit = { has_tech = jet_tactical_bomber2 }
        add_equipment_to_stockpile = {
            type = jet_tac_bomber_equipment_2
            amount = 100
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}




#Страты
#Страты
#Страты
#Страты


WH_Market_large_plane_category_decision = {
icon = GFX_decision_generic_merge_plant_aircraft
available = { 
hidden_trigger = {always = no} }
 visible = {  
 has_country_flag = WH_Market_aviation_page_unlock }
}

WH_Market_large_plane_one_decision = {
icon = GFX_decision_generic_air
 visible = {  
  has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_large_airframe
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = large_plane_airframe
    amount = 200  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_large_plane_two_decision = {
icon = GFX_decision_generic_air
 visible = {  
  has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_large_airframe
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = large_plane_airframe
    amount = 150 }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}


WH_Market_large_plane_three_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_large_airframe
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = large_plane_airframe
    amount = 100  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
}

WH_Market_large_plane_four_decision = {
icon = GFX_decision_generic_air
 visible = {  
 has_dlc = "By Blood Alone"
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = basic_large_airframe
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
add_equipment_to_stockpile = {
    type = large_plane_airframe
    amount = 50  }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}



#Страты без длс
#Страты без длс
#Страты без длс
#Страты без длс





WH_Market_large_plane_one_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
  has_tech = strategic_bomber1
num_of_civilian_factories_available_for_projects > 15 }
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = strategic_bomber1
            NOT = {
                OR = {
                    has_tech = strategic_bomber2
                    has_tech = strategic_bomber3
                    has_tech = jet_strategic_bomber1
                }
            }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_1
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = strategic_bomber2
            NOT = {
                OR = {
                    has_tech = strategic_bomber3
                    has_tech = jet_strategic_bomber1
                }
            }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_2
            amount = 200
        }
    }

    if = {
        limit = {
            has_tech = strategic_bomber3
            NOT = { has_tech = jet_strategic_bomber1 }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_3
            amount = 200
        }
    }

    if = {
        limit = { has_tech = jet_strategic_bomber1 }
        add_equipment_to_stockpile = {
            type = jet_strat_bomber_equipment_1
            amount = 200
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_large_plane_two_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
  NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = strategic_bomber1
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {

    if = {
        limit = {
            has_tech = strategic_bomber1
            NOT = {
                OR = {
                    has_tech = strategic_bomber2
                    has_tech = strategic_bomber3
                    has_tech = jet_strategic_bomber1
                }
            }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_1
            amount = 150
        }
    }

    if = {
        limit = {
            has_tech = strategic_bomber2
            NOT = {
                OR = {
                    has_tech = strategic_bomber3
                    has_tech = jet_strategic_bomber1
                }
            }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_2
            amount = 150
        }
    }

    if = {
        limit = {
            has_tech = strategic_bomber3
            NOT = { has_tech = jet_strategic_bomber1 }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_3
            amount = 150
        }
    }

    if = {
        limit = { has_tech = jet_strategic_bomber1 }
        add_equipment_to_stockpile = {
            type = jet_strat_bomber_equipment_1
            amount = 150
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_large_plane_three_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
 has_tech = strategic_bomber1
num_of_civilian_factories_available_for_projects > 7 }
  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
  remove_effect = {

    if = {
        limit = {
            has_tech = strategic_bomber1
            NOT = {
                OR = {
                    has_tech = strategic_bomber2
                    has_tech = strategic_bomber3
                    has_tech = jet_strategic_bomber1
                }
            }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_1
            amount = 100
        }
    }

    if = {
        limit = {
            has_tech = strategic_bomber2
            NOT = {
                OR = {
                    has_tech = strategic_bomber3
                    has_tech = jet_strategic_bomber1
                }
            }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_2
            amount = 100
        }
    }

    if = {
        limit = {
            has_tech = strategic_bomber3
            NOT = { has_tech = jet_strategic_bomber1 }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_3
            amount = 100
        }
    }

    if = {
        limit = { has_tech = jet_strategic_bomber1 }
        add_equipment_to_stockpile = {
            type = jet_strat_bomber_equipment_1
            amount = 100
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_large_plane_four_decision_no_dlc = {
icon = GFX_decision_generic_air
 visible = {  
NOT = { has_dlc = "By Blood Alone" }
 has_country_flag = WH_Market_aviation_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
 available = { 
  has_tech = strategic_bomber1
num_of_civilian_factories_available_for_projects > 3 }
  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
  remove_effect = {

    if = {
        limit = {
            has_tech = strategic_bomber1
            NOT = {
                OR = {
                    has_tech = strategic_bomber2
                    has_tech = strategic_bomber3
                    has_tech = jet_strategic_bomber1
                }
            }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_1
            amount = 50
        }
    }

    if = {
        limit = {
            has_tech = strategic_bomber2
            NOT = {
                OR = {
                    has_tech = strategic_bomber3
                    has_tech = jet_strategic_bomber1
                }
            }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_2
            amount = 50
        }
    }

    if = {
        limit = {
            has_tech = strategic_bomber3
            NOT = { has_tech = jet_strategic_bomber1 }
        }
        add_equipment_to_stockpile = {
            type = strat_bomber_equipment_3
            amount = 50
        }
    }

    if = {
        limit = { has_tech = jet_strategic_bomber1 }
        add_equipment_to_stockpile = {
            type = jet_strat_bomber_equipment_1
            amount = 50
        }
    }
	custom_effect_tooltip = WH_Market_cooldown_tooltip
}

}


#ИНВЕСТИЦИОННЫЙ ОТДЕЛ
#ИНВЕСТИЦИОННЫЙ ОТДЕЛ
#ИНВЕСТИЦИОННЫЙ ОТДЕЛ
#ИНВЕСТИЦИОННЫЙ ОТДЕЛ


WH_Market_investment_category_decision = { 
icon = GFX_decision_generic_welfare
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_investment_department_page_unlock } }


WH_Market_investment_one_decision = {
visible = { has_country_flag = WH_Market_investment_department_page_unlock }
cost = 150
icon = GFX_decision_generic_political_address
days_remove = 28
days_re_enable = 140
modifier = {
consumer_goods_factor = 0.15
}
remove_effect = {
    random_list = {
        3 = {
            add_political_power = 450
			if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.political.6
        } } }
        }
        5 = {
            add_political_power = 375
			if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.political.5
        } } }
        }
        17 = {
            add_political_power = 300
			if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.political.4
        } } }
        }
        75 = {
            add_political_power = 225
			if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.political.3
        } } }
        }
    }
   
    if = {
        limit = {
            NOT = { has_country_flag = WH_Market_Lobbying_unlock }
        }
         add_ideas = WH_Market_Lobbying_idea
		 set_country_flag = WH_Market_Lobbying_unlock
    }
	custom_effect_tooltip = WH_Market_investment_140_tooltip
}
}

WH_Market_investment_six_decision = {
icon = GFX_decision_generic_military
visible = { has_country_flag = WH_Market_investment_department_page_unlock }
cost = 150
days_remove = 28
days_re_enable = 140
modifier = {
consumer_goods_factor = 0.15
}
remove_effect = {
random_list = {
    3 = {
    add_manpower = 500000
	if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.manpower.6
        } } }
    }
    5 = {
   add_manpower = 300000
   if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.manpower.5
        } } }
    }
    17 = {
 add_manpower = 225000
 if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.manpower.4
        } } }
    }
    75 = {
   add_manpower = 150000
   if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.manpower.3
        } } }
    }
} 
custom_effect_tooltip = WH_Market_investment_140_tooltip}
} 





WH_Market_investment_two_decision = {
icon = GFX_decision_generic_factory
visible = { has_country_flag = WH_Market_investment_department_page_unlock
NOT = { has_game_rule = {
						rule = WH_Market_change_industry_cooldown_rule
						option = Industry_cooldown_on
					} } }
cost = 150
days_remove = 14
modifier = {
consumer_goods_factor = 0.15
}
remove_effect = {
random_list = {
    3 = {
            add_offsite_building = {
type = industrial_complex 
level = 6 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.factories.6
        } } }
    }
    5 = {
              add_offsite_building = {
type = industrial_complex 
level = 5 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.factories.5
        } } }
    }
    17 = {
             add_offsite_building = {
type = industrial_complex 
level = 4 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.factories.4
        } } }
    }
    75 = {
         add_offsite_building = {
type = industrial_complex 
level = 3 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.factories.3  
        } } }
 }
} }
}


WH_Market_investment_three_decision = {
icon = GFX_decision_generic_merge_plant_tank
visible = { has_country_flag = WH_Market_investment_department_page_unlock
NOT = { has_game_rule = {
						rule = WH_Market_change_industry_cooldown_rule
						option = Industry_cooldown_on
					} } }
cost = 150
days_remove = 14
modifier = {
consumer_goods_factor = 0.15
}
remove_effect = {
random_list = {
    3 = {
            add_offsite_building = {
type = arms_factory 
level = 6 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.arms.factories.6
        } } }
    }
    5 = {
              add_offsite_building = {
type = arms_factory
level = 5 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.arms.factories.5
        } } }
    }
    17 = {
             add_offsite_building = {
type = arms_factory
level = 4 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.arms.factories.4
        } } }
    }
    75 = {
         add_offsite_building = {
type = arms_factory 
level = 3 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.arms.factories.3
        } } }
    }
} }
}


WH_Market_investment_four_decision = {
visible = { has_country_flag = WH_Market_investment_department_page_unlock
NOT = { has_game_rule = {
						rule = WH_Market_change_industry_cooldown_rule
						option = Industry_cooldown_on
					} } }
icon = GFX_decision_oil
cost = 150
icon = GFX_refinery_market_icon
days_remove = 14
modifier = {
consumer_goods_factor = 0.15
}
remove_effect = {
random_list = {
    3 = {
            add_offsite_building = {
type = synthetic_refinery 
level = 6 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.refinery.6
        } } } 
    }
    5 = {
              add_offsite_building = {
type = synthetic_refinery 
level = 5 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.refinery.5
        } } } 
    }
    17 = {
             add_offsite_building = {
type = synthetic_refinery 
level = 4 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.refinery.4
        } } } 
    }
    75 = {
         add_offsite_building = {
type = synthetic_refinery 
level = 3 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.refinery.3
        } } } 
    }
} }
}





WH_Market_investment_five_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = {
any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
}
visible = { has_country_flag = WH_Market_investment_department_page_unlock 
NOT = { has_game_rule = {
						rule = WH_Market_change_industry_cooldown_rule
						option = Industry_cooldown_on
					} }}
cost = 75
days_remove = 14
modifier = {
consumer_goods_factor = 0.075
}
remove_effect = {
random_list = {
    3 =  {
            add_offsite_building = {
type = dockyard 
level = 6 
}
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.dockyards.6
        } } } 
    }
    5 = {
              add_offsite_building = {
type = dockyard 
level = 5 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.dockyards.5
        } } } 
    }
    17 = {
             add_offsite_building = {
type = dockyard 
level = 4 
}
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.dockyards.4
        } } } 
    }
    75 = {
         add_offsite_building = {
type = dockyard 
level = 3 
}
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.dockyards.3
        } } } 
    }
} }
}


#РЕШЕНИЯ С КД 140 ДНЕЙ
#РЕШЕНИЯ С КД 140 ДНЕЙ
#РЕШЕНИЯ С КД 140 ДНЕЙ
#РЕШЕНИЯ С КД 140 ДНЕЙ

WH_Market_investment_two_decision_cooldown = {
icon = GFX_decision_generic_factory
visible = { has_country_flag = WH_Market_investment_department_page_unlock 
has_game_rule = {
						rule = WH_Market_change_industry_cooldown_rule
						option = Industry_cooldown_on
					} }
cost = 150
days_re_enable = 140
days_remove = 14
modifier = {
consumer_goods_factor = 0.15
}
remove_effect = {
random_list = {
    3 = {
            add_offsite_building = {
type = industrial_complex 
level = 6 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.factories.6
        } } }
    }
    5 = {
              add_offsite_building = {
type = industrial_complex 
level = 5 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.factories.5
        } } }
    }
    17 = {
             add_offsite_building = {
type = industrial_complex 
level = 4 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.factories.4
        } } }
    }
    75 = {
         add_offsite_building = {
type = industrial_complex 
level = 3 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.factories.3  
        } } }
 }
} custom_effect_tooltip = WH_Market_investment_140_tooltip}
}


WH_Market_investment_three_decision_cooldown = {
icon = GFX_decision_generic_merge_plant_tank
visible = { has_country_flag = WH_Market_investment_department_page_unlock
 has_game_rule = {
						rule = WH_Market_change_industry_cooldown_rule
						option = Industry_cooldown_on
					}  }
cost = 150
days_re_enable = 140
days_remove = 14
modifier = {
consumer_goods_factor = 0.15
}
remove_effect = {
random_list = {
    3 = {
            add_offsite_building = {
type = arms_factory 
level = 6 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.arms.factories.6
        } } }
    }
    5 = {
              add_offsite_building = {
type = arms_factory
level = 5 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.arms.factories.5
        } } }
    }
    17 = {
             add_offsite_building = {
type = arms_factory
level = 4 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.arms.factories.4
        } } }
    }
    75 = {
         add_offsite_building = {
type = arms_factory 
level = 3 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.arms.factories.3
        } } }
    }
} custom_effect_tooltip = WH_Market_investment_140_tooltip}
}


WH_Market_investment_four_decision_cooldown = {
visible = { has_country_flag = WH_Market_investment_department_page_unlock
 has_game_rule = {
						rule = WH_Market_change_industry_cooldown_rule
						option = Industry_cooldown_on
					 } }
icon = GFX_decision_oil
cost = 150
days_re_enable = 140
days_remove = 14
modifier = {
consumer_goods_factor = 0.15
}
remove_effect = {
random_list = {
    3 = {
            add_offsite_building = {
type = synthetic_refinery 
level = 6 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.refinery.6
        } } } 
    }
    5 = {
              add_offsite_building = {
type = synthetic_refinery 
level = 5 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.refinery.5
        } } } 
    }
    17 = {
             add_offsite_building = {
type = synthetic_refinery 
level = 4 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.refinery.4
        } } } 
    }
    75 = {
         add_offsite_building = {
type = synthetic_refinery 
level = 3 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.refinery.3
        } } } 
    }
} custom_effect_tooltip = WH_Market_investment_140_tooltip}
}

WH_Market_investment_five_decision_cooldown = {
icon = GFX_decision_generic_merge_plant_ship
available = {
any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
}
visible = { has_country_flag = WH_Market_investment_department_page_unlock 
 has_game_rule = {
						rule = WH_Market_change_industry_cooldown_rule
						option = Industry_cooldown_on
					 }}
cost = 75
days_re_enable = 140
days_remove = 14
modifier = {
consumer_goods_factor = 0.075
}
remove_effect = {
random_list = {
    3 =  {
            add_offsite_building = {
type = dockyard 
level = 6 
}
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.dockyards.6
        } } } 
    }
    5 = {
              add_offsite_building = {
type = dockyard 
level = 5 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.dockyards.5
        } } } 
    }
    17 = {
             add_offsite_building = {
type = dockyard 
level = 4 
}
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.dockyards.4
        } } } 
    }
    75 = {
         add_offsite_building = {
type = dockyard 
level = 3 
}
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.dockyards.3
        } } } 
    }
} custom_effect_tooltip = WH_Market_investment_140_tooltip}
}


WH_Market_investment_seven_decision = {
icon = GFX_decision_generic_trucks
visible = { has_country_flag = WH_Market_investment_department_page_unlock }
cost = 75
days_remove = 14
days_re_enable = 210
modifier = {
consumer_goods_factor = 0.075
}
remove_effect = {
random_owned_controlled_state = { limit = { free_building_slots = { building = infrastructure size > 0 } } add_building_construction = { type = infrastructure level = 1 } }
custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6
    if = {
    limit = { has_government = communism }
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip2
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip3
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip4
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip5
}

if = {
    limit = { not = { has_government = communism } }
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip_default
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip2_default
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip3_default
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip4_default
    custom_effect_tooltip = WH_Market_road_construction_idea4_tooltip5_default
}
custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6

	if = {
    limit = { has_government = communism }
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip2
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip3
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip4
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip5
}

if = {
    limit = { not = { has_government = communism } }
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip_default
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip2_default
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip3_default
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip4_default
    custom_effect_tooltip = WH_Market_road_construction_idea3_tooltip5_default
}
custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6

if = {
    limit = { has_government = communism }
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip2
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip3
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip4
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip5
}

if = {
    limit = { not = { has_government = communism } }
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip_default
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip2_default
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip3_default
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip4_default
    custom_effect_tooltip = WH_Market_road_construction_idea2_tooltip5_default
}
custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6

if = {
    limit = { has_government = communism }
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip2
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip3
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip4
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip5
}

if = {
    limit = { not = { has_government = communism } }
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip_default
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip2_default
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip3_default
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip4_default
    custom_effect_tooltip = WH_Market_road_construction_idea1_tooltip5_default
}
custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6
hidden_effect = {
random_list = {

 3 =  { add_timed_idea = { idea = WH_Market_road_construction_idea4 days = 70 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.road.6
        } } } }
		
	
 5 = {add_timed_idea = { idea = WH_Market_road_construction_idea3 days = 70 }
 if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.road.5
        } } } }
 
 
 17 = {add_timed_idea = { idea = WH_Market_road_construction_idea2 days = 70 } 
 if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.road.4
        } } } }
		
		
75 = {add_timed_idea = { idea = WH_Market_road_construction_idea1 days = 70 }
if = {
    limit = { 
        NOT = { has_country_flag = WH_Market_investment_events_off } 
    }
    hidden_effect = {
        country_event = { 
            id = whmarket.road.3
        } } } }
}
} 
custom_effect_tooltip = WH_Market_investment_210_tooltip }
}




WH_Market_investment_settings_category_decision = { 
icon = GFX_decision_eng_propaganda_campaigns
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_investment_department_page_unlock } }


WH_Market_investment_settings_decision_off = { 
icon = GFX_decision_generic_break_treaty
available = { 
hidden_trigger = {always = yes} }
visible = { has_country_flag = WH_Market_investment_department_page_unlock 
NOT = { has_country_flag = WH_Market_investment_events_off } } 
complete_effect = {
    set_country_flag = WH_Market_investment_events_off
	custom_effect_tooltip = WH_Market_events_off_tooltip
}
}


WH_Market_investment_settings_decision_on = { 
icon = GFX_decision_eng_trade_unions_support
available = { 
hidden_trigger = {always = yes} }
visible = { has_country_flag = WH_Market_investment_department_page_unlock
has_country_flag = WH_Market_investment_events_off } 
complete_effect = {
      clr_country_flag = WH_Market_investment_events_off
	  custom_effect_tooltip = WH_Market_events_on_tooltip
}

}

 

#НАУЧНЫЙ ОТДЕЛ
#НАУЧНЫЙ ОТДЕЛ
#НАУЧНЫЙ ОТДЕЛ
#НАУЧНЫЙ ОТДЕЛ


WH_Market_research_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_science_page_unlock 
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } } }

WH_Market_research_slot_one_decision = {
icon = GFX_decision_generic_research
available = { 
 amount_research_slots = 1 }
visible = { amount_research_slots = 1
has_country_flag = WH_Market_science_page_unlock
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } }
 cost = 75 
 days_remove = 7
 modifier = {
 consumer_goods_factor = 0.075
 }
 cancel_trigger = { amount_research_slots > 1 }
 remove_effect = {
 add_research_slot = 1 }
}

WH_Market_research_slot_two_decision = {
icon = GFX_decision_generic_research
available = { 
 amount_research_slots = 2 }
visible = { amount_research_slots = 2
has_country_flag = WH_Market_science_page_unlock
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } }  
 cost = 75 
 days_remove = 7
 modifier = {
 consumer_goods_factor = 0.075
 }
 cancel_trigger = { amount_research_slots > 2 }
 remove_effect = {
 add_research_slot = 1 }}

WH_Market_research_slot_three_decision = {
icon = GFX_decision_generic_research
available = { 
 amount_research_slots = 3 }
visible = { amount_research_slots = 3
has_country_flag = WH_Market_science_page_unlock 
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } } 
 cost = 150
 days_remove = 14
 modifier = {
 consumer_goods_factor = 0.15
 }
  cancel_trigger = { amount_research_slots > 3 }
 remove_effect = {
 add_research_slot = 1 }
 }
 
 WH_Market_research_slot_four_decision = {
 icon = GFX_decision_generic_research
available = { 
 amount_research_slots = 4 }
visible = { amount_research_slots = 4
has_country_flag = WH_Market_science_page_unlock 
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } } 
 cost = 225
 days_remove = 21
 modifier = {
 consumer_goods_factor = 0.225
 }
  cancel_trigger = { amount_research_slots > 4 }
 remove_effect = {
 add_research_slot = 1 }
 }

 WH_Market_research_slot_five_decision = {
 icon = GFX_decision_generic_research
available = { 
 amount_research_slots = 5 }
visible = { amount_research_slots = 5
has_country_flag = WH_Market_science_page_unlock 
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } } 
 cost = 300
 days_remove = 28
 modifier = {
 consumer_goods_factor = 0.30
 }
  cancel_trigger = { amount_research_slots > 5 }
 remove_effect = {
 add_research_slot = 1 }
 }


 WH_Market_research_slot_six_decision = {
 icon = GFX_decision_generic_research
available = { 
 amount_research_slots = 6 }
visible = { amount_research_slots = 6
has_country_flag = WH_Market_science_page_unlock 
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } } 
 cost = 300
 days_remove = 28
  modifier = {
 consumer_goods_factor = 0.30
 }
  cancel_trigger = { amount_research_slots > 6 }
 remove_effect = {
 add_research_slot = 1 }
 }


WH_Market_research_slot_seven_decision = {
icon = GFX_decision_generic_research
available = { 
 amount_research_slots = 7 }
visible = { amount_research_slots = 7
has_country_flag = WH_Market_science_page_unlock 
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } } 
 cost = 300
 days_remove = 28
  modifier = {
 consumer_goods_factor = 0.30
 }
  cancel_trigger = { amount_research_slots > 7 }
 remove_effect = {
 add_research_slot = 1 }
 }
 WH_Market_research_slot_sell_one_decision = {
 icon = GFX_decision_generic_research
available = { 
 amount_research_slots > 5 }
visible = {
has_country_flag = WH_Market_science_page_unlock
NOT = { has_game_rule = {
						rule = WH_Market_research_slot_buy_rule
						option = WH_Market_research_slot_buy_off
					} } } 
 days_remove = 14
  modifier = {
 consumer_goods_factor = 0.15
 }
 cancel_trigger = { amount_research_slots < 5 }
 remove_effect = {
 add_research_slot = -1 
 add_political_power = 225}
}


#ПРОМЫШЛЕННОСТЬ
#ПРОМЫШЛЕННОСТЬ
#ПРОМЫШЛЕННОСТЬ
#ПРОМЫШЛЕННОСТЬ

WH_Market_industry_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_science_page_unlock } }

WH_Market_industry_one_decision = {
icon = GFX_decision_generic_merge_plant_materiel
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 300
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 8
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_industry_bonus1
				ahead_reduction = 2
				bonus = 1.0
				uses = 1
				category = industry
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_industry_two_decision = {
icon = GFX_decision_generic_merge_plant_materiel
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 225
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 6
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_industry_bonus2
				bonus = 1.875
				uses = 1
				category = industry
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_industry_three_decision = {
icon = GFX_decision_generic_merge_plant_materiel
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 150
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 4
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_industry_bonus3
				bonus = 1.25
				uses = 1
				category = industry
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_industry_four_decision = {
icon = GFX_decision_generic_merge_plant_materiel
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 75
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 2
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_industry_bonus4
				bonus = 0.625
				uses = 1
				category = industry
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

#ЭЛЕКТРОНИКА
#ЭЛЕКТРОНИКА
#ЭЛЕКТРОНИКА
#ЭЛЕКТРОНИКА


WH_Market_electronics_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_science_page_unlock } }

WH_Market_electronics_one_decision = {
icon = GFX_decision_generic_electricity
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 300
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 8
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_electronics_bonus1
				ahead_reduction = 2
				bonus = 1.0
				uses = 1
				category = electronics
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_electronics_two_decision = {
icon = GFX_decision_generic_electricity
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 225
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 6
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_electronics_bonus2
				bonus = 1.875
				uses = 1
				category = electronics
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_electronics_three_decision = {
icon = GFX_decision_generic_electricity
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 150
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 4
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_electronics_bonus3
				bonus = 1.25
				uses = 1
				category = electronics
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_electronics_four_decision = {
icon = GFX_decision_generic_electricity
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 75
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 2
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_electronics_bonus4
				bonus = 0.625
				uses = 1
				category = electronics
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}




#СИНТЕТИЧЕСКИЕ РЕСУРСЫ
#СИНТЕТИЧЕСКИЕ РЕСУРСЫ
#СИНТЕТИЧЕСКИЕ РЕСУРСЫ
#СИНТЕТИЧЕСКИЕ РЕСУРСЫ



WH_Market_synth_resources_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_science_page_unlock } }

WH_Market_synth_resources_one_decision = {
icon = GFX_decision_oil
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 300
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 8
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_synth_resources_bonus1
				ahead_reduction = 2
				bonus = 1.5
				uses = 2
				category = synth_resources
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_synth_resources_two_decision = {
icon = GFX_decision_oil
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 225
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 6
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_synth_resources_bonus2
				ahead_reduction = 1
				bonus = 1
				uses = 2
				category = synth_resources
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_synth_resources_three_decision = {
icon = GFX_decision_oil
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 150
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 4
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_synth_resources_bonus3
				bonus = 1.50
				uses = 2
				category = synth_resources
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_synth_resources_four_decision = {
icon = GFX_decision_oil
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 75
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 2
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_synth_resources_bonus4
				bonus = 0.75
				uses = 2
				category = synth_resources
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


#ДОБЫЧА РЕСУРСОВ
#ДОБЫЧА РЕСУРСОВ
#ДОБЫЧА РЕСУРСОВ
#ДОБЫЧА РЕСУРСОВ


WH_Market_excavation_resources_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_science_page_unlock } }

WH_Market_excavation_resources_one_decision = {
icon = GFX_decision_steel
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 300
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 8
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_excavation_resources_bonus1
				bonus = 1.5
				ahead_reduction = 0.5
				uses = 4
				category = excavation_tech
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

WH_Market_excavation_resources_two_decision = {
icon = GFX_decision_aluminium
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 225
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 6
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_excavation_resources_bonus2
				bonus = 1.5
				ahead_reduction = 0.5
				uses = 3
				category = excavation_tech
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_excavation_resources_three_decision = {
icon = GFX_decision_tungsten
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 150
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 4
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_excavation_resources_bonus3
				bonus = 1.50
				ahead_reduction = 0.5
				uses = 2
				category = excavation_tech
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}


WH_Market_excavation_resources_four_decision = {
icon = GFX_decision_chromium
visible = { has_country_flag = WH_Market_science_page_unlock } 
cost = 75
days_remove = 30
days_re_enable = 180
modifier = {
civilian_factory_use = 2
custom_modifier_tooltip = WH_Market_logistics_tooltip
}
remove_effect = {
			add_tech_bonus = {
				name = WH_Market_excavation_resources_bonus4
				bonus = 1.5
				ahead_reduction = 0.5
				uses = 1
				category = excavation_tech
			}
			custom_effect_tooltip = WH_Market_cooldown_tooltip
}
}

#ФЛОТ
#ФЛОТ
#ФЛОТ
#ФЛОТ


WH_Market_navy1936_category_decision = {
visible = { has_country_flag = WH_Market_navy_page_unlock 
NOT = {
has_country_flag = WH_Market_navy1940_page_unlock
has_country_flag = WH_Market_navy1944_page_unlock} }
complete_effect = {
set_country_flag = WH_Market_navy1940_page_unlock
custom_effect_tooltip = WH_Market_navy_1940_section
} }


WH_Market_battleship1936_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_navy_page_unlock 
NOT = {
has_country_flag = WH_Market_navy1940_page_unlock
has_country_flag = WH_Market_navy1944_page_unlock} } }


WH_Market_battleship1936_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock} 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
 any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
  has_tech = basic_ship_hull_heavy
num_of_civilian_factories_available_for_projects > 15}
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
 hidden_effect = {
 create_ship = {
					type = ship_hull_heavy_2
					equipment_variant = "WH Market battleship 2"
					creator = ROOT
					name = "PURCHASED WH MARKET BATTLESHIP II" 
				} }
	custom_effect_tooltip =	WH_Market_battleship1936_one_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_aircraft_carrier1936_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_navy_page_unlock 
NOT = {
has_country_flag = WH_Market_navy1940_page_unlock
has_country_flag = WH_Market_navy1944_page_unlock} } }


WH_Market_aircraft_carrier1936_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock} 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
  has_tech = basic_ship_hull_carrier
num_of_civilian_factories_available_for_projects > 11 }

  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_carrier_1
					equipment_variant = "WH Market carrier 2"
					creator = ROOT
					name = "PURCHASED WH MARKET CARRIER II" 
				} }
	custom_effect_tooltip =	WH_Market_aircraft_carrier1936_one_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip 
 }

}

WH_Market_cruiser1936_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_navy_page_unlock 
NOT = {
has_country_flag = WH_Market_navy1940_page_unlock
has_country_flag = WH_Market_navy1944_page_unlock} } }
WH_Market_cruiser1936_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock} 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_cruiser
num_of_civilian_factories_available_for_projects > 15}

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
 hidden_effect = {
 create_ship = {
					type = ship_hull_cruiser_2
					equipment_variant = "WH Market cruiser 2"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER II" 
				}
 create_ship = {
					type = ship_hull_cruiser_2
					equipment_variant = "WH Market cruiser 2"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER II" 
				} }
	custom_effect_tooltip =	WH_Market_cruiser1936_one_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


WH_Market_cruiser1936_two_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock} 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_cruiser
num_of_civilian_factories_available_for_projects > 7}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
 hidden_effect = {
 create_ship = {
					type = ship_hull_cruiser_2
					equipment_variant = "WH Market cruiser 2"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER II" 
				}}
	custom_effect_tooltip = WH_Market_cruiser1936_two_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1936_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_navy_page_unlock 
NOT = {
has_country_flag = WH_Market_navy1940_page_unlock
has_country_flag = WH_Market_navy1944_page_unlock} } }

WH_Market_destroyer1936_one_decision = {
icon = GFX_decision_generic_naval
 visible = { 
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock}  
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_light
num_of_civilian_factories_available_for_projects > 15
 }

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
  create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
				}
	custom_effect_tooltip = WH_Market_destroyer1936_one_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
	
 }

}


WH_Market_destroyer1936_two_decision = {
icon = GFX_decision_generic_naval
 visible = { 
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock}  
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_light
num_of_civilian_factories_available_for_projects > 11}

  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
  create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
				
				}
	custom_effect_tooltip = WH_Market_destroyer1936_two_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1936_three_decision = {
icon = GFX_decision_generic_naval
 visible = { 
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock}  
 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_light
num_of_civilian_factories_available_for_projects > 7}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
  create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
				}
	custom_effect_tooltip = WH_Market_destroyer1936_three_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1936_four_decision = {
icon = GFX_decision_generic_naval
 visible = { 
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock}  
 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_light
num_of_civilian_factories_available_for_projects > 3
}

  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
 create_ship = {
					type = ship_hull_light_2
					equipment_variant = "WH Market destroyer 2"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER II" 
				}
				}
	custom_effect_tooltip = WH_Market_destroyer1936_four_tooltip			
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_submarine1936_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_navy_page_unlock 
NOT = {
has_country_flag = WH_Market_navy1940_page_unlock
has_country_flag = WH_Market_navy1944_page_unlock} } }


WH_Market_submarine1936_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock} 
 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 300
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 15}

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				} }			
 custom_effect_tooltip = WH_Market_submarine1936_one_tooltip					
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


WH_Market_submarine1936_two_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock} 
 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 225
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 11}

  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}	}	
    custom_effect_tooltip = WH_Market_submarine1936_two_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


WH_Market_submarine1936_three_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock} 
 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 150
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 7
}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
 hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}	}			
	custom_effect_tooltip = WH_Market_submarine1936_three_tooltip				 
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_submarine1936_four_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 NOT = {
 has_country_flag = WH_Market_navy1940_page_unlock
 has_country_flag = WH_Market_navy1944_page_unlock} 
 
 has_country_flag = WH_Market_navy_page_unlock }
   cost = 75
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = basic_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 3}

  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
 hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
  create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}
 create_ship = {
					type = ship_hull_submarine_2
					equipment_variant = "WH Market submarine 2"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE II" 
				}		}	
	custom_effect_tooltip = WH_Market_submarine1936_four_tooltip		
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


#КОРАБЛИ 1940
#КОРАБЛИ 1940
#КОРАБЛИ 1940
#КОРАБЛИ 1940

WH_Market_navy1940_category_decision = {
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1940_page_unlock } 
complete_effect = {
clr_country_flag = WH_Market_navy1940_page_unlock
set_country_flag = WH_Market_navy1944_page_unlock
custom_effect_tooltip = WH_Market_navy_1944_section
} }

WH_Market_battleship1940_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1940_page_unlock} }

WH_Market_battleship1940_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_heavy
num_of_civilian_factories_available_for_projects > 15}
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_heavy_3
					equipment_variant = "WH Market battleship 3"
					creator = ROOT
					name = "PURCHASED WH MARKET BATTLESHIP III" 
				} }
	custom_effect_tooltip = WH_Market_battleship1940_one_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 } 

}

WH_Market_aircraft_carrier1940_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1940_page_unlock} }


WH_Market_aircraft_carrier1940_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_carrier
num_of_civilian_factories_available_for_projects > 11 }
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_carrier_2
					equipment_variant = "WH Market carrier 3"
					creator = ROOT
					name = "PURCHASED WH MARKET CARRIER III" 
				} }
	custom_effect_tooltip = WH_Market_aircraft_carrier1940_one_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


WH_Market_cruiser1940_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1940_page_unlock} }

WH_Market_cruiser1940_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 300
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_cruiser
num_of_civilian_factories_available_for_projects > 15}

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_cruiser_3
					equipment_variant = "WH Market cruiser 3"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER III" 
				}
  create_ship = {
					type = ship_hull_cruiser_3
					equipment_variant = "WH Market cruiser 3"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER III" 
				} }
	custom_effect_tooltip = WH_Market_cruiser1940_one_tooltip			
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_cruiser1940_two_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 150
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_cruiser
num_of_civilian_factories_available_for_projects > 7}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_cruiser_3
					equipment_variant = "WH Market cruiser 3"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER III" 
				} }
	custom_effect_tooltip = WH_Market_cruiser1940_two_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1940_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1940_page_unlock} }


WH_Market_destroyer1940_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 300
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_light
num_of_civilian_factories_available_for_projects > 15}

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
  create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
	create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				} }
	custom_effect_tooltip = WH_Market_destroyer1940_one_tooltip	
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1940_two_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_light
num_of_civilian_factories_available_for_projects > 11}

  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
  create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				} }
	custom_effect_tooltip = WH_Market_destroyer1940_two_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1940_three_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 150
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_light
num_of_civilian_factories_available_for_projects > 7}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
  create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				} }
	custom_effect_tooltip = WH_Market_destroyer1940_three_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1940_four_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 75
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_light
num_of_civilian_factories_available_for_projects > 3}

  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				}
 create_ship = {
					type = ship_hull_light_3
					equipment_variant = "WH Market destroyer 3"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER III" 
				} }
	custom_effect_tooltip = WH_Market_destroyer1940_four_tooltip			
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_submarine1940_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1940_page_unlock} }

WH_Market_submarine1940_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 300
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 15}

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
  create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
   create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}	
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}	
   create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}	
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				} }
    custom_effect_tooltip = WH_Market_submarine1940_one_tooltip					
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_submarine1940_two_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 11}

  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
  create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
   create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}	
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}	
create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}	}
   custom_effect_tooltip = WH_Market_submarine1940_two_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


WH_Market_submarine1940_three_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 150
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 7}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
  create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
   create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}	
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
     create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}	}	
    custom_effect_tooltip = WH_Market_submarine1940_three_tooltip					
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}



WH_Market_submarine1940_four_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1940_page_unlock}
   cost = 75
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = improved_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 3}

  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
  create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
   create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				}
    create_ship = {
					type = ship_hull_submarine_3
					equipment_variant = "WH Market submarine 3"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE III" 
				} }	
     custom_effect_tooltip = WH_Market_submarine1940_four_tooltip					
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


#КОРАБЛИ 1944
#КОРАБЛИ 1944
#КОРАБЛИ 1944
#КОРАБЛИ 1944

WH_Market_navy1944_category_decision = {
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1944_page_unlock } 
complete_effect = {
clr_country_flag = WH_Market_navy1944_page_unlock
custom_effect_tooltip = WH_Market_navy_1936_section
} }

WH_Market_battleship1944_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1944_page_unlock} }

WH_Market_battleship1944_one_decision = {
icon = GFX_decision_generic_naval
 visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 300
   days_remove = 60
   days_re_enable = 180
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_heavy
num_of_civilian_factories_available_for_projects > 15}
  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_heavy_4
					equipment_variant = "WH Market battleship 4"
					creator = ROOT
					name = "PURCHASED WH MARKET BATTLESHIP IV" 
				} }
	custom_effect_tooltip = WH_Market_battleship1944_one_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_aircraft_carrier1944_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1944_page_unlock} }

WH_Market_aircraft_carrier1944_one_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_carrier
num_of_civilian_factories_available_for_projects > 11}
  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_carrier_3
					equipment_variant = "WH Market carrier 4"
					creator = ROOT
					name = "PURCHASED WH MARKET CARRIER IV" 
				} }
	custom_effect_tooltip = WH_Market_aircraft_carrier1944_one_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_cruiser1944_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1944_page_unlock} }

WH_Market_cruiser1944_one_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 300
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_cruiser
num_of_civilian_factories_available_for_projects > 15}

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_cruiser_4
					equipment_variant = "WH Market cruiser 4"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER IV" 
				}
create_ship = {
					type = ship_hull_cruiser_4
					equipment_variant = "WH Market cruiser 4"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER IV" 
				} }
	custom_effect_tooltip = WH_Market_cruiser1944_one_tooltip					
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_cruiser1944_two_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 150
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_cruiser
num_of_civilian_factories_available_for_projects > 7}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_cruiser_4
					equipment_variant = "WH Market cruiser 4"
					creator = ROOT
					name = "PURCHASED WH MARKET CRUISER IV" 
				} }
	custom_effect_tooltip = WH_Market_cruiser1944_two_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1944_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1944_page_unlock} }

WH_Market_destroyer1944_one_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 300
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_light
num_of_civilian_factories_available_for_projects > 15}

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
    create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
     create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
	create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				} }
		custom_effect_tooltip = WH_Market_destroyer1944_one_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}


WH_Market_destroyer1944_two_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_light
num_of_civilian_factories_available_for_projects > 11}

  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
    create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
     create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				} }
	custom_effect_tooltip = WH_Market_destroyer1944_two_tooltip					
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1944_three_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 150
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_light
num_of_civilian_factories_available_for_projects > 7}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
    create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				} }
	custom_effect_tooltip = WH_Market_destroyer1944_three_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_destroyer1944_four_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 75
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_light
num_of_civilian_factories_available_for_projects > 3}

  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				}
   create_ship = {
					type = ship_hull_light_4
					equipment_variant = "WH Market destroyer 4"
					creator = ROOT
					name = "PURCHASED WH MARKET DESTROYER IV" 
				} }
	custom_effect_tooltip = WH_Market_destroyer1944_four_tooltip				
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

WH_Market_submarine1944_category_decision = {
icon = GFX_decision_generic_merge_plant_ship
available = { 
hidden_trigger = {always = no} }
visible = { 
has_country_flag = WH_Market_navy_page_unlock 
has_country_flag = WH_Market_navy1944_page_unlock} }

WH_Market_submarine1944_one_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 300
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 15}

  modifier = {
			civilian_factory_use = 16
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
   create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
	create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
   	create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				} }
	custom_effect_tooltip = WH_Market_submarine1944_one_tooltip	
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
 }

WH_Market_submarine1944_two_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 225
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 11}

  modifier = {
			civilian_factory_use = 12
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
   create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
	create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				} }
	custom_effect_tooltip = WH_Market_submarine1944_two_tooltip	
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
 }
 
 
WH_Market_submarine1944_three_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 150
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 7}

  modifier = {
			civilian_factory_use = 8
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
  hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
   create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				} }
	custom_effect_tooltip = WH_Market_submarine1944_three_tooltip	
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }
 }


WH_Market_submarine1944_four_decision = {
icon = GFX_decision_generic_naval
visible = {  
 
 has_country_flag = WH_Market_navy_page_unlock 
 has_country_flag = WH_Market_navy1944_page_unlock}
   cost = 75
   days_remove = 60
   days_re_enable = 180
   
 available = { 
  any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
 has_tech = advanced_ship_hull_submarine
num_of_civilian_factories_available_for_projects > 3}

  modifier = {
			civilian_factory_use = 4
			custom_modifier_tooltip = WH_Market_logistics_tooltip
		}
		
 remove_effect = {
 hidden_effect = {
 create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				}
  create_ship = {
					type = ship_hull_submarine_4
					equipment_variant = "WH Market submarine 4"
					creator = ROOT
					name = "PURCHASED WH MARKET SUBMARINE IV" 
				} }
	custom_effect_tooltip = WH_Market_submarine1944_four_tooltip
	custom_effect_tooltip = WH_Market_cooldown_tooltip
 }

}

#ЗАКУПКА РЕСУРСОВ
#ЗАКУПКА РЕСУРСОВ
#ЗАКУПКА РЕСУРСОВ
#ЗАКУПКА РЕСУРСОВ

WH_Market_geological_exploration_page_one_category_decision = {
available = { 
hidden_trigger = {always = yes} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock 
NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_page_two_unlock custom_effect_tooltip = WH_Market_page_change_button7} }	

WH_Market_geological_exploration_steel_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock }} }

#100 СТАЛИ
#100 СТАЛИ

WH_Market_geological_exploration_steel_one_decision_on = {
icon = GFX_decision_steel
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_steel_100purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_steel_100purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_steel_one_decision_off = {
icon = GFX_decision_steel
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_steel_100purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_steel_100purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#75 СТАЛИ
#75 СТАЛИ

WH_Market_geological_exploration_steel_two_decision_on = {
icon = GFX_decision_steel
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_steel_75purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_steel_75purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_steel_two_decision_off = {
icon = GFX_decision_steel
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_steel_75purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_steel_75purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#50 СТАЛИ
#50 СТАЛИ

WH_Market_geological_exploration_steel_three_decision_on = {
icon = GFX_decision_steel
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_steel_50purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_steel_50purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_steel_three_decision_off = {
icon = GFX_decision_steel
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_steel_50purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_steel_50purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#25 СТАЛИ
#25 СТАЛИ

WH_Market_geological_exploration_steel_four_decision_on = {
icon = GFX_decision_steel
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_steel_25purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_steel_25purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_steel_four_decision_off = {
icon = GFX_decision_steel
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_steel_25purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_steel_25purchase clr_country_flag = WH_Market_geological_exploration_active }
}

WH_Market_geological_exploration_steel_25purchase_decision = {
        icon = steel
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 75
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_steel25_idea has_country_flag = WH_Market_geological_exploration_steel_25purchase_process }
		    has_country_flag = WH_Market_geological_exploration_steel_25purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_steel_25purchase_process }
	
	    available = { num_of_civilian_factories_available_for_projects > 3}
        modifier = { civilian_factory_use = 4 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_steel_25purchase_process
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_10 } } FROM = {  add_resource = { type = steel amount = 10 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_15 } } FROM = {  add_resource = { type = steel amount = 15 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_20 } } FROM = {  add_resource = { type = steel amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_25 } } FROM = {  add_resource = { type = steel amount = 25 } } }
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_30 } } FROM = {  add_resource = { type = steel amount = 30 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_steel25_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6 } 
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }	
    }
	
WH_Market_geological_exploration_steel_50purchase_decision = {
        icon = steel
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 150
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_steel50_idea has_country_flag = WH_Market_geological_exploration_steel_50purchase_process }
		    has_country_flag = WH_Market_geological_exploration_steel_50purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_steel_50purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 7}
        modifier = { civilian_factory_use = 8 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_steel_50purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_10 } } FROM = {  add_resource = { type = steel amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_15 } } FROM = {  add_resource = { type = steel amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_20 } } FROM = {  add_resource = { type = steel amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_25 } } FROM = {  add_resource = { type = steel amount = 50 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_30 } } FROM = {  add_resource = { type = steel amount = 60 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_steel50_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }

WH_Market_geological_exploration_steel_75purchase_decision = {
        icon = steel
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 225
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_steel75_idea has_country_flag = WH_Market_geological_exploration_steel_75purchase_process }
		    has_country_flag = WH_Market_geological_exploration_steel_75purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_steel_75purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 11}
        modifier = { civilian_factory_use = 12 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_steel_75purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_10 } } FROM = {  add_resource = { type = steel amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_15 } } FROM = {  add_resource = { type = steel amount = 45 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_20 } } FROM = {  add_resource = { type = steel amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_25 } } FROM = {  add_resource = { type = steel amount = 75 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_30 } } FROM = {  add_resource = { type = steel amount = 90 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_steel75_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6 }
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_steel_100purchase_decision = {
        icon = steel
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 300
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_steel100_idea has_country_flag = WH_Market_geological_exploration_steel_100purchase_process}
		    has_country_flag = WH_Market_geological_exploration_steel_100purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_steel_100purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 15}
        modifier = { civilian_factory_use = 16 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_steel_100purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_10 } } FROM = {  add_resource = { type = steel amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_15 } } FROM = {  add_resource = { type = steel amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_20 } } FROM = {  add_resource = { type = steel amount = 80 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_25 } } FROM = {  add_resource = { type = steel amount = 100 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_steel_rule option = Geological_exploration_steel_30 } } FROM = {  add_resource = { type = steel amount = 120 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_steel100_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6 }
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
#АЛЮМИНИЙ
#АЛЮМИНИЙ

WH_Market_geological_exploration_aluminium_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } }

#100 АЛЮМИНИЯ
#100 АЛЮМИНИЯ

WH_Market_geological_exploration_aluminium_one_decision_on = {
icon = GFX_decision_aluminium
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_aluminium_100purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_aluminium_100purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_aluminium_one_decision_off = {
icon = GFX_decision_aluminium
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_aluminium_100purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_aluminium_100purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#75 АЛЮМИНИЯ
#75 АЛЮМИНИЯ

WH_Market_geological_exploration_aluminium_two_decision_on = {
icon = GFX_decision_aluminium
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_aluminium_75purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_aluminium_75purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_aluminium_two_decision_off = {
icon = GFX_decision_aluminium
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_aluminium_75purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_aluminium_75purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#50 АЛЮМИНИЯ
#50 АЛЮМИНИЯ

WH_Market_geological_exploration_aluminium_three_decision_on = {
icon = GFX_decision_aluminium
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_aluminium_50purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_aluminium_50purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_aluminium_three_decision_off = {
icon = GFX_decision_aluminium
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_aluminium_50purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock }} 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_aluminium_50purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#25 АЛЮМИНИЯ
#25 АЛЮМИНИЯ

WH_Market_geological_exploration_aluminium_four_decision_on = {
icon = GFX_decision_aluminium
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_aluminium_25purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_aluminium_25purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_aluminium_four_decision_off = {
icon = GFX_decision_aluminium
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_aluminium_25purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_aluminium_25purchase clr_country_flag = WH_Market_geological_exploration_active }
}

WH_Market_geological_exploration_aluminium_25purchase_decision = {
        icon = aluminium
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 75
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_aluminium25_idea has_country_flag = WH_Market_geological_exploration_aluminium_25purchase_process }
		    has_country_flag = WH_Market_geological_exploration_aluminium_25purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_aluminium_25purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 3}
        modifier = { civilian_factory_use = 4 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_aluminium_25purchase_process
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_10 } } FROM = {  add_resource = { type = aluminium amount = 10 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_15 } } FROM = {  add_resource = { type = aluminium amount = 15 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_20 } } FROM = {  add_resource = { type = aluminium amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_25 } } FROM = {  add_resource = { type = aluminium amount = 25 } } }
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_30 } } FROM = {  add_resource = { type = aluminium amount = 30 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_aluminium25_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_aluminium_50purchase_decision = {
        icon = aluminium
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 150
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_aluminium50_idea has_country_flag = WH_Market_geological_exploration_aluminium_50purchase_process}
		    has_country_flag = WH_Market_geological_exploration_aluminium_50purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_aluminium_50purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 7}
        modifier = { civilian_factory_use = 8 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_aluminium_50purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_10 } } FROM = {  add_resource = { type = aluminium amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_15 } } FROM = {  add_resource = { type = aluminium amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_20 } } FROM = {  add_resource = { type = aluminium amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_25 } } FROM = {  add_resource = { type = aluminium amount = 50 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_30 } } FROM = {  add_resource = { type = aluminium amount = 60 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_aluminium50_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }

WH_Market_geological_exploration_aluminium_75purchase_decision = {
        icon = aluminium
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 225
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_aluminium75_idea has_country_flag = WH_Market_geological_exploration_aluminium_75purchase_process}
		    has_country_flag = WH_Market_geological_exploration_aluminium_75purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_aluminium_75purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 11}
        modifier = { civilian_factory_use = 12 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_aluminium_75purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_10 } } FROM = {  add_resource = { type = aluminium amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_15 } } FROM = {  add_resource = { type = aluminium amount = 45 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_20 } } FROM = {  add_resource = { type = aluminium amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_25 } } FROM = {  add_resource = { type = aluminium amount = 75 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_30 } } FROM = {  add_resource = { type = aluminium amount = 90 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_aluminium75_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_aluminium_100purchase_decision = {
        icon = aluminium
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 300
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_aluminium100_idea has_country_flag = WH_Market_geological_exploration_aluminium_100purchase_process}
		    has_country_flag = WH_Market_geological_exploration_aluminium_100purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_aluminium_100purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 15}
        modifier = { civilian_factory_use = 16 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_aluminium_100purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_10 } } FROM = {  add_resource = { type = aluminium amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_15 } } FROM = {  add_resource = { type = aluminium amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_20 } } FROM = {  add_resource = { type = aluminium amount = 80 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_25 } } FROM = {  add_resource = { type = aluminium amount = 100 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_aluminium_rule option = Geological_exploration_aluminium_30 } } FROM = {  add_resource = { type = aluminium amount = 120 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_aluminium100_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
#ВОЛЬФРАМ
#ВОЛЬФРАМ

WH_Market_geological_exploration_tungsten_category_decision = {
available = { hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 

#100 ВОЛЬФРАМА
#100 ВОЛЬФРАМА

WH_Market_geological_exploration_tungsten_one_decision_on = {
icon = GFX_decision_tungsten
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_tungsten_100purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_tungsten_100purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_tungsten_one_decision_off = {
icon = GFX_decision_tungsten
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_tungsten_100purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_tungsten_100purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#75 ВОЛЬФРАМА
#75 ВОЛЬФРАМА

WH_Market_geological_exploration_tungsten_two_decision_on = {
icon = GFX_decision_tungsten
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_tungsten_75purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_tungsten_75purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_tungsten_two_decision_off = {
icon = GFX_decision_tungsten
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_tungsten_75purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_tungsten_75purchase clr_country_flag = WH_Market_geological_exploration_active}
}

#50 ВОЛЬФРАМА
#50 ВОЛЬФРАМА

WH_Market_geological_exploration_tungsten_three_decision_on = {
icon = GFX_decision_tungsten
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_tungsten_50purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_tungsten_50purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_tungsten_three_decision_off = {
icon = GFX_decision_tungsten
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_tungsten_50purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_tungsten_50purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#25 ВОЛЬФРАМА
#25 ВОЛЬФРАМА

WH_Market_geological_exploration_tungsten_four_decision_on = {
icon = GFX_decision_tungsten
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_tungsten_25purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_tungsten_25purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_tungsten_four_decision_off = {
icon = GFX_decision_tungsten
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_tungsten_25purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock }} 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_tungsten_25purchase clr_country_flag = WH_Market_geological_exploration_active }
}

WH_Market_geological_exploration_tungsten_25purchase_decision = {
        icon = tungsten
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 75
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_tungsten25_idea has_country_flag = WH_Market_geological_exploration_tungsten_25purchase_process}
		    has_country_flag = WH_Market_geological_exploration_tungsten_25purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_tungsten_25purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 3}
        modifier = { civilian_factory_use = 4 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_tungsten_25purchase_process
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_10 } } FROM = {  add_resource = { type = tungsten amount = 10 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_15 } } FROM = {  add_resource = { type = tungsten amount = 15 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_20 } } FROM = {  add_resource = { type = tungsten amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_25 } } FROM = {  add_resource = { type = tungsten amount = 25 } } }
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_30 } } FROM = {  add_resource = { type = tungsten amount = 30 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_tungsten25_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_tungsten_50purchase_decision = {
        icon = tungsten
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 150
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_tungsten50_idea has_country_flag = WH_Market_geological_exploration_tungsten_50purchase_process }
		    has_country_flag = WH_Market_geological_exploration_tungsten_50purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_tungsten_50purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 7}
        modifier = { civilian_factory_use = 8 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_tungsten_50purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_10 } } FROM = {  add_resource = { type = tungsten amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_15 } } FROM = {  add_resource = { type = tungsten amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_20 } } FROM = {  add_resource = { type = tungsten amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_25 } } FROM = {  add_resource = { type = tungsten amount = 50 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_30 } } FROM = {  add_resource = { type = tungsten amount = 60 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_tungsten50_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }

WH_Market_geological_exploration_tungsten_75purchase_decision = {
        icon = tungsten
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 225
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_tungsten75_idea has_country_flag = WH_Market_geological_exploration_tungsten_75purchase_process }
		    has_country_flag = WH_Market_geological_exploration_tungsten_75purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_tungsten_75purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 11}
        modifier = { civilian_factory_use = 12 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_tungsten_75purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_10 } } FROM = {  add_resource = { type = tungsten amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_15 } } FROM = {  add_resource = { type = tungsten amount = 45 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_20 } } FROM = {  add_resource = { type = tungsten amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_25 } } FROM = {  add_resource = { type = tungsten amount = 75 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_30 } } FROM = {  add_resource = { type = tungsten amount = 90 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_tungsten75_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_tungsten_100purchase_decision = {
        icon = tungsten
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 300
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_tungsten100_idea has_country_flag = WH_Market_geological_exploration_tungsten_100purchase_process }
		    has_country_flag = WH_Market_geological_exploration_tungsten_100purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_tungsten_100purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 15}
        modifier = { civilian_factory_use = 16 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_tungsten_100purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_10 } } FROM = {  add_resource = { type = tungsten amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_15 } } FROM = {  add_resource = { type = tungsten amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_20 } } FROM = {  add_resource = { type = tungsten amount = 80 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_25 } } FROM = {  add_resource = { type = tungsten amount = 100 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_tungsten_rule option = Geological_exploration_tungsten_30 } } FROM = {  add_resource = { type = tungsten amount = 120 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_tungsten100_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
#ХРОМ
#ХРОМ

WH_Market_geological_exploration_chromium_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } }

#100 ХРОМА
#100 ХРОМА

WH_Market_geological_exploration_chromium_one_decision_on = {
icon = GFX_decision_chromium
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_chromium_100purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_chromium_100purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_chromium_one_decision_off = {
icon = GFX_decision_chromium
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_chromium_100purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_chromium_100purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#75 ХРОМА
#75 ХРОМА

WH_Market_geological_exploration_chromium_two_decision_on = {
icon = GFX_decision_chromium
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_chromium_75purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_chromium_75purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_chromium_two_decision_off = {
icon = GFX_decision_chromium
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_chromium_75purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_chromium_75purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#50 ХРОМА
#50 ХРОМА

WH_Market_geological_exploration_chromium_three_decision_on = {
icon = GFX_decision_chromium
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_chromium_50purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_chromium_50purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_chromium_three_decision_off = {
icon = GFX_decision_chromium
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_chromium_50purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_chromium_50purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#25 ХРОМА
#25 ХРОМА

WH_Market_geological_exploration_chromium_four_decision_on = {
icon = GFX_decision_chromium
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock NOT = { OR = { has_country_flag = WH_Market_geological_exploration_chromium_25purchase has_country_flag = WH_Market_geological_exploration_page_two_unlock } } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_chromium_25purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_chromium_four_decision_off = {
icon = GFX_decision_chromium
visible = { has_country_flag = WH_Market_geological_exploration_page_unlock has_country_flag = WH_Market_geological_exploration_chromium_25purchase NOT = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_chromium_25purchase clr_country_flag = WH_Market_geological_exploration_active }
}

WH_Market_geological_exploration_chromium_25purchase_decision = {
        icon = chromium
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 75
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_chromium25_idea has_country_flag = WH_Market_geological_exploration_chromium_25purchase_process }
		    has_country_flag = WH_Market_geological_exploration_chromium_25purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_chromium_25purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 3}
        modifier = { civilian_factory_use = 4 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_chromium_25purchase_process
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_10 } } FROM = {  add_resource = { type = chromium amount = 10 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_15 } } FROM = {  add_resource = { type = chromium amount = 15 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_20 } } FROM = {  add_resource = { type = chromium amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_25 } } FROM = {  add_resource = { type = chromium amount = 25 } } }
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_30 } } FROM = {  add_resource = { type = chromium amount = 30 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_chromium25_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_chromium_50purchase_decision = {
        icon = chromium
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 150
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_chromium50_idea has_country_flag = WH_Market_geological_exploration_chromium_50purchase_process}
		    has_country_flag = WH_Market_geological_exploration_chromium_50purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_chromium_50purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 7}
        modifier = { civilian_factory_use = 8 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_chromium_50purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_10 } } FROM = {  add_resource = { type = chromium amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_15 } } FROM = {  add_resource = { type = chromium amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_20 } } FROM = {  add_resource = { type = chromium amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_25 } } FROM = {  add_resource = { type = chromium amount = 50 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_30 } } FROM = {  add_resource = { type = chromium amount = 60 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_chromium50_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }

WH_Market_geological_exploration_chromium_75purchase_decision = {
        icon = chromium
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 225
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_chromium75_idea has_country_flag = WH_Market_geological_exploration_chromium_75purchase_process }
		    has_country_flag = WH_Market_geological_exploration_chromium_75purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_chromium_75purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 11}
        modifier = { civilian_factory_use = 12 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_chromium_75purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_10 } } FROM = {  add_resource = { type = chromium amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_15 } } FROM = {  add_resource = { type = chromium amount = 45 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_20 } } FROM = {  add_resource = { type = chromium amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_25 } } FROM = {  add_resource = { type = chromium amount = 75 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_30 } } FROM = {  add_resource = { type = chromium amount = 90 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_chromium75_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_chromium_100purchase_decision = {
        icon = chromium
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 300
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_chromium100_idea has_country_flag = WH_Market_geological_exploration_chromium_100purchase_process }
		    has_country_flag = WH_Market_geological_exploration_chromium_100purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_chromium_100purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 15}
        modifier = { civilian_factory_use = 16 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_chromium_100purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_10 } } FROM = {  add_resource = { type = chromium amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_15 } } FROM = {  add_resource = { type = chromium amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_20 } } FROM = {  add_resource = { type = chromium amount = 80 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_25 } } FROM = {  add_resource = { type = chromium amount = 100 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_chromium_rule option = Geological_exploration_chromium_30 } } FROM = {  add_resource = { type = chromium amount = 120 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_chromium100_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_page_two_category_decision = {
available = { 
hidden_trigger = {always = yes} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_page_two_unlock custom_effect_tooltip = WH_Market_page_change_button6} } 

#РЕЗИНА
#РЕЗИНА

WH_Market_geological_exploration_rubber_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } }

#100 РЕЗИНЫ
#100 РЕЗИНЫ

WH_Market_geological_exploration_rubber_one_decision_on = {
icon = GFX_decision_rubber
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_rubber_100purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_rubber_100purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_rubber_one_decision_off = {
icon = GFX_decision_rubber
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_rubber_100purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_rubber_100purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#75 РЕЗИНЫ
#75 РЕЗИНЫ

WH_Market_geological_exploration_rubber_two_decision_on = {
icon = GFX_decision_rubber
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_rubber_75purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_rubber_75purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_rubber_two_decision_off = {
icon = GFX_decision_rubber
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_rubber_75purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_rubber_75purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#50 РЕЗИНЫ
#50 РЕЗИНЫ

WH_Market_geological_exploration_rubber_three_decision_on = {
icon = GFX_decision_rubber
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_rubber_50purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_rubber_50purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_rubber_three_decision_off = {
icon = GFX_decision_rubber
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_rubber_50purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_rubber_50purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#25 РЕЗИНЫ
#25 РЕЗИНЫ

WH_Market_geological_exploration_rubber_four_decision_on = {
icon = GFX_decision_rubber
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_rubber_25purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_rubber_25purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_rubber_four_decision_off = {
icon = GFX_decision_rubber
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_rubber_25purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_rubber_25purchase clr_country_flag = WH_Market_geological_exploration_active }
}

WH_Market_geological_exploration_rubber_25purchase_decision = {
        icon = rubber
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 75
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_rubber25_idea has_country_flag = WH_Market_geological_exploration_rubber_25purchase_process}
		    has_country_flag = WH_Market_geological_exploration_rubber_25purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_rubber_25purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 3}
        modifier = { civilian_factory_use = 4 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_rubber_25purchase_process
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_10 } } FROM = {  add_resource = { type = rubber amount = 10 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_15 } } FROM = {  add_resource = { type = rubber amount = 15 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_20 } } FROM = {  add_resource = { type = rubber amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_25 } } FROM = {  add_resource = { type = rubber amount = 25 } } }
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_30 } } FROM = {  add_resource = { type = rubber amount = 30 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_rubber25_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
        cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }		
    }
	
WH_Market_geological_exploration_rubber_50purchase_decision = {
        icon = rubber
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 150
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_rubber50_idea has_country_flag = WH_Market_geological_exploration_rubber_50purchase_process }
		    has_country_flag = WH_Market_geological_exploration_rubber_50purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_rubber_50purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 7}
        modifier = { civilian_factory_use = 8 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_rubber_50purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_10 } } FROM = {  add_resource = { type = rubber amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_15 } } FROM = {  add_resource = { type = rubber amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_20 } } FROM = {  add_resource = { type = rubber amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_25 } } FROM = {  add_resource = { type = rubber amount = 50 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_30 } } FROM = {  add_resource = { type = rubber amount = 60 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_rubber50_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6} 
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }

WH_Market_geological_exploration_rubber_75purchase_decision = {
        icon = rubber
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 225
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_rubber75_idea has_country_flag = WH_Market_geological_exploration_rubber_75purchase_process }
		    has_country_flag = WH_Market_geological_exploration_rubber_75purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_rubber_75purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 11}
        modifier = { civilian_factory_use = 12 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_rubber_75purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_10 } } FROM = {  add_resource = { type = rubber amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_15 } } FROM = {  add_resource = { type = rubber amount = 45 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_20 } } FROM = {  add_resource = { type = rubber amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_25 } } FROM = {  add_resource = { type = rubber amount = 75 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_30 } } FROM = {  add_resource = { type = rubber amount = 90 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_rubber75_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }
	
WH_Market_geological_exploration_rubber_100purchase_decision = {
        icon = rubber
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 300
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_rubber100_idea has_country_flag = WH_Market_geological_exploration_rubber_100purchase_process }
		    has_country_flag = WH_Market_geological_exploration_rubber_100purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_rubber_100purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 15}
        modifier = { civilian_factory_use = 16 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_rubber_100purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_10 } } FROM = {  add_resource = { type = rubber amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_15 } } FROM = {  add_resource = { type = rubber amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_20 } } FROM = {  add_resource = { type = rubber amount = 80 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_25 } } FROM = {  add_resource = { type = rubber amount = 100 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_rubber_rule option = Geological_exploration_rubber_30 } } FROM = {  add_resource = { type = rubber amount = 120 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_rubber100_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6} 
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }
	
#НЕФТЬ
#НЕФТЬ

WH_Market_geological_exploration_oil_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } }

#100 НЕФТИ
#100 НЕФТИ

WH_Market_geological_exploration_oil_one_decision_on = {
icon = GFX_decision_oil
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_oil_100purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_oil_100purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_oil_one_decision_off = {
icon = GFX_decision_oil
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_oil_100purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_oil_100purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#75 НЕФТИ
#75 НЕФТИ

WH_Market_geological_exploration_oil_two_decision_on = {
icon = GFX_decision_oil
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_oil_75purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_oil_75purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_oil_two_decision_off = {
icon = GFX_decision_oil
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_oil_75purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_oil_75purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#50 НЕФТИ
#50 НЕФТИ

WH_Market_geological_exploration_oil_three_decision_on = {
icon = GFX_decision_oil
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_oil_50purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_oil_50purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_oil_three_decision_off = {
icon = GFX_decision_oil
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_oil_50purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_oil_50purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#25 НЕФТИ
#25 НЕФТИ

WH_Market_geological_exploration_oil_four_decision_on = {
icon = GFX_decision_oil
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_oil_25purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_oil_25purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_oil_four_decision_off = {
icon = GFX_decision_oil
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_oil_25purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_oil_25purchase clr_country_flag = WH_Market_geological_exploration_active }
}

WH_Market_geological_exploration_oil_25purchase_decision = {
        icon = oil
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 75
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_oil25_idea has_country_flag = WH_Market_geological_exploration_oil_25purchase_process}
		    has_country_flag = WH_Market_geological_exploration_oil_25purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_oil_25purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 3}
        modifier = { civilian_factory_use = 4 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_oil_25purchase_process
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_10 } } FROM = {  add_resource = { type = oil amount = 10 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_15 } } FROM = {  add_resource = { type = oil amount = 15 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_20 } } FROM = {  add_resource = { type = oil amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_25 } } FROM = {  add_resource = { type = oil amount = 25 } } }
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_30 } } FROM = {  add_resource = { type = oil amount = 30 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_oil25_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }
	
WH_Market_geological_exploration_oil_50purchase_decision = {
        icon = oil
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 150
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_oil50_idea has_country_flag = WH_Market_geological_exploration_oil_50purchase_process}
		    has_country_flag = WH_Market_geological_exploration_oil_50purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_oil_50purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 7}
        modifier = { civilian_factory_use = 8 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_oil_50purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_10 } } FROM = {  add_resource = { type = oil amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_15 } } FROM = {  add_resource = { type = oil amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_20 } } FROM = {  add_resource = { type = oil amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_25 } } FROM = {  add_resource = { type = oil amount = 50 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_30 } } FROM = {  add_resource = { type = oil amount = 60 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_oil50_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}  
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }

WH_Market_geological_exploration_oil_75purchase_decision = {
        icon = oil
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 225
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_oil75_idea  has_country_flag = WH_Market_geological_exploration_oil_75purchase_process }
		    has_country_flag = WH_Market_geological_exploration_oil_75purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_oil_75purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 11}
        modifier = { civilian_factory_use = 12 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_oil_75purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_10 } } FROM = {  add_resource = { type = oil amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_15 } } FROM = {  add_resource = { type = oil amount = 45 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_20 } } FROM = {  add_resource = { type = oil amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_25 } } FROM = {  add_resource = { type = oil amount = 75 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_30 } } FROM = {  add_resource = { type = oil amount = 90 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_oil75_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }
	
WH_Market_geological_exploration_oil_100purchase_decision = {
        icon = oil
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 300
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_oil100_idea has_country_flag = WH_Market_geological_exploration_oil_100purchase_process }
		    has_country_flag = WH_Market_geological_exploration_oil_100purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_oil_100purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 15}
        modifier = { civilian_factory_use = 16 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_oil_100purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_10 } } FROM = {  add_resource = { type = oil amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_15 } } FROM = {  add_resource = { type = oil amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_20 } } FROM = {  add_resource = { type = oil amount = 80 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_25 } } FROM = {  add_resource = { type = oil amount = 100 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_oil_rule option = Geological_exploration_oil_30 } } FROM = {  add_resource = { type = oil amount = 120 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_oil100_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6}
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }

#УГОЛЬ
#УГОЛЬ

WH_Market_geological_exploration_coal_category_decision = {
available = { 
hidden_trigger = {always = no} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock } }

#100 УГЛЯ 
#100 УГЛЯ

WH_Market_geological_exploration_coal_one_decision_on = {
icon = GFX_decision_coal
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_coal_100purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_coal_100purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip }
}

WH_Market_geological_exploration_coal_one_decision_off = {
icon = GFX_decision_coal
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_coal_100purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_coal_100purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#75 УГЛЯ
#75 УГЛЯ

WH_Market_geological_exploration_coal_two_decision_on = {
icon = GFX_decision_coal
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_coal_75purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_coal_75purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_coal_two_decision_off = {
icon = GFX_decision_coal
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_coal_75purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_coal_75purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#50 УГЛЯ
#50 УГЛЯ

WH_Market_geological_exploration_coal_three_decision_on = {
icon = GFX_decision_coal
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_coal_50purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_coal_50purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_coal_three_decision_off = {
icon = GFX_decision_coal
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_coal_50purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_coal_50purchase clr_country_flag = WH_Market_geological_exploration_active }
}

#25 УГЛЯ
#25 УГЛЯ

WH_Market_geological_exploration_coal_four_decision_on = {
icon = GFX_decision_coal
available = { NOT = {has_country_flag = WH_Market_geological_exploration_active} }
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock NOT = { has_country_flag = WH_Market_geological_exploration_coal_25purchase } } 
complete_effect = { set_country_flag = WH_Market_geological_exploration_coal_25purchase set_country_flag = WH_Market_geological_exploration_active custom_effect_tooltip = WH_Market_geological_exploration_decisions_tooltip}
}

WH_Market_geological_exploration_coal_four_decision_off = {
icon = GFX_decision_coal
visible = { has_country_flag = WH_Market_geological_exploration_page_two_unlock has_country_flag = WH_Market_geological_exploration_coal_25purchase } 
complete_effect = { clr_country_flag = WH_Market_geological_exploration_coal_25purchase clr_country_flag = WH_Market_geological_exploration_active }
}

WH_Market_geological_exploration_coal_25purchase_decision = {
        icon = coal
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 75
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_coal25_idea has_country_flag = WH_Market_geological_exploration_coal_25purchase_process}
		    has_country_flag = WH_Market_geological_exploration_coal_25purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_coal_25purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 3}
        modifier = { civilian_factory_use = 4 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_coal_25purchase_process
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_10 } } FROM = {  add_resource = { type = coal amount = 10 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_15 } } FROM = {  add_resource = { type = coal amount = 15 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_20 } } FROM = {  add_resource = { type = coal amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_25 } } FROM = {  add_resource = { type = coal amount = 25 } } }
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_30 } } FROM = {  add_resource = { type = coal amount = 30 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_coal25_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6} 
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }
	
WH_Market_geological_exploration_coal_50purchase_decision = {
        icon = coal
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 150
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_coal50_idea has_country_flag = WH_Market_geological_exploration_coal_50purchase_process }
		    has_country_flag = WH_Market_geological_exploration_coal_50purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_coal_50purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 7}
        modifier = { civilian_factory_use = 8 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_coal_50purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_10 } } FROM = {  add_resource = { type = coal amount = 20 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_15 } } FROM = {  add_resource = { type = coal amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_20 } } FROM = {  add_resource = { type = coal amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_25 } } FROM = {  add_resource = { type = coal amount = 50 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_30 } } FROM = {  add_resource = { type = coal amount = 60 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_coal50_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6} 
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }

WH_Market_geological_exploration_coal_75purchase_decision = {
        icon = coal
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 225
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_coal75_idea has_country_flag = WH_Market_geological_exploration_coal_75purchase_process }
		    has_country_flag = WH_Market_geological_exploration_coal_75purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_coal_75purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 11}
        modifier = { civilian_factory_use = 12 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_coal_75purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_10 } } FROM = {  add_resource = { type = coal amount = 30 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_15 } } FROM = {  add_resource = { type = coal amount = 45 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_20 } } FROM = {  add_resource = { type = coal amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_25 } } FROM = {  add_resource = { type = coal amount = 75 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_30 } } FROM = {  add_resource = { type = coal amount = 90 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_coal75_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6} 
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }
	
WH_Market_geological_exploration_coal_100purchase_decision = {
        icon = coal
        target_array = controlled_states
        state_target = yes 
        on_map_mode = map_only
		cost = 300
        days_remove = 60
		
        visible = {
		    NOT = { has_idea = WH_Market_geological_exploration_coal100_idea has_country_flag = WH_Market_geological_exploration_coal_100purchase_process}
		    has_country_flag = WH_Market_geological_exploration_coal_100purchase
			FROM = {
                is_fully_controlled_by = ROOT
            }
        }	
		complete_effect = { set_country_flag = WH_Market_geological_exploration_coal_100purchase_process }
	    available = { num_of_civilian_factories_available_for_projects > 15}
        modifier = { civilian_factory_use = 16 custom_modifier_tooltip = WH_Market_logistics_tooltip }
        remove_effect = {
		clr_country_flag = WH_Market_geological_exploration_coal_100purchase_process
        if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_10 } } FROM = {  add_resource = { type = coal amount = 40 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_15 } } FROM = {  add_resource = { type = coal amount = 60 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_20 } } FROM = {  add_resource = { type = coal amount = 80 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_25 } } FROM = {  add_resource = { type = coal amount = 100 } } }
		if = { limit = { has_game_rule = { rule = WH_Market_change_geological_exploration_coal_rule option = Geological_exploration_coal_30 } } FROM = {  add_resource = { type = coal amount = 120 } } }
		hidden_effect = { add_timed_idea = { idea = WH_Market_geological_exploration_coal100_idea days = 180 } }
		custom_effect_tooltip = WH_Market_cooldown_tooltip
		custom_effect_tooltip = WH_Market_road_construction_ideas_tooltip6 } 
		cancel_trigger = { NOT = { FROM = { is_fully_controlled_by = ROOT } } }
    }


}


