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,47 @@
Subsystem: AncientCore
Name: #S_ANCIENT_CORE
Description: #S_ANCIENT_CORE_DESC
BaseColor: #c5f946
Tags: BaseCost, Category:Control, HeraldsDLC, BadFiller, RaceSpecial
Tags: Crewed, Control, ControlCore, HasInternals, Important
Tags: NoBulkhead
Hull: Flagship, Station
EvaluationOrder: -10
Size := HexSize * Hexes
Command := Hexes * 3
Power := 20 * Size
SupplyCapacity := Size * 1000
SupplyRate := Size * 40
Repair := 3 * HexSize * (Hexes-1)
RepairSupplyCost := 3.0 * Repair
out SupplyDrain := RepairSupplyCost
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Hex.Mass := HexSize
Hex.LaborCost := 0.15 * HexSize + 0.18
Hex.BuildCost := 1.5 * HexSize + 0.8
Hex.MaintainCost := 3 * HexSize + 2
Effect: ControlCore
Provides:
Command = Command
Power = Power
Module: Default
Module: Core
Sprite: AncientComputerCore
Hex.HP := 2 * Hex.HP
Hex.Resistance := 0.35
Hex.BuildCost := 5 * Hex.BuildCost
Hex.Mass := 5 * Hex.Mass
@@ -0,0 +1,45 @@
Subsystem: CrewControl
Name: #CREWCONTROL_NAME
Description: #CREWCONTROL_DESC
BaseColor: #c5f946
Picture: SubsystemButtonArt::8
Elevation: 4
Tags: BaseCost, Category:Control, BadFiller
Tags: DefaultUnlock, Crewed, Control, ControlCore, HasInternals
Tags: NoBulkhead, Important
Hull: Flagship, Station
EvaluationOrder: -10
Size := HexSize * Hexes
Crew := floor(40 * Size)
Command := Hexes * 2
SupplyRate := 30 * HexSize * (Hexes-1)
Repair := 4 * HexSize * (Hexes-1)
RepairSupplyCost := 2.0 * Repair
out SupplyDrain := RepairSupplyCost
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Hex.Mass := HexSize
Effect: ControlCore
Provides:
Crew = Crew
Command = Command
Module: Default
Sprite: CrewQuarters
Module: Core
Sprite: Bridge
Hex.HP := 2 * Hex.HP
Hex.Resistance := 0.35
Hex.BuildCost := 5 * Hex.BuildCost
Hex.Mass := 5 * Hex.Mass
@@ -0,0 +1,30 @@
Subsystem: DevoutShrine
Name: #S_SHRINE
Description: #S_SHRINE_DESC
BaseColor: #408fc1
Elevation: 1
Tags: BaseCost, Prayer, RaceSpecial, Important
Tags: IsShield, Defense, Category:Control, HasInternals
Hull: Flagship, Station
Prayer := Hexes
Size := HexSize * Hexes
ShieldCapacity := Size * 100
ShieldRegen := Size
ShieldHexes := Hexes
Hex.Resistance := 0.5
Hex.HP := 12 * HexSize
Hex.Mass := 2.5 * HexSize
Effect: ShieldDamage
Assert: Sum.Prayer >= Sum.Command
Unique: True
Message: #ERROR_EQUAL_PRAYER
Module: Core
Sprite: AntimatterReactor * #408fc1
Hex.BuildCost := 2 * Hex.BuildCost
@@ -0,0 +1,38 @@
Subsystem: FleetComputer
Name: #S_FLEETCOMPUTER
Description: #S_FLEETCOMPUTER_DESC
BaseColor: #ca5700
Elevation: 2
Tags: HeraldsDLC
Tags: BaseCost, Category:Control, BadFiller
Tags: HasInternals
Hull: Flagship, Station
Size := HexSize * Hexes
Repair := 5 * Size
RepairSupplyCost := 1.0 * Repair
out SupplyDrain := RepairSupplyCost
Hex.Resistance := 0.2
Hex.HP := 24 * HexSize
Hex.Mass := 0.5 * HexSize
RaidRange := 1000 + (Size / (ShipSize * 0.3)) * 5000
AddedRaidRange := RaidRange - 1000
Hook: AddRaidRange(AddedRaidRange)
PowerUse := 5 * Size
Requires:
Power = PowerUse
Module: Default
Module: Core
Sprite: FleetComputer
Hex.HP := 2 * Hex.HP
Hex.Resistance := 0.35
Hex.BuildCost := 2 * Hex.BuildCost
@@ -0,0 +1,45 @@
Subsystem: ShipComputer
Name: #SHIPCOMPUTER_NAME
Description: #SHIPCOMPUTER_DESC
BaseColor: #ffa4a0
Picture: SubsystemButtonArt::8 * #ffa4a0
Elevation: 4
Tags: BaseCost, Category:Control, BadFiller
Tags: Control, ControlCore, HasInternals, Important
Hull: Flagship, Station
EvaluationOrder: -10
Size := HexSize * Hexes
Command := Hexes * 8
Repair := 4 * HexSize * (Hexes-1)
PowerUse := 40 * Size
SupplyRate := 30 * HexSize * (Hexes-1)
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Hex.Mass := HexSize
Duration := 30
EfficiencyBoost := 20 * (Size / ShipSize)
Hook: AddStatus(ComputerCore)
Effect: ControlCore
Requires:
Power = PowerUse
Provides:
Command = Command
Module: Default
Sprite: HexagonSubsystems::4 * #ffa4a0
Module: Core
Sprite: ComputerCore
Hex.HP := 2 * Hex.HP
Hex.Resistance := 0.35
Hex.BuildCost := 2 * Hex.BuildCost
@@ -0,0 +1,34 @@
Subsystem: SupplyModule
Name: #SUPPLYMODULE_NAME
Description: #SUPPLYMODULE_DESC
Picture: SubsystemButtonArt::8 * #b3ffef
BaseColor: #2fd6b3
Elevation: 3
Tags: DefaultUnlock, NonContiguous, NoCore, HasInternals, Category:Control
Tags: Compressible
Hull: Flagship, Station
Size := HexSize * Hexes
SupplyCapacity := Size * 4000
SupplyRate := Size * 6
Hex.LaborCost := 0.15 * HexSize + 0.8
Hex.BuildCost := 1.5 * HexSize + 2
Hex.MaintainCost := 2 * HexSize + 3 - (4 * HexSize / ShipSize^0.5)
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Hex.Mass := HexSize
Modifier: SupplyCapacityFactor(factor)
SupplyCapacity := SupplyCapacity * factor
Modifier: Compress(Amount)
SupplyCapacity := SupplyCapacity + Base::SupplyCapacity * (Amount / Hexes)
Effect: LeakSupply
LeakPctPerSec = 1 / 60
Module: Default
Sprite: SupplyStorage
@@ -0,0 +1,23 @@
Subsystem: SupportCapModule
Name: #SUPPORTCAPMODULE_NAME
Description: #SUPPORTCAPMODULE_DESC
BaseColor: #d6d300
Picture: SubsystemButtonArt::8 * #fdffa8
Elevation: 3
Tags: ScaledCost, Category:Control, SupportCap
Tags: DefaultUnlock, NonContiguous, NoCore, HasInternals
Hull: Flagship, Station
Size := HexSize * Hexes
SupportCapacity := Size * 28
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Hex.Mass := HexSize
Modifier: SupportCapacityFactor(factor)
SupportCapacity := SupportCapacity * factor
Module: Default
Sprite: SupportCommand