BuildingType
    name = "BLD_STARLANE_BORE"
    description = "BLD_STARLANE_BORE_DESC"
    buildcost = (200 + 50 * Target.System.NumStarlanes) * [[BUILDING_COST_MULTIPLIER]]
    buildtime = 1 + Target.System.NumStarlanes
    location = Planet
    effectsgroups = [
        [[SPECIES_LIKES_OR_DISLIKES_BUILDING_STABILITY_EFFECTS]]

        EffectsGroup
            scope = Object id = Source.SystemID
            activation = Not [[ BORE_POSSIBLE ]]
            effects = [
                GenerateSitRepMessage
                    message = "EFFECT_STARLANE_BORE_FAILED"
                    label = "EFFECT_STARLANE_BORE_LABEL"
                    icon = "icons/tech/n-dimensional_structures.png"
                    parameters = tag = "system" data = Target.ID
                    empire = Source.Owner
            ]

        EffectsGroup
            scope = Object id = Source.SystemID
            activation = [[ BORE_POSSIBLE ]]
            effects = [
                [[ DO_STARLANE_BORE ]]
                GenerateSitRepMessage
                    message = "EFFECT_STARLANE_BORE"
                    label = "EFFECT_STARLANE_BORE_LABEL"
                    icon = "icons/tech/n-dimensional_structures.png"
                    parameters = tag = "system" data = Target.ID
                    empire = Source.Owner
            ]

        EffectsGroup
            scope = Source
            effects = Destroy
    ]
    icon = "icons/tech/n-dimensional_structures.png"

#include "/scripting/buildings/buildings.macros"
#include "/scripting/macros/base_prod.macros"