Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
@@ -0,0 +1,31 @@
Subsystem: GravityEngine
Name: #GRAVITYENGINE_NAME
Description: #GRAVITYENGINE_DESC
BaseColor: #e0f946
TypeColor: #e0f946
Picture: SubsystemButtonArt::9
Elevation: 0
Tags: BaseCost, Category:Propulsion, VectorThrust
Tags: Engine, GivesThrust, HasInternals
Hull: Flagship
Size := HexSize * Hexes
Thrust := 28 * Size
TurnThrust := 2.0 * Size
PowerUse := 5 * Size
Hex.Mass := HexSize
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Requires:
Command = 1
Power = PowerUse
Module: Default
Hex.BuildCost := 2 * Hex.BuildCost
Module: Core
Sprite: HexagonSubsystems::5
Hex.BuildCost := 3 * Hex.BuildCost
@@ -0,0 +1,34 @@
Subsystem: IonEngine
Name: #IONENGINE_NAME
Description: #IONENGINE_DESC
BaseColor: #f9c846
TypeColor: #f9c846
Picture: SubsystemButtonArt::9
Elevation: 0
Tags: BaseCost, Category:Propulsion, NoBackWall, TurnToThrust
Tags: ExteriorCore, DefaultUnlock, Engine, HasInternals, SecondaryThrust
Hull: Flagship
OnCheckErrors: designs::checkCoreFacingBackwards
Size := HexSize * Hexes
Thrust := 22 * Size
TurnThrust := 2.0 * Size
PowerUse := 1.5 * Size
Hex.Mass := HexSize
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Requires:
Command = 1
Power = PowerUse
Module: Default
Module: Core
Sprite: IonEngine
Hex.HP := 2 * Hex.HP
Hex.Resistance := 0.35
Hex.BuildCost := 2 * Hex.BuildCost
@@ -0,0 +1,70 @@
Subsystem: Ramjet
Name: #S_RAMJET
Description: #S_RAMJET_DESC
BaseColor: #629b26
TypeColor: #629b26
Elevation: 0
Tags: BaseCost, Category:Propulsion, ExteriorCore, ModuleNoFrontWall
Tags: Engine, GivesThrust, HasInternals, NoBackWall, TurnToThrust, HasInternals
Tags: HeraldsDLC
Hull: Flagship
Size := HexSize * Hexes
Thrust := 18 * Size
TurnThrust := 0.75 * Size
SupplyGain := 0
Hex.Mass := 0.3 * HexSize
Hex.Resistance := 0.3
Hex.HP := 26 * HexSize
Hook: GainSupplyVelocity(SupplyGain, 100)
OnCheckErrors: heralds_designs::checkRamjet
Modifier: MaintCostFactor(factor)
Hex.MaintainCost := Hex.MaintainCost //No change, since this is negative
Requires:
Command = 1
Assert: TagCount.Mothership == 0
Unique: True
Message: #ERROR_NOT_ALLOWED_ON_MOTHERSHIP
Module: Default
Hex.MaintainCost := Hex.MaintainCost * -2 * min((ShipSize-16)/100, 1)
Hex.BuildCost := 1.0 * Hex.BuildCost
Hex.LaborCost := 0.5 * Hex.LaborCost
Module: Core
Sprite: Ramjet
Hex.MaintainCost := Hex.MaintainCost * -10 * min((ShipSize-16)/100, 1)
Hex.HP := 5 * Hex.HP
Hex.BuildCost := 2.0 * Hex.BuildCost
Hex.LaborCost := 2.0 * Hex.LaborCost
Module: Scoop
Name: #S_RAMJET_SCOOP
Description: #S_RAMJET_SCOOP_DESC
Color: #da8a9f
DefaultUnlock: True
Sprite: Ramscoop
Hex.MaintainCost := 0
Hex.BuildCost := 25 * Hex.BuildCost
Hex.LaborCost := 25 * Hex.LaborCost
Hex.HP := 5 * Hex.HP
SupplyGain := SupplyGain + HexSize * 200
Requires:
Command = 2
Assert: SupplyGain > 0
Message: #ERROR_REQUIRE_SCOOP
@@ -0,0 +1,32 @@
Subsystem: RocketEngine
Name: #ROCKETENGINE_NAME
Description: #ROCKETENGINE_DESC
BaseColor: #f9e146
TypeColor: #f9e146
Picture: RocketEngine
Elevation: 0
Tags: BaseCost, Category:Propulsion, NoBackWall, TurnToThrust
Tags: ExteriorCore, DefaultUnlock, Engine, GivesThrust, HasInternals
Hull: Flagship
OnCheckErrors: designs::checkCoreFacingBackwards
Size := HexSize * Hexes
Thrust := 35 * Size
TurnThrust := 0.75 * Size
Hex.Mass := HexSize
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Sprite: RocketEngine
Hex.HP := 2 * Hex.HP
Hex.Resistance := 0.35
Hex.BuildCost := 2 * Hex.BuildCost