Subsystem: BeamCannon
	Name: #BEAMCANNON_NAME
	Description: #BEAMCANNON_DESC
	BaseColor: #3366cc // #f9394d
	TypeColor: #3366cc // #f9394d
	Picture: SubsystemButtonArt::7
	Elevation: 2

	Tags: BaseCost, Category:Weapons
	Tags: WeaponBase, Rotatable, HexLimitArc, BeamCannonBase, EnergyBase
	Tags: ExteriorCore, Weapon, IsProjWeapon, HasInternals, MainDPS, DefaultUnlock
	Hull: Flagship, Station

	Size := HexSize * Hexes
	Range := (Size/2 + 300) * 2
	Damage := Size * 18.75
	Reload := 5.0 * min(1.0 + Size/512, 2.0)
	Speed := max(180, Range / 30)
	//Speed := max(360, Range / 15) 
	Spread := 0
	Tracking := 0.4
	FireArc := 0.3 * pi
	Pierce := 0
	Bypass := 0
	//SupplyCost := Size * 10.0
	SupplyCost := Size * 2.0
	PowerUse := 8 * Size
	
	Hex.HP := 18 * HexSize
	Hex.Resistance := 0.2
	Hex.Mass := HexSize

	Requires:
		Command = 1
		Power = PowerUse
	
	Module: Default

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

		Sprite: ParticleLance::0
		DrawMode: 1

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

	Effector: BeamCannon
		Range = Range
		Damage = Damage
		Reload = Reload
		Speed = Speed
		Tracking = Tracking
		Spread = Spread
		FireArc = FireArc
		TargetTolerance = max(pi,FireArc + pi/4)
		FireTolerance = Spread * 3
		SupplyCost = SupplyCost * Reload
		CapOnTarget = 24
		Pierce = Pierce
		Bypass = Bypass
		IgnoreDR = 0
