bm_naval_mobilization_project = {
	specialization = specialization_naval
	icon = GFX_sp_naval_mobilization_program

	breakthrough_cost = {
		specialization_naval = {
			base = 3
			modifier = {
				add = -2
				has_tech = construction3
				OR = {
					has_tech = dispersed_industry3
					has_tech = concentrated_industry3
				}
			}
		}
	}

	resource_cost = {
		resources = {
			steel = 5
			tungsten = 3
		}
	}

	ai_will_do = {
		base = 1
	}

	prototype_time = sp_time.prototype.short
	complexity = sp_complexity.medium

	available = {
		FROM = {
			OR = {
				has_tech = concentrated_industry2
				has_tech = dispersed_industry2
			}
		}
	}

	generic_prototype_rewards = {
		bm_progress_reward_low
		bm_progress_reward_medium
		bm_progress_loss_low
		bm_progress_loss_medium
		bm_naval_breakthrough_reward_low
		bm_naval_breakthrough_reward_medium
		bm_naval_breakthrough_reward_high
		bm_naval_scientist_xp_reward_low
		bm_naval_scientist_xp_reward_medium
	}

	project_output = {
		country_effects = {
			if = {
				limit = {
					has_country_flag = bm_naval_mobilization_project_flag
				}
				custom_effect_tooltip = {
					localization_key = bm_naval_mobilization_project_tt
					NAME = bm_naval_mobilization_project_tt_name
					DESC = bm_naval_mobilization_project_tt_desc
					ICON = GFX_bm_heavy_crane_icon
				}
				custom_effect_tooltip = bm_divider_2
				add_dynamic_modifier = {
					modifier = bm_sp_naval_mobilization_dynamic_modifier
					days = 730
				}
			}
			else = {
				custom_effect_tooltip = {
					localization_key = bm_naval_mobilization_project_tt
					NAME = bm_naval_mobilization_project_tt_name
					DESC = bm_naval_mobilization_project_tt_desc
					ICON = GFX_bm_heavy_crane_icon
				}
				custom_effect_tooltip = bm_divider_2
				custom_effect_tooltip = bm_naval_mobilization_project_tt_explain
				custom_effect_tooltip = bm_divider_2
				custom_effect_tooltip = {
					localization_key = bm_naval_mobilization_project_tip_tt
					TECH_1 = construction3
					TECH_2 = dispersed_industry3
					TECH_3 = concentrated_industry3
				}
			}
		}
	}

	unique_prototype_rewards = {
		bm_naval_mobilization_project_reward_1 = {
			fire_only_once = yes

			threshold = {
				min = 5
				max = 25
			}

			weight = {
				base = 1000
			}

			option = {
				token = bm_naval_mobilization_project_reward_1_option_1

				iteration_output = {
					country_effects = {
						set_country_flag = bm_naval_mobilization_project_flag
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_production_speed_dockyard_factor = 0.15
							tooltip = production_speed_dockyard_factor_tt
						}
					}
				}
			}
			option = {
				token = bm_naval_mobilization_project_reward_1_option_2

				iteration_output = {
					country_effects = {
						set_country_flag = bm_naval_mobilization_project_flag
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_industrial_capacity_dockyard = 0.15
							tooltip = industrial_capacity_dockyard_tt
						}
					}
				}
			}
			option = {
				token = bm_naval_mobilization_project_reward_1_option_3

				iteration_output = {
					country_effects = {
						set_country_flag = bm_naval_mobilization_project_flag
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_repair_speed_factor = 0.15
							tooltip = repair_speed_factor_tt
						}
						add_to_variable = {
							NAVAL_MOBILIZATION_refit_speed = 0.10
							tooltip = refit_speed_tt
						}
					}
				}
			}
		}

		bm_naval_mobilization_project_reward_2 = {
			fire_only_once = yes

			threshold = {
				min = 25
				max = 50
			}

			weight = {
				base = 1000
			}

			option = {
				token = bm_naval_mobilization_project_reward_2_option_1

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_production_speed_dockyard_factor = 0.10
							tooltip = production_speed_dockyard_factor_tt
						}
					}
				}
			}			
			option = {
				token = bm_naval_mobilization_project_reward_2_option_2

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_industrial_capacity_dockyard = 0.10
							tooltip = industrial_capacity_dockyard_tt
						}
					}
				}
			}			
			option = {
				token = bm_naval_mobilization_project_reward_2_option_3

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_repair_speed_factor = 0.10
							tooltip = repair_speed_factor_tt
						}
						add_to_variable = {
							NAVAL_MOBILIZATION_refit_speed = 0.10
							tooltip = refit_speed_tt
						}
					}
				}
			}			
		}

		bm_naval_mobilization_project_reward_3 = {
			fire_only_once = yes

			threshold = {
				min = 50
				max = 75
			}

			weight = {
				base = 1000
			}

			option = {
				token = bm_naval_mobilization_project_reward_3_option_1

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_production_speed_dockyard_factor = 0.10
							tooltip = production_speed_dockyard_factor_tt
						}
					}
				}
			}			
			option = {
				token = bm_naval_mobilization_project_reward_3_option_2

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_industrial_capacity_dockyard = 0.10
							tooltip = industrial_capacity_dockyard_tt
						}
					}
				}
			}			
			option = {
				token = bm_naval_mobilization_project_reward_3_option_3

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_repair_speed_factor = 0.10
							tooltip = repair_speed_factor_tt
						}
						add_to_variable = {
							NAVAL_MOBILIZATION_refit_speed = 0.10
							tooltip = refit_speed_tt
						}
					}
				}
			}			
		}

		bm_naval_mobilization_project_reward_4 = {
			fire_only_once = yes

			threshold = {
				min = 75
				max = 100
			}

			weight = {
				base = 1000
			}

			option = {
				token = bm_naval_mobilization_project_reward_4_option_1

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_production_speed_dockyard_factor = 0.10
							tooltip = production_speed_dockyard_factor_tt
						}
					}
				}
			}			
			option = {
				token = bm_naval_mobilization_project_reward_4_option_2

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_industrial_capacity_dockyard = 0.10
							tooltip = industrial_capacity_dockyard_tt
						}
					}
				}
			}			
			option = {
				token = bm_naval_mobilization_project_reward_4_option_3

				iteration_output = {
					country_effects = {
						custom_effect_tooltip = bm_sp_naval_mobilization_dynamic_modifier_tt
						add_to_variable = {
							NAVAL_MOBILIZATION_repair_speed_factor = 0.10
							tooltip = repair_speed_factor_tt
						}
						add_to_variable = {
							NAVAL_MOBILIZATION_refit_speed = 0.10
							tooltip = refit_speed_tt
						}
					}
				}
			}			
		}
	}
}