Buildings.txt

From FreeOrionWiki

Jump to: navigation, search

BuildingType
    name = "BLD_IMPERIAL_PALACE"
    description = "BLD_IMPERIAL_PALACE_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope = Contains Source
            activation = Source
            effects = SetMaxConstruction Target.MaxConstruction + 2
    graphic = ""

BuildingType
    name = "BLD_OBSERVATORY"
    description = "BLD_OBSERVATORY_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope = Contains Source
            activation = Source
            effects = SetMaxStealth Target.MaxStealth - 10
        EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                WithinDistance distance = 200 condition = Source
            ]
            activation = Source
            effects = SetMaxDetection Target.MaxDetection + 10
        ]
    graphic = ""

BuildingType
    name = "BLD_SHIPYARD_BASE"
    description = "BLD_SHIPYARD_BASE_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope = Contains Source
            activation = Source
            effects = SetMaxConstruction Target.MaxConstruction + 2
    graphic = ""

BuildingType
    name = "BLD_BIOTERROR_LAB"
    description = "BLD_BIOTERROR_LAB_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope = Contains Source
            activation = Source
            effects = SetMaxHealth Target.MaxHealth - 2
    graphic = "icons/building/bioterror_lab.png"

BuildingType
    name = "BLD_BIOTERROR_PROJECTOR"
    description = "BLD_BIOTERROR_PROJECTOR_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                WithinStarlaneJumps 2 Source
            ]
            activation = Source
            stackinggroup = "BIOTERROR_PROJECTOR_SELF"
            effects = SetMaxHealth Target.MaxHealth - 1

        EffectsGroup
            scope = And [
                Planet
                Not OwnedBy TheEmpire Source.Owner
                WithinStarlaneJumps 2 Source
            ]
            activation = And [
                OwnerHasTech "GRO_BIOTERROR"
                Number 1 999 And [
                    Building name = "BLD_BIOTERROR_LAB"
                    OwnedExclusivelyBy TheEmpire Source.Owner
                ]
            ]
            stackinggroup = "BIOTERROR_PROJECTOR_OTHER"
            effects = SetMaxHealth Target.MaxHealth - 4
    ]            
    graphic = "icons/building/bioterror_projector.png"

BuildingType
    name = "BLD_AUTOLAB_CONTROL"
    description = "BLD_AUTOLAB_CONTROL_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                PrimaryFocus Research
            ]
            activation = Source
            stackinggroup = "AUTOLAB_STACK_PRIMARY"
            effects = [ 
                SetMaxResearch Target.MaxResearch + 2
                SetMaxHealth Target.MaxHealth - 2
            ]

         EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                SecondaryFocus Research
            ]
            activation = Source
            stackinggroup = "AUTOLAB_STACK_SECONDARY"
            effects = [
                SetMaxResearch Target.MaxResearch + 1
                SetMaxHealth Target.MaxHealth - 1
            ]
    ]            
    graphic = "icons/building/autolab_control_centre.png"

BuildingType
    name = "BLD_AUTOFACTORY_CONTROL"
    description = "BLD_AUTOFACTORY_CONTROL_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                PrimaryFocus Industry
            ]
            activation = Source
            stackinggroup = "AUTOFACTORY_STACK_PRIMARY"
            effects = SetMaxIndustry Target.MaxIndustry + 2

         EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                SecondaryFocus Industry
            ]
            activation = Source
            stackinggroup = "AUTOFACTORY_STACK_SECONDARY"
            effects = SetMaxIndustry Target.MaxIndustry + 1
    ]            
    graphic = "icons/building/autofactory_control_centre.png"

BuildingType
    name = "BLD_THEOREM_PROVER"
    description = "BLD_THEOREM_PROVER_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                PrimaryFocus Research
            ]
            activation = OwnerHasTech "LRN_THEORM_PROVER"
            stackinggroup = "THEORM_PROVER_STACK_PRIMARY"
            effects = SetMaxResearch Target.MaxResearch + 5

         EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                SecondaryFocus Research
            ]
            activation = OwnerHasTech "LRN_THEORM_PROVER"
            stackinggroup = "THEORM_PROVER_STACK_SECONDARY"
            effects = SetMaxResearch Target.MaxResearch + 2
    ]            
    graphic = ""


BuildingType
    name = "BLD_LIGHTHOUSE"
    description = "BLD_LIGHTHOUSE_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                WithinDistance distance = 200 condition = Source
            ]
            activation = Source
            stackinggroup = "LIGHTHOUSE_STACK"
            effects = SetMaxSupply Target.MaxSupply + 1
    graphic = ""

BuildingType
    name = "BLD_HEAVY_MINE_PROCESSOR"
    description = "BLD_HEAVY_MINE_PROCESSOR_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope = And [
                PrimaryFocus Mining
                Planet type = [Barren Toxic Inferno Radiated]
                OwnedExclusivelyBy TheEmpire Source.Owner
                WithinDistance distance = 100 condition = Source
            ]
            activation = OwnerHasTech "PRO_HEAVY_MINING_I"
            stackinggroup = "HEAVY_MINE_PROCESSOR_STACK"
            effects = SetMaxMining Target.MaxMining + 5

        EffectsGroup
            scope = Contains Source
            activation = Source
            stackinggroup = "HEAVY_MINE_PROCESSOR_LOCAL_STACK"
            effects = [
                SetMaxFarming Target.MaxFarming - 5
                SetMaxMining Target.MaxMining + 2
            ]
    ]
    graphic = "icons/building/heavy_mining_processor.png"

BuildingType
    name = "BLD_INDUSTRY_CENTRE"
    description = "BLD_INDUSTRY_CENTRE_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                PrimaryFocus Industry
                WithinDistance distance = 100 condition = Source
            ]
            activation = And [
                OwnerHasTech "PRO_INDUSTRY_CENTRE_I"
                Not OwnerHasTech "PRO_INDUSTRY_CENTRE_II"
            ]
            stackinggroup = "INDUSTRY_CENTRE_STACK"
            effects = SetMaxIndustry Target.MaxIndustry + 5

        EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                PrimaryFocus Industry
                WithinDistance distance = 200 condition = Source
            ]
            activation = And [
                OwnerHasTech "PRO_INDUSTRY_CENTRE_II"
                Not OwnerHasTech "PRO_INDUSTRY_CENTRE_III"
            ]
            stackinggroup = "INDUSTRY_CENTRE_STACK"
            effects = SetMaxIndustry Target.MaxIndustry + 6

        EffectsGroup
            scope = And [
                WithinDistance distance = 300 condition = Source
                OwnedExclusivelyBy TheEmpire Source.Owner
                PrimaryFocus Industry
            ]
            activation = OwnerHasTech "PRO_INDUSTRY_CENTRE_III"
            stackinggroup = "INDUSTRY_CENTRE_STACK"
            effects = SetMaxIndustry Target.MaxIndustry + 7
    ]
    graphic = ""

BuildingType
    name = "BLD_ASTEROID_MINE"
    description = "BLD_ASTEROID_MINE_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 1
    location = And [
        ContainedBy Contains Planet Asteroids
        OwnedBy TheEmpire Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = And [
                ContainedBy And [
                    Contains Source
                    Contains Planet Asteroids
                ]
                PrimaryFocus Mining
            ]
            activation = OwnerHasTech "PRO_ASTEROID_MINE"
            stackinggroup = "ASTEROID_LOCAL_EFFECT"
            effects = SetMaxMining Target.MaxMining + 4

        EffectsGroup
            scope = And [
                ContainedBy And [
                    Contains Source
                    Contains Planet Asteroids
                ]
                PrimaryFocus Mining
            ]
            activation = OwnerHasTech "PRO_ASTEROID_MINE_II"
            stackinggroup = "ASTEROID_LOCAL_EFFECT"
            effects = SetMaxMining Target.MaxMining + 8

    ]
    graphic = ""

BuildingType
    name = "BLD_MEGALITH"
    description = "BLD_MEGALITH_DESC"
    buildcost = 30
    buildtime = 5
    maintenancecost = 20
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope =
                Contains condition =
                    Source
            activation =
                CurrentConstruction low = 30 high = 999
            stackinggroup = "MEGALITH_LOCAL_EFFECT"
            effects = [
                SetMaxPopulation value = Target.MaxPopulation + 1
                SetMaxTrade value = Target.MaxTrade + 1
            ]
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    CurrentConstruction low = 30 high = 999
                    WithinStarlaneJumps jumps = 1 condition =
                        Source
                ]
            activation =
                Source
            stackinggroup = "MEGALITH_NEIGHBOUR_EFFECT"
            effects =
                SetMaxConstruction value = Target.MaxConstruction + 3
    ]
    graphic = "icons/building/megalith.png"

BuildingType
    name = "BLD_COLLECTIVE_NET"
    description = "BLD_COLLECTIVE_NET_DESC"
    buildcost = 100
    buildtime = 7
    maintenancecost = 40
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    PrimaryFocus focus = Research
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                ]
            activation =
                Source
            stackinggroup = "BLD_COLLECTIVE_NET_EFFECTS"
            effects = [
                SetMaxResearch value = Target.MaxResearch + 3
                SetMaxTrade value = Target.MaxTrade + 3
                SetMaxIndustry value = Target.MaxIndustry - 3
                SetMaxFarming value = Target.MaxFarming - 3
            ]
    graphic = ""

BuildingType
    name = "BLD_GENOME_BANK"
    description = "BLD_GENOME_BANK_DESC"
    buildcost = 100
    buildtime = 10
    maintenancecost = 40
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    PopulationCenter
                ]
            activation =
                Source
            stackinggroup = "BLD_GENOME_BANK_EFFECTS"
            effects = [
                SetMaxHealth value = Target.MaxHealth + 2
                SetMaxFarming value = Target.MaxFarming + 1
                SetMaxResearch value = Target.MaxResearch + 1
            ]
    graphic = ""

BuildingType
    name = "BLD_GRAVITY_WELLS"
    description = "BLD_GRAVITY_WELLS_DESC"
    buildcost = 300
    buildtime = 10
    maintenancecost = 80
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    WithinStarlaneJumps jumps = 0 condition =
                        Source
                ]
            activation =
                Source
            stackinggroup = "BLD_GRAVITY_WELLS_EFFECT"
            effects = [
                SetMaxIndustry value = Target.MaxIndustry + 2
                SetMaxConstruction value = Target.MaxConstruction + 2
                SetMaxTrade value = Target.MaxTrade + 1
            ]
    graphic = ""

BuildingType
    name = "BLD_PLANET_RING"
    description = "BLD_PLANET_RING_DESC"
    buildcost = 500
    buildtime = 10
    maintenancecost = 100
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                Contains condition =
                    Source
            activation =
                Source
            stackinggroup = "BLD_PLANET_RING_EFFECT"
            effects = [
                SetMaxPopulation value = Target.MaxPopulation + 3
                SetMaxConstruction value = Target.MaxConstruction + 1
                SetMaxTrade value = Target.MaxTrade + 3
                SetMaxFarming value = Target.MaxFarming - 5
            ]
    graphic = ""

BuildingType
    name = "BLD_SPACE_ELEVATOR"
    description = "BLD_SPACE_ELEVATOR_DESC"
    buildcost = 100
    buildtime = 10
    maintenancecost = 80
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    Or [
                        PrimaryFocus focus = Trade
                        SecondaryFocus focus = Trade
                    ]
                    WithinStarlaneJumps jumps = 0 condition =
                        Source
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    PopulationCenter
                ]
            activation =
                Source
            stackinggroup = "BLD_SPACE_ELEVATOR_EFFECT"
            effects =
                SetMaxTrade value = Target.MaxTrade + 2
    graphic = ""

BuildingType
    name = "BLD_COMM_UNION"
    description = "BLD_COMM_UNION_DESC"
    buildcost = 300
    buildtime = 20
    maintenancecost = 40
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    PrimaryFocus focus = Trade
                ]
            activation =
                Source
            stackinggroup = "BLD_COMM_UNION_EFFECT"
            effects =
                SetMaxTrade value = Target.MaxTrade + 5
    graphic = ""

BuildingType
    name = "BLD_DEEP_GREEN"
    description = "BLD_DEEP_GREEN_DESC"
    buildcost = 100
    buildtime = 10
    maintenancecost = 60
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                ]
            activation =
                Source
            stackinggroup = "BLD_DEEP_GREEN_EFFECT"
            effects =
                SetMaxTrade value = Target.MaxTrade + 2
    graphic = ""

BuildingType
    name = "BLD_PARADISE"
    description = "BLD_PARADISE_DESC"
    buildcost = 100
    buildtime = 10
    maintenancecost = 0
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope =
                Contains condition =
                    Source
            activation =
                PrimaryFocus focus = Trade
            stackinggroup = "BLD_PARADISE_SELF_EFFECT"
            effects = [
                SetMaxTrade value = Target.MaxTrade + 5
                SetMaxMining value = Target.MaxMining - 5
                SetMaxIndustry value = Target.MaxIndustry - 5
            ]
        EffectsGroup
            scope =
                And [
                    WithinStarlaneJumps jumps = 1 condition =
                        Source
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    PopulationCenter
                ]
            activation =
                Source
            stackinggroup = "BLD_PARADISE_AREA_EFFECT"
            effects =
                SetMaxHealth value = Target.MaxHealth + 2
    ]
    graphic = ""

BuildingType
    name = "BLD_CADUCEAN"
    description = "BLD_CADUCEAN_DESC"
    buildcost = 1
    buildtime = 1
    maintenancecost = 60
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope = And [
                OwnedExclusivelyBy TheEmpire Source.Owner
                PopulationCenter
            ]
            activation = Source
            stackinggroup = "BLD_CADUCEAN"
            effects = SetMaxHealth value = Target.MaxHealth + 2
    graphic = "icons/building/the_caducean_institute.png"

BuildingType
    name = "BLD_LIVING_PLANET"
    description = "BLD_LIVING_PLANET_DESC"
    buildcost = 50
    buildtime = 15
    maintenancecost = 0
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                ]
            activation =
                PrimaryFocus focus = Research
            stackinggroup = "LIVING_PLANET_EMPIRE_EFFECT"
            effects =
                SetMaxResearch value = Target.MaxResearch + 2
        EffectsGroup
            scope =
                Contains condition =
                    Source
            activation =
                Source
            stackinggroup = "LIVING_PLANET_SELF_EFFECT"
            effects = [
                SetMaxHealth value = Target.MaxHealth + 5
                SetMaxFarming value = Target.MaxFarming + 5
            ]
        EffectsGroup
            scope =
                Contains condition =
                    Source
            activation =
                Source
            effects = [
                SetMaxIndustry value = 0
                SetMaxMining value = 0
            ]
    ]
    graphic = ""

BuildingType
    name = "BLD_ORBITAL_GARDENS"
    description = "BLD_ORBITAL_GARDENS_DESC"
    buildcost = 250
    buildtime = 10
    maintenancecost = 90
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope =
                Contains condition =
                    Source
            activation =
                PrimaryFocus focus = Trade
            stackinggroup = "BLD_ORBITAL_GARDENS_EFFECT"
            effects = [
                SetMaxTrade value = Target.MaxTrade + 5
                SetMaxFarming value = Target.MaxFarming + 2
            ]
        EffectsGroup
            scope =
                And [
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    PopulationCenter
                ]
            activation =
                Source
            stackinggroup = "BLD_ORBITAL_GARDENS_EFFECT"
            effects =
                SetMaxFarming value = Target.MaxFarming + 2
    ]
    graphic = ""

BuildingType
    name = "BLD_ENCLAVE_VOID"
    description = "BLD_ENCLAVE_VOID"
    buildcost = 250
    buildtime = 15
    maintenancecost = 40
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    Or [
                        PrimaryFocus focus = Research
                        SecondaryFocus focus = Research
                    ]
                ]
            activation =
                PrimaryFocus focus = Research
            stackinggroup = "BLD_ENCLAVE_VOID_EMPIRE_EFFECT"
            effects =
                SetMaxResearch value = Target.MaxResearch + 5
        EffectsGroup
            scope =
                Contains condition =
                    Source
            activation =
                MaxIndustry low = 10 high = 999
            effects =
                SetMaxIndustry value = 10
        EffectsGroup
            scope =
                Contains condition =
                    Source
            activation =
                MaxMining low = 10 high = 999
            effects =
                SetMaxMining value = 10
    ]
    graphic = ""

BuildingType
    name = "BLD_LOOKING_GLASS"
    description = "BLD_LOOKING_GLASS_DESC"
    buildcost = 300
    buildtime = 10
    maintenancecost = 200
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    Or [
                        PrimaryFocus focus = Research
                        SecondaryFocus focus = Research
                    ]
                ]
            activation =
                PrimaryFocus focus = Research
            stackinggroup = "BLD_LOOKING_GLASS_RESEARCH_EFFECT"
            effects =
                SetMaxResearch value = Target.MaxResearch + 3
        EffectsGroup
            scope =
                And [
                    Contains condition =
                        Source
                    Or [
                        PrimaryFocus focus = Trade
                        SecondaryFocus focus = Trade
                    ]
                ]
            activation =
                Source
            stackinggroup = "BLD_LOOKING_GLASS_TRADE_EFFECT"
            effects =
                SetMaxTrade value = Target.MaxTrade + 5
    ]
    graphic = ""

BuildingType
    name = "BLD_MONUMENT_EXODUS"
    description = "BLD_MONUMENT_EXODUS_DESC"
    buildcost = 50
    buildtime = 10
    maintenancecost = 5
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    CurrentPopulation low = 0 high = 5
                ]
            activation =
                Source
            stackinggroup = "BLD_MONUMENT_EXODUS_EFFECT"
            effects =
                SetCurrentHealth value = Target.MaxHealth + 10
    graphic = "icons/building/monument_to_exodus.png"

BuildingType
    name = "BLD_PSICORP"
    description = "BLD_PSICORP_DESC"
    buildcost = 100
    buildtime = 20
    maintenancecost = 100
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    PrimaryFocus focus = Research
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                ]
            activation =
                Source
            stackinggroup = "BLD_PSICORP_EFFECT"
            effects =
                SetMaxResearch value = Target.MaxResearch + Target.CurrentPopulation / 5
    graphic = ""

BuildingType
    name = "BLD_ART_BLACK_HOLE"
    description = "BLD_ART_BLACK_HOLE_DESC"
    buildcost = 400
    buildtime = 10
    maintenancecost = 200
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    PrimaryFocus focus = Industry
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    WithinStarlaneJumps jumps = 1 condition =
                        Source
                ]
            activation =
                Source
            stackinggroup = "BLD_ART_BLACK_HOLE_EFFECT"
            effects =
                SetMaxIndustry value = Target.MaxIndustry + 6
    graphic = ""

BuildingType
    name = "BLD_HYPER_DAM"
    description = "BLD_HYPER_DAM_DESC"
    buildcost = 500
    buildtime = 10
    maintenancecost = 150
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups = [
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    PrimaryFocus focus = Industry
                    OwnedExclusivelyBy affiliation = TheEmpire empire = Source.Owner
                    WithinDistance distance = 50 condition =
                        Source
                ]
            activation =
                Source
            stackinggroup = "BLD_HYPER_DAM_BONUS"
            effects =
                SetMaxIndustry value = Target.MaxIndustry + 10
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    Not
                        Star type = BlackHole
                    WithinDistance distance = 30 condition =
                        Source
                ]
            activation =
                Source
            effects =
                SetMaxHealth value = Target.MaxHealth - 5
    ]
    graphic = ""

BuildingType
    name = "BLD_MINI_SUN"
    description = "BLD_MINI_SUN_DESC"
    buildcost = 100
    buildtime = 10
    maintenancecost = 120
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                And [
                    PopulationCenter
                    WithinStarlaneJumps jumps = 0 condition =
                        Source
                ]
            activation =
                Source
            stackinggroup = "BLD_MINI_SUN_EFFECT"
            effects =
                SetMaxIndustry value = Target.MaxIndustry + 4
    graphic = "icons/building/miniature_sun.png"

BuildingType
    name = "BLD_ECON_SINKHOLE"
    description = "BLD_ECON_SINKHOLE_DESC"
    buildcost = 100
    buildtime = 10
    maintenancecost = 50
    location = OwnedBy TheEmpire Source.Owner
    effectsgroups =
        EffectsGroup
            scope =
                WithinDistance distance = 75 condition =
                    Source
            activation =
                Source
            stackinggroup = "BLD_ECON_SINKHOLE_EFFECT"
            effects =
                SetMaxTrade value = Target.MaxTrade - 10
    graphic = "icons/building/economic_sinkhole.png"
Personal tools