# Types defined here depend on built modules
weight_modifier = {
	base = 0
	complex_trigger_modifier = { #+1000 for each of the correct type
		trigger = count_starbase_modules
		parameters = {
			type = $TYPE$
		}
		mode = add
		mult = 1000
	}
	modifier = {
		add = 1000
		owner = {
			is_ai = yes
			NOT = {
				any_owned_starbase = {
					controller = { is_same_value = root.owner }
					has_starbase_module = $TYPE$
				}
			}
		}
	}
}

ai_design = {
	min = {
		base = 0
		modifier = {
			add = 1
			exists = owner
			owner = {
				uses_fauna_ship_sizes = yes
			}
		}
	}

	ratio = {
		base = 0.20
		modifier = {
			add = 0.10
			exists = owner
			owner = {
				has_ethic = ethic_militarist
			}
		}
		modifier = {
			add = 0.05
			exists = owner
			owner = {
				has_ethic = ethic_fanatic_militarist
			}
		}
		modifier = {
			factor = 0
			exists = owner
			owner = {
				uses_fauna_ship_sizes = no
			}
		}
	}

	# token followed by priority
	buildings = {
		crew_quarters = {
			base = 1.00
		}

		fleet_academy = {
			base = 1.00
		}

		capital_yards = {
			base = 1.00
		}

		ice_mining_station = {
			base = 1.00
		}

		dragon_hatchery = {
			base = 1.00
		}

		hydroponics_bay = {
			base = 1.00
		}

		dimensional_shrine = {
			base = 1.00
		}

		irassian_naval_yards = {
			base = 3.00
		}

		cordyceptic_reanimation_facility = {
			base = 3.00
		}
	}

	modules = {
		$TYPE$ = {
			base = 1.0
		}

		anchorage = {
			base = 0.50
		}

		starbase_hangar_bay = {
			base = 0.45
		}

		starbase_archaeo_hangar_bay = {
			base = 0.45
		}

		starbase_psionic_hangar_bay = {
			base = 0.45
		}

		starbase_amoeba_hangar_bay = {
			base = 0.45
		}

		starbase_swarm_hangar_bay = {
			base = 0.45
		}
	}
}
