BuildingType
    name = "BLD_SHIPYARD_CON_ADV_ENGINE"
    description = "BLD_SHIPYARD_CON_ADV_ENGINE_DESC"
    buildcost = 500 * [[BUILDING_COST_MULTIPLIER]]
    buildtime = 5
    tags = "ORBITAL"
    location = And [
        Planet
        Not Contains Building name = "BLD_SHIPYARD_CON_ADV_ENGINE"
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        Or  [
            Contains And [
                Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
                OwnedBy empire = Source.Owner
                ]
            Enqueued type = Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
            ]
        OwnedBy empire = Source.Owner
    ]
    EnqueueLocation = [[ENQUEUE_BUILD_ONE_PER_PLANET]]
    icon = "icons/building/shipyard-4.png"

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