BuildingType
    name = "BLD_SUPER_TEST"
    description = "BLD_SUPER_TEST_DESC"
    buildcost = 1
    buildtime = 1
    location = And [
        Planet
        ((GameRule name = "RULE_ENABLE_SUPER_TESTER") > 0)
    ]
    effectsgroups = [
        Effectsgroup
        scope = And [
            Object id = Source.PlanetID
            Planet
        ]
        priority = [[EARLY_POPULATION_OVERRIDE_PRIORITY]]
        effects = [
            SetSpecies name = "SP_SUPER_TEST"
            SetPopulation value = max(Target.Population, 1)
        ]

        EffectsGroup            // remove building when done
            scope = Source
            activation = Species name = "SP_SUPER_TEST"
            effects = Destroy
    ]
    icon = "icons/species/other-04.png"

#include "/scripting/common/priorities.macros"