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,44 @@
Subsystem: AntimatterGen
Name: #AMGEN_NAME
Description: #AMGEN_DESC
BaseColor: #5ade8b
Elevation: 1
Tags: IsReactor, Category:Control
Tags: Important, HasInternals
Hull: Flagship, Station
Size := HexSize * Hexes
Power := 85 * Size
SupplyCapacity := Size * 300
SupplyRate := Size * 15
Hex.Resistance := 0.5
Hex.HP := 18 * HexSize
Hex.Mass := 3.5 * HexSize
Hex.LaborCost := 0.25 * HexSize + 1.2
Hex.BuildCost := 20 * HexSize + 2
Hex.MaintainCost := HexSize + 1
Effect: VitalSubsystem
Provides:
Power = Power
Module: Core
Hex.BuildCost := 5.0 * Hex.BuildCost
Hex.Mass := 5.0 * Hex.Mass
Hex.HP := 1
Sprite: AntimatterReactor
Module: Default
Hex.BuildCost := 0.9 * Hex.BuildCost
Hex.Mass := 0.9 * Hex.Mass
Modifier: SupplyCapacityFactor(factor)
SupplyCapacity := SupplyCapacity * factor
Modifier: PowerFactor(factor)
Power := Power * factor
@@ -0,0 +1,38 @@
Subsystem: FissionGen
Name: #FISSIONGEN_NAME
Description: #FISSIONGEN_DESC
BaseColor: #00a4db
Elevation: 1
Tags: DefaultUnlock, IsReactor, Category:Control
Tags: Important, HasInternals
Hull: Flagship, Station
Size := HexSize * Hexes
Power := 15 * Size
SupplyCapacity := Size * 500
SupplyRate := Size * 30
Hex.Resistance := 0.5
Hex.HP := 18 * HexSize
Hex.Mass := 2.5 * HexSize
Hex.LaborCost := 0.1 * HexSize + 0.1
Hex.BuildCost := 1 * HexSize + 0.6
Hex.MaintainCost := HexSize + 1
Provides:
Power = Power
Module: Default
Hex.BuildCost := 0.9 * Hex.BuildCost
Hex.Mass := 0.9 * Hex.Mass
Module: Core
Hex.BuildCost := 5.0 * Hex.BuildCost
Hex.Mass := 5.0 * Hex.Mass
Sprite: FissionReactor
Modifier: SupplyCapacityFactor(factor)
SupplyCapacity := SupplyCapacity * factor
@@ -0,0 +1,38 @@
Subsystem: FusionGen
Name: #FUSIONGEN_NAME
Description: #FUSIONGEN_DESC
BaseColor: #db0083
Elevation: 1
Tags: DefaultUnlock, IsReactor, Category:Control
Tags: Important, HasInternals
Hull: Flagship, Station
Size := HexSize * Hexes
Power := 30 * Size
SupplyCapacity := Size * 1500
SupplyRate := Size * 80
Hex.Resistance := 0.5
Hex.HP := 18 * HexSize
Hex.Mass := 2.5 * HexSize
Hex.LaborCost := 0.15 * HexSize + 0.18
Hex.BuildCost := 3 * HexSize + 0.8
Hex.MaintainCost := 5 * HexSize + 4
Provides:
Power = Power
Module: Core
Hex.BuildCost := 5.0 * Hex.BuildCost
Hex.Mass := 5.0 * Hex.Mass
Sprite: FusionReactor
Module: Default
Hex.BuildCost := 0.9 * Hex.BuildCost
Hex.Mass := 0.9 * Hex.Mass
Modifier: SupplyCapacityFactor(factor)
SupplyCapacity := SupplyCapacity * factor
@@ -0,0 +1,52 @@
Subsystem: MareniumGen
Name: #S_MARENIUMGEN
Description: #S_MARENIUMGEN_DESC
BaseColor: #704e78
Elevation: 3
Tags: IsReactor, Category:Control
Tags: DontList, HasInternals
Tags: HeraldsDLC
Tags: Important
Hull: Flagship, Station
Size := HexSize * Hexes
Power := 20 * Size
MareniumPower := Power
SupplyCapacity := Size * 300
SupplyRate := Size * 100
Hex.Resistance := 0.5
Hex.HP := 18 * HexSize
Hex.Mass := 3.5 * HexSize
Hex.LaborCost := 0.15 * HexSize + 0.18
Hex.BuildCost := 3 * HexSize + 0.8
Hex.MaintainCost := 4 * HexSize + 3
Ship.ExternalHexes := Ship.ExternalHexes + Hexes
Hook: AddStatus(Marenium)
Provides:
Power = Power
Module: Core
Sprite: MareniumReactor
Hex.BuildCost := 5.0 * Hex.BuildCost
Hex.Mass := 5.0 * Hex.Mass
Module: Default
Hex.BuildCost := 0.9 * Hex.BuildCost
Hex.Mass := 0.9 * Hex.Mass
Assert: Sum.Power == Sum.MareniumPower
Unique: True
Message: #ERROR_ALL_POWER
Modifier: SupplyCapacityFactor(factor)
SupplyCapacity := SupplyCapacity * factor
Modifier: PowerFactor(factor)
Power := Power * factor
@@ -0,0 +1,39 @@
Subsystem: SolarPanel
Name: #S_SOLARPANEL
Description: #S_SOLARPANEL_DESC
BaseColor: #64fff9
Elevation: 3
Tags: IsReactor, Category:Control
Tags: NonContiguous, NoCore
Tags: HeraldsDLC
Hull: Flagship, Station
Size := HexSize * Hexes
Power := 7 * Size
SolarPower := 7 * Size
SolarEfficiencyLoss := 0.5
SolarEfficiencyMinBoost := 0.0
SolarEfficiencyMaxBoost := 1.0
Hook: SolarEfficiency(SolarEfficiencyLoss, SolarEfficiencyMinBoost, SolarEfficiencyMaxBoost, True)
Hex.Resistance := 0.01
Hex.HP := 10 * HexSize
Hex.Mass := 0.25 * HexSize
Hex.LaborCost := 0.05 * HexSize
Hex.BuildCost := 0.5 * HexSize
Ship.ExternalHexes := Ship.ExternalHexes + ExteriorHexes
Assert: Hexes == ExteriorHexes
Message: #ERROR_MUST_BE_EXTERIOR
Provides:
Power = Power
Module: Default
Sprite: SolarPanel