Tech
    name = "SPY_DETECT_2"
    description = "SPY_DETECT_2_DESC"
    short_description = "DETECTION_SHORT_DESC"
    category = "SPY_CATEGORY"
    researchcost = 50 * [[TECH_COST_MULTIPLIER]]
    researchturns = 5
    tags = [ "PEDIA_SPY_CATEGORY" ]
    prerequisites = "SHP_GAL_EXPLO"
    unlock = [
        Item type = ShipPart name = "DT_DETECTOR_2"
        Item type = Building name = "BLD_SCANNING_FACILITY"
    ]
    effectsgroups = [
        EffectsGroup
            scope = And [
                Planet
                OwnedBy empire = Source.Owner
            ]
            activation = And [
                Not OwnerHasTech name = "SPY_DETECT_3"
                Not OwnerHasTech name = "SPY_DETECT_4"
                Not OwnerHasTech name = "SPY_DETECT_5"
            ]
            effects = SetDetection value = Value + 75

        EffectsGroup
            scope = Source
            activation = And [
                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 + 30
    ]
    graphic = "icons/tech/active_radar.png"

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