Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
Subsystem: DroneLauncher
|
||||
Name: #S_DRONELAUNCHER
|
||||
Description: #S_DRONELAUNCHER_DESC
|
||||
BaseColor: #e6ed00
|
||||
TypeColor: #e6ed00
|
||||
Picture: SubsystemButtonArt::4
|
||||
Elevation: 2
|
||||
|
||||
Tags: BaseCost, HeraldsDLC
|
||||
Tags: WeaponBase, MissileBase, Category:Weapons, Rotatable
|
||||
Tags: ExteriorCore, Weapon, IsExplosiveWeapon, HasInternals, MainDPS, Homing
|
||||
Hull: Flagship, Station
|
||||
|
||||
Size := HexSize * Hexes
|
||||
Range := Size + 900
|
||||
Speed := 80
|
||||
Tracking := 3
|
||||
SupplyCost := Size * 3.0
|
||||
|
||||
Lifetime := 30
|
||||
|
||||
DroneCount := 2.0 * floor(pow(Size, 0.33))
|
||||
Damage := (Size * 5.0) / DroneCount
|
||||
FireDelay := min(0.5, Lifetime / (DroneCount + 1))
|
||||
|
||||
Assert: Size >= 1
|
||||
Message: #ERROR_TOO_SMALL
|
||||
|
||||
//DPS is an estimation
|
||||
out DPS := Damage * 10 * DroneCount / Lifetime
|
||||
|
||||
Hex.HP := 18 * HexSize
|
||||
Hex.Resistance := 0.2
|
||||
Hex.Mass := HexSize
|
||||
|
||||
Requires:
|
||||
Command = Hexes / 2
|
||||
|
||||
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: DroneLauncher
|
||||
Range = Range
|
||||
Damage = Damage
|
||||
Speed = Speed
|
||||
Tracking = Tracking
|
||||
SupplyCost = (SupplyCost * Lifetime) / DroneCount
|
||||
Lifetime = Lifetime
|
||||
DroneCount = DroneCount
|
||||
FireDelay = FireDelay
|
||||
Reference in New Issue
Block a user