bm_packed_hanger_deck_project = {
	specialization = specialization_naval
	icon = GFX_sp_packed_hanger_deck
	project_tags = sp_tag_surface_ship

	breakthrough_cost = {
		specialization_naval = {
			base = 1
			modifier = {
				add = -1
				has_tech = improved_ship_hull_carrier
			}
		}
	}

	resource_cost = {
		resources = {
			steel = 4
		}
	}

	visible = {
		NOT = {
			has_global_flag = wia_baby_mode
		}
	}

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

	allowed = {
		has_dlc = "Man the Guns"
	}
	available = {
		if = {
			limit = {
				FROM = {
					is_ai = yes
				}
			}
			FROM = {
				always = no
			}
		}
		else = {
			FROM = {
				has_tech = basic_ship_hull_carrier
			}
		}
	}

	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_scientist_xp_reward_low
		bm_naval_scientist_xp_reward_medium
	}

	project_output = {
		country_effects = {
			hidden_effect = {
				custom_effect_tooltip = bm_packed_hanger_deck_project_deck_desc_tt
			}
			custom_effect_tooltip = {
				localization_key = bm_packed_hanger_deck_project_deck_tt
				ICON = GFX_bm_deck_icon
				NAME = bm_packed_hanger_deck_project
				DESC = bm_packed_hanger_deck_project_deck_desc_tt
			}
			custom_effect_tooltip = bm_divider
			custom_effect_tooltip = {
				localization_key = bm_packed_hanger_deck_project_packed_tt
				ICON = GFX_bm_packed_hanger_deck_module_icon
				NAME = bm_packed_hanger_deck_1
				DESC = bm_packed_hanger_deck_1_desc
			}
			custom_effect_tooltip = bm_divider_2
			custom_effect_tooltip = {
				localization_key = bm_packed_hanger_deck_project_tip_tt
				TECH_1 = ship_hull_carrier_2
			}
		}

		enable_equipment_modules = {
			bm_packed_hanger_deck_1
		}
	}

	unique_prototype_rewards = {
		bm_packed_hanger_deck_project_reward = {
			fire_only_once = yes
			
			threshold = {
				min = 30
				max = 90
			}

			weight = {
				base = 10
			}

			option = {
				token = bm_packed_hanger_deck_project_reward_option_1

				iteration_output = {
					country_effects = {
						add_tech_bonus = {
							name = bm_packed_hanger_deck_project_reward_tech_bonus
							bonus = 0.4
							uses = 1
							category = cv_tech
						}
					}
				}
			}
			option = {
				token = bm_packed_hanger_deck_project_reward_option_2

				iteration_output = {
					country_effects = {
						add_design_template_bonus = {
							name = bm_packed_hanger_deck_project_reward_design_bonus
							uses = 1
							cost_factor = 0.4
							equipment = ship_hull_carrier
						}
					}
				}
			}
		}
	}
}