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 = [
        EffectsGroup
            scope = Object id = Source.SystemID
            effects = [
                AddStarlanes endpoint = MinimumNumberOf
                number = 1
                sortkey = DirectDistanceBetween object = Source.ID object = LocalCandidate.ID
                condition = And [
                    System
                    CanAddStarlanesTo condition = Source
                ]
                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/common/base_prod.macros"