Subsystem: TorpedoPhotonSupport
	Name: #TORPEDOPHOTON
	Description: #TORPEDOPHOTON_DESC
	BaseColor: #ff6666
	TypeColor: #ff6666
	Picture: SubsystemButtonArt::4
	Elevation: 2

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

	Size := HexSize * Hexes
	Range := (Size + 600) * 2
	//Damage := Size * 12
	Damage := Size * 17
	Reload := 12.0 * min(1.0 + Size/512, 2.0)
	Speed := max(40, Range / 90)
	//Speed := max(150, Range / 15)
	Tracking := 2.0
	Radius := 3.0 + max(0, (log(Size*16) / log(2)))
	SupplyCost := Size * 3.0
	Hex.Mass := HexSize

	out DPS := Damage / Reload * 1.25

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

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

	Requires:
		Command = 1

	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: TorpedoPhoton
		Range = Range
		Damage = Damage
		Reload = Reload
		Speed = Speed
		Tracking = Tracking
		Radius = Radius
		SupplyCost = SupplyCost * Reload
