Subsystem: SuperLaser
	Name: #SUPERLASER_NAME
	Description: #SUPERLASER_DESC
	BaseColor: #33cc66
	TypeColor: #33cc66
	Picture: SubsystemButtonArt::7
	Elevation: 2

	Tags: BaseCost
	Tags: BeamBase, Rotatable, Category:Weapons, HexLimitArc, EnergyBase
	Tags: ExteriorCore, Weapon, IsBeamWeapon, HasInternals, MainDPS
	Hull: Flagship, Station

	Size := HexSize * Hexes
	BeamDPS := 75.0 * Size
	Duration := 3.0
	Cooldown := 30 * (1.0 + Size/512)
	Range := (Size + 750) * 2
	Tracking := 0.5
	Pierce := 0.5
	Bypass := 0
	SupplyCost := Size * 10.0
	PowerUse := 60 * Size
	FireArc := 0.1 * pi

	Hex.HP := 12 * HexSize
	Hex.Resistance := 0.2
	Hex.Mass := HexSize

	//Hex.MaintainCost := 25.0 * HexSize + 2
	Hex.MaintainCost := 4 * HexSize + 2

	HasSuperLaser := 1

	Requires:
		Command = 1
		Power = PowerUse

	Assert: Sum.HasSuperLaser <= 1
		Unique: True
		Message: #ERROR_ONLY_ONE

	Assert: Hexes >= 10
		Message: Super Laser must be at least 10 hexes in size.

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

	Module: Core
		Hex.HP := Hex.HP * 3
		Hex.BuildCost := Hex.BuildCost * 50
		Hex.Mass := Hex.Mass * 5

		Sprite: HyperdenseLaser::0
		DrawMode: 1

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

	Effector: Laser
		Range = Range
		DPS = BeamDPS
		Duration = Duration
		Cooldown = Cooldown
		Tracking = Tracking
		SupplyCost = SupplyCost * Duration
		FireArc = FireArc
		Pierce = Pierce
		Bypass = Bypass
		IgnoreDR = 0
