BuildingType
    name = "BLD_ART_BLACK_HOLE"
    description = "BLD_ART_BLACK_HOLE_DESC"
    buildcost = 45 * [[BUILDING_COST_MULTIPLIER]]
    buildtime = 6
    location = And [
        Planet
        Not Contains Building name = "BLD_ART_BLACK_HOLE"
        OwnedBy empire = Source.Owner
        Star type = Red
    ]
    EnqueueLocation = [[ENQUEUE_BUILD_ONE_PER_PLANET]]
    effectsgroups = [
        EffectsGroup
            scope = And [
                Object id = Source.SystemID
                System
            ]
            activation = Star type = Red
            stackinggroup = "ART_BLACK_HOLE"
            effects = [
                SetStarType type = BlackHole
                GenerateSitRepMessage
                    message = "EFFECT_BLACKHOLE"
                    label = "EFFECT_BLACKHOLE_LABEL"
                    icon = "icons/building/blackhole.png"
                    parameters = tag = "system" data = Source.SystemID
                    empire = Source.Owner
                ]

        EffectsGroup
            scope = Source
            effects = Destroy
    ]
    icon = "icons/building/blackhole.png"

#include "/scripting/common/enqueue.macros"
#include "/scripting/common/base_prod.macros"
