# If you add a new weapon module, also add it to common/inline_scripts/arkship/ai_design.txt
# and update the weights for all arkship starbase types in common/starbase_types/00_starbase_types.txt

arkship_hangar_bay = {
	icon = "GFX_arkship_hangar_bay"
	section = "ARKSHIP_HANGAR_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_strike_craft_cat

	potential = {
		owner? = {
			has_technology = tech_strike_craft_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_strike_craft_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_250
			exotic_gases = @arkship_cost_strategic_45
		}
	}

	component_set = SCOUT_HANGAR_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_hangar_bay_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_flight_decks
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_strike_craft = yes
		}
	}
}

arkship_archaeo_hangar_bay = {
	icon = "GFX_arkship_archaeo_hangar_bay"
	section = "ARKSHIP_HANGAR_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_strike_craft_cat

	potential = {
		owner? = {
			has_technology = tech_archaeo_strike_crafts
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_archaeo_strike_crafts"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_250
			minor_artifacts = @arkship_cost_rare_75
		}
	}

	component_set = ARCHAEO_STRIKECRAFT
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_archaeo_hangar_bay_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_flight_decks
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_strike_craft = yes
		}
		modifier = {
			factor = 1.25
			ai_owner_has_archaeoengineers = yes
		}
	}
}

arkship_psionic_hangar_bay = {
	icon = "GFX_arkship_psionic_hangar_bay"
	section = "ARKSHIP_HANGAR_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_strike_craft_cat

	potential = {
		owner? = {
			has_technology = tech_psionic_bombers
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_psionic_bombers"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_550
			sr_zro = @arkship_cost_rare_25
		}
	}

	component_set = PSIONIC_STRIKE_CRAFT
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_psionic_hangar_bay_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_flight_decks
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 125 #psionic components are weighted higher as the AI needs to be psionic to unlock them
		modifier = {
			factor = 2
			ai_owner_prefers_strike_craft = yes
		}
	}
}

arkship_amoeba_hangar_bay = {
	icon = "GFX_arkship_amoeba_hangar_bay"
	section = "ARKSHIP_HANGAR_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_strike_craft_cat

	potential = {
		owner? = {
			has_technology = tech_amoeba_strike_craft_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_amoeba_strike_craft_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_120
		}
	}

	component_set = AMOEBA_STRIKE_CRAFT_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_amoeba_hangar_bay_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_flight_decks
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_strike_craft = yes
		}
	}
}

arkship_swarm_hangar_bay = {
	icon = "GFX_arkship_swarm_hangar_bay"
	section = "ARKSHIP_HANGAR_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_strike_craft_cat

	potential = {
		owner? = {
			has_technology = tech_swarm_strike_craft_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_swarm_strike_craft_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_85
			exotic_gases = @arkship_cost_strategic_45
		}
	}

	component_set = SWARM_STRIKE_CRAFT_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_swarm_hangar_bay_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_flight_decks
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_strike_craft = yes
		}
	}
}

arkship_laser_battery = {
	icon = "GFX_arkship_laser_battery"
	section = "ARKSHIP_MEDIUM_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_energy_cat

	potential = {
		owner? = {
			has_technology = tech_lasers_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_lasers_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_100
			rare_crystals = @arkship_cost_strategic_45
		}
	}

	component_set = RED_LASER
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_laser_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_laser_capacitors
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_energy_weapons = yes
		}
	}
}

arkship_archaeo_laser_battery = {
	icon = "GFX_arkship_archaeo_laser_battery"
	section = "ARKSHIP_MEDIUM_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_energy_cat

	potential = {
		owner? = {
			has_technology = tech_archaeo_lasers
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_archaeo_lasers"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_250
			minor_artifacts = @arkship_cost_rare_75
		}
	}

	component_set = ARCHAEO_LASER
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_archaeo_laser_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_laser_capacitors
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_energy_weapons = yes
		}
		modifier = {
			factor = 1.25
			ai_owner_has_archaeoengineers = yes
		}
	}
}

arkship_lance_battery = {
	icon = "GFX_arkship_lance_battery"
	section = "ARKSHIP_XL_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_energy_cat

	potential = {
		owner? = {
			has_technology = tech_energy_lance_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_energy_lance_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_300
			rare_crystals = @arkship_cost_strategic_150
		}
	}

	component_set = ENERGY_LANCE_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_lance_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_laser_capacitors
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_energy_weapons = yes
		}
	}
}

arkship_particle_launcher = {
	icon = "GFX_arkship_particle_launcher"
	section = "ARKSHIP_TORPEDO_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_energy_cat

	potential = {
		owner? = {
			has_technology = tech_energy_torpedoes_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_energy_torpedoes_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_500
			exotic_gases = @arkship_cost_strategic_250
		}
	}

	component_set = ENERGY_TORPEDO_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_particle_launcher_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_laser_capacitors
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_energy_weapons = yes
		}
	}
}

arkship_psionic_torpedo = {
	icon = "GFX_arkship_psionic_torpedo"
	section = "ARKSHIP_TORPEDO_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_energy_cat

	potential = {
		owner? = {
			has_technology = tech_zro_launcher
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_zro_launcher"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_825
			sr_zro = @arkship_cost_rare_250
		}
	}

	component_set = PSIONIC_TORPEDO
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_psionic_torpedo_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_laser_capacitors
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 125 #psionic components are weighted higher as the AI needs to be psionic to unlock them
		modifier = {
			factor = 2
			ai_owner_prefers_energy_weapons = yes
		}
	}
}

arkship_arc_emitter_battery = {
	icon = "GFX_arkship_arc_emitter_battery"
	section = "ARKSHIP_XL_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_energy_cat

	potential = {
		owner? = {
			has_technology = tech_arc_emitter_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_arc_emitter_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_300
			rare_crystals = @arkship_cost_strategic_150
		}
	}

	component_set = ARC_EMITTER_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_arc_emitter_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_laser_capacitors
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_energy_weapons = yes
		}
	}
}

arkship_psionic_lightning_battery = {
	icon = "GFX_arkship_psionic_lightning_battery"
	section = "ARKSHIP_LARGE_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_energy_cat

	potential = {
		owner? = {
			has_technology = tech_psionic_lightning
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_psionic_lightning"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_175
			sr_zro = @arkship_cost_rare_25
		}
	}

	component_set = PSIONIC_LIGHTNING
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_psionic_lightning_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_laser_capacitors
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 125 #psionic components are weighted higher as the AI needs to be psionic to unlock them
		modifier = {
			factor = 2
			ai_owner_prefers_energy_weapons = yes
		}
	}
}

arkship_mass_driver_battery = {
	icon = "GFX_arkship_mass_driver_battery"
	section = "ARKSHIP_MEDIUM_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_projectile_cat

	potential = {
		owner? = {
			has_technology = tech_mass_drivers_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_mass_drivers_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_100
			volatile_motes = @arkship_cost_strategic_45
		}
	}

	component_set = MASS_DRIVER_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_mass_driver_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_ammunition_lines
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_kinetic_weapons = yes
		}
	}
}

arkship_archaeo_mass_driver_battery = {
	icon = "GFX_arkship_archaeo_mass_driver_battery"
	section = "ARKSHIP_MEDIUM_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_projectile_cat

	potential = {
		owner? = {
			has_technology = tech_archaeo_mass_drivers
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_archaeo_mass_drivers"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_250
			minor_artifacts = @arkship_cost_rare_75
		}
	}

	component_set = ARCHAEO_KINETIC
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_archaeo_mass_driver_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_ammunition_lines
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_kinetic_weapons = yes
		}
		modifier = {
			factor = 1.25
			ai_owner_has_archaeoengineers = yes
		}
	}
}

arkship_kinetic_artillery_battery = {
	icon = "GFX_arkship_kinetic_artillery_battery"
	section = "ARKSHIP_LARGE_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_projectile_cat

	potential = {
		owner? = {
			has_technology = tech_kinetic_artillery_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_kinetic_artillery_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_175
			volatile_motes = @arkship_cost_strategic_150
		}
	}

	component_set = KINETIC_ARTILLERY_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_kinetic_artillery_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_ammunition_lines
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_kinetic_weapons = yes
		}
	}
}

arkship_lm_accelerator = {
	icon = "GFX_arkship_lm_accelerator"
	section = "ARKSHIP_LARGE_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_projectile_cat

	potential = {
		owner? = {
			is_galvanic_empire = yes
			has_technology = tech_kinetic_artillery_2
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_kinetic_artillery_2"

	show_tech_unlock_if = {
		is_nomadic = yes
		is_galvanic_empire = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			sr_living_metal = @arkship_cost_rare_500
			volatile_motes = @arkship_cost_strategic_350
		}
	}

	component_set = LM_ACCELERATOR_SET
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_lm_accelerator_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_ammunition_lines
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_kinetic_weapons = yes
		}
	}
}

arkship_mass_accelerator = {
	icon = "GFX_arkship_mass_accelerator"
	section = "ARKSHIP_XL_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_projectile_cat

	potential = {
		owner? = {
			has_technology = tech_mass_accelerator_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_mass_accelerator_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_300
			volatile_motes = @arkship_cost_strategic_150
		}
	}

	component_set = MASS_ACCELERATOR_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_mass_accelerator_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_ammunition_lines
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_kinetic_weapons = yes
		}
	}
}

arkship_archaeo_mass_accelerator = {
	icon = "GFX_arkship_archaeo_mass_accelerator"
	section = "ARKSHIP_XL_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_projectile_cat

	potential = {
		owner? = {
			has_technology = tech_archaeo_mass_accelerator
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_archaeo_mass_accelerator"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_825
			minor_artifacts = @arkship_cost_rare_125
		}
	}

	component_set = ARCHAEO_X
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_archaeo_mass_accelerator_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_ammunition_lines
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_kinetic_weapons = yes
		}
		modifier = {
			factor = 1.25
			ai_owner_has_archaeoengineers = yes
		}
	}
}

arkship_missile_battery = {
	icon = "GFX_arkship_missile_battery"
	section = "ARKSHIP_SMALL_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_explosive_cat

	potential = {
		owner? = {
			has_technology = tech_missiles_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_missiles_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_65
			volatile_motes = @arkship_cost_strategic_45
		}
	}

	component_set = MISSILE_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_missile_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_missile_silos
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_explosive_weapons = yes
		}
	}
}

arkship_archaeo_missile_battery = {
	icon = "GFX_arkship_archaeo_missile_battery"
	section = "ARKSHIP_SMALL_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_explosive_cat

	potential = {
		owner? = {
			has_technology = tech_archaeo_missiles
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_archaeo_missiles"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_250
			minor_artifacts = @arkship_cost_rare_150
		}
	}

	component_set = ARCHAEO_MISSILE
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_archaeo_missile_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_missile_silos
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_explosive_weapons = yes
		}
		modifier = {
			factor = 1.25
			ai_owner_has_archaeoengineers = yes
		}
	}
}

arkship_swamer_missile_battery = {
	icon = "GFX_arkship_swamer_missile_battery"
	section = "ARKSHIP_MEDIUM_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_explosive_cat

	potential = {
		owner? = {
			has_technology = tech_swarmer_missiles_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_swarmer_missiles_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_120
			volatile_motes = @arkship_cost_strategic_65
		}
	}

	component_set = SWARMER_MISSILE_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_swamer_missile_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_missile_silos
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_explosive_weapons = yes
		}
	}
}

arkship_scourge_missile_battery = {
	icon = "GFX_arkship_scourge_missile_battery"
	section = "ARKSHIP_TORPEDO_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_explosive_cat

	potential = {
		owner? = {
			has_technology = tech_scourge_missile_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_scourge_missile_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_150
			exotic_gases = @arkship_cost_strategic_45
		}
	}

	component_set = SCOURGE_MISSILE_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_scourge_missile_battery_tt

	inline_script = {
		script = jobs/arkship_module_soldiers_add
		ZONE = zone_ark_missile_silos
		AMOUNT = @arkship_module_jobs
	}

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 2
			ai_owner_prefers_explosive_weapons = yes
		}
	}
}

arkship_flak_battery = {
	icon = "GFX_arkship_flak_battery"
	section = "ARKSHIP_PD_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_pd_cat

	potential = {
		owner? = {
			has_technology = tech_flak_batteries_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_flak_batteries_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_85
		}
	}

	component_set = FLAK_BATTERY_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_flak_battery_tt

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
	}
}

arkship_pd_battery = {
	icon = "GFX_arkship_pd_battery"
	section = "ARKSHIP_PD_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_pd_cat

	potential = {
		owner? = {
			has_technology = tech_pd_tracking_1
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_pd_tracking_1"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_85
		}
	}

	component_set = POINT_DEFENCE_1
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_pd_battery_tt

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
	}
}

arkship_archaeo_pd_battery = {
	icon = "GFX_arkship_archaeo_pd_battery"
	section = "ARKSHIP_PD_TURRET_MODULE"
	construction_days = 180
	starbase_type = arkship
	category = sm_pd_cat

	potential = {
		owner? = {
			has_technology = tech_archaeo_point_defence
		}
		is_arkship_starbase = yes
	}

	show_in_tech = "tech_archaeo_point_defence"

	show_tech_unlock_if = {
		is_nomadic = yes
	}

	cannot_fit_on_slots = { spinal_mount_1 }

	resources = {
		category = starbase_arkship_upgrades
		cost = {
			alloys = @arkship_cost_alloys_100
			minor_artifacts = @arkship_cost_rare_400
		}
	}

	component_set = ARCHAEO_POINTDEFENCE
	show_component_tooltips = yes
	custom_tooltip_with_modifiers = sm_arkship_archaeo_pd_battery_tt

	ai_weight = {
		weight = 100 #use same weight here - ai weighting is done in starbase_types.txt
		modifier = {
			factor = 1.25
			ai_owner_has_archaeoengineers = yes
		}
	}
}
