BuildingType
    name = "BLD_PLANET_BEACON"
    description = "BLD_PLANET_BEACON_DESC"
    buildcost = 1
    buildtime = 1
    location = AND [
        Not Contains Building name = "BLD_PLANET_BEACON"
        OwnedBy empire = Source.Owner
    ]
    EnqueueLocation = [[ENQUEUE_BUILD_ONE_PER_PLANET]]
    effectsgroups =
        EffectsGroup
            scope = Source
            activation = WithinStarlaneJumps jumps = 0 condition = And [
                Planet
                Focus type = "FOCUS_PLANET_DRIVE"
                ]
            effects = Destroy
    icon = "icons/building/beacon.png"

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