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,38 @@
Subsystem: ShieldHarmonizer
Name: #S_SHIELD_HARMONIZER
Description: #S_SHIELD_HARMONIZER_DESC
BaseColor: #e2e676
Elevation: 1
EvaluationOrder: 100
DamageOrder: -200
Tags: HeraldsDLC, ShieldHarmonizer
Tags: Defense, Category:Defense, HasInternals
Hull: Support, Satellite
Size := HexSize * Hexes
Percentage := min(2.0 * Size / ShipSize, 1.0)
BonusShield := Size * 3.0
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 1.25 * HexSize
Hex.LaborCost := 0.10 * HexSize
Requires:
Command = 1
Effect: ShieldRedirect
Percentage = Percentage
State: int = 0
Effect: AddBonusShields
Amount = BonusShield
Module: Core
Sprite: ShieldHarmonizer
Hex.BuildCost := 2 * Hex.BuildCost
@@ -0,0 +1,13 @@
Template: hexVar/BuildCost, hexVar/HP, !tag/NoBulkhead, !tag/NoCore, !tag/IsArmor, tag/SupportShip
Module: Bulkhead
Name: #BULKHEAD_NAME
Description: #BULKHEAD_DESC
Color: #eda1ff
Sprite: HexagonSubsystems::0 * #cf00ff
Hex.HP := 3.0 * Hex.HP
AddModifier: AddBaseHP(1.5)
AddModifier: BuildCostFactor(2.0)
AddModifier: LaborCostFactor(1.5)
@@ -0,0 +1,15 @@
Template: hexVar/BuildCost, hexVar/HP, tag/Weapon, var/Range, var/SupplyCost, tag/SupportShip
Module: TargetingSensor
Name: #TARGETINGSENSOR_NAME
Description: #TARGETINGSENSOR_DESC
Color: #00ff00
Sprite: SupportCommand * #00ff00
AddModifier: BuildCostFactor(3.0)
AddModifier: LaborCostFactor(2.0)
AddModifier: SupplyCostFactor(2.0)
AddModifier: optional SpeedFactor(2.0)
AddModifier: optional SpreadFactor(0.5)
Range := Range + Base::Range * 0.5
@@ -0,0 +1,33 @@
Subsystem: VerdantSupportSinew
Name: #S_VERDANT_SINEW
Description: #S_VERDANT_SINEW_DESC
Elevation: 0
BaseColor: #00ff00
EvaluationOrder: -10
Tags: Category:Control, Control, NoCore, NonContiguous, IsArmor
Tags: PassExterior, RaceSpecial
Hull: Support, Satellite
HexLimit := Sum.HexLimit * -0.2
Ship.ExternalHexes := Hexes
Hex.Resistance := 0.2
Hex.HP := 40 * HexSize
Hex.Mass := HexSize * 1.5
Repair := 24 * HexSize
Hex.LaborCost := 0.035 * HexSize
Hex.BuildCost := 0.40 * HexSize
Effect: DestroyOnLowEfficiency
Threshold = 0.3
OnCheckErrors: designs::checkSinew
Provides:
Command = floor(Sum.HexLimit / 5)
Module: Default
Sprite: Sinew