Subsystem: TorpedoGraviton
	Name: #TORPEDOGRAVITON
	Description: #TORPEDOGRAVITON_DESC
	BaseColor: #88ccaa
	TypeColor: #88ccaa
	Picture: SubsystemButtonArt::4
	Elevation: 2

	Tags: BaseCost
	Tags: WeaponBase, MissileBase, Category:Weapons, Rotatable, TorpedoPhotonBase
	Tags: ExteriorCore, Weapon, IsExplosiveWeapon, HasInternals, Homing
	Hull: Flagship, Station

	Size := HexSize * Hexes
	Range := (Size + 900) * 2
	Damage := Size * 40
	Reload := 15.0 * min(1.0 + Size/512, 2.0)
	Speed := max(125, Range / 18)
	Tracking := 2.0
	Radius := 5.0 + max(0, (log(Size*16) / log(2) * 5))
	SupplyCost := Size * 6.0
	Hex.Mass := HexSize
	Bypass := 0.5

	out DPS := Damage / Reload * 1.75

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

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

	Requires:
		Command = 1

	Module: Default
		Hex.BuildCost := Hex.BuildCost * 3

	Module: Core
		Hex.HP := Hex.HP * 3
		Hex.BuildCost := 15.0 * Hex.BuildCost
		Hex.Mass := 7.5 * Hex.Mass

		Sprite: MissileLauncher::0
		DrawMode: 1

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

	Effector: TorpedoGraviton
		Range = Range
		Damage = Damage
		Reload = Reload
		Speed = Speed
		Tracking = Tracking
		Radius = Radius
		SupplyCost = SupplyCost * Reload
		Bypass = Bypass
