BuildingType
    name = "BLD_GAIA_TRANS"
    description = "BLD_GAIA_TRANS_DESC"
    buildcost = 200 * Target.HabitableSize * [[BUILDING_COST_MULTIPLIER]]
    buildtime = 12
    location = And [
        Planet
        OwnedBy empire = Source.Owner
        Planet environment = Good
        Not Planet type = [Asteroids GasGiant]
        Not HasSpecial name = "GAIA_SPECIAL"
        // No terraforming buildings contained or enqueued (neither popular nor any of the targeted ones)
        Not Contains Building name = "BLD_TERRAFORM_BEST"
        Not Enqueued type = Building name = "BLD_TERRAFORM_BEST"
        [[FOR_ALL_TERRAFORM_PLANET_TYPES(Not Contains Building name = "BLD_TERRAFORM_,")]]
        [[FOR_ALL_TERRAFORM_PLANET_TYPES(Not Enqueued type = Building name = "BLD_TERRAFORM_,")]]
    ]
    enqueuelocation = [[ENQUEUE_BUILD_ONE_PER_PLANET]]
    effectsgroups = [
        EffectsGroup
            scope = And [
                Object id = Source.PlanetID
                Planet
            ]
            effects = [
                AddSpecial name = "GAIA_SPECIAL"
                GenerateSitRepMessage
                    message = "EFFECT_GAIA"
                    label = "EFFECT_GAIA_LABEL"
                    icon = "icons/specials_huge/gaia.png"
                    parameters = tag = "planet" data = Target.ID
                    empire = Source.Owner
            ]

        EffectsGroup
            scope = Source
            effects = Destroy
    ]
    icon = "icons/specials_huge/gaia.png"

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