include "shared_macros.txt"

//#######################################################\\
//####                                               ####\\
//####                S P E C I E S                  ####\\
//####                                               ####\\
//#######################################################\\

// Note: Description Macros for species in the stringtables are named the same as the Effect controlling Macros in species.txt.  Copy&Paste for accurate description.
//       Macros after the "// not for description" are not to be included in the stringtable descriptions

//  L I S T   I N   A L P H A B E T I C A L   O R D E R


Species
    name = "SP_ABADDONI"
    description = "SP_ABADDONI_DESC"
    gameplay_description = "SP_ABADDONI_GAMEPLAY_DESC"
    Native
    CanProduceShips
    CanColonize

    tags = [ "LITHIC" "AI_TAG_BAD_RESEARCH" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[BAD_RESEARCH]]
                
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[INFERNO_STANDARD_EP]]
    
    graphic = "icons/species/abaddonnian.png"


Species
    name = "SP_ACIREMA"
    description = "SP_ACIREMA_DESC"
    gameplay_description = "SP_ACIREMA_GAMEPLAY_DESC"
    Native
    CanProduceShips
    
    tags = [ "SELF_SUSTAINING" "AI_TAG_GREAT_INDUSTRY" "AI_TAG_GOOD_RESEARCH" "AI_TAG_GOOD_SHIELDS" "AI_TAG_GREAT_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GREAT_INDUSTRY]]
        [[GOOD_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[GREAT_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]

        // not for description
        
        EffectsGroup
            scope = Source
            activation = AND [
                Planet
                OR [
                    Turn low = 10 high = 10
                    Turn low = 80 high = 80
                    Turn low = 150 high = 150
                    Turn low = 220 high = 220
                    Turn low = 290 high = 290
                ]
                Not WithinStarlaneJumps 1 And [
                    System
                    Contains And [
                        Planet
                        OwnedBy AnyEmpire
                    ]
                ]
            ]
            effects = CreateShip "SM_ACIREMA_GUARD"

        EffectsGroup
            scope = And [
                Source
                Ship
            ]
            effects = SetMaxShield Value + 1

        EffectsGroup
            scope = And [
                Source
                Planet
            ]
            effects = [
                SetMaxDefense Value + 5
                SetMaxShield Value + 5
            ]

        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]

    ]
    
    [[RADIATED_STANDARD_EP]]
    
    graphic = "icons/species/acirema.png"


Species
    name = "SP_BEIGEGOO"
    description = "SP_BEIGEGOO_DESC"
    gameplay_description = "SP_BEIGEGOO_GAMEPLAY_DESC"
    Native
    
    Tags = [ "ROBOTIC" "AI_TAG_GOOD_POPULATION" "AI_TAG_GREAT_INDUSTRY" "AI_TAG_NO_RESEARCH" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        /*[[HAS_RESEARCH_FOCUS]]*/
        /*[[HAS_GROWTH_FOCUS]]*/
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GREAT_INDUSTRY]]
        [[NO_RESEARCH]]
        
        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[GREAT_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]


    
    [[RADIATED_STANDARD_EP]]
    
    graphic = "icons/species/beige-goo.png"


Species
    name = "SP_CHATO"
    description = "SP_CHATO_DESC"
    gameplay_description = "SP_CHATO_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize

    tags = [ "PHOTOTROPHIC" "AI_TAG_GREAT_RESEARCH" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[GREAT_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[TOXIC_BROAD_EP]]
    
    graphic = "icons/species/chato-matou-gormoshk.png"


Species
    name = "SP_CRAY"
    description = "SP_CRAY_DESC"
    gameplay_description = "SP_CRAY_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize
    
    tags = [ "ROBOTIC" "AI_TAG_BAD_INDUSTRY" "AI_TAG_GOOD_RESEARCH" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[BAD_INDUSTRY]]
        [[GOOD_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[GOOD_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]

    [[BARREN_BROAD_EP]]
    
    graphic = "icons/species/cray.png"


Species
    name = "SP_CYNOS"
    description = "SP_CYNOS_DESC"
    gameplay_description = "SP_CYNOS_GAMEPLAY_DESC"
    Native
    CanProduceShips

    tags = [ "PHOTOTROPHIC" "AI_TAG_NO_INDUSTRY" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        /* [[HAS_INDUSTRY_FOCUS]]*/
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        /*[[HAS_MINING_FOCUS]]*/
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[NO_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[GOOD_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[SWAMP_BROAD_EP]]
    
    graphic = "icons/species/cynos.png"


Species
    name = "SP_DERTHREAN"
    description = "SP_DERTHREAN_DESC"
    gameplay_description = "SP_DERTHREAN_GAMEPLAY_DESC"
    Native
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "TELEPATHIC" "AI_TAG_BAD_WEAPONS" "AI_TAG_AVERAGE_SUPPLY"]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]
        [[BAD_WEAPONS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[TOXIC_STANDARD_EP]]
    
    graphic = "icons/species/derthrean.png"


Species
    name = "SP_EAXAW"
    description = "SP_EAXAW_DESC"
    gameplay_description = "SP_EAXAW_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize

    tags = ["ORGANIC" "XENOPHOBIC" "AI_TAG_GREAT_WEAPONS" "AI_TAG_AVERAGE_SUPPLY"]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]
        
        [[GREAT_WEAPONS]]
        
        [[XENOPHOBIC_SELF]]        
        [[XENOPHOBIC_OTHER_BEGIN]]
                    stackinggroup = "XENOPHOBIC_LABEL_EAXAW_OTHER"
                    accountinglabel = "XENOPHOBIC_LABEL_EAXAW_OTHER"
        [[XENOPHOBIC_OTHER_END]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
        
    ]
    
    [[TERRAN_STANDARD_EP]]
    
    graphic = "icons/species/eaxaw.png"


Species
    name = "SP_EGASSEM"
    description = "SP_EGASSEM_DESC"
    gameplay_description = "SP_EGASSEM_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize
    
    tags = [ "LITHIC" "AI_TAG_BAD_RESEARCH" "AI_TAG_ULTIMATE_INDUSTRY" "AI_TAG_BAD_POPULATION" "AI_TAG_GREAT_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[ULTIMATE_INDUSTRY]]
        [[BAD_RESEARCH]]
        
        [[BAD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[GREAT_SUPPLY]]
        [[GREAT_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[INFERNO_NARROW_EP]]
    
    graphic = "icons/species/egassem.png"


Species
    name = "SP_ETTY"
    description = "SP_ETTY_DESC"
    gameplay_description = "SP_ETTY_GAMEPLAY_DESC"
    Playable
    //Native
    CanProduceShips
    CanColonize

    tags = [ "ROBOTIC" "AI_TAG_BAD_INDUSTRY" "AI_TAG_GOOD_WEAPONS" "AI_TAG_GREAT_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    preferredfocus = "FOCUS_RESEARCH"
    
    effectsgroups = [
        [[BAD_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[GREAT_SUPPLY]]
        [[GOOD_GROUND_TROOPS]]

                
        [[GOOD_WEAPONS]]
        
        [[BAD_DETECTION]]
        [[GOOD_STEALTH]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[DESERT_STANDARD_EP]]
    
    graphic = "icons/species/etty.png"


Species
    name = "SP_EXOBOT"
    description = "SP_EXOBOT_DESC"
    gameplay_description = "SP_EXOBOT_GAMEPLAY_DESC"
    CanProduceShips
    CanColonize
    
    Tags = [ "ROBOTIC" "AI_TAG_BAD_RESEARCH" "AI_TAG_BAD_WEAPONS" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[BAD_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_WEAPONS]]
        
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Poor
        type = Inferno      environment = Adequate
        type = Radiated     environment = Adequate
        type = Barren       environment = Adequate
        type = Tundra       environment = Poor
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Poor
        type = Gasgiant     environment = Uninhabitable
    ]
    
    graphic = "icons/species/robotic-01.png"


Species
    name = "SP_EXPERIMENTOR"
    description = "SP_EXPERIMENTOR_DESC"
    gameplay_description = "SP_EXPERIMENTOR_GAMEPLAY_DESC"

    tags = [ "SELF_SUSTAINING" "AI_TAG_NO_INDUSTRY" "AI_TAG_ULTIMATE_RESEARCH" "AI_TAG_GOOD_POPULATION" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        /*[[HAS_INDUSTRY_FOCUS]]*/
        [[HAS_RESEARCH_FOCUS]]
        /*[[HAS_GROWTH_FOCUS]]*/
        /*[[HAS_MINING_FOCUS]]*/
        [[HAS_ADVANCED_FOCI]]
    ]

    effectsgroups = [
        [[NO_INDUSTRY]]
        [[ULTIMATE_RESEARCH]]

        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[ULTIMATE_GROUND_TROOPS]]
        
        [[ULTIMATE_STEALTH]]
        [[ULTIMATE_DETECTION]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]

    [[VERY_TOLERANT_EP]]

    graphic = "icons/species/two-headed-03.png"


Species
    name = "SP_FIFTYSEVEN"
    description = "SP_FIFTYSEVEN_DESC"
    gameplay_description = "SP_FIFTYSEVEN_GAMEPLAY_DESC"
    Native

    tags = [ "ORGANIC" "AI_TAG_NO_INDUSTRY" "AI_TAG_ULTIMATE_RESEARCH" "AI_TAG_BAD_POPULATION" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        /*[[HAS_INDUSTRY_FOCUS]]*/
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        /*[[HAS_MINING_FOCUS]]*/
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[NO_INDUSTRY]]
        [[ULTIMATE_RESEARCH]]
        
        [[BAD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[SWAMP_STANDARD_EP]]
    
    graphic = "icons/species/fifty-seven.png"


Species
    name = "SP_FURTHEST"
    description = "SP_FURTHEST_DESC"
    gameplay_description = "SP_FURTHEST_GAMEPLAY_DESC"
    Native
    
    //CanColonize

    tags = [ "ORGANIC" "AI_TAG_BAD_RESEARCH" "AI_TAG_BAD_POPULATION" "AI_TAG_BAD_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[BAD_RESEARCH]]
                
        [[BAD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[BAD_SUPPLY]]
        [[GOOD_GROUND_TROOPS]]
        
        [[GOOD_DETECTION]]
        [[GREAT_STEALTH]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[TUNDRA_STANDARD_EP]]
    
    graphic = "icons/species/furthest.png"


Species
    name = "SP_GEORGE"
    description = "SP_GEORGE_DESC"
    gameplay_description = "SP_GEORGE_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize

    tags = [ "LITHIC" "TELEPATHIC" "AI_TAG_GOOD_INDUSTRY" "AI_TAG_BAD_RESEARCH" "AI_TAG_GREAT_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GOOD_INDUSTRY]]
        [[BAD_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[GREAT_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]
     
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[TUNDRA_BROAD_EP]]
    
    graphic = "icons/species/george.png"

Species
    name = "SP_GISGUFGTHRIM"
    description = "SP_GISGUFGTHRIM_DESC"
    gameplay_description = "SP_GISGUFGTHRIM_GAMEPLAY_DESC"
    Native
    CanProduceShips

    tags = [ "ORGANIC" "AI_TAG_BAD_INDUSTRY" "AI_TAG_GOOD_RESEARCH" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[BAD_INDUSTRY]]
        [[GOOD_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[TOXIC_STANDARD_EP]]
    
    graphic = "icons/species/gis-guf-gthrim.png"
    

Species
    name = "SP_GYSACHE"
    description = "SP_GYSACHE_DESC"
    gameplay_description = "SP_GYSACHE_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "AI_TAG_GOOD_INDUSTRY" "AI_TAG_GREAT_RESEARCH" "AI_TAG_GOOD_POPULATION" "AI_TAG_BAD_WEAPONS" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GOOD_INDUSTRY]]
        [[GREAT_RESEARCH]]

        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]
        [[BAD_WEAPONS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[SWAMP_STANDARD_EP]]
    
    graphic = "icons/species/gysache.png"


Species
    name = "SP_HHHOH"
    description = "SP_HHHOH_DESC"
    gameplay_description = "SP_HHHOH_GAMEPLAY_DESC"
    //Playable
    Native
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "AI_TAG_GOOD_WEAPONS" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[GREAT_GROUND_TROOPS]]
        
        [[GOOD_WEAPONS]]
       
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[TUNDRA_STANDARD_EP]]
    
    graphic = "icons/species/hhhoh.png"


Species
    name = "SP_HUMAN"
    description = "SP_HUMAN_DESC"
    gameplay_description = "SP_HUMAN_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize
    
    tags = [ "ORGANIC" "STYLISH" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    preferredfocus = "FOCUS_RESEARCH"
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[AVERAGE_RESEARCH]]

        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[TERRAN_STANDARD_EP]]
    
    graphic = "icons/species/human.png"


Species
    name = "SP_KOBUNTURA"
    description = "SP_KOBUNTURA_DESC"
    gameplay_description = "SP_KOBUNTURA_GAMEPLAY_DESC"
    Native
    CanProduceShips
    CanColonize
    
    tags = [ "SELF_SUSTAINING" "AI_TAG_GREAT_INDUSTRY" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GREAT_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]

        // not for description
        [[NATIVE_PLANETARY_DEFENSE]]
        [[NATIVE_PLANETARY_SHIELDS]]
    ]
    
    [[BARREN_STANDARD_EP]]
    
    graphic = "icons/species/intangible-04.png"


Species
    name = "SP_LAENFA"
    description = "SP_LAENFA_DESC"
    gameplay_description = "SP_LAENFA_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize

    tags = [ "PHOTOTROPHIC" "TELEPATHIC" "AI_TAG_BAD_RESEARCH" "AI_TAG_GOOD_POPULATION" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[BAD_RESEARCH]]
        
        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]

        [[GREAT_DETECTION]]
        [[GREAT_STEALTH]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[OCEAN_STANDARD_EP]]
    
    graphic = "icons/species/laenfa.png"


Species
    name = "SP_MUURSH"
    description = "SP_MUURSH_DESC"
    gameplay_description = "SP_MUURSH_GAMEPLAY_DESC"
    Native
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "AI_TAG_BAD_RESEARCH" "AI_TAG_GREAT_WEAPONS" "AI_TAG_BAD_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[BAD_RESEARCH]]

        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[BAD_SUPPLY]]
        [[GREAT_GROUND_TROOPS]]

        [[GREAT_WEAPONS]]
        
        [[NATIVE_PLANETARY_DEFENSE]]
        [[NATIVE_PLANETARY_SHIELDS]]

        
    ]
    
    [[DESERT_STANDARD_EP]]
    
    graphic = "icons/species/muursh.png"


Species
    name = "SP_NYMNMN"
    description = "SP_NYMNMN_DESC"
    gameplay_description = "SP_NYMNMN_GAMEPLAY_DESC"
    Native
    
    tags = [ "SELF_SUSTAINING" "AI_TAG_NO_INDUSTRY" "AI_TAG_BAD_POPULATION" "AI_TAG_BAD_SUPPLY" ]
    
    foci = [
        /*[[HAS_INDUSTRY_FOCUS]]*/
        [[HAS_RESEARCH_FOCUS]]
        /*[[HAS_GROWTH_FOCUS]]*/
        /*[[HAS_MINING_FOCUS]]*/
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[NO_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[BAD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[BAD_SUPPLY]]
        [[BAD_GROUND_TROOPS]]
   
        [[GREAT_DETECTION]]
        [[GOOD_STEALTH]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[DESERT_STANDARD_EP]]
    
    graphic = "icons/species/intangible-05.png"


Species
    name = "SP_OURBOOLS"
    description = "SP_OURBOOLS_DESC"
    gameplay_description = "SP_OURBOOLS_GAMEPLAY_DESC"
    Native

    tags = [ "ORGANIC" "AI_TAG_BAD_INDUSTRY" "AI_TAG_BAD_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[BAD_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
                
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[BAD_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]
        
        [[ULTIMATE_DETECTION]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[OCEAN_STANDARD_EP]]
    
    graphic = "icons/species/ourbools.png"


Species
    name = "SP_PHINNERT"
    description = "SP_PHINNERT_DESC"
    gameplay_description = "SP_PHINNERT_GAMEPLAY_DESC"
    Native
    
    //CanColonize

    tags = [ "ORGANIC" "AI_TAG_NO_RESEARCH" "AI_TAG_BAD_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        /*[[HAS_RESEARCH_FOCUS]]*/
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[NO_RESEARCH]]
                
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[BAD_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[SWAMP_STANDARD_EP]]
    
    graphic = "icons/species/phinnert.png"


Species
    name = "SP_RAAAGH"
    description = "SP_RAAAGH_DESC"
    gameplay_description = "SP_RAAAGH_GAMEPLAY_DESC"
    Native

    tags = [ "ORGANIC" "AI_TAG_BAD_INDUSTRY" "AI_TAG_NO_RESEARCH" "AI_TAG_BAD_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        /*[[HAS_RESEARCH_FOCUS]]*/
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[BAD_INDUSTRY]]
        [[NO_RESEARCH]]
                
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[BAD_SUPPLY]]
        [[ULTIMATE_GROUND_TROOPS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[TERRAN_STANDARD_EP]]
    
    graphic = "icons/species/raaagh.png"
    

Species
    name = "SP_SCYLIOR"
    description = "SP_SCYLIOR_DESC"
    gameplay_description = "SP_SCYLIOR_GAMEPLAY_DESC"
    //Playable
    Native
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "AI_TAG_GREAT_RESEARCH" "AI_TAG_GOOD_POPULATION" "AI_TAG_AVERAGE_SUPPLY" ]

    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    preferredfocus = "FOCUS_RESEARCH"
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[GREAT_RESEARCH]]
        
        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[OCEAN_STANDARD_EP]]
    
    graphic = "icons/species/scylior.png"


Species
    name = "SP_SETINON"
    description = "SP_SETINON_DESC"
    gameplay_description = "SP_SETINON_GAMEPLAY_DESC"
    Native
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "AI_TAG_BAD_INDUSTRY" "AI_TAG_GOOD_POPULATION" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[BAD_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[NO_GROUND_TROOPS]]  
        
        [[GREAT_STEALTH]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[SWAMP_STANDARD_EP]]
    
    graphic = "icons/species/amorphous-02.png"


Species
    name = "SP_SILEXIAN"
    description = "SP_SILEXIAN_DESC"
    gameplay_description = "SP_SILEXIAN_GAMEPLAY_DESC"
    Native
    
    //CanColonize
    
    Tags = [ "ROBOTIC" "AI_TAG_NO_INDUSTRY" "AI_TAG_BAD_RESEARCH" "AI_TAG_BAD_WEAPONS" "AI_TAG_GREAT_SUPPLY" ]
    
    foci = [
        /*[[HAS_INDUSTRY_FOCUS]]*/
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[NO_INDUSTRY]]
        [[BAD_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[GREAT_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]
        [[BAD_WEAPONS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[TERRAN_STANDARD_EP]]
    
    graphic = "icons/species/robotic-06.png"


Species
    name = "SP_SSLITH"
    description = "SP_SSLITH_DESC"
    gameplay_description = "SP_SSLITH_GAMEPLAY_DESC"
    Native
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "TELEPATHIC" "AI_TAG_BAD_INDUSTRY" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[BAD_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[TUNDRA_NARROW_EP]]
    
    graphic = "icons/species/sslith.png"
    
    
Species
    name = "SP_SUPER_TEST"
    description = "SP_SUPER_TEST_DESC"
    gameplay_description = "SP_SUPER_TEST_GAMEPLAY_DESC"
    // Playable
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "ROBOTIC" "LITHIC" "PHOTOTROPHIC" "SELF_SUSTAINING" "TELEPATHIC" "AI_TAG_GREAT_INDUSTRY" "AI_TAG_GREAT_RESEARCH" "AI_TAG_GOOD_POPULATION"  "AI_TAG_ULTIMATE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GREAT_INDUSTRY]]
        [[GREAT_RESEARCH]]
        
        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[ULTIMATE_SUPPLY]]
        [[GREAT_GROUND_TROOPS]]
        
        [[ULTIMATE_WEAPONS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        
        EffectsGroup
            scope = Source
            effects = SetDetection Value + 10000

        EffectsGroup
            scope = And [
                Source
                Capital
                ]
            effects = SetEmpireMeter Source.Owner "METER_DETECTION_STRENGTH" 200  // Omniscient Detection

    ]

    [[VERY_TOLERANT_EP]]

    graphic = "icons/species/other-04.png"
        

Species
    name = "SP_TAEGHIRUS"
    description = "SP_TAEGHIRUS_DESC"
    gameplay_description = "SP_TAEGHIRUS_GAMEPLAY_DESC"
    Native
    CanProduceShips
    CanColonize

    tags = [ "ORGANIC" "TELEPATHIC" "AI_TAG_GOOD_INDUSTRY" "AI_TAG_BAD_WEAPONS" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GOOD_INDUSTRY]]
        [[AVERAGE_RESEARCH]]

        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[BAD_GROUND_TROOPS]]
        [[BAD_WEAPONS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[SWAMP_STANDARD_EP]]
    
    graphic = "icons/species/t-aeghirus.png"


Species
    name = "SP_TRENCHERS"
    description = "SP_TRENCHERS_DESC"
    gameplay_description = "SP_TRENCHERS_GAMEPLAY_DESC"
    Native
    
    Tags = [ "ROBOTIC" "AI_TAG_GOOD_INDUSTRY" "AI_TAG_NO_RESEARCH" "AI_TAG_BAD_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        /*[[HAS_RESEARCH_FOCUS]]*/
        /*[[HAS_GROWTH_FOCUS]]*/
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GOOD_INDUSTRY]]
        [[NO_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[BAD_SUPPLY]]
        [[BAD_GROUND_TROOPS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[BARREN_STANDARD_EP]]
    
    graphic = "icons/species/robotic-02.png"


Species
    name = "SP_TRITH"
    description = "SP_TRITH_DESC"
    gameplay_description = "SP_TRITH_GAMEPLAY_DESC"
    Playable
    CanProduceShips
    CanColonize

    tags = [ "SELF_SUSTAINING" "TELEPATHIC" "XENOPHOBIC" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[AVERAGE_GROUND_TROOPS]]
        
        [[GREAT_DETECTION]]
        [[GOOD_STEALTH]]
        
        [[XENOPHOBIC_SELF]]
        
        [[XENOPHOBIC_OTHER_BEGIN]]
                    stackinggroup = "XENOPHOBIC_LABEL_TRITH_OTHER"
                    accountinglabel = "XENOPHOBIC_LABEL_TRITH_OTHER"
        [[XENOPHOBIC_OTHER_END]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[LARGE_PLANET]]
    ]
    
    [[DESERT_NARROW_EP]]
    
    graphic = "icons/species/trith.png"


Species
    name = "SP_UGMORS"
    description = "SP_UGMORS_DESC"
    gameplay_description = "SP_UGMORS_GAMEPLAY_DESC"
    Native
    CanProduceShips
    CanColonize

    tags = [ "LITHIC" "AI_TAG_GOOD_INDUSTRY" "AI_TAG_BAD_RESEARCH" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GOOD_INDUSTRY]]
        [[BAD_RESEARCH]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        [[GOOD_GROUND_TROOPS]]

        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
    ]
    
    [[INFERNO_NARROW_EP]]
    
    graphic = "icons/species/amorphous-06.png"


Species
    name = "SP_VOLP"
    description = "SP_VOLP_DESC"
    gameplay_description = "SP_VOLP_GAMEPLAY_DESC"
    Native

    tags = [ "LITHIC" "AI_TAG_GOOD_POPULATION" "AI_TAG_ULTIMATE_SUPPLY" ]
    
    foci = [
        [[HAS_INDUSTRY_FOCUS]]
        [[HAS_RESEARCH_FOCUS]]
        [[HAS_GROWTH_FOCUS]]
        [[HAS_MINING_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[AVERAGE_INDUSTRY]]
        [[AVERAGE_RESEARCH]]
        
        [[GOOD_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[ULTIMATE_SUPPLY]]        
        [[AVERAGE_GROUND_TROOPS]]
        
        // not for description
        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        [[HUGE_PLANET]]
    ]
    
    [[BARREN_STANDARD_EP]]
    
    graphic = "icons/species/volp.png"


/*
Species
    name = "SP_HIDDENGARDENER"
    description = "SP_HIDDENGARDENER_DESC"
    gameplay_description = "SP_HIDDENGARDENER_GAMEPLAY_DESC"
    Native

    tags = [ "ORGANIC" "AI_TAG_NO_INDUSTRY" "AI_TAG_NO_RESEARCH" "AI_TAG_AVERAGE_SUPPLY" ]
    
    foci = [
        [[HAS_GROWTH_FOCUS]]
        [[HAS_ADVANCED_FOCI]]
    ]
    
    effectsgroups = [
        [[GOOD_STEALTH]]
        
        [[NO_INDUSTRY]]
        [[NO_RESEARCH]]
        
        [[NO_GROUND_TROOPS]]

        [[AVERAGE_PLANETARY_SHIELDS]]
        [[AVERAGE_PLANETARY_DEFENSE]]
        
        [[AVERAGE_POPULATION]]
        [[AVERAGE_HAPPINESS]]
        [[AVERAGE_SUPPLY]]
        
        
        [[NOT_HUGE_PLANET]]
    ]
        
    [[TERRAN_STANDARD_EP]]
    
    graphic = "icons/species/hidden-gardener.png"
*/




//#######################################################\\
//####                                               ####\\
//####               M  A  C  R  O  S                ####\\
//####                                               ####\\
//#######################################################\\


SWAMP_STANDARD_EP
'''environments = [
      type = Swamp        environment = Good
      type = Toxic        environment = Adequate
      type = Inferno      environment = Poor
      type = Radiated     environment = Hostile
      type = Barren       environment = Hostile
      type = Tundra       environment = Hostile
      type = Desert       environment = Hostile
      type = Terran       environment = Poor
      type = Ocean        environment = Adequate
      type = Asteroids    environment = Uninhabitable
      type = Gasgiant     environment = Uninhabitable
    ]'''

TOXIC_STANDARD_EP
'''environments = [
        type = Swamp        environment = Adequate
        type = Toxic        environment = Good
        type = Inferno      environment = Adequate
        type = Radiated     environment = Poor
        type = Barren       environment = Hostile
        type = Tundra       environment = Hostile
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Poor
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

INFERNO_STANDARD_EP
'''environments = [
        type = Swamp        environment = Poor
        type = Toxic        environment = Adequate
        type = Inferno      environment = Good
        type = Radiated     environment = Adequate
        type = Barren       environment = Poor
        type = Tundra       environment = Hostile
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

RADIATED_STANDARD_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Poor
        type = Inferno      environment = Adequate
        type = Radiated     environment = Good
        type = Barren       environment = Adequate
        type = Tundra       environment = Poor
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

BARREN_STANDARD_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Poor
        type = Radiated     environment = Adequate
        type = Barren       environment = Good
        type = Tundra       environment = Adequate
        type = Desert       environment = Poor
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

TUNDRA_STANDARD_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Poor
        type = Barren       environment = Adequate
        type = Tundra       environment = Good
        type = Desert       environment = Adequate
        type = Terran       environment = Poor
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''
    
DESERT_STANDARD_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Hostile
        type = Barren       environment = Poor
        type = Tundra       environment = Adequate
        type = Desert       environment = Good
        type = Terran       environment = Adequate
        type = Ocean        environment = Poor
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

TERRAN_STANDARD_EP
'''environments = [
        type = Swamp        environment = Poor
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Hostile
        type = Barren       environment = Hostile
        type = Tundra       environment = Poor
        type = Desert       environment = Adequate
        type = Terran       environment = Good
        type = Ocean        environment = Adequate
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

OCEAN_STANDARD_EP
'''environments = [
        type = Swamp        environment = Adequate
        type = Toxic        environment = Poor
        type = Inferno      environment = Hostile
        type = Radiated     environment = Hostile
        type = Barren       environment = Hostile
        type = Tundra       environment = Hostile
        type = Desert       environment = Poor
        type = Terran       environment = Adequate
        type = Ocean        environment = Good
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

SWAMP_NARROW_EP
'''environments = [
      type = Swamp        environment = Good
      type = Toxic        environment = Poor
      type = Inferno      environment = Hostile
      type = Radiated     environment = Hostile
      type = Barren       environment = Hostile
      type = Tundra       environment = Hostile
      type = Desert       environment = Hostile
      type = Terran       environment = Hostile
      type = Ocean        environment = Poor
      type = Asteroids    environment = Uninhabitable
      type = Gasgiant     environment = Uninhabitable
    ]'''

TOXIC_NARROW_EP
'''environments = [
        type = Swamp        environment = Poor
        type = Toxic        environment = Good
        type = Inferno      environment = Poor
        type = Radiated     environment = Hostile
        type = Barren       environment = Hostile
        type = Tundra       environment = Hostile
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

INFERNO_NARROW_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Poor
        type = Inferno      environment = Good
        type = Radiated     environment = Poor
        type = Barren       environment = Hostile
        type = Tundra       environment = Hostile
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

RADIATED_NARROW_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Poor
        type = Radiated     environment = Good
        type = Barren       environment = Poor
        type = Tundra       environment = Hostile
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

BARREN_NARROW_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Poor
        type = Barren       environment = Good
        type = Tundra       environment = Poor
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

TUNDRA_NARROW_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Hostile
        type = Barren       environment = Poor
        type = Tundra       environment = Good
        type = Desert       environment = Poor
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''
    
DESERT_NARROW_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Hostile
        type = Barren       environment = Hostile
        type = Tundra       environment = Poor
        type = Desert       environment = Good
        type = Terran       environment = Poor
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

TERRAN_NARROW_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Hostile
        type = Barren       environment = Hostile
        type = Tundra       environment = Hostile
        type = Desert       environment = Poor
        type = Terran       environment = Good
        type = Ocean        environment = Poor
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

OCEAN_NARROW_EP
'''environments = [
        type = Swamp        environment = Poor
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Hostile
        type = Barren       environment = Hostile
        type = Tundra       environment = Hostile
        type = Desert       environment = Hostile
        type = Terran       environment = Poor
        type = Ocean        environment = Good
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

SWAMP_BROAD_EP
'''environments = [
      type = Swamp        environment = Good
      type = Toxic        environment = Adequate
      type = Inferno      environment = Poor
      type = Radiated     environment = Poor
      type = Barren       environment = Hostile
      type = Tundra       environment = Hostile
      type = Desert       environment = Poor
      type = Terran       environment = Poor
      type = Ocean        environment = Adequate
      type = Asteroids    environment = Uninhabitable
      type = Gasgiant     environment = Uninhabitable
    ]'''

TOXIC_BROAD_EP
'''environments = [
        type = Swamp        environment = Adequate
        type = Toxic        environment = Good
        type = Inferno      environment = Adequate
        type = Radiated     environment = Poor
        type = Barren       environment = Poor
        type = Tundra       environment = Hostile
        type = Desert       environment = Hostile
        type = Terran       environment = Poor
        type = Ocean        environment = Poor
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

INFERNO_BROAD_EP
'''environments = [
        type = Swamp        environment = Poor
        type = Toxic        environment = Adequate
        type = Inferno      environment = Good
        type = Radiated     environment = Adequate
        type = Barren       environment = Poor
        type = Tundra       environment = Poor
        type = Desert       environment = Hostile
        type = Terran       environment = Hostile
        type = Ocean        environment = Poor
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

RADIATED_BROAD_EP
'''environments = [
        type = Swamp        environment = Poor
        type = Toxic        environment = Poor
        type = Inferno      environment = Adequate
        type = Radiated     environment = Good
        type = Barren       environment = Adequate
        type = Tundra       environment = Poor
        type = Desert       environment = Poor
        type = Terran       environment = Hostile
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

BARREN_BROAD_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Poor
        type = Inferno      environment = Poor
        type = Radiated     environment = Adequate
        type = Barren       environment = Good
        type = Tundra       environment = Adequate
        type = Desert       environment = Poor
        type = Terran       environment = Poor
        type = Ocean        environment = Hostile
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

TUNDRA_BROAD_EP
'''environments = [
        type = Swamp        environment = Hostile
        type = Toxic        environment = Hostile
        type = Inferno      environment = Poor
        type = Radiated     environment = Poor
        type = Barren       environment = Adequate
        type = Tundra       environment = Good
        type = Desert       environment = Adequate
        type = Terran       environment = Poor
        type = Ocean        environment = Poor
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''
    
DESERT_BROAD_EP
'''environments = [
        type = Swamp        environment = Poor
        type = Toxic        environment = Hostile
        type = Inferno      environment = Hostile
        type = Radiated     environment = Poor
        type = Barren       environment = Poor
        type = Tundra       environment = Adequate
        type = Desert       environment = Good
        type = Terran       environment = Adequate
        type = Ocean        environment = Poor
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

TERRAN_BROAD_EP
'''environments = [
        type = Swamp        environment = Poor
        type = Toxic        environment = Poor
        type = Inferno      environment = Hostile
        type = Radiated     environment = Hostile
        type = Barren       environment = Poor
        type = Tundra       environment = Poor
        type = Desert       environment = Adequate
        type = Terran       environment = Good
        type = Ocean        environment = Adequate
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

OCEAN_BROAD_EP
'''environments = [
        type = Swamp        environment = Adequate
        type = Toxic        environment = Poor
        type = Inferno      environment = Poor
        type = Radiated     environment = Hostile
        type = Barren       environment = Hostile
        type = Tundra       environment = Poor
        type = Desert       environment = Poor
        type = Terran       environment = Adequate
        type = Ocean        environment = Good
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

TOLERANT_EP
'''environments = [
        type = Swamp        environment = Good
        type = Toxic        environment = Good
        type = Inferno      environment = Good
        type = Radiated     environment = Good
        type = Barren       environment = Good
        type = Tundra       environment = Good
        type = Desert       environment = Good
        type = Terran       environment = Good
        type = Ocean        environment = Good
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''

VERY_TOLERANT_EP
'''environments = [
        type = Swamp        environment = Good
        type = Toxic        environment = Good
        type = Inferno      environment = Good
        type = Radiated     environment = Good
        type = Barren       environment = Good
        type = Tundra       environment = Good
        type = Desert       environment = Good
        type = Terran       environment = Good
        type = Ocean        environment = Good
        type = Asteroids    environment = Adequate
        type = Gasgiant     environment = Adequate
    ]'''


HAS_INDUSTRY_FOCUS
'''        Focus
            name = "FOCUS_INDUSTRY"
            description = "FOCUS_INDUSTRY_DESC"
            location = Planet
            graphic = "icons/focus/industry.png"
'''

HAS_RESEARCH_FOCUS
'''        Focus
            name = "FOCUS_RESEARCH"
            description = "FOCUS_RESEARCH_DESC"
            location = Planet
            graphic = "icons/focus/research.png"
'''

HAS_GROWTH_FOCUS
'''        Focus
            name = "FOCUS_GROWTH"
            description = "FOCUS_GROWTH_DESC"
            location = Or [
                AND [
                    Homeworld
                    Not HasTag "SELF_SUSTAINING"
                ]
                HasSpecial name = "POSITRONIUM_SPECIAL"
                HasSpecial name = "SUPERCONDUCTOR_SPECIAL"
                HasSpecial name = "MONOPOLE_SPECIAL"
                HasSpecial name = "SPICE_SPECIAL"
                HasSpecial name = "FRUIT_SPECIAL"
                HasSpecial name = "PROBIOTIC_SPECIAL"
                HasSpecial name = "ELERIUM_SPECIAL"
                HasSpecial name = "CRYSTALS_SPECIAL"
                HasSpecial name = "MINERALS_SPECIAL"
            ]
            graphic = "icons/focus/growth.png"
'''

HAS_MINING_FOCUS
'''Focus
            name = "FOCUS_MINING"
            description = "FOCUS_MINING_DESC"
            location = And [
                HasSpecial "MINERALS_SPECIAL"
                HasSpecial "CRYSTALS_SPECIAL"
                HasSpecial "ELERIUM_SPECIAL"
            ]
            graphic = "icons/focus/mining.png"

'''

HAS_ADVANCED_FOCI
'''        Focus
            name = "FOCUS_PROTECTION"
            description = "FOCUS_PROTECTION_DESC"
            location = OwnerHasTech name = "DEF_ROOT_DEFENSE"
            graphic = "icons/focus/protection.png"
            
        Focus
            name = "FOCUS_LOGISTICS"
            description = "FOCUS_LOGISTICS_DESC"
            location = OwnerHasTech name = "SHP_INTSTEL_LOG"
            graphic = "icons/focus/supply.png"

        Focus
            name = "FOCUS_STEALTH"
            description = "FOCUS_STEALTH_DESC"
            location = Or [
                Contains Building "BLD_PLANET_CLOAK"
                And [
                    Contains Building "BLD_TRANSFORMER"
                    OwnerHasTech "DEF_PLANET_CLOAK"
                ]
            ]
            graphic = "icons/focus/stealth.png"

        Focus
            name = "FOCUS_BIOTERROR"
            description = "FOCUS_BIOTERROR_DESC"
            location = Or [
                Contains Building "BLD_BIOTERROR_PROJECTOR"
                And [
                    Contains Building "BLD_TRANSFORMER"
                    OwnerHasTech "GRO_BIOTERROR"
                ]
            ]
            graphic = "icons/focus/bioterror.png"

        Focus
            name = "FOCUS_STARGATE_SEND"
            description = "FOCUS_STARGATE_SEND_DESC"
            location = Or [
                Contains Building "BLD_STARGATE"
                And [
                    Contains Building "BLD_TRANSFORMER"
                    OwnerHasTech "CON_STARGATE"
                ]
            ]
            graphic = "icons/focus/stargate_send.png"

        Focus
            name = "FOCUS_STARGATE_RECEIVE"
            description = "FOCUS_STARGATE_RECEIVE_DESC"
            location = Or [
                Contains Building "BLD_STARGATE"
                And [
                    Contains Building "BLD_TRANSFORMER"
                    OwnerHasTech "CON_STARGATE"
                ]
            ]
            graphic = "icons/focus/stargate_receive.png"

        Focus
            name = "FOCUS_PLANET_DRIVE"
            description = "FOCUS_PLANET_DRIVE_DESC"
            location = Or [
                Contains Building "BLD_PLANET_DRIVE"
                And [
                    Contains Building "BLD_TRANSFORMER"
                    OwnerHasTech "CON_PLANET_DRIVE"
                ]
            ]
            graphic = "icons/focus/planet_drive.png"

        Focus
            name = "FOCUS_DISTORTION"
            description = "FOCUS_DISTORTION_DESC"
            location = Or [
                Contains Building "BLD_SPATIAL_DISTORT_GEN"
                And [
                    Contains Building "BLD_TRANSFORMER"
                    OwnerHasTech "LRN_SPATIAL_DISTORT_GEN"
                ]
            ]
            graphic = "icons/focus/distortion.png"

        Focus
            name = "FOCUS_DOMINATION"
            description = "FOCUS_DOMINATION_DESC"
            location = And [
                HasTag "TELEPATHIC"
                OwnerHasTech "LRN_PSY_DOM"
            ]
            graphic = "icons/focus/psi_domination.png"
'''

STANDARD_CONSTRUCTION
'''        EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "STANDARD_CONSTRUCTION_LABEL"
            effects = SetTargetConstruction Value + 20
'''

NO_SUPPLY
'''
'''

BAD_SUPPLY
'''
'''

AVERAGE_SUPPLY
'''     EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "AVERAGE_SUPPLY_LABEL"
            effects = SetMaxSupply Value + 1
'''

GREAT_SUPPLY
'''     EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "GREAT_SUPPLY_LABEL"
            effects = SetMaxSupply Value + 2
'''

ULTIMATE_SUPPLY
'''     EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "ULTIMATE_SUPPLY_LABEL"
            effects = SetMaxSupply Value + 3
'''


//#####     P O P U L A T I O N   #####  

AVERAGE_POPULATION
'''
        [[HOMEWORLD_BONUS_POPULATION]]
        [[ENVIRONMENT_MODIFIER]]
        [[SELF_SUSTAINING_BONUS]]
        [[PHOTOTROPHIC_BONUS]]
        [[HOMEWORLD_GROWTH_FOCUS_BOOST]]
        [[GAIA_POP_MODIFIER]]
        [[GRO_HAB_MODIFIER]]
        [[POPULATION_TECHS]]
        
        // Since all species have the same advanced focus effects and infrastructure, the macros are stashed here were they don't need to be manually included in each species macros.
        
        [[FOCUS_CHANGE_PENALTY]]
        [[ADVANCED_FOCUS_EFFECTS]]
        [[STANDARD_CONSTRUCTION]]
'''

BAD_POPULATION
'''     [[AVERAGE_POPULATION]]
    
        EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "BAD_POPULATION_LABEL"
            effects = SetTargetPopulation Value -0.25*abs(Value) 
'''

GOOD_POPULATION
'''     [[AVERAGE_POPULATION]]

        EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "GOOD_POPULATION_LABEL"
            effects = SetTargetPopulation Value +0.25*abs(Value) 
'''


XENOPHOBIC_SELF
'''     EffectsGroup
            scope = Source
            activation = Turn high = 0
            GiveEmpireTech name = "CON_CONC_CAMP"
    
        EffectsGroup
            scope = Source
            activation = And [
                PopulationCenter
                Number low = 1 high = 999 And [
                    PopulationCenter
                    OwnedBy TheEmpire Source.Owner
                    WithinStarlaneJumps 5 Source
                    Not Contains Building "BLD_CONC_CAMP"
                    Not OR [ 
                        Species Source.Species
                        Species "SP_EXOBOT"
                    ]
                    Not Population high = 0
                ]
            ]
            stackinggroup = "XENOPHOBIC_LABEL_SELF"
            accountinglabel = "XENOPHOBIC_LABEL_SELF"
            effects = [ 
                SetTargetIndustry Value*0.2 - 1
                SetTargetResearch Value*0.9
            ]
    
        EffectsGroup
            scope = Source
            activation = And [
                PopulationCenter
                HasTag "SELF_SUSTAINING"
            ]
            stackinggroup = "XENOPHOBIC_POP_SELF"
            accountinglabel = "XENOPHOBIC_LABEL_SELF"
            effects = SetTargetPopulation Value * (0.6 + (0.4 * (0.8 ^ 
                Count condition = And [
                    PopulationCenter
                    WithinStarlaneJumps 5 Source
                    VisibleToEmpire Source.Owner
                    Not OR [ 
                        Species Source.Species
                        Species "SP_EXOBOT"
                    ]
                    Not Population high = 0
                ]
                ) ) )

        EffectsGroup
            scope = Source
            activation = And [
                PopulationCenter
                Number low = 1 high = 999 And [
                    PopulationCenter
                    VisibleToEmpire Source.Owner
                    Not Contains Building "BLD_CONC_CAMP"
                    Not OR [
                        Species Source.Species
                        Species "SP_EXOBOT"
                    ]
                    Not Population high = 0
                    WithinStarlaneJumps 5 Source
                ]
            ]
            stackinggroup = "XENOPHOBIC_LABEL_SELF"
            accountinglabel = "XENOPHOBIC_LABEL_SELF"
            effects =
                SetTargetHappiness Value - Count condition = And [
                    PopulationCenter
                    VisibleToEmpire Source.Owner
                    Not OR [
                        Species Source.Species
                        Species "SP_EXOBOT"
                    ]
                    Not Population high = 0
                    WithinStarlaneJumps 5 Source
                ]

'''

XENOPHOBIC_OTHER_BEGIN
'''     EffectsGroup
            scope = And [
                PopulationCenter
                OwnedBy TheEmpire Source.Owner
                WithinStarlaneJumps 5 Source  
                Not Contains Building "BLD_CONC_CAMP"
                Not OR [ 
                    Species Source.Species
                    Species "SP_EXOBOT"
                ]
                Not Population high = 0
            ]
            activation = PopulationCenter
'''

XENOPHOBIC_OTHER_END
'''
            effects = SetTargetIndustry Value - Target.Population * 0.1
'''

/*
* Implements environmental modifiers from Growth techs.
* Changes to the growth tree should take this into account.
*/
ENVIRONMENT_MODIFIER
'''     EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = Hostile
            ]
            accountinglabel = "HOSTILE_ENVIRONMENT_LABEL"
            effects = SetTargetPopulation Value - 4 * Source.SizeAsDouble
            
        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = Poor
            ]
            accountinglabel = "POOR_ENVIRONMENT_LABEL"
            effects = SetTargetPopulation Value - 2 * Source.SizeAsDouble

/*        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = Adequate
            ]
            accountinglabel = "ADEQUATE_ENVIRONMENT_LABEL"
            effects = SetTargetPopulation Value + 0 * Source.SizeAsDouble
*/

        EffectsGroup
            scope = Source
            activation = Planet environment = Good
            accountinglabel = "GOOD_ENVIRONMENT_LABEL"
            effects = SetTargetPopulation Value + 3 * Target.SizeAsDouble

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = [ Good Adequate Poor ]
                OwnerHasTech "GRO_SYMBIOTIC_BIO"
            ]
            accountinglabel = "GRO_SYMBIOTIC_BIO"
            effects = SetTargetPopulation Value + 1 * Source.SizeAsDouble

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = [ Adequate Poor ]
                OwnerHasTech "GRO_XENO_GENETICS"
            ]
            accountinglabel = "GRO_XENO_GENETICS"
            effects = SetTargetPopulation Value + 2 * Source.SizeAsDouble

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = [ Hostile ]
                OwnerHasTech "GRO_XENO_GENETICS"
            ]
            accountinglabel = "GRO_XENO_GENETICS"
            effects = SetTargetPopulation Value + 1 * Source.SizeAsDouble

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = [ Poor ]
                OwnerHasTech "GRO_XENO_HYBRIDS"
            ]
            accountinglabel = "GRO_XENO_HYBRIDS"
            effects = SetTargetPopulation Value + 1 * Source.SizeAsDouble

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = [ Hostile ]
                OwnerHasTech "GRO_XENO_HYBRIDS"
            ]
            accountinglabel = "GRO_XENO_HYBRIDS"
            effects = SetTargetPopulation Value + 2 * Source.SizeAsDouble

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Planet environment = [ Hostile ]
                OwnerHasTech "GRO_CYBORG"
            ]
            accountinglabel = "GRO_CYBORG"
            effects = SetTargetPopulation Value + 2 * Source.SizeAsDouble  
'''

HOMEWORLD_BONUS_POPULATION
'''     EffectsGroup
            scope = AND [
                Source
                Homeworld name = Source.Species
            ]
            activation = Planet
            stackinggroup = "HOMEWORLD_STACK"
            accountinglabel = "HOMEWORLD_BONUS"
            effects = SetTargetPopulation Value + 2 * Target.SizeAsDouble  
'''

HOMEWORLD_GROWTH_FOCUS_BOOST
'''     EffectsGroup 
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                Species Source.Species
                Not Homeworld name = Source.Species
                TargetPopulation low = 0 high = 9999
                ResourceSupplyConnected empire = Source.Owner condition = Source
            ]
            activation = And [
                Planet
                Focus "FOCUS_GROWTH"
                Homeworld
            ]
            stackinggroup = "HOMEWORLD_STACK"
            accountinglabel = "HOMEWORLD_SUPPLY"
            effects = SetTargetPopulation Value + 1 * Target.SizeAsDouble
'''

GRO_HAB_MODIFIER
'''     EffectsGroup
            scope = Source
            activation = And [
                Planet
                OwnerHasTech "GRO_SUBTER_HAB"
                TargetPopulation low = 0 high = 9999
            ]
            accountinglabel = "SUBTERRANEAN_LABEL"
            effects = SetTargetPopulation Value + 1 * Target.SizeAsDouble
'''

GAIA_POP_MODIFIER
'''     EffectsGroup
            scope = Source
            activation = AND [
                Planet
                HasSpecial "GAIA_SPECIAL"
                Planet environment = Good
                TargetPopulation low = 0 high = 9999
            ]
            accountinglabel = "GAIA_LABEL"
            effects = SetTargetPopulation Value + 3 * Target.SizeAsDouble
'''

POPULATION_TECHS
'''     EffectsGroup
            scope = Source
            activation = AND [
                Planet
                OwnerHasTech "CON_NDIM_STRC"
                TargetPopulation low = 0 high = 9999
            ]
            accountinglabel = "NDIM_STRC_LABEL"
            effects = SetTargetPopulation Value + 2 * Target.SizeAsDouble
            
        EffectsGroup
            scope = Source
            activation = AND [
                Planet
                OwnerHasTech "CON_ORBITAL_HAB"
                TargetPopulation low = 0 high = 9999
            ]
            accountinglabel = "ORBITAL_HAB_LABEL"
            effects = SetTargetPopulation Value + 1 * Target.SizeAsDouble
'''

// This is dependent on current placement in population effects calc, just after Homeworld and Environment
SELF_SUSTAINING_BONUS
'''     EffectsGroup
            scope = AND [
                Source
                NOT Homeworld name = Source.Species
            ]
            activation = And [
                Planet
                HasTag "SELF_SUSTAINING"
                TargetPopulation low = 0 high = 9999
            ]
            accountinglabel = "SELF_SUSTAINING_LABEL"
            effects = SetTargetPopulation Value * 2    // Gets double the population based on environment and environment techs
        EffectsGroup
            scope = AND [
                Source
                Homeworld name = Source.Species
            ]
            activation = And [
                Planet
                HasTag "SELF_SUSTAINING"
                TargetPopulation low = 0 high = 9999
            ]
            accountinglabel = "SELF_SUSTAINING_LABEL"
            effects = SetTargetPopulation Value * 2 - (2 * Target.SizeAsDouble)    // prevents doubled homeworld bonus
'''

PHOTOTROPHIC_BONUS
'''     EffectsGroup
            scope = Contains Source
            activation = AND [
                Planet
                HasTag "PHOTOTROPHIC"
                Turn high = 0
                NOT Star type = [Orange]
            ]
            effects = SetStarType Yellow // start with a normal star to be balanced
 
        EffectsGroup
            scope = Source
            activation = AND [
                Planet
                HasTag "PHOTOTROPHIC"
                Star type = [Blue]
                TargetPopulation low = 0 high = 9999
            ]
            accountinglabel = "VERY_BRIGHT_STAR"
            effects = SetTargetPopulation Value + 3 * Source.SizeAsDouble
            
        EffectsGroup
            scope = Source
            activation = AND [
                Planet
                HasTag "PHOTOTROPHIC"
                Star type = [White]
                TargetPopulation low = 0 high = 9999
            ]
            accountinglabel = "BRIGHT_STAR"
            effects = SetTargetPopulation Value + 1.5 * Source.SizeAsDouble
            
        EffectsGroup
            scope = Source
            activation = AND [
                Planet
                HasTag "PHOTOTROPHIC"
                Star type = [Red Neutron]
            ]
            accountinglabel = "DIM_STAR"
            effects = SetTargetPopulation Value - 1 * Source.SizeAsDouble
            
        EffectsGroup
            scope = Source
            activation = AND [
                Planet
                HasTag "PHOTOTROPHIC"
                Star type = [BlackHole NoStar]
            ]
            accountinglabel = "NO_STAR"
            effects = SetTargetPopulation Value - 10 * Source.SizeAsDouble
'''
// Population end

AVERAGE_HAPPINESS
'''
        EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "BASIC_CONTENTEDNESS_LABEL"
            effects = SetTargetHappiness Value + 10
        
        EffectsGroup
            scope = Source
            activation = Focus Source.PreferredFocus
            accountinglabel = "FOCUS_PREFERENCE_LABEL"
            effects = SetTargetHappiness Value + 10
'''


FOCUS_CHANGE_PENALTY
'''
        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Not Focus "FOCUS_INDUSTRY"
            ]
            effects = SetIndustry Value - max(0, 1 - Target.TurnsSinceFocusChange)

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Not Focus "FOCUS_RESEARCH"
            ]
            effects = SetResearch Value - max(0, 1 - Target.TurnsSinceFocusChange)
'''

ADVANCED_FOCUS_EFFECTS
'''     EffectsGroup
            scope = Source
            activation = And [
                Planet
                Focus "FOCUS_STEALTH"
            ]
            effects = SetStealth Value + 15

        EffectsGroup
            scope = And [
                Planet
                OwnedBy EnemyOf Source.Owner
                WithinStarlaneJumps 4 Source
                Not Number low = 1 And [
                    Building "BLD_GENOME_BANK"
                    OwnedBy TheEmpire RootCandidate.Owner
                ]
            ]
            activation = Focus "FOCUS_BIOTERROR"
            effects = SetTargetPopulation Value - 4

        EffectsGroup
            scope = And [
                Fleet
                OwnedBy TheEmpire Source.Owner
                ContainedBy And [
                    System 
                    Contains And [
                        Planet
                        OwnedBy TheEmpire Source.Owner
                        Focus "FOCUS_STARGATE_SEND"
                    ]
                ]
            ]
            activation = And [
                Planet
                Focus "FOCUS_STARGATE_RECEIVE"
            ]
            stackinggroup = "STARGATE_STACK"
            effects = [
                GenerateSitrepMessage
                    message = "EFFECT_STARGATE"
                    icon = "icons/focus/stargate_receive.png"
                    parameters = [
                        tag = "fleet" data = Target.ID
                        tag = "system" data = Source.SystemID
                    ]
                    empire = Source.Owner
                MoveTo And [
                    Contains Source
                    System
                ]
            ]

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Focus "FOCUS_PLANET_DRIVE"
                WithinStarlaneJumps 1 Building name = "BLD_PLANET_BEACON"
            ]
            effects = [
                MoveTo And [
                    OwnedBy TheEmpire Source.Owner
                    WithinStarlaneJumps 1 Source
                    Contains And [
                        Building name = "BLD_PLANET_BEACON"
                        OwnedBy TheEmpire Source.Owner
                    ]
                ]
                SetPopulation Value / 2
            ]

        EffectsGroup
            scope = Source
            activation = And [
                Planet
                Focus "FOCUS_PLANET_DRIVE"
                Random probability = 0.5
                WithinStarlaneJumps 1 Building name = "BLD_PLANET_BEACON"
                Not WithinDistance 200 Building name = "BLD_LIGHTHOUSE"
            ]
            effects = Destroy

        EffectsGroup
            scope = And [
                Fleet
                Not Stationary
                OwnedBy EnemyOf Source.Owner
                WithinStarlaneJumps 1 Source
                Not WithinDistance 0 Source
            ]
            activation = And [
                Planet
                Focus "FOCUS_DISTORTION"
            ]
            effects = MoveTo And [
                System
                WithinStarlaneJumps 1 Source
                Not WithinDistance 0 Source
            ]

        EffectsGroup
            scope = Source
            activation = Focus "FOCUS_LOGISTICS"
            accountinglabel = "SHP_INTSTEL_LOG"
            effects = SetMaxSupply Value + 3
'''

//#####      I N D U S T R Y    #####//

NO_INDUSTRY
'''
'''

BAD_INDUSTRY
'''[[AVERAGE_INDUSTRY]]

        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                TargetIndustry Low = 0
                Focus type = "FOCUS_INDUSTRY"
            ]
            accountinglabel = "BAD_INDUSTRY_LABEL"
            effects = SetTargetIndustry Value*[[BAD_MULTIPLIER]]
'''

AVERAGE_INDUSTRY
'''        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                TargetIndustry Low = 0
                Focus type = "FOCUS_INDUSTRY"
            ]
            accountinglabel = "FOCUS_INDUSTRY_LABEL"
            effects = SetTargetIndustry Value + Target.Population * [[INDUSTRY_PER_POP]]
           
        EffectsGroup                    // removes residual production from a dead planet
            scope = Source
            activation = And [
                Planet
                TargetPopulation low = 0 high = 0
            ]
            effects = SetIndustry Value = 0
'''

GOOD_INDUSTRY
'''[[AVERAGE_INDUSTRY]]

        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                TargetIndustry Low = 0
                Focus type = "FOCUS_INDUSTRY"
            ]
            accountinglabel = "GOOD_INDUSTRY_LABEL"
            effects = SetTargetIndustry Value*[[GOOD_MULTIPLIER]]
'''

GREAT_INDUSTRY
'''[[AVERAGE_INDUSTRY]]

        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                TargetIndustry Low = 0
                Focus type = "FOCUS_INDUSTRY"
            ]
            accountinglabel = "GREAT_INDUSTRY_LABEL"
            effects = SetTargetIndustry Value*[[GREAT_MULTIPLIER]]
'''

ULTIMATE_INDUSTRY
'''[[AVERAGE_INDUSTRY]]

        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                TargetIndustry Low = 0
                Focus type = "FOCUS_INDUSTRY"
            ]
            accountinglabel = "ULTIMATE_INDUSTRY_LABEL"
            effects = SetTargetIndustry Value*[[ULTIMATE_MULTIPLIER]]
'''

//#####      R E S E A R C H    #####//

NO_RESEARCH
'''
'''

BAD_RESEARCH
'''[[AVERAGE_RESEARCH]]

        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                Focus type = "FOCUS_RESEARCH"
            ]
            accountinglabel = "BAD_RESEARCH_LABEL"
            effects = SetTargetResearch Value*[[BAD_MULTIPLIER]]
'''

AVERAGE_RESEARCH
'''EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                Focus type = "FOCUS_RESEARCH"
            ]
            accountinglabel = "FOCUS_RESEARCH_LABEL"
            effects = SetTargetResearch Value + Target.Population * [[RESEARCH_PER_POP]]
           
        EffectsGroup      // removes residual production from a dead planet
            scope = Source
            activation = And [
                Planet
                TargetPopulation low = 0 high = 0
            ]
            effects = SetResearch Value = 0
'''

GOOD_RESEARCH
'''[[AVERAGE_RESEARCH]]

        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                Focus type = "FOCUS_RESEARCH"
            ]
            accountinglabel = "GOOD_RESEARCH_LABEL"
            effects = SetTargetResearch Value*[[GOOD_MULTIPLIER]]
'''

GREAT_RESEARCH
'''[[AVERAGE_RESEARCH]]

        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                Focus type = "FOCUS_RESEARCH"
            ]
            accountinglabel = "GREAT_RESEARCH_LABEL"
            effects = SetTargetResearch Value*[[GREAT_MULTIPLIER]]
'''

ULTIMATE_RESEARCH
'''[[AVERAGE_RESEARCH]]

        EffectsGroup
            scope = Source
            activation = And [
                Source
                Planet
                Focus type = "FOCUS_RESEARCH"
            ]
            accountinglabel = "ULTIMATE_RESEARCH_LABEL"
            effects = SetTargetResearch Value*[[ULTIMATE_MULTIPLIER]]
'''

//#####      T R O O P S     #####//

NO_GROUND_TROOPS
''' '''

BAD_GROUND_TROOPS
'''[[BASIC_GROUND_TROOPS]]

EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "BAD_TROOPS_LABEL"
            effects = SetMaxTroops Value * .5
            
    [[PROTECTION_FOCUS_TROOPS]]
'''

AVERAGE_GROUND_TROOPS
'''[[BASIC_GROUND_TROOPS]]

EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "AVERAGE_TROOPS_LABEL"
            effects = SetMaxTroops Value * 1
            
    [[PROTECTION_FOCUS_TROOPS]]
'''

GOOD_GROUND_TROOPS
'''[[BASIC_GROUND_TROOPS]]

EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "GOOD_TROOPS_LABEL"
            effects = SetMaxTroops Value * 1.5
            
    [[PROTECTION_FOCUS_TROOPS]]
'''

GREAT_GROUND_TROOPS
'''[[BASIC_GROUND_TROOPS]]

EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "GREAT_TROOPS_LABEL"
            effects = SetMaxTroops Value * 2
            
    [[PROTECTION_FOCUS_TROOPS]]
'''

ULTIMATE_GROUND_TROOPS
'''[[BASIC_GROUND_TROOPS]]

EffectsGroup
            scope = Source
            activation = Planet
            accountinglabel = "ULTIMATE_TROOPS_LABEL"
            effects = SetMaxTroops Value * 3
            
    [[PROTECTION_FOCUS_TROOPS]]
'''

BASIC_GROUND_TROOPS
'''EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = NOT OwnerHasTech "DEF_GARRISON_1"
            stackinggroup = "BASIC_TROOPS_STACK"
            accountinglabel = "DEF_ROOT_DEFENSE"
            effects = SetMaxTroops Value + 2    

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = AND [
                Planet
                OwnerHasTech "DEF_GARRISON_1"
                NOT OwnerHasTech "DEF_GARRISON_2"
            ]
            stackinggroup = "BASIC_TROOPS_STACK"
            accountinglabel = "DEF_GARRISON_1"
            effects = SetMaxTroops Value + 5
            
EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = AND [
                Planet
                OwnerHasTech "DEF_GARRISON_2"
                NOT OwnerHasTech "DEF_GARRISON_3"
            ]
            stackinggroup = "BASIC_TROOPS_STACK"
            accountinglabel = "DEF_GARRISON_2"
            effects = SetMaxTroops Value + 10

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = AND [
                Planet
                OwnerHasTech "DEF_GARRISON_3"
                NOT OwnerHasTech "DEF_GARRISON_4"
            ]
            stackinggroup = "BASIC_TROOPS_STACK"
            accountinglabel = "DEF_GARRISON_3"
            effects = SetMaxTroops Value + 15        

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_GARRISON_4"
            ]
            stackinggroup = "BASIC_TROOPS_STACK"
            accountinglabel = "DEF_GARRISON_4"
            effects = SetMaxTroops Value + 20
             
EffectsGroup
            scope = AND [
                Planet
                OwnedBy TheEmpire Source.Owner
                Population high = 0
            ]
            stackinggroup = "OUTPOST_TROOPS_STACK"
            accountinglabel = "OUTPOST_TROOP_LABEL"
            effects = SetMaxTroops Value * .5

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                Contains Building name = "BLD_IMPERIAL_PALACE"
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_ROOT_DEFENSE"
            ]
            stackinggroup = "PALACE_TROOPS_STACK"
            accountinglabel = "BLD_IMPERIAL_PALACE"
            effects = SetMaxTroops Value + 3

EffectsGroup
            scope = AND [
                Homeworld
                OwnedBy TheEmpire Source.Owner
            ]
            activation = Planet
            stackinggroup = "HOMEWORLD_TROOPS_STACK"
            accountinglabel = "HOMEWORLD_LABEL"
            effects = SetMaxTroops Value + 2

EffectsGroup
            scope = Source
            activation = And [
                Planet
                Not OwnedBy AnyEmpire
            ]
            stackinggroup = "BASIC_TROOPS_STACK"
            accountinglabel = "INDEPENDENT_TROOP_LABEL"
            effects = SetMaxTroops Value + 12

'''

PROTECTION_FOCUS_TROOPS
'''            EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                Focus "FOCUS_PROTECTION"
            ]
            activation = Planet
            stackinggroup = "FOCUS_PROTECTION_TROOPS_STACK"
            accountinglabel = "FOCUS_PROTECTION_LABEL"
            effects = SetMaxTroops Value * 2
'''

//#####      P L A N E T A R Y   S H I E L D S     #####//


NATIVE_PLANETARY_SHIELDS
'''[[BASIC_PLANETARY_SHIELDS]]

EffectsGroup
            scope = Source
            activation = And [
                Planet
                Not OwnedBy AnyEmpire
            ]
            accountinglabel = "NATIVE_PLANETARY_SHIELDS_LABEL"
            effects = SetMaxShield Value + 10
            
    [[PROTECTION_FOCUS_SHIELDS]]
'''


AVERAGE_PLANETARY_SHIELDS
'''[[BASIC_PLANETARY_SHIELDS]]

//EffectsGroup
//            scope = Source
//            activation = Planet
//          accountinglabel = "AVERAGE_SHIELDS_LABEL"
//            effects = SetMaxShield Value * 1
            
    [[PROTECTION_FOCUS_SHIELDS]]
'''

BASIC_PLANETARY_SHIELDS
'''EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "LRN_FORCE_FIELD"
            ]
            stackinggroup = "PLANET_SHIELDS_STACK_FF"
            accountinglabel = "LRN_FORCE_FIELD"
            effects = SetMaxShield Value + 10

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_PLAN_BARRIER_SHLD_1"
            ]
            stackinggroup = "PLANET_SHIELDS_STACK_1"
            accountinglabel = "DEF_PLAN_BARRIER_SHLD_1"
            SetMaxShield Value + 30

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_PLAN_BARRIER_SHLD_2"
            ]
            stackinggroup = "PLANET_SHIELDS_STACK_2"
            accountinglabel = "DEF_PLAN_BARRIER_SHLD_2"
            SetMaxShield Value + 60

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_PLAN_BARRIER_SHLD_3"
            ]
            stackinggroup = "PLANET_SHIELDS_STACK_3"
            accountinglabel = "DEF_PLAN_BARRIER_SHLD_3"
            SetMaxShield Value + 90

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_PLAN_BARRIER_SHLD_4"
            ]
            stackinggroup = "PLANET_SHIELDS_STACK_4"
            accountinglabel = "DEF_PLAN_BARRIER_SHLD_4"
            SetMaxShield Value + 150

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_PLAN_BARRIER_SHLD_5"
            ]
            stackinggroup = "PLANET_SHIELDS_STACK_5"
            accountinglabel = "DEF_PLAN_BARRIER_SHLD_5"
            SetMaxShield Value + 150

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                Population low = 0.000001
            ]
            activation = And [
                Planet
                OwnerHasTech "GRO_ENERGY_META"
            ]
            stackinggroup = "PLANET_SHIELDS_STACK_GEM"
            accountinglabel = "GRO_ENERGY_META"
            SetMaxShield Value + 50
'''

PROTECTION_FOCUS_SHIELDS
'''            EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                Focus "FOCUS_PROTECTION"
            ]
            activation = Planet
            stackinggroup = "FOCUS_PROTECTION_SHIELDS_STACK"
            accountinglabel = "FOCUS_PROTECTION_LABEL"
            effects = SetMaxShield Value * 2
'''

//#####      P L A N E T A R Y   D E F E N S E     #####//

NATIVE_PLANETARY_DEFENSE
'''[[BASIC_PLANETARY_DEFENSE]]

EffectsGroup
            scope = Source
            activation = And [
                Planet
                Not OwnedBy AnyEmpire
            ]
            accountinglabel = "NATIVE_PLANETARY_DEFENSE_LABEL"
            effects = [
                SetMaxDefense Value + 10
                SetDetection Value + 10
                ]
    [[PROTECTION_FOCUS_DEFENSE]]
'''

AVERAGE_PLANETARY_DEFENSE
'''[[BASIC_PLANETARY_DEFENSE]]

//EffectsGroup
//            scope = Source
//            activation = Planet
//          accountinglabel = "AVERAGE_SHIELDS_LABEL"
//            effects = SetMaxDefense Value * 1
            
    [[PROTECTION_FOCUS_DEFENSE]]
'''

BASIC_PLANETARY_DEFENSE
'''EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                Contains Building name = "BLD_IMPERIAL_PALACE"
            ]
            activation = Planet
            stackinggroup = "PALACE_DEFENSE_STACK"
            accountinglabel = "BLD_IMPERIAL_PALACE"
            effects = SetMaxDefense Value + 5

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_DEFENSE_NET_1"
            ]
            stackinggroup = "DEFENSE_NET_STACK_1"
            accountinglabel = "DEF_DEFENSE_NET_1"
            effects = SetMaxDefense Value + 5

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_DEFENSE_NET_2"
            ]
            stackinggroup = "DEFENSE_NET_STACK_2"
            accountinglabel = "DEF_DEFENSE_NET_2"
            effects = SetMaxDefense Value + 15

EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
            ]
            activation = And [
                Planet
                OwnerHasTech "DEF_DEFENSE_NET_3"
            ]
            stackinggroup = "DEFENSE_NET_STACK_3"
            accountinglabel = "DEF_DEFENSE_NET_3"
            effects = SetMaxDefense Value + 25

EffectsGroup
            scope = Source
            activation = And [
                PopulationCenter
                OwnerHasTech "GRO_ENERGY_META"
            ]
            stackinggroup = "DEFENSE_NET_STACK_GM"
            accountinglabel = "GRO_ENERGY_META"
            effects = SetMaxDefense Value + 10
'''

PROTECTION_FOCUS_DEFENSE
'''            EffectsGroup
            scope = And [
                Planet
                OwnedBy TheEmpire Source.Owner
                Focus "FOCUS_PROTECTION"
            ]
            activation = Planet
            stackinggroup = "FOCUS_PROTECTION_DEFENSE_STACK"
            accountinglabel = "FOCUS_PROTECTION_LABEL"
            effects = SetMaxDefense Value * 2
'''

//#####      D E T E C T I O N     #####//

BAD_DETECTION
'''EffectsGroup
            scope = Source
            activation = Not Ship
            effects = SetDetection Value -20
    EffectsGroup
            scope = Source
            activation = Ship
            effects = SetDetection Value -9
'''

GOOD_DETECTION
'''EffectsGroup
            scope = Source
            effects = SetDetection Value + 25
'''

GREAT_DETECTION
'''        EffectsGroup
            scope = Source
            effects = SetDetection Value + 50
'''

ULTIMATE_DETECTION
'''        EffectsGroup
            scope = Source
            effects = SetDetection Value + 100
'''


//#####      S T E A L T H     #####//

BAD_STEALTH
'''EffectsGroup
            scope = Or [
                Source
                And [
                    ContainedBy Source
                    Not HasTag "ORBITAL"
                ]
            ]
            activation = Planet
            stackinggroup = "SPECIES_STEALTH_STACK"
            effects = SetStealth Value - 15
'''

GOOD_STEALTH
'''EffectsGroup
            scope = Or [
                Source
                And [
                    ContainedBy Source
                    Not HasTag "ORBITAL"
                ]
            ]
            activation = Planet
            stackinggroup = "SPECIES_STEALTH_STACK"
            effects = SetStealth Value + 15
'''
            
GREAT_STEALTH
'''EffectsGroup
            scope = Or [
                Source
                And [
                    ContainedBy Source
                    Not HasTag "ORBITAL"
                ]
            ]
            activation = Planet
            stackinggroup = "SPECIES_STEALTH_STACK"
            effects = SetStealth Value + 40
'''

ULTIMATE_STEALTH
'''EffectsGroup
            scope = Or [
                Source
                And [
                    ContainedBy Source
                    Not HasTag "ORBITAL"
                ]
            ]
            activation = Planet
            stackinggroup = "SPECIES_STEALTH_STACK"
            effects = SetStealth Value + 60
'''

//#####      W E A P O N S     #####//

BAD_WEAPONS
'''        EffectsGroup
            scope = Source
            effects = [
                SetDamage partname = "SR_WEAPON_1_1" value = Value - 1
                SetDamage partname = "SR_WEAPON_1_2" value = Value - 1
                SetDamage partname = "SR_WEAPON_1_3" value = Value - 2
                SetDamage partname = "SR_WEAPON_1_4" value = Value - 2
                SetDamage partname = "SR_WEAPON_2_1" value = Value - 2
                SetDamage partname = "SR_WEAPON_2_2" value = Value - 2
                SetDamage partname = "SR_WEAPON_2_3" value = Value - 3
                SetDamage partname = "SR_WEAPON_2_4" value = Value - 3
                SetDamage partname = "SR_WEAPON_3_1" value = Value - 3
                SetDamage partname = "SR_WEAPON_3_2" value = Value - 3
                SetDamage partname = "SR_WEAPON_3_3" value = Value - 4
                SetDamage partname = "SR_WEAPON_3_4" value = Value - 5
                SetDamage partname = "SR_WEAPON_4_1" value = Value - 4
                SetDamage partname = "SR_WEAPON_4_2" value = Value - 5
                SetDamage partname = "SR_WEAPON_4_3" value = Value - 7
                SetDamage partname = "SR_WEAPON_4_4" value = Value - 8
        ]
'''

GOOD_WEAPONS
'''        EffectsGroup
            scope = Source
            effects = [
                SetDamage partname = "SR_WEAPON_1_1" value = Value + 1
                SetDamage partname = "SR_WEAPON_1_2" value = Value + 1
                SetDamage partname = "SR_WEAPON_1_3" value = Value + 2
                SetDamage partname = "SR_WEAPON_1_4" value = Value + 2
                SetDamage partname = "SR_WEAPON_2_1" value = Value + 2
                SetDamage partname = "SR_WEAPON_2_2" value = Value + 2
                SetDamage partname = "SR_WEAPON_2_3" value = Value + 3
                SetDamage partname = "SR_WEAPON_2_4" value = Value + 3
                SetDamage partname = "SR_WEAPON_3_1" value = Value + 3
                SetDamage partname = "SR_WEAPON_3_2" value = Value + 3
                SetDamage partname = "SR_WEAPON_3_3" value = Value + 4
                SetDamage partname = "SR_WEAPON_3_4" value = Value + 5
                SetDamage partname = "SR_WEAPON_4_1" value = Value + 4
                SetDamage partname = "SR_WEAPON_4_2" value = Value + 5
                SetDamage partname = "SR_WEAPON_4_3" value = Value + 7
                SetDamage partname = "SR_WEAPON_4_4" value = Value + 8
        ]
'''

GREAT_WEAPONS
'''        EffectsGroup
            scope = Source
            effects = [
                SetDamage partname = "SR_WEAPON_1_1" value = Value + 2
                SetDamage partname = "SR_WEAPON_1_2" value = Value + 2
                SetDamage partname = "SR_WEAPON_1_3" value = Value + 3
                SetDamage partname = "SR_WEAPON_1_4" value = Value + 3
                SetDamage partname = "SR_WEAPON_2_1" value = Value + 3
                SetDamage partname = "SR_WEAPON_2_2" value = Value + 3
                SetDamage partname = "SR_WEAPON_2_3" value = Value + 5
                SetDamage partname = "SR_WEAPON_2_4" value = Value + 6
                SetDamage partname = "SR_WEAPON_3_1" value = Value + 5
                SetDamage partname = "SR_WEAPON_3_2" value = Value + 6
                SetDamage partname = "SR_WEAPON_3_3" value = Value + 8
                SetDamage partname = "SR_WEAPON_3_4" value = Value + 9
                SetDamage partname = "SR_WEAPON_4_1" value = Value + 8
                SetDamage partname = "SR_WEAPON_4_2" value = Value + 10
                SetDamage partname = "SR_WEAPON_4_3" value = Value + 13
                SetDamage partname = "SR_WEAPON_4_4" value = Value + 15
        ]
'''

ULTIMATE_WEAPONS
'''
        EffectsGroup
            scope = Source
            effects = [
                SetDamage partname = "SR_WEAPON_1_1" value = Value + 3
                SetDamage partname = "SR_WEAPON_1_2" value = Value + 4
                SetDamage partname = "SR_WEAPON_1_3" value = Value + 5
                SetDamage partname = "SR_WEAPON_1_4" value = Value + 6
                SetDamage partname = "SR_WEAPON_2_1" value = Value + 5
                SetDamage partname = "SR_WEAPON_2_2" value = Value + 7
                SetDamage partname = "SR_WEAPON_2_3" value = Value + 9
                SetDamage partname = "SR_WEAPON_2_4" value = Value + 11
                SetDamage partname = "SR_WEAPON_3_1" value = Value + 9
                SetDamage partname = "SR_WEAPON_3_2" value = Value + 12
                SetDamage partname = "SR_WEAPON_3_3" value = Value + 15
                SetDamage partname = "SR_WEAPON_3_4" value = Value + 18
                SetDamage partname = "SR_WEAPON_4_1" value = Value + 15
                SetDamage partname = "SR_WEAPON_4_2" value = Value + 20
                SetDamage partname = "SR_WEAPON_4_3" value = Value + 25
                SetDamage partname = "SR_WEAPON_4_4" value = Value + 30
        ]

'''

//#####      P L A N E T   S I Z E     #####//

HUGE_PLANET
'''EffectsGroup
        scope = Source
        activation = And [
            Planet
            Turn high = 0
        ]
        effects = SetPlanetSize Huge
'''

LARGE_PLANET
'''EffectsGroup
        scope = Source
        activation = And [
            Planet
            Turn high = 0
        ]
        effects = SetPlanetSize Large
'''

MEDIUM_PLANET
'''EffectsGroup
        scope = Source
        activation = And [
            Planet
            Turn high = 0
        ]
        effects = SetPlanetSize Medium
'''

SMALL_PLANET
'''EffectsGroup
        scope = Source
        activation = And [
            Planet
            Turn high = 0
        ]
        effects = SetPlanetSize Small
'''

NOT_HUGE_PLANET
'''EffectsGroup
        scope = Source
        activation = AND [
            Planet
            Turn high = 0
            Planet Size = Huge
        ]
        effects = SetPlanetSize Large
'''

//#####      M U L T I P L I E R S     #####//

BAD_MULTIPLIER
'''0.5'''

AVERAGE_MULTIPLIER
'''1.0'''

GOOD_MULTIPLIER
'''1.5'''

GREAT_MULTIPLIER
'''2.0'''

ULTIMATE_MULTIPLIER
'''4.0'''

BAD_MULTIPLIER_WHOLE
'''0'''

AVERAGE_MULTIPLIER_WHOLE
'''1'''

GOOD_MULTIPLIER_WHOLE
'''2'''

GREAT_MULTIPLIER_WHOLE
'''3'''

ULTIMATE_MULTIPLIER_WHOLE
'''4'''

ADEQUATE_MULTIPLIER
'''0.75'''

POOR_MULTIPLIER
'''0.5'''

HOSTILE_MULTIPLIER
'''0.0'''
