Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
Building: AncientCore
|
||||
Name: #BLD_ANCIENT_CORE
|
||||
Description: #BLD_ANCIENT_CORE_DESC
|
||||
Sprite: CoreBuilding
|
||||
|
||||
Category: ControlHubs
|
||||
|
||||
Size: 6x6
|
||||
|
||||
Base Cost: 150
|
||||
Build Time: 90
|
||||
Base Maintenance: 70
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
ConflictBuilding(AncientCore, Hide = True)
|
||||
ConflictBuilding(AncientTransmuter, Hide = True)
|
||||
ConflictBuilding(AncientMiner, Hide = True)
|
||||
|
||||
DisableResourceExport()
|
||||
ProduceAsteroidPressure()
|
||||
|
||||
AddStatus(AncientClaim)
|
||||
|
||||
Repeat(5, AddStatus(AncientProduce))
|
||||
@@ -0,0 +1,21 @@
|
||||
Building: AncientDepot
|
||||
Name: #BLD_ANCIENT_DEPOT
|
||||
Description: #BLD_ANCIENT_DEPOT_DESC
|
||||
Sprite: Depot
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 2x2
|
||||
|
||||
Base Cost: 100
|
||||
Tile Cost: 10
|
||||
Build Time: 60
|
||||
|
||||
Build Affinity: Desert
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
ActiveWhenCargoConsumed(BaseMaterial, 1, 6, AddStatus(AncientDepot)), Inactive Status = AncientRequireBaseMat)
|
||||
@@ -0,0 +1,21 @@
|
||||
Building: AncientDeveloper
|
||||
Name: #BLD_ANCIENT_DEVELOPER
|
||||
Description: #BLD_ANCIENT_DEVELOPER_DESC
|
||||
Sprite: AncientDeveloper
|
||||
|
||||
Category: Enhancing
|
||||
|
||||
Size: 3x5
|
||||
|
||||
Base Cost: 0
|
||||
Tile Cost: 25
|
||||
Build Time: 100
|
||||
|
||||
Build Affinity: Volcanic
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
ActiveWhenCargoConsumed(BaseMaterial, 1, 6, AddStatus(AncientDeveloper), Inactive Status = AncientRequireBaseMat)
|
||||
@@ -0,0 +1,22 @@
|
||||
Building: AncientDock
|
||||
Name: #BLD_ANCIENT_DOCK
|
||||
Description: #BLD_ANCIENT_DOCK_DESC
|
||||
Sprite: AncientDock
|
||||
|
||||
Category: Military
|
||||
|
||||
Size: 2x6
|
||||
|
||||
Base Cost: 0
|
||||
Tile Cost: 25
|
||||
|
||||
Build Affinity: Oceanic
|
||||
|
||||
Build Time: 10
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
ModConstructionHPBonus(+0.1)
|
||||
AddFleetCommand(100)
|
||||
@@ -0,0 +1,20 @@
|
||||
Building: AncientFoundry
|
||||
Name: #BLD_ANCIENT_FOUNDRY
|
||||
Description: #BLD_ANCIENT_FOUNDRY_DESC
|
||||
Sprite: AncientFoundry
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 4x3
|
||||
|
||||
Base Cost: 100
|
||||
Build Time: 60
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
ActiveWhenCargoConsumed(Ore, 2, 1.0, AddStatus(AncientFoundry), Labor Use Linked = True)
|
||||
|
||||
ShowAttributeValue(#RESOURCE_LABOR, FactoryLaborMod, Base Amount = 4, Icon = ResourceIcon::6, Suffix = #PER_MINUTE)
|
||||
@@ -0,0 +1,20 @@
|
||||
Building: AncientInfuser
|
||||
Name: #BLD_ANCIENT_INFUSER
|
||||
Description: #BLD_ANCIENT_INFUSER_DESC
|
||||
Sprite: AncientInfuser
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 8x3
|
||||
|
||||
Base Cost: 350
|
||||
Base Maintenance: 50
|
||||
Build Time: 100
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
RequireNativeClass(Scalable)
|
||||
|
||||
ActiveWhenCargoConsumed(BaseMaterial, 3, 6, AddStatus(AncientScalable), Inactive Status = AncientRequireBaseMat, Inactive Status Count = 3)
|
||||
@@ -0,0 +1,19 @@
|
||||
Building: AncientLab
|
||||
Name: #BLD_ANCIENT_LAB
|
||||
Description: #BLD_ANCIENT_LAB_DESC
|
||||
Sprite: AncientLab
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 3x2
|
||||
|
||||
Base Cost: 125
|
||||
Base Maintenance: 20
|
||||
Build Time: 70
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
ActiveWhenCargoConsumed(Ore, 1, 2.0, AddResource(Research, 1))
|
||||
@@ -0,0 +1,25 @@
|
||||
Building: AncientMiner
|
||||
Name: #BLD_ANCIENT_MINER
|
||||
Description: #BLD_ANCIENT_MINER_DESC
|
||||
Sprite: StripMiner
|
||||
|
||||
Category: ControlHubs
|
||||
|
||||
Size: 10x6
|
||||
|
||||
Base Cost: 0
|
||||
Tile Cost: 4
|
||||
Build Time: 60
|
||||
|
||||
Build Affinity: Mountains
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
ConflictBuilding(AncientCore, Hide = True)
|
||||
ConflictBuilding(AncientTransmuter, Hide = True)
|
||||
ConflictBuilding(AncientMiner, Hide = True)
|
||||
|
||||
AddStatus(AncientClaim)
|
||||
ChangeNativeResourceTo(OreRate)
|
||||
@@ -0,0 +1,22 @@
|
||||
Building: AncientNetwork
|
||||
Name: #BLD_ANCIENT_NETWORK
|
||||
Description: #BLD_ANCIENT_NETWORK_DESC
|
||||
Sprite: NetworkBuilding
|
||||
|
||||
Category: Military
|
||||
|
||||
Size: 6x2
|
||||
|
||||
Base Cost: 50
|
||||
Tile Cost: 25
|
||||
|
||||
Build Affinity: Mountains
|
||||
|
||||
Build Time: 10
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
AddLocalDefense(2, Build Satellites = True)
|
||||
ModLoyalty(+3)
|
||||
@@ -0,0 +1,18 @@
|
||||
Building: AncientRefinery
|
||||
Name: #BLD_ANCIENT_REFINERY
|
||||
Description: #BLD_ANCIENT_REFINERY_DESC
|
||||
Sprite: AncientRefinery
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 4x6
|
||||
|
||||
Base Cost: 100
|
||||
Build Time: 60
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
ActiveWhenCargoConsumed(BaseMaterial, 1, 6, Repeat(3, AddStatus(AncientProduce)), Inactive Status = AncientRequireBaseMat)
|
||||
@@ -0,0 +1,21 @@
|
||||
Building: AncientReinforcer
|
||||
Name: #BLD_ANCIENT_REINFORCER
|
||||
Description: #BLD_ANCIENT_REINFORCER_DESC
|
||||
Sprite: AncientReinforcer
|
||||
|
||||
Category: Enhancing
|
||||
|
||||
Size: 5x3
|
||||
|
||||
Base Cost: 0
|
||||
Tile Cost: 25
|
||||
Build Time: 100
|
||||
|
||||
Build Affinity: Forest
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
ActiveWhenCargoConsumed(BaseMaterial, 1, 6, AddStatus(AncientReinforcer), Inactive Status = AncientRequireBaseMat)
|
||||
@@ -0,0 +1,22 @@
|
||||
Building: AncientTransmuter
|
||||
Name: #BLD_ANCIENT_TRANSMUTER
|
||||
Description: #BLD_ANCIENT_TRANSMUTER_DESC
|
||||
Sprite: AncientTransmuter
|
||||
|
||||
Category: ControlHubs
|
||||
|
||||
Size: 10x6
|
||||
|
||||
Base Cost: 80
|
||||
Build Time: 50
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
ConflictBuilding(AncientCore, Hide = True)
|
||||
ConflictBuilding(AncientTransmuter, Hide = True)
|
||||
ConflictBuilding(AncientMiner, Hide = True)
|
||||
|
||||
AddStatus(AncientClaim)
|
||||
ChangeNativeResourceTo(BaseMaterial)
|
||||
@@ -0,0 +1,21 @@
|
||||
Building: Compressor
|
||||
Name: #BLD_ANCIENT_COMPRESSOR
|
||||
Description: #BLD_ANCIENT_COMPRESSOR_DESC
|
||||
Sprite: Compressor
|
||||
|
||||
Category: Enhancing
|
||||
|
||||
Size: 3x4
|
||||
|
||||
Base Cost: 0
|
||||
Tile Cost: 25
|
||||
Build Time: 100
|
||||
|
||||
Build Affinity: Ice
|
||||
|
||||
In Queue: True
|
||||
|
||||
RequireStatus(AncientReplicator)
|
||||
RequireStatusToProgress(AncientReplicator)
|
||||
|
||||
ActiveWhenCargoConsumed(BaseMaterial, 1, 6, EnableModifier(MassFactor(0.92)), Inactive Status = AncientRequireBaseMat)
|
||||
@@ -0,0 +1,9 @@
|
||||
Building: Base
|
||||
Name: #BLD_BASE
|
||||
Description: #BLD_BASE_DESC
|
||||
Sprite: BuildingSprites::12
|
||||
|
||||
Civilian: True
|
||||
|
||||
Saturation: 1 Defense
|
||||
Production: 1 Defense
|
||||
@@ -0,0 +1,6 @@
|
||||
Building: City
|
||||
Name: #BLD_CITY
|
||||
Description: #BLD_CITY_DESC
|
||||
Sprite: BuildingSprites::0
|
||||
|
||||
City: True
|
||||
@@ -0,0 +1,9 @@
|
||||
Building: Generator
|
||||
Name: #BLD_GENERATOR
|
||||
Description: #BLD_GENERATOR_DESC
|
||||
Sprite: BuildingSprites::6
|
||||
|
||||
Civilian: True
|
||||
|
||||
Saturation: 1 Energy
|
||||
Production: 1 Energy
|
||||
@@ -0,0 +1,10 @@
|
||||
Building: Industry
|
||||
Name: #BLD_INDUSTRY
|
||||
Description: #BLD_INDUSTRY_DESC
|
||||
Sprite: BuildingSprites::4
|
||||
|
||||
Civilian: True
|
||||
|
||||
Saturation: 2 Labor
|
||||
Production: 2 Labor
|
||||
Pressure Cap: 2
|
||||
@@ -0,0 +1,9 @@
|
||||
Building: Market
|
||||
Name: #BLD_MARKET
|
||||
Description: #BLD_MARKET_DESC
|
||||
Sprite: BuildingSprites::2
|
||||
|
||||
Civilian: True
|
||||
|
||||
Saturation: 1 Money
|
||||
Production: 1 Money
|
||||
@@ -0,0 +1,9 @@
|
||||
Building: MediaCenter
|
||||
Name: #BLD_MEDIACENTER
|
||||
Description: #BLD_MEDIACENTER_DESC
|
||||
Sprite: BuildingSprites::10
|
||||
|
||||
Civilian: True
|
||||
|
||||
Saturation: 1 Influence
|
||||
Production: 1 Influence
|
||||
@@ -0,0 +1,9 @@
|
||||
Building: University
|
||||
Name: #BLD_UNIVERSITY
|
||||
Description: #BLD_UNIVERSITY_DESC
|
||||
Sprite: BuildingSprites::8
|
||||
|
||||
Civilian: True
|
||||
|
||||
Saturation: 1 Research
|
||||
Production: 1 Research
|
||||
@@ -0,0 +1,10 @@
|
||||
Building: Bazaar
|
||||
Name: #BLD_BAZAAR
|
||||
Description: #BLD_BAZAAR_DESC
|
||||
Sprite: BuildingSprites::3
|
||||
|
||||
Civilian: True
|
||||
Upgrades From: Market
|
||||
|
||||
Saturation: 2 Money
|
||||
Production: 1.5 Money
|
||||
@@ -0,0 +1,10 @@
|
||||
Building: BroadcastCenter
|
||||
Name: #BLD_BROADCAST
|
||||
Description: #BLD_BROADCAST_DESC
|
||||
Sprite: BuildingSprites::11
|
||||
|
||||
Civilian: True
|
||||
Upgrades From: MediaCenter
|
||||
|
||||
Saturation: 2 Influence
|
||||
Production: 1.5 Influence
|
||||
@@ -0,0 +1,11 @@
|
||||
Building: Enterprise
|
||||
Name: #BLD_ENTERPRISE
|
||||
Description: #BLD_ENTERPRISE_DESC
|
||||
Sprite: BuildingSprites::5
|
||||
|
||||
Civilian: True
|
||||
Upgrades From: Industry
|
||||
|
||||
Saturation: 4 Labor
|
||||
Production: 3 Labor
|
||||
Pressure Cap: 2
|
||||
@@ -0,0 +1,10 @@
|
||||
Building: LaunchPad
|
||||
Name: #BLD_LAUNCHPAD
|
||||
Description: #BLD_LAUNCHPAD_DESC
|
||||
Sprite: BuildingSprites::13
|
||||
|
||||
Civilian: True
|
||||
Upgrades From: Base
|
||||
|
||||
Saturation: 2 Defense
|
||||
Production: 1.5 Defense
|
||||
@@ -0,0 +1,10 @@
|
||||
Building: PowerPlant
|
||||
Name: #BLD_POWERPLANT
|
||||
Description: #BLD_POWERPLANT_DESC
|
||||
Sprite: BuildingSprites::7
|
||||
|
||||
Civilian: True
|
||||
Upgrades From: Generator
|
||||
|
||||
Saturation: 2 Energy
|
||||
Production: 1.5 Energy
|
||||
@@ -0,0 +1,10 @@
|
||||
Building: TechCenter
|
||||
Name: #BLD_TECHCENTER
|
||||
Description: #BLD_TECHCENTER_DESC
|
||||
Sprite: BuildingSprites::9
|
||||
|
||||
Civilian: True
|
||||
Upgrades From: University
|
||||
|
||||
Saturation: 2 Research
|
||||
Production: 1.5 Research
|
||||
@@ -0,0 +1,20 @@
|
||||
Building: Barracks
|
||||
Name: #BLD_BARRACKS
|
||||
Description: #BLD_BARRACKS_DESC
|
||||
Sprite: Barracks
|
||||
|
||||
Category: Storage
|
||||
Build Affinity: Desert
|
||||
Maintenance Affinity: Desert
|
||||
|
||||
Size: 3x2
|
||||
|
||||
Base Cost: 100
|
||||
Tile Cost: 30
|
||||
Base Maintenance: 20
|
||||
Tile Maintenance: 5
|
||||
|
||||
Build Time: 70
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
AddDefenseReserve(+15)
|
||||
@@ -0,0 +1,22 @@
|
||||
Building: DefenseGrid
|
||||
Name: #BLD_DEFENSE_GRID
|
||||
Description: #BLD_DEFENSE_GRID_DESC
|
||||
Sprite: DefenseGrid
|
||||
|
||||
Category: Military
|
||||
|
||||
Size: 4x4
|
||||
Base Cost: 180
|
||||
Tile Cost: 10
|
||||
Base Maintenance: 50
|
||||
Tile Maintenance: 5
|
||||
Build Time: 60
|
||||
|
||||
AddStatus(HasDefenses)
|
||||
RequireNotStatus(Ringworld)
|
||||
RequireNotStatus(ArtificialPlanetoid)
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
IfNotSiege(RepeatExtended(AddTurret(Missile, Range=450, Damage=25, Reload=1, Speed=150, Tracking=6), Base = 10, Multiply Attribute = StaticDamageFactor))
|
||||
RecordBonusDPS(250)
|
||||
@@ -0,0 +1,20 @@
|
||||
Building: FTLStorage
|
||||
Name: #BLD_FTLSTORE
|
||||
Description: #BLD_FTLSTORE_DESC
|
||||
Sprite: FTLStorage
|
||||
|
||||
Category: Storage
|
||||
Build Affinity: Crystallic
|
||||
|
||||
Size: 2x3
|
||||
Base Cost: 140
|
||||
Tile Cost: 10
|
||||
Base Maintenance: 30
|
||||
Tile Maintenance: 20
|
||||
|
||||
AddFTLStorage(250)
|
||||
IfNative(FTL, AddFTLStorage(250))
|
||||
|
||||
RequireNotTrait(Sublight)
|
||||
|
||||
AI: AsFTLStorage()
|
||||
@@ -0,0 +1,23 @@
|
||||
Building: Factory
|
||||
Name: #BLD_FACTORY
|
||||
Description: #BLD_FACTORY_DESC
|
||||
Sprite: Factory
|
||||
|
||||
Category: Production
|
||||
|
||||
Size: 3x3
|
||||
Base Cost: 20
|
||||
Tile Cost: 20
|
||||
Base Maintenance: 150
|
||||
Tile Maintenance: 15
|
||||
|
||||
AddResource(Labor, 3)
|
||||
AddResourceEmpireAttribute(Labor, FactoryLaborMod)
|
||||
ModConstructionHPBonusAttribute(FactoryHPMod) #version>=147
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
ShowAttributeValue(#RESOURCE_LABOR, FactoryLaborMod, Base Amount = 3, Icon = ResourceIcon::6, Suffix = #PER_MINUTE)
|
||||
ShowAttributeValue(#CONS_HP_BONUS, FactoryHPMod, Icon = AttributeIcons::6, Multiplier = 100, Suffix = %, Hide Zero = True)
|
||||
|
||||
AI: RegisterForUse(Factory)
|
||||
@@ -0,0 +1,22 @@
|
||||
Building: Farm
|
||||
Name: #BLD_FARM
|
||||
Description: #BLD_FARM_DESC
|
||||
Sprite: Megafarm
|
||||
|
||||
Category: Resource
|
||||
Build Affinity: Forest
|
||||
|
||||
Size: 3x3
|
||||
Base Cost: 120
|
||||
Tile Cost: 20
|
||||
Base Maintenance: 100
|
||||
Tile Maintenance: 10
|
||||
|
||||
Build Time: 240
|
||||
AddPlanetResource(Soylent1)
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
RequireNotTrait(Mechanoid)
|
||||
|
||||
AI: AsCreatedResource(Soylent1)
|
||||
@@ -0,0 +1,106 @@
|
||||
Building: Forge0
|
||||
Name: #BLD_FORGE
|
||||
Description: #BLD_FORGE_DESC
|
||||
Sprite: Forge
|
||||
|
||||
Category: Production
|
||||
|
||||
Size: 3x3
|
||||
Base Cost: 250
|
||||
Base Maintenance: 50
|
||||
Labor Cost: 50
|
||||
|
||||
ConstructibleIfAttribute(ForgeCount, 0)
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
TriggerStartConstruction( ModAttribute(ForgeCount, Add, 1) )
|
||||
TriggerCancelConstruction( ModAttribute(ForgeCount, Add, -1) )
|
||||
TriggerConstructed( ModAttribute(ForgeCount, Add, -1) )
|
||||
|
||||
ModEmpireAttribute(ForgeCount, Add, 1)
|
||||
AddLaborFactor(0.25)
|
||||
|
||||
Building: Forge1
|
||||
Name: #BLD_FORGE
|
||||
Description: #BLD_FORGE_DESC
|
||||
Sprite: Forge2
|
||||
|
||||
Category: Production
|
||||
|
||||
Size: 4x3
|
||||
Base Cost: 400
|
||||
Base Maintenance: 100
|
||||
Labor Cost: 150
|
||||
|
||||
ConstructibleIfAttribute(ForgeCount, 1)
|
||||
|
||||
TriggerStartConstruction( ModAttribute(ForgeCount, Add, 1) )
|
||||
TriggerCancelConstruction( ModAttribute(ForgeCount, Add, -1) )
|
||||
TriggerConstructed( ModAttribute(ForgeCount, Add, -1) )
|
||||
|
||||
ModEmpireAttribute(ForgeCount, Add, 1)
|
||||
AddLaborFactor(0.25)
|
||||
|
||||
Building: Forge2
|
||||
Name: #BLD_FORGE
|
||||
Description: #BLD_FORGE_DESC
|
||||
Sprite: Forge3
|
||||
|
||||
Category: Production
|
||||
|
||||
Size: 4x4
|
||||
Base Cost: 600
|
||||
Base Maintenance: 150
|
||||
Labor Cost: 450
|
||||
|
||||
ConstructibleIfAttribute(ForgeCount, 2)
|
||||
|
||||
TriggerStartConstruction( ModAttribute(ForgeCount, Add, 1) )
|
||||
TriggerCancelConstruction( ModAttribute(ForgeCount, Add, -1) )
|
||||
TriggerConstructed( ModAttribute(ForgeCount, Add, -1) )
|
||||
|
||||
ModEmpireAttribute(ForgeCount, Add, 1)
|
||||
AddLaborFactor(0.25)
|
||||
|
||||
Building: Forge3
|
||||
Name: #BLD_FORGE
|
||||
Description: #BLD_FORGE_DESC
|
||||
Sprite: Forge4
|
||||
|
||||
Category: Production
|
||||
|
||||
Size: 4x5
|
||||
Base Cost: 1000
|
||||
Base Maintenance: 200
|
||||
Labor Cost: 900
|
||||
|
||||
ConstructibleIfAttribute(ForgeCount, 3)
|
||||
|
||||
TriggerStartConstruction( ModAttribute(ForgeCount, Add, 1) )
|
||||
TriggerCancelConstruction( ModAttribute(ForgeCount, Add, -1) )
|
||||
TriggerConstructed( ModAttribute(ForgeCount, Add, -1) )
|
||||
|
||||
ModEmpireAttribute(ForgeCount, Add, 1)
|
||||
AddLaborFactor(0.25)
|
||||
|
||||
Building: Forge4
|
||||
Name: #BLD_FORGE
|
||||
Description: #BLD_FORGE_DESC
|
||||
Sprite: Forge5
|
||||
|
||||
Category: Production
|
||||
|
||||
Size: 5x5
|
||||
Base Cost: 2000
|
||||
Base Maintenance: 250
|
||||
Labor Cost: 1800
|
||||
|
||||
ConstructibleIfAttributeGTE(ForgeCount, 4)
|
||||
|
||||
TriggerStartConstruction( ModAttribute(ForgeCount, Add, 1) )
|
||||
TriggerCancelConstruction( ModAttribute(ForgeCount, Add, -1) )
|
||||
TriggerConstructed( ModAttribute(ForgeCount, Add, -1) )
|
||||
|
||||
ModEmpireAttribute(ForgeCount, Add, 1)
|
||||
AddLaborFactor(0.25)
|
||||
@@ -0,0 +1,21 @@
|
||||
Building: Hydrogenator
|
||||
Name: #BLD_HYDROGENATOR
|
||||
Description: #BLD_HYDROGENATOR_DESC
|
||||
Sprite: Hydrogenator
|
||||
|
||||
Category: Resource
|
||||
Build Affinity: Oceanic
|
||||
|
||||
Size: 3x3
|
||||
Base Cost: 120
|
||||
Tile Cost: 20
|
||||
Base Maintenance: 100
|
||||
Tile Maintenance: 10
|
||||
|
||||
Build Time: 240
|
||||
AddPlanetResource(BuildingWater)
|
||||
|
||||
RequireNotTrait(Mechanoid)
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
AI: AsCreatedResource(BuildingWater)
|
||||
@@ -0,0 +1,20 @@
|
||||
Building: LargeDefenseGrid
|
||||
Name: #BLD_DEFENSE_GRID
|
||||
Description: #BLD_DEFENSE_GRID_DESC
|
||||
Sprite: DefenseGrid
|
||||
|
||||
Category: Military
|
||||
|
||||
Size: 4x4
|
||||
Base Cost: 180
|
||||
Tile Cost: 10
|
||||
Base Maintenance: 50
|
||||
Tile Maintenance: 5
|
||||
Build Time: 60
|
||||
|
||||
AddStatus(HasDefenses)
|
||||
RequireEither(RequireStatus(Ringworld), RequireStatus(ArtificialPlanetoid))
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
IfNotSiege(RepeatExtended(AddTurret(Missile, Range=1000, Damage=25, Reload=1, Speed=150, Tracking=6), Base = 20, Multiply Attribute = StaticDamageFactor))
|
||||
RecordBonusDPS(500)
|
||||
@@ -0,0 +1,30 @@
|
||||
Building: Megacity
|
||||
Name: #BLD_MEGACITY
|
||||
Description: #BLD_MEGACITY_DESC
|
||||
Sprite: Megacity
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 4x3
|
||||
Base Cost: 500
|
||||
Tile Cost: 25
|
||||
Build Time: 140
|
||||
|
||||
Base Maintenance: 100
|
||||
Tile Maintenance: 15
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
RequireUnlockTag(MegacityUnlock)
|
||||
ConstructibleIfAttribute(ForbidCityConstruction, 0)
|
||||
|
||||
ModCivResourceMult(Research, 0.25)
|
||||
ModCivResourceMult(Influence, 0.25)
|
||||
ModCivResourceMult(Energy, 0.25)
|
||||
|
||||
OnEnable(ModAttribute(MegacitiesBuilt, Add, 1))
|
||||
|
||||
AddPressureCap(9)
|
||||
ReplacesCities(16)
|
||||
|
||||
ModBuildSpeedAttribute(CityConstructRate)
|
||||
@@ -0,0 +1,26 @@
|
||||
Building: Metropolis
|
||||
Name: #BLD_METROPOLIS
|
||||
Description: #BLD_METROPOLIS_DESC
|
||||
Sprite: Metropolis
|
||||
|
||||
Category: Infrastructure
|
||||
Maintenance Affinity: Forest
|
||||
|
||||
Size: 2x2
|
||||
Base Cost: 200
|
||||
Tile Cost: 40
|
||||
Build Time: 60
|
||||
|
||||
Base Maintenance: 30
|
||||
Tile Maintenance: 15
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
AddPressureCap(5)
|
||||
ReplacesCities(5)
|
||||
|
||||
ConstructibleIfAttribute(ForbidCityConstruction, 0)
|
||||
|
||||
ModBuildSpeedAttribute(CityConstructRate)
|
||||
|
||||
AI: BuildForPressureCap(5)
|
||||
@@ -0,0 +1,18 @@
|
||||
Building: Museum
|
||||
Name: #BLD_MUSEUM
|
||||
Description: #BLD_MUSEUM_DESC
|
||||
Sprite: Museum
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Tile Cost: 20
|
||||
Build Affinity: Ice
|
||||
|
||||
Size: 3x3
|
||||
Labor Cost: 25
|
||||
|
||||
RequireUnlockTag(MuseumUnlock)
|
||||
CannotRemove()
|
||||
|
||||
AddResource(Influence, 1)
|
||||
OnEnable( AddInfluencePoints(10) )
|
||||
@@ -0,0 +1,20 @@
|
||||
Building: PlanetaryCannon
|
||||
Name: #BLD_PLANET_CANNON
|
||||
Description: #BLD_PLANET_CANNON_DESC
|
||||
Sprite: PlanetaryArtilleryCannon
|
||||
|
||||
Category: Military
|
||||
|
||||
Size: 6x2
|
||||
Base Cost: 250
|
||||
Tile Cost: 20
|
||||
Base Maintenance: 60
|
||||
Tile Maintenance: 5
|
||||
Labor Cost: 50
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
AddStatus(HasDefenses)
|
||||
|
||||
IfNotSiege( AddTurret(Artillery, Range=1500, Damage=200, Radius=50, Reload=5.0, Speed=200, Spread=0.0, FireArc=3.14, Tracking=0.2, FireTolerance=0, Hits=15) ) #version<106
|
||||
IfNotSiege( RepeatExtended(AddTurret(Artillery, Range=1500, Damage=200, Radius=50, Reload=5.0, Speed=200, Spread=0.0, FireArc=3.14, Tracking=0.2, FireTolerance=0, Hits=15), Base = 1, Multiply Attribute = StaticDamageFactor) ) #version>=106
|
||||
@@ -0,0 +1,23 @@
|
||||
Building: PlanetaryEngine
|
||||
Name: #BLD_PLANET_ENGINE
|
||||
Description: #BLD_PLANET_ENGINE_DESC
|
||||
Sprite: PlanetThruster
|
||||
|
||||
Category: Military
|
||||
|
||||
Size: 5x5
|
||||
|
||||
Base Cost: 500
|
||||
Tile Cost: 20
|
||||
|
||||
Build Affinity: Oceanic
|
||||
Maintenance Affinity: Oceanic
|
||||
|
||||
Base Maintenance: 70
|
||||
Tile Maintenance: 5
|
||||
|
||||
Build Time: 300
|
||||
|
||||
RequireUnlockTag(PlanetaryEngineUnlock)
|
||||
RequireNotStatus(Ringworld)
|
||||
AddAccelerationBonus(0.5)
|
||||
@@ -0,0 +1,20 @@
|
||||
Building: Refinery
|
||||
Name: #BLD_REFINERY
|
||||
Description: #BLD_REFINERY_DESC
|
||||
Sprite: Refinery
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 1x2
|
||||
Base Cost: 200
|
||||
Tile Cost: 50
|
||||
Build Time: 150
|
||||
|
||||
Base Maintenance: 30
|
||||
Tile Maintenance: 20
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
RequireNativePressure(Allow Money = False)
|
||||
GiveNativePressure(1, Allow Money = False)
|
||||
AddPressureCap(-1)
|
||||
@@ -0,0 +1,23 @@
|
||||
Building: ResearchComplex
|
||||
Name: #BLD_RESEARCHCOMPLEX
|
||||
Description: #BLD_RESEARCHCOMPLEX_DESC
|
||||
Sprite: ResearchComplex
|
||||
|
||||
Category: Production
|
||||
Build Affinity: Crystallic
|
||||
Maintenance Affinity: Crystallic
|
||||
|
||||
Size: 2x2
|
||||
Base Cost: 200
|
||||
Tile Cost: 25
|
||||
Base Maintenance: 100
|
||||
Tile Maintenance: 15
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
AddResource(Research, 1)
|
||||
AddPressure(Research, 1)
|
||||
|
||||
ModEmpireAttribute(ResearchLabsBuilt, Add, 1)
|
||||
|
||||
AddPressureEmpireAttribute(Research, ResearchComplexExtraPressure) #version>=147
|
||||
@@ -0,0 +1,18 @@
|
||||
Building: SpaceElevator
|
||||
Name: #BLD_SPACE_ELEVATOR
|
||||
Description: #BLD_SPACE_ELEVATOR_DESC
|
||||
Sprite: SpaceElevator
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 2x5
|
||||
Base Cost: 750
|
||||
Build Time: 120
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
ModSupportBuildSpeed(+0.4)
|
||||
IfSystemFlag(CommerceStation, AddResource(Money, 1.6)) #version<125
|
||||
|
||||
AddPlanetGfxFlag(SpaceElevator)
|
||||
ConflictBuilding(SpaceElevator)
|
||||
@@ -0,0 +1,21 @@
|
||||
Building: Warehouse
|
||||
Name: #BLD_WAREHOUSE
|
||||
Description: #BLD_WAREHOUSE_DESC
|
||||
Sprite: Warehouse
|
||||
|
||||
Category: Storage
|
||||
Build Affinity: Desert
|
||||
Maintenance Affinity: Desert
|
||||
|
||||
Size: 2x2
|
||||
Base Cost: 100
|
||||
Tile Cost: 50
|
||||
Base Maintenance: 25
|
||||
Tile Maintenance: 20
|
||||
Build Time: 80
|
||||
|
||||
RequireNotTrait(Ancient)
|
||||
|
||||
AddLaborStorage(100)
|
||||
|
||||
AI: RegisterForUse(LaborStorage)
|
||||
@@ -0,0 +1,16 @@
|
||||
Building: PlanetoidLv1
|
||||
Name: #BLD_PLANETOID_LV1
|
||||
Description: #BLD_PLANETOID_LV1_DESC
|
||||
Sprite: FakeLV1
|
||||
|
||||
Category: Resource
|
||||
|
||||
Size: 4x4
|
||||
Base Cost: 1000
|
||||
|
||||
Build Time: 240
|
||||
|
||||
ConsumeCargo(Ore, 2000)
|
||||
|
||||
RequireStatus(ArtificialPlanetoid)
|
||||
AddDummyResource(Titanium, 1)
|
||||
@@ -0,0 +1,16 @@
|
||||
Building: PlanetoidLv2
|
||||
Name: #BLD_PLANETOID_LV2
|
||||
Description: #BLD_PLANETOID_LV2_DESC
|
||||
Sprite: FakeLV2
|
||||
|
||||
Category: Resource
|
||||
|
||||
Size: 4x8
|
||||
Base Cost: 1500
|
||||
|
||||
Build Time: 360
|
||||
|
||||
ConsumeCargo(Ore, 4000)
|
||||
|
||||
RequireStatus(ArtificialPlanetoid)
|
||||
AddDummyResource(Neutronium, 1)
|
||||
@@ -0,0 +1,27 @@
|
||||
Building: Spire
|
||||
Name: #BLD_SPIRE
|
||||
Description: #BLD_SPIRE_DESC
|
||||
Sprite: Spire
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 3x10
|
||||
|
||||
Base Cost: 1000
|
||||
Build Time: 180
|
||||
|
||||
RequireUnlockTag(SpireUnlock)
|
||||
ConstructibleIfAttribute(ForbidCityConstruction, 0)
|
||||
|
||||
ReplacesCities(20)
|
||||
|
||||
ConsumeCargo(Ore, 2500)
|
||||
|
||||
ModExistingPressure(Money, +3)
|
||||
ModExistingPressure(Labor, +3)
|
||||
ModExistingPressure(Research, +3)
|
||||
ModExistingPressure(Influence, +3)
|
||||
ModExistingPressure(Defense, +3)
|
||||
ModExistingPressure(Energy, +3)
|
||||
|
||||
AddPlanetGfxFlag(SpaceElevator)
|
||||
@@ -0,0 +1,10 @@
|
||||
Building: AncientCannon
|
||||
Name: #BLD_ANCIENT_CANNON
|
||||
Description: #BLD_ANCIENT_CANNON_DESC
|
||||
Sprite: PlanetaryArtilleryCannon
|
||||
|
||||
Size: 6x2
|
||||
|
||||
CannotBuildManually()
|
||||
|
||||
IfNotSiege( AddTurret(Artillery, Range=1500, Damage=100, Radius=50, Reload=10.0, Speed=200, Spread=0.0, FireArc=3.14, Tracking=0.2, FireTolerance=0, Hits=15) )
|
||||
@@ -0,0 +1,9 @@
|
||||
Building: AncientRuins
|
||||
Name: #BLD_ANCIENT_RUINS
|
||||
Description: #BLD_ANCIENT_RUINS_DESC
|
||||
Sprite: AncientRuin
|
||||
|
||||
Size: 4x3
|
||||
|
||||
CannotBuildManually()
|
||||
CannotRemove()
|
||||
@@ -0,0 +1,30 @@
|
||||
Building: Altar
|
||||
Name: #BLD_ALTAR
|
||||
Description: #BLD_ALTAR_DESC
|
||||
Sprite: Altar
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Base Cost: 300
|
||||
Build Time: 60
|
||||
|
||||
Size: 4x4
|
||||
|
||||
RequireTrait(Devout)
|
||||
CannotRemove()
|
||||
|
||||
ConflictBuilding(Altar)
|
||||
OnEnable(TerraformTo(Altar))
|
||||
|
||||
RemoveAllStatus(GodlessPlanet)
|
||||
|
||||
IfLevel(0, ModEmpireAttribute(AltarSupportedPopulation, Add, 10), Exact = True)
|
||||
IfLevel(1, ModEmpireAttribute(AltarSupportedPopulation, Add, 25), Exact = True)
|
||||
IfLevel(2, ModEmpireAttribute(AltarSupportedPopulation, Add, 50), Exact = True)
|
||||
IfLevel(3, ModEmpireAttribute(AltarSupportedPopulation, Add, 100), Exact = True)
|
||||
IfLevel(4, ModEmpireAttribute(AltarSupportedPopulation, Add, 200), Exact = True)
|
||||
IfLevel(5, ModEmpireAttribute(AltarSupportedPopulation, Add, 500), Exact = True)
|
||||
|
||||
ShowLevelValue(#ALTAR_SUPPORTS, 10 / 25 / 50 / 100 / 200 / 500, Icon = ResourceIconsSmall::53)
|
||||
ShowAttributeValue(#ALTAR_SUPPORTED_CURRENT, AltarSupportedPopulation, Icon = ResourceIcon::8)
|
||||
ShowTotalPopulation(#ALTAR_TOTAL_POPULATION, Icon = ResourceIcon::8)
|
||||
@@ -0,0 +1,19 @@
|
||||
Building: FTLBreeder
|
||||
Name: #BLD_FTLBREEDER
|
||||
Description: #BLD_FTLBREEDER_DESC
|
||||
Sprite: FTLStorage * #ff8080
|
||||
|
||||
Category: Production
|
||||
|
||||
Size: 2x3
|
||||
Base Cost: 300
|
||||
Tile Cost: 40
|
||||
Base Maintenance: 80
|
||||
Tile Maintenance: 30
|
||||
|
||||
RequireTrait(Mechanoid)
|
||||
|
||||
AddFTLIncome(0.35)
|
||||
TriggerConstructed(LosePopulation(1))
|
||||
|
||||
ShowFTLValue(0.35, Suffix = #PER_SECOND)
|
||||
@@ -0,0 +1,16 @@
|
||||
Building: MotherStalk
|
||||
Name: #BLD_MOTHER_STALK
|
||||
Description: #BLD_MOTHER_STALK_DESC
|
||||
Sprite: Stalk
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Size: 6x6
|
||||
CannotBuildManually()
|
||||
CannotRemove()
|
||||
|
||||
ModPressureCapMult(+1.25)
|
||||
AddResource(Labor, 3)
|
||||
AddResourceEmpireAttribute(Labor, FactoryLaborMod)
|
||||
|
||||
ShowAttributeValue(#RESOURCE_LABOR, FactoryLaborMod, Base Amount = 3, Icon = ResourceIcon::6, Suffix = #PER_MINUTE)
|
||||
@@ -0,0 +1,18 @@
|
||||
Building: Stalk
|
||||
Name: #BLD_STALK
|
||||
Description: #BLD_STALK_DESC
|
||||
Sprite: Stalk
|
||||
|
||||
Category: Infrastructure
|
||||
|
||||
Base Cost: 300
|
||||
Build Time: 80
|
||||
|
||||
Size: 4x4
|
||||
RequireTrait(Verdant)
|
||||
ModPressureCapMult(+1.25)
|
||||
AddPressureCap(3)
|
||||
CannotRemove()
|
||||
|
||||
ConflictBuilding(Stalk, Hide = False)
|
||||
ConflictBuilding(MotherStalk, Hide = False)
|
||||
Reference in New Issue
Block a user