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,30 @@
Subsystem: SupportPlateArmor
Name: Plate Armor
Description: Heavy, interlocked plates of metal form a protective layer. Damage has a harder time piercing through, and all damage taken is reduced by a flat amount.
BaseColor: #a9a9a9
Picture: SubsystemButtonArt::0
Elevation: 1
Tags: NoCore, NonContiguous, DefaultUnlock, Defense, IsArmor, TankArmor
Hull: Support
Size := HexSize * Hexes
ProjResist := HexSize * 4
EnergyResist := HexSize * 8
ExplosiveResist := HexSize * 4
Hex.Resistance := 0.5
Hex.HP := 54 * HexSize
Hex.Mass := 2.5 * HexSize
Hex.BuildCost := 1.5 * HexSize
Hex.LaborCost := 0.14 * HexSize
Effect: ReduceDamage
ProjResist = ProjResist
EnergyResist = EnergyResist
ExplResist = ExplosiveResist
MinimumPercent = 0.2
Module: Default
Sprite: HexagonSubsystems::0
@@ -0,0 +1,38 @@
Subsystem: CrewDeck
Name: Crew Deck
Description: Provides a minimal deck and facilities for the crew to command the support ship.
BaseColor: #c5f946
Picture: SubsystemButtonArt::8
Elevation: 4
Tags: DefaultUnlock, Crewed, Control, ControlCore, HasInternals
Hull: Support
EvaluationOrder: -10
Size := HexSize * Hexes
Crew := floor(40 * Size)
Command := Hexes * 4
Repair := 4 * HexSize * (Hexes-1)
Hex.Resistance := 0.2
Hex.HP := 12 * HexSize
Hex.Mass := HexSize
Hex.LaborCost := 0.14 * HexSize
Hex.BuildCost := 1.5 * HexSize
Effect: ControlCore
Provides:
Crew = Crew
Command = Command
Module: Default
Sprite: HexagonSubsystems::4
Module: Core
Sprite: HexagonSubsystems::3
Hex.HP := 4 * Hex.HP
Hex.Resistance := 0.35
Hex.BuildCost := 2 * Hex.BuildCost
@@ -0,0 +1,9 @@
Subsystem: SupportHull
Tags: DefaultUnlock, NoCore, HullSystem
Hull: Support
EvaluationOrder: -100
Repair := HexSize * 4
Assert: Ship.Command > 0
Message: #ERROR_NEED_CONTROL
@@ -0,0 +1,33 @@
Subsystem: SupportRocketEngine
Name: Rocket Engine
Description: Combusts fuel to generate thrust. Also capable of generating small amounts of power from fuel.
BaseColor: #f9e146
TypeColor: #f9e146
Picture: SubsystemButtonArt::5
Elevation: 0
Tags: ExteriorCore, DefaultUnlock, Engine, GivesThrust, HasInternals
Hull: Support
OnCheckErrors: designs::checkCoreFacingBackwards
Size := HexSize * Hexes
Thrust := 24 * Size
Hex.Mass := HexSize
Hex.Resistance := 0.2
Hex.HP := 18 * HexSize
Hex.BuildCost := 2 * HexSize
Hex.LaborCost := 0.26 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Sprite: HexagonSubsystems::2
Hex.HP := 2 * Hex.HP
Hex.Resistance := 0.35
Hex.BuildCost := 2 * Hex.BuildCost
@@ -0,0 +1,140 @@
Subsystem: Railgun
Name: Railgun
Description: A magnetic cannon which fires relatively small projectiles at immense velocities. Very effective at piercing armor.
BaseColor: #c5f946
TypeColor: #c5f946
Picture: SubsystemButtonArt::2
Elevation: 2
Tags: WeaponBase, ProjBase, Rotatable, HexLimitArc
Tags: ExteriorCore, Weapon, DefaultUnlock, IsProjWeapon, IsRailgun, HasInternals
Hull: Support
Size := HexSize * Hexes
Range := log(1 + Size / 8) * 300 + 50
Damage := Size * 2.0
Reload := 2.0
Speed := 75
Spread := 0.12 * 4.0 / (4.0 + Size)
Tracking := 0.8
FireArc := 0.5 * pi
Pierce := 0.75
SupplyCost := Size * 1.5
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 1.5 * HexSize
Hex.MaintainCost := 0
Hex.LaborCost := 0.14 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 2
Sprite: HexagonSubsystems::1
Effector: Railgun
Range = Range
Damage = Damage
Reload = Reload
Speed = Speed
FireArc = FireArc
Tracking = Tracking
CapOnTarget = 0
Spread = Spread
TargetTolerance = Spread / 2
Pierce = Pierce
SupplyCost = SupplyCost * Reload
Subsystem: SupportLaser
Name: Laser
Description: A highly focused beam of light, possessing great range and damage, but very poor penetration. The high damage is spread out over time, making lasers ineffective against armor.
BaseColor: #f9464d
TypeColor: #f9464d
Picture: SubsystemButtonArt::7
Elevation: 2
Tags: BeamBase, Rotatable, HexLimitArc
Tags: ExteriorCore, Weapon, DefaultUnlock, IsBeamWeapon, HasInternals
Hull: Support
Size := HexSize * Hexes
BeamDPS := 1.5 * Size
Duration := 4
Cooldown := 6
Range := log(1 + Size / 8) * 200 + 150
Tracking := 0.5
SupplyCost := Size * 0.75
Hex.HP := 12 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 2 * HexSize
Hex.LaborCost := 0.14 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 2
Sprite: HexagonSubsystems::6
Effector: Laser
Range = Range
DPS = BeamDPS
Duration = Duration
Cooldown = Cooldown
Tracking = Tracking
SupplyCost = SupplyCost * Duration
Subsystem: SupportMissileLauncher
Name: Missile Launcher
Description: Fires like... explosives, y'know? With this crazy, watzit... y'know thos flame thingies? Oh, rockets, yeah! Yeah, it fires bombs on rockets, it's pretty chill.
BaseColor: #b746f9
TypeColor: #b746f9
Picture: SubsystemButtonArt::4
Elevation: 2
Tags: WeaponBase, MissileBase
Tags: ExteriorCore, Weapon, DefaultUnlock, IsExplosiveWeapon, HasInternals
Hull: Support
Size := HexSize * Hexes
Range := log(1 + Size / 8) * 150 + 200
Damage := Size * 7.5
Reload := 6.0
Speed := 45
Tracking := 3
SupplyCost := Size * 4.0
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 1.5 * HexSize
Hex.LaborCost := 0.14 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 2
Sprite: HexagonSubsystems::7
Effector: Missile
Range = Range
Damage = Damage
Reload = Reload
Speed = Speed
Tracking = Tracking
SupplyCost = SupplyCost * Reload