Subsystem: TorpedoLauncherSupport
	Name: Torpedo Launcher
	Description: <<
		Launches massive, slow-moving, guided bombs. These bombs explode in an area around their target.

		[img=Plus]Extreme [b][color=#ff8080]damage[/color][/b].[/img]
		[img=Plus]No firing arc limitations.[/img]
		[img=Plus]Deals damage in an area.[/img]
		[img=Minus]Very slow fire rate.[/img]
		[img=Minus]Very low [b][color=#ff8080]DPS[/color][/b].[/img]
	>>
	BaseColor: #7946f9
	TypeColor: #7946f9
	Picture: SubsystemButtonArt::4
	Elevation: 2

	Tags: WeaponBase, MissileBase, Category:Weapons, Rotatable
	Tags: ExteriorCore, DefaultUnlock, Weapon, IsExplosiveWeapon, HasInternals, SecondaryDPS, Homing
	Hull: Support, Satellite

	Size := HexSize * Hexes
	Range := (Size + 800) * 2
	//Damage := Size * 5.625
	Damage := Size * 18
	Reload := 25.0 * (1.0 + Size/512)
	Speed := max(40, Range / 90)
	//Speed := max(80, Range / 45)
	Tracking := 1.5
//	Radius := 3.0 + (log(Size) / log(2) * 6.0)
	Radius := 3 + max(0, (log(Size*6) / log(2) * 3))
	SupplyCost := Size * 4.0
	Hex.Mass := HexSize

	out DPS := Damage / Reload * 1.5

	Hex.HP := 18 * HexSize
	Hex.Resistance := 0.2

	Hex.BuildCost := 0.75 * HexSize
	Hex.LaborCost := 0.07 * HexSize

	Modifier: AoERadiusFactor(Factor)
		Radius := Radius * Factor

	Requires:
		Command = 1

	//Assert: ShipSize >= 15
	//	Message: Support Ship Torpedo Launchers require a minimum ship size of 15

	Module: Default

	Module: Core
		Hex.HP := Hex.HP * 3
		Hex.BuildCost := 5.0 * Hex.BuildCost
		Hex.Mass := 5.0 * Hex.Mass

		Sprite: MissileLauncher::0
		DrawMode: 1

		Hex.DamageResist := ShipSize / 64.0
		Effect: DamageResist
			Resist = Hex.DamageResist

	//Effector: Torpedo
	Effector: DOFTorpedo
		Range = Range
		Damage = Damage
		Reload = Reload
		Speed = Speed
		Tracking = Tracking
		Radius = Radius
		SupplyCost = SupplyCost * Reload
