BuildingType
    name = "BLD_CONC_CAMP_REMNANT"
    description = "BLD_CONC_CAMP_REMNANT_DESC"
    buildcost = 1
    buildtime = 1
    location = Not All
    effectsgroups = [
        [[SPECIES_LIKES_OR_DISLIKES_BUILDING_STABILITY_EFFECTS]]

        EffectsGroup
            scope = And [
                Object id = Source.PlanetID
                Planet
            ]
            activation = ContainedBy And [
                Object id = Source.PlanetID
                Planet
                Not Contains Building name = "BLD_CONC_CAMP"
            ]
            priority = [[CONCENTRATION_CAMP_PRIORITY]]
            effects = SetIndustry value = Target.TargetIndustry

        EffectsGroup
            scope = Source
            activation =  ContainedBy And [
                Object id = Source.PlanetID
                Not HasSpecial name = "CONC_CAMP_MASTER_SPECIAL"
                Not HasSpecial name = "CONC_CAMP_SLAVE_SPECIAL"
                Industry high = Source.Planet.TargetIndustry + 2
            ]
            effects = Destroy
    ]
    icon = "icons/building/concentration-camp.png"
    
#include "/scripting/buildings/buildings.macros"
#include "/scripting/common/priorities.macros"
