BuildingType
    name = "BLD_STARLANE_NEXUS"
    description = "BLD_STARLANE_NEXUS_DESC"
    buildcost = 1000 * [[BUILDING_COST_MULTIPLIER]]
    buildtime = 8
    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_NEXUS_FAILED"
                    label = "EFFECT_STARLANE_NEXUS_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 ]]
            // Maximum is 11 , since they must be at least 30 degrees apart
            // (very theoretical 12, if it triggers in the experimentor system while it has no links)
            effects = [
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                [[ DO_STARLANE_BORE ]]
                GenerateSitRepMessage
                    message = "EFFECT_STARLANE_NEXUS"
                    label = "EFFECT_STARLANE_NEXUS_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/macros/base_prod.macros"
#include "/scripting/buildings/buildings.macros"
#include "/scripting/macros/priorities.macros"
