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,61 @@
Subsystem: MuonCannon
Name: #MUON_CANNON_NAME
Description: #MUON_CANNON_DESC
BaseColor: #f549f6
TypeColor: #f549f6
Elevation: 2
Tags: WeaponBase, ProjBase, Rotatable, HexLimitArc, Category:Weapons
Tags: ExteriorCore, Weapon, IsProjWeapon, IsRailgun, HasInternals
Hull: Support, Satellite
Size := HexSize * Hexes
Range := Size + 350
Damage := Size * 1.7
Reload := 2.0 * min(1.0 + Size/512, 2.0)
Speed := max(90, Range / 16)
Spread := 0.06 / max(Range / 600, 1)
Tracking := 0.8
FireArc := 0.5 * pi
Pierce := 1.15
SupplyCost := Size * 1.5
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 0.75 * HexSize
Hex.MaintainCost := 0
Hex.LaborCost := 0.07 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 3
Hex.BuildCost := Hex.BuildCost * 5
Hex.Mass := Hex.Mass * 5
Sprite: Railgun::0
DrawMode: 1
Hex.DamageResist := ShipSize / 28.0
Effect: DamageResist
Resist = Hex.DamageResist
Effector: Railgun
Skin: Muon
Range = Range
Damage = Damage
Reload = Reload
Speed = Speed
FireArc = FireArc
Tracking = Tracking
CapOnTarget = 0
Spread = Spread
TargetTolerance = Spread / 2
Pierce = Pierce
SupplyCost = SupplyCost * Reload
IgnoreDR = 1
@@ -0,0 +1,58 @@
Subsystem: PulseBolt
Name: #S_PULSE_BOLT
Description: #S_PULSE_BOLT_DESC
BaseColor: #7390db
TypeColor: #7390db
Elevation: 1
Tags: BeamBase, Rotatable, HexLimitArc, Category:Weapons
Tags: ExteriorCore, Weapon, IsBeamWeapon, HasInternals
Tags: HeraldsDLC, RangeForRaid
Hull: Support
Size := HexSize * Hexes
BeamDPS := 10.0 * Size
Duration := 1
Cooldown := 0
Range := Size^0.4 * 6.0
Tracking := 1.0
SupplyCost := Size * 7.0
FireArc := 0.4 * pi
//I don't really like doing this but we don't want strengths to be inaccurate representations :/
// This works under the assumption that the ship spends about 25% of its
// time firing and the other 75% moving into position, or moving back to the fleet for resupply.
out DPS := 0.25 * BeamDPS
Hex.HP := 10 * HexSize
Hex.Resistance := 0.4
Hex.Mass := HexSize
Hex.BuildCost := 2 * HexSize
Hex.LaborCost := 0.20 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 1.5
Hex.BuildCost := Hex.BuildCost * 4
Hex.Mass := Hex.Mass * 4
Sprite: HyperdenseLaser::0
DrawMode: 1
Hex.DamageResist := ShipSize / 28.0
Effect: DamageResist
Resist = Hex.DamageResist
Effector: PulseBolt
Range = Range
DPS = BeamDPS
Duration = Duration
Cooldown = Cooldown
Tracking = Tracking
SupplyCost = SupplyCost * Duration
FireArc = FireArc
@@ -0,0 +1,60 @@
Subsystem: Railgun
Name: #RAILGUN_NAME
Description: #RAILGUN_DESC
BaseColor: #c5f946
TypeColor: #c5f946
Picture: SubsystemButtonArt::2
Elevation: 2
Tags: WeaponBase, ProjBase, Rotatable, HexLimitArc, Category:Weapons
Tags: ExteriorCore, Weapon, DefaultUnlock, IsProjWeapon, IsRailgun, HasInternals
Hull: Support, Satellite
Size := HexSize * Hexes
Range := Size + 330
Damage := Size * 2.9
Reload := 2.0 * min(1.0 + Size/512, 2.0)
Speed := max(110, Range / 15)
Spread := 0.045 / max(Range / 600, 1)
Tracking := 0.8
FireArc := 0.5 * pi
Pierce := 0.6
SupplyCost := Size * 1.5
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 0.75 * HexSize
Hex.MaintainCost := 0
Hex.LaborCost := 0.07 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 3
Hex.BuildCost := Hex.BuildCost * 5
Hex.Mass := Hex.Mass * 5
Sprite: Railgun::0
DrawMode: 1
Hex.DamageResist := ShipSize / 28.0
Effect: DamageResist
Resist = Hex.DamageResist
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
@@ -0,0 +1,50 @@
Subsystem: ShockMissiles
Name: #S_SHOCKMISSILES
Description: #S_SHOCKMISSILES_DESC
BaseColor: #444ca0
TypeColor: #444ca0
Elevation: 2
Tags: WeaponBase, MissileBase, Category:Weapons, Rotatable, Homing, HeraldsDLC
Tags: ExteriorCore, Weapon, IsExplosiveWeapon, HasInternals, SecondaryDPS
Hull: Support, Satellite
Size := HexSize * Hexes
Range := Size + 800
Damage := Size * 22.0
Reload := 6.0 * min(1.0 + Size/512, 2.0)
Speed := 125
Tracking := 4
SupplyCost := Size * 2.0
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 0.75 * HexSize
Hex.LaborCost := 0.05 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 3
Hex.BuildCost := Hex.BuildCost * 5
Hex.Mass := Hex.Mass * 5
Sprite: MissileLauncher::0
DrawMode: 1
Hex.DamageResist := ShipSize / 28.0
Effect: DamageResist
Resist = Hex.DamageResist
Effector: ShockMissile
Range = Range
Damage = Damage
Reload = Reload
Speed = Speed
Tracking = Tracking
SupplyCost = SupplyCost * Reload
@@ -0,0 +1,54 @@
Subsystem: SubspaceShredder
Name: #S_SUBSPACE_SHREDDER
Description: #S_SUBSPACE_SHREDDER_DESC
BaseColor: #ae6383
Elevation: 2
Tags: WeaponBase, MissileBase, Category:Weapons, Rotatable, Homing
Tags: ExteriorCore, Weapon, IsExplosiveWeapon, HasInternals
Hull: Support
Size := HexSize * Hexes
Damage := Size * 15.0
Reload := 6.0 * min(1.0 + Size/512, 2.0)
Speed := 20
Tracking := 0.2
SupplyCost := Size * 2.0
Range := 5 + Size
TravelRange := (Range * 30) - (28 * Size)
out DPS := 0.25 * (Damage / Reload)
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 0.75 * HexSize
Hex.LaborCost := 0.07 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 3
Hex.BuildCost := Hex.BuildCost * 5
Hex.Mass := Hex.Mass * 5
Sprite: MissileLauncher::0
DrawMode: 1
Hex.DamageResist := ShipSize / 28.0
Effect: DamageResist
Resist = Hex.DamageResist
Effector: SubspaceShredder
TravelRange = TravelRange
Range = Range
Damage = Damage
Reload = Reload
Speed = Speed
Tracking = Tracking
SupplyCost = SupplyCost * Reload
@@ -0,0 +1,53 @@
Subsystem: SupportLaser
Name: #LASER_NAME
Description: #LASER_DESC
BaseColor: #f9464d
TypeColor: #f9464d
Picture: SubsystemButtonArt::7
Elevation: 2
Tags: BeamBase, Rotatable, HexLimitArc, Category:Weapons
Tags: ExteriorCore, Weapon, DefaultUnlock, IsBeamWeapon, HasInternals
Hull: Support, Satellite
Size := HexSize * Hexes
BeamDPS := 1.85 * Size
Duration := 5
Cooldown := 6 * min(1.0 + Size/512, 2.0)
Range := Size + 300
Tracking := 0.5
SupplyCost := Size * 1.1
FireArc := 0.3 * pi
Hex.HP := 12 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 1 * HexSize
Hex.LaborCost := 0.07 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 3
Hex.BuildCost := Hex.BuildCost * 5
Hex.Mass := Hex.Mass * 5
Sprite: Laser::0
DrawMode: 1
Hex.DamageResist := ShipSize / 28.0
Effect: DamageResist
Resist = Hex.DamageResist
Effector: Laser
Range = Range
DPS = BeamDPS
Duration = Duration
Cooldown = Cooldown
Tracking = Tracking
SupplyCost = SupplyCost * Duration
FireArc = FireArc
@@ -0,0 +1,51 @@
Subsystem: SupportMissileLauncher
Name: #MISSILELAUNCHER_NAME
Description: #MISSILELAUNCHER_DESC
BaseColor: #b746f9
TypeColor: #b746f9
Picture: SubsystemButtonArt::4
Elevation: 2
Tags: WeaponBase, MissileBase, Category:Weapons, Rotatable, Homing
Tags: ExteriorCore, Weapon, DefaultUnlock, IsExplosiveWeapon, HasInternals
Hull: Support, Satellite
Size := HexSize * Hexes
Range := Size + 500
Damage := Size * 8.8
Reload := 5.0 * min(1.0 + Size/512, 2.0)
Speed := 75
Tracking := 3
SupplyCost := Size * 3.0
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 0.75 * HexSize
Hex.LaborCost := 0.07 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 3
Hex.BuildCost := Hex.BuildCost * 5
Hex.Mass := Hex.Mass * 5
Sprite: MissileLauncher::0
DrawMode: 1
Hex.DamageResist := ShipSize / 28.0
Effect: DamageResist
Resist = Hex.DamageResist
Effector: Missile
Range = Range
Damage = Damage
Reload = Reload
Speed = Speed
Tracking = Tracking
SupplyCost = SupplyCost * Reload
@@ -0,0 +1,70 @@
Subsystem: SupportPlasmaThrower
Name: #S_PLASMATHROWER
Description: #S_PLASMATHROWER_DESC
BaseColor: #ce815a
TypeColor: #ce815a
Elevation: 2
Tags: SpecialWeapon, Category:Weapons, Rotatable
Tags: ExteriorCore, Weapon, HasInternals, MainDPS, Homing, HexLimitArc
Tags: HeraldsDLC
Hull: Support, Satellite
Size := HexSize * Hexes
Range := Size + 500
Duration := 5 * (1.0 + Size/64)
DamageOverTime := (Size * 5.0) / Duration
out DPS := (DamageOverTime * Duration) / Reload
out SupplyDrain := SupplyCost
out SupplyFireCost := SupplyCost * Reload
Modifier: DamageFactor(factor)
DamageOverTime := DamageOverTime * factor
Reload := 5.0 * min(1.0 + Size/512, 2.0)
Speed := max(200, Range / 10)
Spread := 0.015 / max(Range / 600, 1)
Tracking := 0.2
FireArc := 1.5
Pierce := 0.0
SupplyCost := Size * 1.0
Hex.HP := 18 * HexSize
Hex.Resistance := 0.2
Hex.Mass := HexSize
Hex.BuildCost := 1.05 * HexSize
Hex.LaborCost := 0.03 * HexSize
Requires:
Command = 1
Module: Default
Module: Core
Hex.HP := Hex.HP * 3
Hex.BuildCost := 5.0 * Hex.BuildCost
Hex.Mass := 5.0 * Hex.Mass
Sprite: RocketPod::0
DrawMode: 1
Hex.DamageResist := ShipSize / 64.0
Effect: DamageResist
Resist = Hex.DamageResist
Effector: PlasmaThrower
Range = Range
DamageOverTime = DamageOverTime
Duration = Duration
Reload = Reload
Speed = Speed
Tracking = Tracking
Spread = Spread
FireArc = FireArc
TargetTolerance = max(pi,FireArc + pi/4)
FireTolerance = Spread * 3
Pierce = Pierce
SupplyCost = SupplyCost * Reload