Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
Subsystem: MothershipHull
|
||||
Name: #S_MOTHERSHIP_HULL
|
||||
Description: #S_MOTHERSHIP_HULL_DESC
|
||||
|
||||
Tags: Applied:Hull, Category:Hulls, NoCore, Mothership
|
||||
Tags: Ability:MothershipColonize, CannotDonate
|
||||
Hull: Flagship
|
||||
EvaluationOrder: -200
|
||||
BaseColor: #cc6a3a
|
||||
|
||||
AddShipModifier: FlagshipHull::HexLimitFactor(1.76)
|
||||
AddShipModifier: FlagshipHull::GridWidthFactor(sqrt(1.5))
|
||||
AddShipModifier: FlagshipHull::GridHeightFactor(sqrt(1.5))
|
||||
AddShipModifier: HPFactor(3.0)
|
||||
AddShipModifier: DamageResistFactor(2.0)
|
||||
AddShipModifier: SupplyCapacityFactor(0.01)
|
||||
AddShipModifier: SupplyCostFactor(0)
|
||||
AddShipModifier: RepairSupplyCostFactor(-1)
|
||||
AddShipModifier: SlipstreamDistCostFactor(0.5)
|
||||
AddShipModifier: SlipstreamOverheadFactor(0.16)
|
||||
AddShipModifier: ThrustFactor(2.0)
|
||||
AddShipModifier: TurnThrustFactor(2.0)
|
||||
AddShipModifier: DamageFactor(0.5)
|
||||
|
||||
SupportCapacity := 128
|
||||
Hex.MaintainCost := 0
|
||||
|
||||
Hook: AddPermanentStatus(Mothership)
|
||||
Hook: AddCargoStorage(100000)
|
||||
Hook: ModSupplyConsumeFactor(-1.0)
|
||||
|
||||
AddPostModifier: AddMaintainCost(max(300-HexSum.MaintainCost, 0))
|
||||
|
||||
Assert: ShipSize >= 500
|
||||
Message: #ERROR_MIN_SIZE:$1:500
|
||||
|
||||
Assert: ShipTotalHexes - Ship.ExternalHexes >= floor(Sum.HexLimit * 0.9)
|
||||
Message: #ERROR_MUST_BE_FILLED
|
||||
|
||||
Module: Default
|
||||
Sprite: ResourceIcon::8
|
||||
DrawMode: 3
|
||||
@@ -0,0 +1,41 @@
|
||||
Subsystem: RemnantShipComputer
|
||||
Name: #SHIPCOMPUTER_NAME
|
||||
Description: #SHIPCOMPUTER_DESC
|
||||
BaseColor: #ffa4a0
|
||||
Picture: SubsystemButtonArt::8 * #ffa4a0
|
||||
Elevation: 4
|
||||
|
||||
Tags: BaseCost, Category:Control, BadFiller
|
||||
Tags: Control, ControlCore, HasInternals, Important
|
||||
Tags: Disabled
|
||||
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
|
||||
|
||||
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,24 @@
|
||||
Subsystem: RemnantSupplyModule
|
||||
Name: #SUPPLYMODULE_NAME
|
||||
Description: #SUPPLYMODULE_DESC
|
||||
Picture: SubsystemButtonArt::8 * #b3ffef
|
||||
BaseColor: #2fd6b3
|
||||
Elevation: 3
|
||||
|
||||
Tags: NonContiguous, NoCore, HasInternals, Category:Control, Disabled
|
||||
Hull: Flagship, Station
|
||||
|
||||
Size := HexSize * Hexes
|
||||
SupplyCapacity := Size * 500000
|
||||
SupplyRate := Size * 60000
|
||||
|
||||
Hex.LaborCost := 0.3 * HexSize + 0.8
|
||||
Hex.BuildCost := 3 * HexSize + 2
|
||||
Hex.MaintainCost := 8 * HexSize + 5
|
||||
|
||||
Hex.Resistance := 0.2
|
||||
Hex.HP := 18 * HexSize
|
||||
Hex.Mass := HexSize
|
||||
|
||||
Module: Default
|
||||
Sprite: SupplyStorage
|
||||
@@ -0,0 +1,30 @@
|
||||
Subsystem: VerdantSinew
|
||||
Name: #S_VERDANT_SINEW
|
||||
Description: #S_VERDANT_SINEW_DESC
|
||||
Elevation: 0
|
||||
BaseColor: #00ff00
|
||||
EvaluationOrder: -10
|
||||
|
||||
Tags: Category:Control, Control, NoCore, NonContiguous, IsArmor
|
||||
Tags: BaseCost, PassExterior, RaceSpecial
|
||||
Hull: Flagship, Station
|
||||
|
||||
HexLimit := Sum.HexLimit * -0.2
|
||||
Ship.ExternalHexes := Hexes
|
||||
|
||||
Repair := 32 * HexSize
|
||||
|
||||
Hex.Resistance := 0.2
|
||||
Hex.HP := 40 * HexSize
|
||||
Hex.Mass := HexSize * 1.5
|
||||
|
||||
Effect: DestroyOnLowEfficiency
|
||||
Threshold = 0.3
|
||||
|
||||
OnCheckErrors: designs::checkSinew
|
||||
|
||||
Provides:
|
||||
Command = floor(Sum.HexLimit / 10)
|
||||
|
||||
Module: Default
|
||||
Sprite: Sinew
|
||||
Reference in New Issue
Block a user