BuildingType
    name = "BLD_GAIA_TRANS"
    description = "BLD_GAIA_TRANS_DESC"
    buildcost = 200 * Target.HabitableSize * [[BUILDING_COST_MULTIPLIER]]
    buildtime = 12
    location = And [
        Planet
        Not Contains Building name = "BLD_GAIA_TRANS"
        OwnedBy empire = Source.Owner
        Planet environment = Good
        Not Planet type = [Asteroids GasGiant]
        Not HasSpecial name = "GAIA_SPECIAL"
    ]
    EnqueueLocation = And [
        Planet
        OwnedBy empire = Source.Owner
        Not Contains Building name = "BLD_TERRAFORM"
        Not Contains Building name = "BLD_TERRAFORM_REVERT"
        Not Contains Building name = "BLD_GAIA_TRANS"
        Not HasSpecial name = "GAIA_SPECIAL"
        Not Enqueued type = Building name = "BLD_TERRAFORM"
        Not Enqueued type = Building name = "BLD_TERRAFORM_REVERT"
        Not Enqueued type = Building name = "BLD_GAIA_TRANS"
    ]
    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/common/enqueue.macros"
#include "/scripting/common/base_prod.macros"