Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
Subsystem: Gate
|
||||
Name: Gate Constructor
|
||||
Description: Allows the ship to construct into a gate and back.
|
||||
BaseColor: #8ed2ff
|
||||
TypeColor: #8ed2ff
|
||||
Picture: SubsystemButtonArt::10
|
||||
Elevation: 0
|
||||
|
||||
Tags: Engine, Gate, HasInternals, Category:FTL
|
||||
Tags: Ability:UnpackGate, Disabled
|
||||
Hull: Flagship
|
||||
|
||||
Size := HexSize * Hexes
|
||||
Hex.Mass := HexSize
|
||||
|
||||
Hex.Resistance := 0.2
|
||||
Hex.HP := 18 * HexSize
|
||||
|
||||
Effect: FTLUpkeep
|
||||
Amount = 0.15
|
||||
|
||||
Requires:
|
||||
Command = 1
|
||||
|
||||
Module: Core
|
||||
Sprite: HexagonSubsystems::10
|
||||
Hex.BuildCost := 221
|
||||
Hex.LaborCost := 7.3
|
||||
|
||||
Assert: Size >= 5
|
||||
Message: Gate Constructor must be at least size 5.
|
||||
@@ -0,0 +1,30 @@
|
||||
Subsystem: Hyperdrive
|
||||
Name: #S_HYPERDRIVE
|
||||
Description: #S_HYPERDRIVE_DESC
|
||||
BaseColor: #a767ad
|
||||
TypeColor: #a767ad
|
||||
Picture: SubsystemButtonArt::10
|
||||
Elevation: 0
|
||||
|
||||
Tags: BaseCost, Category:FTL
|
||||
Tags: Engine, Hyperdrive, HasInternals, Hyperengine
|
||||
Hull: Flagship
|
||||
|
||||
Size := HexSize * Hexes
|
||||
HyperdriveSpeed := 3200.0 * Size / ShipSize
|
||||
Hex.Mass := HexSize
|
||||
|
||||
Hex.Resistance := 0.2
|
||||
Hex.HP := 18 * HexSize
|
||||
|
||||
Requires:
|
||||
Command = 1
|
||||
|
||||
Modifier: SpeedFactor(factor)
|
||||
HyperdriveSpeed := HyperdriveSpeed * factor
|
||||
|
||||
Module: Default
|
||||
|
||||
Module: Core
|
||||
Sprite: HexagonSubsystems::10
|
||||
Hex.BuildCost := 2 * Hex.BuildCost
|
||||
@@ -0,0 +1,27 @@
|
||||
Subsystem: Jumpdrive
|
||||
Name: #S_JUMPDRIVE
|
||||
Description: #S_JUMPDRIVE_DESC
|
||||
BaseColor: #67ad85
|
||||
TypeColor: #67ad85
|
||||
Elevation: 0
|
||||
|
||||
Tags: BaseCost, Category:FTL
|
||||
Tags: Engine, Jumpdrive, HasInternals, Hyperengine
|
||||
Hull: Flagship
|
||||
|
||||
Size := HexSize * Hexes
|
||||
Hex.Mass := HexSize
|
||||
|
||||
Hex.Resistance := 0.2
|
||||
Hex.HP := 18 * HexSize
|
||||
|
||||
JumpRange := 170000 * Size / ShipSize
|
||||
|
||||
Requires:
|
||||
Command = max(floor(Hexes / 3), 1)
|
||||
|
||||
Module: Default
|
||||
|
||||
Module: Core
|
||||
Sprite: Jumpdrive
|
||||
Hex.BuildCost := 2 * Hex.BuildCost
|
||||
@@ -0,0 +1,32 @@
|
||||
Subsystem: Slipstream
|
||||
Name: #S_SLIPSTREAM_GENERATOR
|
||||
Description: #S_SLIPSTREAM_GENERATOR_DESC
|
||||
BaseColor: #67a7ad
|
||||
TypeColor: #67a7ad
|
||||
Picture: SubsystemButtonArt::10
|
||||
Elevation: 0
|
||||
|
||||
Tags: BaseCost, Category:FTL, CannotDonate
|
||||
Tags: Engine, Slipstream, HasInternals
|
||||
Hull: Flagship, Station
|
||||
|
||||
Size := HexSize * Hexes
|
||||
Hex.Mass := HexSize
|
||||
|
||||
Hex.Resistance := 0.2
|
||||
Hex.HP := 18 * HexSize
|
||||
|
||||
Hex.BuildCost := 2.0 * HexSize
|
||||
|
||||
SlipstreamCost := if(Sum.SlipstreamCost <= 0.01, 300, 0) - 150 * (Size/ShipSize)
|
||||
SlipstreamOptimalDistance := 30000 * sqrt(pow(Sum.SlipstreamOptimalDistance / 30000, 2) + Size / 128) - Sum.SlipstreamOptimalDistance
|
||||
SlipstreamDuration := if(Sum.SlipstreamDuration <= 0.01, 100, 0) + 600 * (Size/ShipSize)
|
||||
|
||||
Requires:
|
||||
Command = 1
|
||||
|
||||
Module: Core
|
||||
Sprite: HexagonSubsystems::10
|
||||
|
||||
Module: Default
|
||||
Hex.MaintainCost := 0.5 * Hex.MaintainCost
|
||||
Reference in New Issue
Block a user