Part
    name = "SP_DIM"
    description = "SP_DIM"
    class = General
    mountableSlotTypes = Internal
    buildcost = 1
    buildtime = 1
    tags = [ "PEDIA_PC_GENERAL" ]
    location = All
    effectsgroups = [
        EffectsGroup
            scope = NumberOf number = 1 condition = And [
                Planet
                InSystem id = Source.SystemID
            ]
            activation = And [
                Random probability = 0.15
                InSystem
            ]
            effects = AddSpecial name = "DIM_RIFT_MASTER_SPECIAL"

        // does any empire have a tech that can produce stealth specials?
        EffectsGroup
            scope = Source
            activation = Number low = 1 condition = And [Capital OwnerHasTech name = "SPY_STEALTH_4"]
            effects = [
                CreateShip designname = "SM_VOID" empire = Source.Owner name = Source.Name
                Destroy
            ]

        EffectsGroup
            scope = HasSpecial name = "VOLCANIC_ASH_MASTER_SPECIAL"
            effects = [
                RemoveSpecial name = "VOLCANIC_ASH_MASTER_SPECIAL"
                AddSpecial name = "DIM_RIFT_MASTER_SPECIAL"
            ]

        EffectsGroup
            scope = HasSpecial name = "CLOUD_COVER_MASTER_SPECIAL"
            effects = [
                RemoveSpecial name = "CLOUD_COVER_MASTER_SPECIAL"
                AddSpecial name = "DIM_RIFT_MASTER_SPECIAL"
            ]
    ]
    icon = ""
