Tech
    name = "SPY_DETECT_1"
    description = "SPY_DETECT_1_DESC"
    short_description = "DETECTION_SHORT_DESC"
    category = "SPY_CATEGORY"
    researchcost = 1
    researchturns = 1
    Unresearchable
    tags = [ "PEDIA_SPY_CATEGORY" ]
    effectsgroups = [
        EffectsGroup
            scope = And [
                Planet
                OwnedBy empire = Source.Owner
            ]
            activation = And [
                Not OwnerHasTech name = "SPY_DETECT_2"
                Not OwnerHasTech name = "SPY_DETECT_3"
                Not OwnerHasTech name = "SPY_DETECT_4"
                Not OwnerHasTech name = "SPY_DETECT_5"
            ]
            effects = SetDetection value = Value + 50

        EffectsGroup
            scope = Source
            activation = And [
                Not OwnerHasTech name = "SPY_DETECT_2"
                Not OwnerHasTech name = "SPY_DETECT_3"
                Not OwnerHasTech name = "SPY_DETECT_4"
                Not OwnerHasTech name = "SPY_DETECT_5"
            ]
            effects = SetEmpireMeter empire = Source.Owner meter = "METER_DETECTION_STRENGTH" value = Value + 10
    ]
