BuildingType
    name = "BLD_CULTURE_LIBRARY"
    description = "BLD_CULTURE_LIBRARY_DESC"
    buildcost = 200 * [[BUILDING_COST_MULTIPLIER]]
    buildtime = 1
    tags = "ANTIQUATED"
    location = Not All
    effectsgroups = [
        EffectsGroup
            scope = And [
                Object id = Source.PlanetID
                Planet
                NOT Population high = 0
            ]
            priority = [[LATE_PRIORITY]]
            effects = SetTargetResearch value = Value + 5

        EffectsGroup    // Destroy cultural library when the species is no longer present
            scope = Source
            activation = ContainedBy And [
                Object id = Source.PlanetID
                Population high = 0
            ]
            effects = Destroy
    ]
    icon = "icons/building/archive.png"

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