Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
Module: AncientEmbassy
|
||||
Name: #ORB_ANCIENT_EMBASSY
|
||||
Blurb: #ORB_ANCIENT_EMBASSY_BLURB
|
||||
Description: #ORB_ANCIENT_EMBASSY_DESC
|
||||
Icon: GuiOrbitalIcons::12
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
|
||||
Health: 15000
|
||||
Armor: 5000
|
||||
|
||||
Model: Research_Station
|
||||
Material: GenericPBR_Research_Station
|
||||
|
||||
CannotBuildManually()
|
||||
|
||||
ProtectSystem()
|
||||
AddFleetCommand(500)
|
||||
|
||||
GlobalTradeNode()
|
||||
|
||||
ModLocalLoyalty(+5)
|
||||
ModRegionTargetCostMod(-5)
|
||||
OnKillSpreadLeverageToFriendlies(Quality Factor = 12.0)
|
||||
|
||||
Strategic Icon: OrbitalIcons::12
|
||||
@@ -0,0 +1,35 @@
|
||||
Module: AncientReplicator
|
||||
Name: #ORB_ANCIENT_REPLICATOR
|
||||
Blurb: #ORB_ANCIENT_REPLICATOR_BLURB
|
||||
Description: #ORB_ANCIENT_REPLICATOR_DESC
|
||||
Icon: GuiOrbitalIcons::20
|
||||
Distant Icon: OrbitalIcons::20
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
|
||||
Size: 9
|
||||
|
||||
Build Cost: 1000
|
||||
Labor Cost: 111
|
||||
ConsumeCargo(Ore, 3500)
|
||||
|
||||
Health: 50000
|
||||
Armor: 50000
|
||||
|
||||
AddResistance(40.0)
|
||||
|
||||
Model: Mainframe
|
||||
Material: GenericPBR_Mainframe
|
||||
|
||||
RequireTrait(Ancient)
|
||||
|
||||
CountAsPlanet()
|
||||
|
||||
AddAccelerationBonus(5.0)
|
||||
|
||||
AddStatusToOrbitingPlanet(AncientReplicator, Only Owned = True, Allow Space = True, Set Origin Empire = True)
|
||||
|
||||
GrantAbility(AncientBuildCore) #version>=160
|
||||
GrantAbility(AncientBuildTransmuter) #version>=160
|
||||
GrantAbility(AncientBuildMiner) #version>=160
|
||||
@@ -0,0 +1,65 @@
|
||||
Module: Beacon
|
||||
Name: #ORB_BEACON
|
||||
Blurb: #ORB_BEACON_BLURB
|
||||
Description: #ORB_BEACON_DESC
|
||||
Icon: GuiOrbitalIcons::18
|
||||
Strategic Icon: OrbitalIcons::18
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
|
||||
Health: 50000
|
||||
Armor: 10000
|
||||
|
||||
Size: 16
|
||||
Icon Size: 0.04
|
||||
Mass: 50000
|
||||
|
||||
Model: Beacon
|
||||
Material: GenericPBR_Beacon
|
||||
|
||||
AutoMasterSlave()
|
||||
|
||||
AddResistance(10)
|
||||
AddFleetCommand(256)
|
||||
OnEnable(GenerateDefenseShips(15))
|
||||
|
||||
CannotBuildManually()
|
||||
CountAsPlanet()
|
||||
|
||||
IfMaster(AllowConstruction(Ships = True, Orbitals = True, Asteroids = True, Enable Fill From = True))
|
||||
IfNotMaster(AllowConstruction(Ships = False, Supports Only = True, Enable Fill From = True))
|
||||
IfMaster(AddLaborIncome(5))
|
||||
IfMaster(AddLaborEmpireAttribute(FactoryLaborMod))
|
||||
CopyLaborFromMaster()
|
||||
ForbidLaborExport()
|
||||
|
||||
IfMaster(RepeatEmpireAttribute(BeaconLaborUpgrades, AddLaborIncome(3)))
|
||||
IfMaster(RepeatEmpireAttribute(BeaconLaborUpgrades, AddLaborEmpireAttribute(FactoryLaborMod)))
|
||||
|
||||
SetSystemFlag(JumpdriveSafety)
|
||||
|
||||
GlobalTradeNode()
|
||||
GiveTrade()
|
||||
|
||||
AllowResourceImport()
|
||||
AddCargoStorage(1000000)
|
||||
|
||||
gameplay.extragalactic::RefugeeColonization()
|
||||
|
||||
CopyPressureToMaster()
|
||||
MoveCargoToMaster()
|
||||
MoveImportsToMaster()
|
||||
|
||||
AddHealthEmpireAttribute(BeaconHealthUpgrades, 50000)
|
||||
AddArmorEmpireAttribute(BeaconArmorUpgrades, 50000)
|
||||
AddResistanceEmpireAttribute(BeaconArmorUpgrades, 50)
|
||||
|
||||
RepeatExtended(AddTurret(Railgun, Range=400, Damage=5, Reload=0.25, Speed=150, Spread=0.03, FireArc=3.14, Tracking=0.4, FireTolerance=0.78), Base Attribute = BeaconWeaponUpgrades, Multiplier = 4)
|
||||
RepeatExtended(AddTurret(Laser, Range=300, DPS=5, Duration=2, Cooldown=0, Tracking=0.4), Base Attribute = BeaconWeaponUpgrades, Multiplier = 4)
|
||||
RepeatEmpireAttribute(BeaconWeaponUpgrades, RecordBonusDPS(100))
|
||||
|
||||
IfMaster(RepeatPressure(Labor, AddLaborIncome(0.75)))
|
||||
IfMaster(RepeatPressure(Defense, TriggerPeriodic(AddCargo(DefenseCargo, 1), Interval = 6)))
|
||||
IfMaster(RepeatPressure(Research, TriggerPeriodic(AddCargo(ResearchCargo, 1), Interval = 6)))
|
||||
IfMaster(RepeatPressure(Energy, TriggerPeriodic(AddCargo(EnergyCargo, 1), Interval = 6)))
|
||||
@@ -0,0 +1,21 @@
|
||||
Module: FTLStorage
|
||||
Name: #ORB_FTL_STORAGE
|
||||
Blurb: #ORB_FTL_STORAGE_DESC
|
||||
Description: #ORB_FTL_STORAGE_DESC
|
||||
Icon: GuiOrbitalIcons::19
|
||||
Strategic Icon: OrbitalIcons::19
|
||||
|
||||
Build Cost: 300
|
||||
Maintenance: 50
|
||||
Labor Cost: 10
|
||||
Size: 16
|
||||
|
||||
Health: 5000
|
||||
Armor: 1000
|
||||
|
||||
Model: FTLStorage
|
||||
Material: GenericPBR_FTLStorage
|
||||
|
||||
RequireTrait(StarChildren)
|
||||
|
||||
AddFTLStorage(300)
|
||||
@@ -0,0 +1,41 @@
|
||||
Module: Habitat
|
||||
Name: #ORB_HABITAT
|
||||
Blurb: #ORB_HABITAT_BLURB
|
||||
Description: #ORB_HABITAT_BLURB
|
||||
Icon: GuiOrbitalIcons::14
|
||||
Distant Icon: OrbitalIcons::14
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
Combat Repair: False
|
||||
|
||||
Health: 500
|
||||
Armor: 0
|
||||
Size: 8
|
||||
|
||||
Model: Outpost
|
||||
Material: GenericPBR_Outpost
|
||||
|
||||
CannotBuildManually()
|
||||
ProtectsOrbitSiege()
|
||||
|
||||
AddStatusToOrbitingPlanet(StarHabitats, Set Origin Empire = True)
|
||||
DestroyIfNotAroundOwnedPlanet(Do Colonize = True)
|
||||
|
||||
AddHealth(4000) #version>=115
|
||||
AddArmor(4000) #version>=115
|
||||
|
||||
AddHealthEmpireAttribute(HabitatUpgrade, 4000)
|
||||
AddArmorEmpireAttribute(HabitatUpgrade, 4000)
|
||||
|
||||
AddResistance(5.0)
|
||||
|
||||
AddTurret(Missile, Range=300, Damage=10, Reload=1, Speed=150, Tracking=6) #version>=115
|
||||
AddTurret(Laser, Range=200, DPS=5, Duration=2, Cooldown=0, Tracking=0.4) #version>=115
|
||||
|
||||
RepeatExtended(AddTurret(Missile, Range=300, Damage=6, Reload=1, Speed=150, Tracking=6), Base = 4, Multiply Attribute = StaticDamageFactor)
|
||||
RepeatExtended(AddTurret(Laser, Range=200, DPS=5, Duration=2, Cooldown=0, Tracking=0.4), Base = 2, Multiply Attribute = StaticDamageFactor)
|
||||
|
||||
RecordBonusDPS(35) #version>=115
|
||||
RepeatExtended(RecordBonusDPS(6), Base = 4, Multiply Attribute = StaticDamageFactor)
|
||||
RepeatExtended(RecordBonusDPS(5), Base = 2, Multiply Attribute = StaticDamageFactor)
|
||||
@@ -0,0 +1,25 @@
|
||||
Module: HeraldDefense
|
||||
Name: #CONS_HERALD_ORBITALS
|
||||
Icon: GuiOrbitalIcons::0
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
|
||||
Health: 10000
|
||||
Armor: 5000
|
||||
|
||||
Model: DefenseStation
|
||||
Material: VolkurGenericPBR
|
||||
|
||||
CannotBuildManually()
|
||||
|
||||
Strategic Icon: OrbitalIcons::0
|
||||
|
||||
Repeat(4, AddTurret(Railgun, Range=500, Damage=2, Reload=0.25, Speed=150, Spread=0.03, FireArc=3.14, Tracking=0.4, FireTolerance=0.78))
|
||||
Repeat(3, AddTurret(Laser, Range=400, DPS=10, Duration=2, Cooldown=0, Tracking=0.4))
|
||||
Repeat(4, AddTurret(Missile, Range=500, Damage=20, Reload=2, Speed=90, Tracking=3))
|
||||
RecordBonusDPS(100)
|
||||
|
||||
OnEnable(AddStatus(Expire, Duration = 600))
|
||||
|
||||
ProtectSystem()
|
||||
@@ -0,0 +1,42 @@
|
||||
Module: Mainframe
|
||||
Name: #ORB_MAINFRAME
|
||||
Blurb: #ORB_MAINFRAME_BLURB
|
||||
Description: #ORB_MAINFRAME_DESC
|
||||
Icon: GuiOrbitalIcons::20
|
||||
Distant Icon: OrbitalIcons::20
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
|
||||
Build Cost: 500
|
||||
Maintenance: 50
|
||||
Labor Cost: 25
|
||||
Size: 15
|
||||
|
||||
Health: 10000
|
||||
Armor: 10000
|
||||
|
||||
Model: Mainframe
|
||||
Material: GenericPBR_Mainframe
|
||||
|
||||
RequireTrait(Linked)
|
||||
|
||||
AddHealthEmpireAttribute(StaticDamageFactor, 5000)
|
||||
AddArmorEmpireAttribute(StaticDamageFactor, 10000)
|
||||
|
||||
AddResistance(10.0)
|
||||
|
||||
RepeatExtended(AddTurret(Missile, Range=450, Damage=25, Reload=1, Speed=150, Tracking=6), Base = 4, Multiply Attribute = StaticDamageFactor) #version<117
|
||||
RepeatExtended(AddTurret(Laser, Range=300, DPS=10, Duration=2, Cooldown=0, Tracking=0.4), Base = 4, Multiply Attribute = StaticDamageFactor) #version<117
|
||||
|
||||
IfInOwnedSpace(RepeatExtended(AddTurret(Missile, Range=450, Damage=25, Reload=1, Speed=150, Tracking=6), Base = 4, Multiply Attribute = StaticDamageFactor), Allow Allies = True) #version>=117
|
||||
IfInOwnedSpace(RepeatExtended(AddTurret(Laser, Range=300, DPS=10, Duration=2, Cooldown=0, Tracking=0.4), Base = 4, Multiply Attribute = StaticDamageFactor), Allow Allies = True) #version>=117
|
||||
|
||||
AddAccelerationBonus(0.4) #version>=117
|
||||
|
||||
RepeatExtended(RecordBonusDPS(25), Base = 4, Multiply Attribute = StaticDamageFactor)
|
||||
RepeatExtended(RecordBonusDPS(10), Base = 4, Multiply Attribute = StaticDamageFactor)
|
||||
|
||||
ShowRange(15000, #00ff00)
|
||||
|
||||
GrantAbility(RemoteScan)
|
||||
@@ -0,0 +1,25 @@
|
||||
Module: RemnantDefenseCore
|
||||
Name: #ORB_REMNANT_DEFENSE_CORE
|
||||
Blurb: #ORB_REMNANT_DEFENSE_CORE_BLURB
|
||||
Icon: GuiOrbitalIcons::0
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
|
||||
Build Cost: 400
|
||||
Maintenance: 200
|
||||
Labor Cost: 25
|
||||
|
||||
Health: 5000
|
||||
Armor: 2000
|
||||
|
||||
Model: DefenseStation
|
||||
Material: VolkurGenericPBR
|
||||
|
||||
CannotBuildManually()
|
||||
|
||||
Strategic Icon: OrbitalIcons::0
|
||||
|
||||
Repeat(2, AddTurret(Railgun, Range=400, Damage=2, Reload=0.25, Speed=150, Spread=0.03, FireArc=3.14, Tracking=0.4, FireTolerance=0.78))
|
||||
Repeat(3, AddTurret(Laser, Range=300, DPS=5, Duration=2, Cooldown=0, Tracking=0.4), Per Import = 2)
|
||||
Repeat(2, AddTurret(Missile, Range=400, Damage=20, Reload=2, Speed=90, Tracking=3), Per Import = 1)
|
||||
@@ -0,0 +1,23 @@
|
||||
Module: RemnantEnergyCore
|
||||
Name: #ORB_REMNANT_ENERGY_CORE
|
||||
Blurb: #ORB_REMNANT_ENERGY_CORE_BLURB
|
||||
Description: #ORB_REMNANT_ENERGY_CORE_DESC
|
||||
Icon: GuiOrbitalIcons::12
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
|
||||
Build Cost: 400
|
||||
Labor Cost: 25
|
||||
|
||||
Health: 5000
|
||||
Armor: 2000
|
||||
|
||||
Model: Research_Station
|
||||
Material: VolkurGenericPBR
|
||||
|
||||
CannotBuildManually()
|
||||
|
||||
Strategic Icon: OrbitalIcons::12
|
||||
|
||||
AddEnergyIncome(+0.6)
|
||||
@@ -0,0 +1,20 @@
|
||||
Module: SupportStation
|
||||
Name: #ORB_SUPPORT_STATION
|
||||
Blurb: #ORB_SUPPORT_STATION_BLURB
|
||||
Description: #ORB_SUPPORT_STATION_BLURB
|
||||
Icon: GuiOrbitalIcons::7
|
||||
Strategic Icon: OrbitalIcons::7
|
||||
|
||||
Health: 2000
|
||||
Armor: 3000
|
||||
|
||||
Size: 15
|
||||
|
||||
Model: Depot
|
||||
Material: GenericPBR_Depot
|
||||
|
||||
CannotBuildManually()
|
||||
AddHealthEmpireAttribute(StaticDamageFactor, 5000)
|
||||
AddArmorEmpireAttribute(StaticDamageFactor, 5000)
|
||||
|
||||
GrantAbility(SupportBeam)
|
||||
@@ -0,0 +1,30 @@
|
||||
Module: Temple
|
||||
Name: #ORB_TEMPLE
|
||||
Blurb: #ORB_TEMPLE_BLURB
|
||||
Description: #ORB_TEMPLE_DESC
|
||||
Icon: GuiOrbitalIcons::21
|
||||
Distant Icon: OrbitalIcons::21
|
||||
|
||||
Core: True
|
||||
Standalone: True
|
||||
|
||||
Build Cost: 300
|
||||
Maintenance: 30
|
||||
Labor Cost: 15
|
||||
Size: 7
|
||||
|
||||
Health: 6000
|
||||
Armor: 4000
|
||||
|
||||
Model: Temple
|
||||
Material: GenericPBR_Temple
|
||||
|
||||
RequireTrait(Evangelical)
|
||||
|
||||
AddHealthEmpireAttribute(OutpostBoost, 10000)
|
||||
|
||||
GiveTrade()
|
||||
|
||||
SpawnFreighters(1, Status = Evangelized, Duration = 600, Name = #MISSIONARY, Set Origin Empire = True, Visit Hostile = True, Skin = Missionary)
|
||||
|
||||
IfBorderSystem(ModEmpireAttribute(BorderOutposts, Add, 1)) #version>=162
|
||||
Reference in New Issue
Block a user