BuildingType
    name = "BLD_COLONY_BASE"
    description = "BLD_COLONY_BASE_DESC"
    buildcost = 45 * [[BUILDING_COST_MULTIPLIER]]
    buildtime = 1
    location = And [
        Planet
        Not Contains Building name = "BLD_COLONY_BASE"
        Population low = [[MIN_RECOLONIZING_SIZE]]
        OwnedBy empire = Source.Owner
    ]
    /* TODO: Disable colony base if there is no possibility in the current system */
    effectsgroups = [
        EffectsGroup
            scope = Source
            effects = CreateShip designname = "SD_COLONY_BASE" empire = Source.Owner species = Source.Planet.Species

        EffectsGroup
            scope = Source
            effects = Destroy
    ]
    icon = "icons/ship_hulls/colony_base_hull_small.png"

#include "/scripting/macros/misc.macros"
#include "/scripting/macros/base_prod.macros"
#include "/scripting/macros/priorities.macros"