# Full ai_design block for arkship starbase types
# Modules params:  ENGINEERING_BAY_WEIGHT, DOCKING_BAY_WEIGHT, BEASTPORT_WEIGHT, HABITATION_MODULE_WEIGHT,
#                  SENSOR_ARRAY_WEIGHT, MINING_ARRAY_WEIGHT, GRAND_ARCHIVE_WEIGHT, WEAPONS_WEIGHT, POINT_DEFENCE_WEIGHT,
#                  SPINAL_DEVASTATOR_WEIGHT, CAPITAL_SHIPYARD_WEIGHT, PLANETARY_REFINERY_WEIGHT,
#                  STELLAR_IGNITER_WEIGHT, SYSTEM_SCANNER_WEIGHT, EXODUS_JUMP_WEIGHT
# Colony params:   ENERGY_HUB_WEIGHT, FOOD_HUB_WEIGHT, HYDROPONICS_BAY_WEIGHT, HARVEST_PROCESSING_ARRAYS_WEIGHT,
#                  TRADE_HUB_WEIGHT, BUREAUCRACY_HUB_WEIGHT,
#                  SYNAPSE_HUB_WEIGHT, MAINTENANCE_HUB_WEIGHT, CONSUMER_GOODS_HUB_WEIGHT, ALLOYS_HUB_WEIGHT,
#                  PSI_CORPS_WEIGHT, SHIELD_GENERATOR_WEIGHT, STOCK_EXCHANGE_WEIGHT, EMBASSY_COMPLEX_WEIGHT,
#                  NOBLE_ESTATES_WEIGHT, SLAVE_PROCESSING_WEIGHT, RESOURCE_SILO_WEIGHT, LISTENING_POST_WEIGHT,
#                  FLEET_ACADEMY_WEIGHT, BLACK_SITE_WEIGHT, IRASSIAN_NAVAL_YARDS_WEIGHT,
#                  YUHT_DETECTION_ARRAY_WEIGHT, ARCHAEO_OVERCHARGER_WEIGHT, WARP_FLUCTUATOR_WEIGHT,
#                  DETECTION_ARRAY_WEIGHT, DARK_MATTER_DETECTOR_WEIGHT, OFFSPRING_OUTLOOK_WEIGHT
# Component params: ARMOR_WEIGHT, LM_ARMOR_WEIGHT, ARCHAEO_ARMOR_WEIGHT, SHIELD_WEIGHT, PSI_SHIELD_WEIGHT,
#                  ARCHAEO_SHIELD_WEIGHT, CRYSTAL_PLATING_WEIGHT, AFTERBURNER_WEIGHT,
#                  ARMOR_HARDENER_WEIGHT, SHIELD_HARDENER_WEIGHT, QUANTUM_DESTABILIZER_WEIGHT,
#                  SUBSPACE_SNARE_WEIGHT, SHIELD_DAMPENER_WEIGHT, AURA_STRIKE_CRAFT_WEIGHT,
#                  AURA_HYPERLANE_WEIGHT, AURA_PD_PENETRATION_WEIGHT, AURA_BOMBARDMENT_WEIGHT, AURA_RANGE_WEIGHT,
#                  GROWTH_CHAMBER_WEIGHT

ai_design = {
	modules = {
		# Utility modules
		arkship_engineering_bay = {
			base = $ENGINEERING_BAY_WEIGHT$
		}
		arkship_docking_bay = {
			base = $DOCKING_BAY_WEIGHT$
		}
		arkship_beastport = {
			base = $BEASTPORT_WEIGHT$
		}
		arkship_habitation_module = {
			base = $HABITATION_MODULE_WEIGHT$
		}
		arkship_sensor_array = {
			base = $SENSOR_ARRAY_WEIGHT$
		}
		arkship_mining_array = {
			base = $MINING_ARRAY_WEIGHT$
		}
		arkship_grand_archive = {
			base = $GRAND_ARCHIVE_WEIGHT$
		}

		# Weapon modules
		arkship_hangar_bay = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_archaeo_hangar_bay = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_psionic_hangar_bay = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_amoeba_hangar_bay = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_swarm_hangar_bay = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_laser_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_archaeo_laser_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_lance_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_particle_launcher = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_psionic_torpedo = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_arc_emitter_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_psionic_lightning_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_mass_driver_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_archaeo_mass_driver_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_kinetic_artillery_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_lm_accelerator = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_mass_accelerator = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_archaeo_mass_accelerator = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_missile_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_archaeo_missile_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_swamer_missile_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_scourge_missile_battery = {
			base = $WEAPONS_WEIGHT$
		}
		arkship_flak_battery = {
			base = $POINT_DEFENCE_WEIGHT$
		}
		arkship_pd_battery = {
			base = $POINT_DEFENCE_WEIGHT$
		}
		arkship_archaeo_pd_battery = {
			base = $POINT_DEFENCE_WEIGHT$
		}

		# Spinal modules
		arkship_spinal_devastator_mount = {
			base = $SPINAL_DEVASTATOR_WEIGHT$
		}
		arkship_capital_shipyard = {
			base = $CAPITAL_SHIPYARD_WEIGHT$
		}
		arkship_planetary_refinery = {
			base = $PLANETARY_REFINERY_WEIGHT$
		}
		arkship_stellar_igniter = {
			base = $STELLAR_IGNITER_WEIGHT$
		}
		arkship_system_scanner = {
			base = $SYSTEM_SCANNER_WEIGHT$
		}
		arkship_exodus_jump = {
			base = $EXODUS_JUMP_WEIGHT$
		}
	}

	buildings = {
		# Colony buildings
		arkship_energy_hub = {
			base = $ENERGY_HUB_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					has_generator_designation = yes
				}
			}
		}
		arkship_food_hub = {
			base = $FOOD_HUB_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					has_farming_designation = yes
				}
			}
		}
		arkship_hydroponics_bay = {
			base = $HYDROPONICS_BAY_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					has_farming_designation = yes
				}
			}
		}
		arkship_harvest_processing_arrays = {
			base = $HARVEST_PROCESSING_ARRAYS_WEIGHT$
		}
		arkship_trade_hub = {
			base = $TRADE_HUB_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					has_trade_designation = yes
				}
			}
		}
		arkship_bureaucracy_hub = {
			base = $BUREAUCRACY_HUB_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					has_unity_designation = yes
				}
			}
		}
		arkship_synapse_hub = {
			base = $SYNAPSE_HUB_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					has_unity_designation = yes
				}
			}
		}
		arkship_maintenance_hub = {
			base = $MAINTENANCE_HUB_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					has_unity_designation = yes
				}
			}
		}
		arkship_consumer_goods_hub = {
			base = $CONSUMER_GOODS_HUB_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					OR = {
						has_factory_designation = yes
						has_industrial_designation = yes
					}
				}
			}
		}
		arkship_alloys_hub = {
			base = $ALLOYS_HUB_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					OR = {
						has_foundry_designation = yes
						has_industrial_designation = yes
					}
				}
			}
		}
		arkship_psi_corps = {
			base = $PSI_CORPS_WEIGHT$
		}
		arkship_shield_generator = {
			base = $SHIELD_GENERATOR_WEIGHT$
		}
		arkship_galactic_stock_exchange = {
			base = $STOCK_EXCHANGE_WEIGHT$
		}
		arkship_embassy_complex = {
			base = $EMBASSY_COMPLEX_WEIGHT$
		}
		arkship_noble_estates = {
			base = $NOBLE_ESTATES_WEIGHT$
		}
		arkship_slave_processing_facility = {
			base = $SLAVE_PROCESSING_WEIGHT$
		}
		arkship_resource_silo = {
			base = $RESOURCE_SILO_WEIGHT$
		}
		arkship_listening_post = {
			base = $LISTENING_POST_WEIGHT$
		}
		arkship_fleet_academy = {
			base = $FLEET_ACADEMY_WEIGHT$
			modifier = {
				add = 2
				colony? = {
					has_fortress_designation = yes
				}
			}
		}
		arkship_deep_space_black_site = {
			base = $BLACK_SITE_WEIGHT$
		}
		arkship_irassian_naval_yards = {
			base = $IRASSIAN_NAVAL_YARDS_WEIGHT$
		}
		arkship_yuht_detection_array = {
			base = $YUHT_DETECTION_ARRAY_WEIGHT$
		}
		arkship_archaeo_overcharger = {
			base = $ARCHAEO_OVERCHARGER_WEIGHT$
		}
		arkship_warp_fluctuator = {
			base = $WARP_FLUCTUATOR_WEIGHT$
		}
		arkship_detection_array = {
			base = $DETECTION_ARRAY_WEIGHT$
		}
		arkship_dark_matter_detector = {
			base = $DARK_MATTER_DETECTOR_WEIGHT$
		}
		arkship_offspring_outlook = {
			base = $OFFSPRING_OUTLOOK_WEIGHT$
		}

		# Component buildings
		arkship_armor = {
			base = $ARMOR_WEIGHT$
		}
		arkship_lm_armor = {
			base = $LM_ARMOR_WEIGHT$
		}
		arkship_archaeo_armor = {
			base = $ARCHAEO_ARMOR_WEIGHT$
		}
		arkship_shield = {
			base = $SHIELD_WEIGHT$
		}
		arkship_psi_shield = {
			base = $PSI_SHIELD_WEIGHT$
		}
		arkship_archaeo_shield = {
			base = $ARCHAEO_SHIELD_WEIGHT$
		}
		arkship_crystal_plating = {
			base = $CRYSTAL_PLATING_WEIGHT$
		}
		arkship_afterburner = {
			base = $AFTERBURNER_WEIGHT$
		}
		arkship_armor_hardener = {
			base = $ARMOR_HARDENER_WEIGHT$
		}
		arkship_shield_hardener = {
			base = $SHIELD_HARDENER_WEIGHT$
		}
		arkship_quantum_destabilizer = {
			base = $QUANTUM_DESTABILIZER_WEIGHT$
		}
		arkship_subspace_snare = {
			base = $SUBSPACE_SNARE_WEIGHT$
		}
		arkship_shield_dampener = {
			base = $SHIELD_DAMPENER_WEIGHT$
		}
		arkship_aura_strike_craft = {
			base = $AURA_STRIKE_CRAFT_WEIGHT$
		}
		arkship_aura_hyperlane = {
			base = $AURA_HYPERLANE_WEIGHT$
		}
		arkship_aura_pd_penetration = {
			base = $AURA_PD_PENETRATION_WEIGHT$
		}
		arkship_aura_bombardment = {
			base = $AURA_BOMBARDMENT_WEIGHT$
		}
		arkship_aura_range = {
			base = $AURA_RANGE_WEIGHT$
		}
		arkship_growth_chamber = {
			base = $GROWTH_CHAMBER_WEIGHT$
		}
	}
}
