# Here you can specify the limits for ships of some types that country can own.
# Please don't use these limits for ship sizes which can be used by Global designs.
# The Scope is the active Country; if applied to a Federation design, From will
# be the Federation; if applied to a Community design, From will be the Country
# leading it

# Example:
#name_of_limit = {
#	ship_types = {
#		# list of keys to ship_sizes database, these ship_sizes will share the calculated capacity
#	}
#
#	# Defines the shared capacity of the specified ships that country is allowed to own
#	# capacity = min( max, base + naval_cap_fraction * current_naval_cap )
#	# where current_naval_cap is current naval capacity of the country
#	base = 1					# Base (minimal) shared capacity of ships
#	max = 200					# Maximal shared capacity of ships
#	naval_cap_fraction = 0.1	# Fraction of current naval capacity of the country
#
#	# Trigger that defines if tooltip for naval capacity icon on the top bar should be shown
#	show = {
#		is_scope_valid = yes
#		has_technology = tech_titans
#	}
#}

progenitor_ships_limit = {
	ship_types = {
		offspring_corvette
		offspring_destroyer
		offspring_cruiser
		offspring_battleship
		offspring_mauler_stage_1
		offspring_mauler_stage_2
		offspring_mauler_stage_3
		offspring_weaver_stage_1
		offspring_weaver_stage_2
		offspring_weaver_stage_3
		offspring_harbinger_stage_1
		offspring_harbinger_stage_2
		offspring_harbinger_stage_3
		offspring_stinger_stage_1
		offspring_stinger_stage_2
		offspring_stinger_stage_3
	}

	base = 1
	max = 1000
	naval_cap_fraction = 0.25

	show = {
		is_scope_valid = yes
		has_origin = origin_progenitor_hive
	}
}

titan_ships_limit = {
	ship_types = {
		titan
		cosmo_crisis_titan
		bio_titan
		cosmo_crisis_stinger
	}

	base = 80 # 1 * titan's size_multiplier
	max = 1600 # 20 * 80
	naval_cap_fraction = 0.10

	show = {
		is_scope_valid = yes
		OR = {
			has_technology = tech_titans
			has_technology = tech_cosmogenesis_FE_titan
			has_technology = tech_cosmogenesis_stinger
		}
	}
}

colossus_ships_limit = {
	ship_types = {
		colossus
	}

	base = 100 # 1 * colossus's size_multiplier
	show = {
		is_scope_valid = yes
		has_technology = tech_colossus
	}
}

juggernaut_ships_limit = {
	ship_types = {
		juggernaut
	}
	base = 100 # 1 * juggernaut's size_multiplier
	show = {
		is_scope_valid = yes
		has_technology = tech_juggernaut
	}
}

space_dragon_origin_babies_limit = {
	ship_types = {
		space_dragon_origin_baby
	}

	base = 800 # 10 * dragon baby's size_multiplier
	show = {
		is_scope_valid = yes
		is_dragon_breeder_country = yes
	}
}

paladin_ship_limit = {
	ship_types = {
		paladin_ship
	}
	base = 10
	show = {
		is_scope_valid = yes
		has_global_flag = paladin_project_researched
		is_active_resolution = resolution_custodian_paladin_initiative
		is_part_of_galactic_council = yes
	}
}

nomadic_constructor_limit = {
	ship_types = {
		nomads_constructor
		nomads_engineer_vessel
	}
	base = modifier:nomadic_constructor_limit_add
	show = {
		is_nomadic = yes
	}
}
