Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
Status: Devout
|
||||
Visible To: Nobody
|
||||
|
||||
IfCoversPopulation(AltarSupportedPopulation, RepeatPlanetLevel(ModEmpireAttribute(AltarSupportedPopulation, Add, 1))) #version<118
|
||||
IfCoversPopulation(AltarSupportedPopulation, RepeatPlanetLevel(AddMaxPopulation(1))) #version<118
|
||||
|
||||
RepeatPlanetLevel(AddMaxPopulation(1)) #version>=118
|
||||
@@ -0,0 +1,15 @@
|
||||
Status: Evangelized
|
||||
Name: #STATUS_EVANGELIZED
|
||||
Description: #STATUS_EVANGELIZED_DESC
|
||||
Unique: True
|
||||
|
||||
Icon: AttributeIcons::1 * #ffff00
|
||||
Color: #ffff00
|
||||
|
||||
AddResource(Influence, 1)
|
||||
OnOriginEmpire(AddInfluenceStake(1), Allow Same = False)
|
||||
|
||||
GivePlanetIncomeToOriginEmpire(Percentage = 0.1, Allow Same = False)
|
||||
|
||||
RemoveOnOwnerChange()
|
||||
OnlyOriginEmpireCanCapture()
|
||||
@@ -0,0 +1,6 @@
|
||||
Status: Extragalactic
|
||||
Visible To: Nobody
|
||||
Collapses: True
|
||||
|
||||
PlanetLevelIncomeMod(+80, -160, Step = -80)
|
||||
NoNeedPopulationForLevel()
|
||||
@@ -0,0 +1,4 @@
|
||||
Status: FleetLinked
|
||||
Visible To: Nobody
|
||||
|
||||
ModEfficiencyDistanceToOrbital(Mainframe, +0.75, -0.5, 0, 25000)
|
||||
@@ -0,0 +1,7 @@
|
||||
Status: Frugal
|
||||
Visible To: Nobody
|
||||
|
||||
IfLevel(2, AddDummyResource(Textiles, 1)) #version<154
|
||||
IfLevel(3, AddDummyResource(Textiles, 1)) #version<154
|
||||
|
||||
IfLevel(2, IfAvailableOfTier(1, 1, AddDummyResource(Textiles, 1), Enabled Mod = -1)) #version>=154
|
||||
@@ -0,0 +1,8 @@
|
||||
Status: GodlessFleet
|
||||
Name: #STATUS_GODLESS
|
||||
Description: #STATUS_GODLESS_FLEET
|
||||
Icon: ResourceIconsSmall::53 * #ff8000
|
||||
Color: #ff0000
|
||||
Collapses: True
|
||||
|
||||
RepeatStacks(AddFleetEffectiveness(-0.2), Max Repeats = 4)
|
||||
@@ -0,0 +1,10 @@
|
||||
Status: GodlessPlanet
|
||||
Name: #STATUS_GODLESS
|
||||
Description: #STATUS_GODLESS_PLANET
|
||||
Icon: ResourceIconsSmall::53 * #ff8000
|
||||
Color: #ff0000
|
||||
Collapses: True
|
||||
|
||||
ReduceProductionPerStack(3)
|
||||
RepeatStacks(ModPressureCapMult(-0.1), Max Repeats = 10) #version<118
|
||||
AddLaborFactor(-0.25)
|
||||
@@ -0,0 +1,6 @@
|
||||
Status: Lavish
|
||||
Visible To: Nobody
|
||||
|
||||
IfLevel(3, AddMaxPopulation(-1))
|
||||
IfLevel(4, AddMaxPopulation(-2))
|
||||
IfLevel(5, AddMaxPopulation(-2))
|
||||
@@ -0,0 +1,16 @@
|
||||
Status: Mechanoid
|
||||
Visible To: Nobody
|
||||
Collapses: True
|
||||
|
||||
PerPopulationAddResource(2.0, Labor, Ignore First = 1)
|
||||
|
||||
GrantAbility(MechanoidColonize)
|
||||
|
||||
AddDummyResource(Water, 1, Base Chain Only = True)
|
||||
AddDummyResource(Meat, 5, Base Chain Only = True)
|
||||
IfNativeLevel(0, AddMaxPopulation(-2), Exact = True) #version<127
|
||||
IfNativeLevel(0, NoNeedPopulationForLevel(), Exact = True) #version<127
|
||||
IfNativeLevel(0, SetMaxLevel(0), Exact = True) #version>=127
|
||||
|
||||
IfNativeLevel(1, RepeatPlanetLevel(AddIncome(-80), Base = 1)) #version<149
|
||||
PlanetLevelIncomeMod(0, -160, Step = -80) #version>=149
|
||||
@@ -0,0 +1,3 @@
|
||||
Status: MonoHomeworld
|
||||
Visible To: Nobody
|
||||
IfNotNative(Unobtanium, OnEnable(SetNeedPopulationForLevel(True)))
|
||||
@@ -0,0 +1,22 @@
|
||||
Status: Mothership
|
||||
Visible To: Nobody
|
||||
|
||||
CountAsPlanet()
|
||||
|
||||
CannotFireOutsideOwnedSpace()
|
||||
|
||||
OnEnable(AddStatus(MothershipPopulation), 5)
|
||||
OnDisable(RemoveStatus(MothershipPopulation))
|
||||
|
||||
TriggerPeriodic(AddStatus(MothershipPopulation, Max Stacks = 16), 50)
|
||||
|
||||
AllowConstruction(Ships = True, Orbitals = True, Asteroids = True, Terraforming = True)
|
||||
|
||||
AddLaborIncome(7)
|
||||
AddLaborEmpireAttribute(FactoryLaborMod)
|
||||
CopyLaborFromOrbitPlanet()
|
||||
|
||||
IsHomeObject()
|
||||
|
||||
AddStatus(CanGiveCargo) #version>=132
|
||||
AddStatus(CanTakeCargo) #version>=132
|
||||
@@ -0,0 +1,7 @@
|
||||
Status: MothershipPopulation
|
||||
Name: #STATUS_MOTHERSHIP_POPULATION
|
||||
Description: #STATUS_MOTHERSHIP_POPULATION_DESC
|
||||
Icon: ResourceIcon::8
|
||||
Collapses: True
|
||||
|
||||
RepeatStacks(AddMoneyIncome(15))
|
||||
@@ -0,0 +1,5 @@
|
||||
Status: StarChildren
|
||||
Visible To: Nobody
|
||||
|
||||
EnableAfter(IfNotHaveStatus(StarHabitats, OnEnable(SpawnOrbital(Habitat, In Orbit = True))), 5) #version<113
|
||||
IfNotHaveStatus(StarHabitats, EnableAfter(OnEnable(SpawnOrbital(Habitat, In Orbit = True)), 5)) #version>=113
|
||||
@@ -0,0 +1,18 @@
|
||||
Status: StarHabitats
|
||||
Name: #STATUS_STAR_HABITATS
|
||||
Description: #STATUS_STAR_HABITATS_DESC
|
||||
Icon: ResourceIcon::8
|
||||
Collapses: True
|
||||
|
||||
AbandonOnDisableIfSameOrigin()
|
||||
ForcePopulationToStacks()
|
||||
|
||||
ProduceAllPressure(Labor)
|
||||
ProduceAllPressure(Money)
|
||||
ProduceAllPressure(Research)
|
||||
ProduceAllPressure(Energy)
|
||||
ProduceAllPressure(Defense)
|
||||
ProduceAllPressure(Influence)
|
||||
|
||||
CannotUseLabor()
|
||||
ForbidLaborExport()
|
||||
@@ -0,0 +1,5 @@
|
||||
Status: Verdant
|
||||
Visible To: Nobody
|
||||
|
||||
ReplacesCities(10000)
|
||||
ModPressureCapMult(-1)
|
||||
@@ -0,0 +1,5 @@
|
||||
Status: AncientClaim
|
||||
Visible To: Nobody
|
||||
Collapses: True
|
||||
|
||||
OnRemoveStatusAttribLT(HasPopulation, 0.5, AbandonPlanet())
|
||||
@@ -0,0 +1,5 @@
|
||||
Status: AncientDepot
|
||||
Visible To: Nobody
|
||||
|
||||
AddLaborStorage(100)
|
||||
AddDefenseReserve(10)
|
||||
@@ -0,0 +1,5 @@
|
||||
Status: AncientDeveloper
|
||||
Visible To: Nobody
|
||||
|
||||
EnableModifier(SupportCapModule::SupportCapacityFactor(1.05))
|
||||
EnableModifier(SupportCapModule::MassFactor(1.25))
|
||||
@@ -0,0 +1,5 @@
|
||||
Status: AncientFoundry
|
||||
Visible To: Nobody
|
||||
|
||||
AddResource(Labor, 3)
|
||||
AddResourceEmpireAttribute(Labor, FactoryLaborMod)
|
||||
@@ -0,0 +1,27 @@
|
||||
Status: AncientPlanet
|
||||
Visible To: Nobody
|
||||
|
||||
NoNeedPopulationForLevel()
|
||||
PlanetLevelIncomeMod(+80, -50, Step = -80)
|
||||
AlwaysAtMaxPopulation()
|
||||
|
||||
AddDummyResource(Water, 20)
|
||||
AddDummyResource(Meat, 20)
|
||||
AddDummyResource(Titanium, 20)
|
||||
AddDummyResource(Supercarbons, 20)
|
||||
|
||||
IfNativeLevel(0, SetMaxLevel(0), Exact = True, Limit = False) #version<159
|
||||
IfNativeLevel(1, SetMaxLevel(1), Exact = True, Limit = False) #version<159
|
||||
IfNativeLevel(2, SetMaxLevel(2), Exact = True, Limit = False) #version<159
|
||||
IfNativeLevel(3, SetMaxLevel(3), Exact = True, Limit = False) #version<159
|
||||
IfNotNativeClass(Scalable, IfNativeLevel(0, SetMaxLevel(0), Exact = True, Limit = False)) #version>=159
|
||||
IfNotNativeClass(Scalable, IfNativeLevel(1, SetMaxLevel(1), Exact = True, Limit = False)) #version>=159
|
||||
IfNotNativeClass(Scalable, IfNativeLevel(2, SetMaxLevel(2), Exact = True, Limit = False)) #version>=159
|
||||
IfNotNativeClass(Scalable, IfNativeLevel(3, SetMaxLevel(3), Exact = True, Limit = False)) #version>=159
|
||||
IfNativeClass(Scalable, SetMaxLevelStatusCount(Base = 2, Status = AncientScalable)) #version>=159
|
||||
IfNativeClass(Scalable, PlanetLevelIncomeMod(0, 0, Step = -50)) #version>=159
|
||||
|
||||
IfLevel(0, AddFleetCommand(-50), Exact = True, Limit = False)
|
||||
IfLevel(1, AddFleetCommand(-50), Exact = True, Limit = False)
|
||||
IfLevel(2, AddFleetCommand(-200), Exact = True, Limit = False)
|
||||
IfLevel(3, AddFleetCommand(-350), Exact = True, Limit = False)
|
||||
@@ -0,0 +1,5 @@
|
||||
Status: AncientProduce
|
||||
Visible To: Nobody
|
||||
Collapses: True
|
||||
|
||||
ProduceNativePressurePct(Per Stack = 0.1)
|
||||
@@ -0,0 +1,8 @@
|
||||
Status: AncientReinforcer
|
||||
Visible To: Nobody
|
||||
|
||||
EnableModifier(CoreHealthFactor(1.25))
|
||||
EnableModifier(CoreMassFactor(1.25))
|
||||
|
||||
EnableModifier(AncientCore::HpFactor(1.25))
|
||||
EnableModifier(AncientCore::MassFactor(1.25))
|
||||
@@ -0,0 +1,8 @@
|
||||
Status: AncientReplicator
|
||||
Visible To: Nobody
|
||||
|
||||
TriggerWithOriginEmpire(TakeControl())
|
||||
AddStatus(AncientClaim)
|
||||
|
||||
AddLocalDefense(6, Build Satellites = True)
|
||||
AddFleetEffectiveness(+1.0)
|
||||
@@ -0,0 +1,7 @@
|
||||
Status: AncientRequireBaseMat
|
||||
Name: #STATUS_ANCIENT_REQUIRE_BASE_MAT
|
||||
Description: #STATUS_ANCIENT_REQUIRE_BASE_MAT_DESC
|
||||
Collapses: True
|
||||
|
||||
Color: #ff0000
|
||||
Icon: ResourceIconsSmall::73 * #ffaaaa
|
||||
@@ -0,0 +1,2 @@
|
||||
Status: AncientScalable
|
||||
Visible To: Nobody
|
||||
@@ -0,0 +1,8 @@
|
||||
Status: HeraldsFleetUpgrade
|
||||
Name: #STATUS_HERALDS_FLEET_UPGRADE
|
||||
Description: #STATUS_HERALDS_FLEET_UPGRADE_DESC
|
||||
Icon: CargoIcons::0
|
||||
Unique: True
|
||||
|
||||
AddBonusHP(+1.0)
|
||||
AddFleetEffectiveness(-0.1)
|
||||
Reference in New Issue
Block a user