
Hull
    name = "SH_XENTRONIUM"
    description = "SH_XENTRONIUM_DESC"
    speed = 70
    fuel = 3
    stealth = 5
    structure = 50
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.40, 0.40)
        Slot type = External position = (0.60, 0.40)
        Slot type = Core     position = (0.30, 0.65)
    ]
    buildCost = 50 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 5
    tags = [ "SHINY" "EXOTIC" ]
    location = Contains And [
        Building name = "BLD_SHIPYARD_BASE"
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/xentronium_hull_small.png"
    graphic = "hulls_design/xentronium_hull.png"

Hull
    name = "SH_COLONY_BASE"
    description = "SH_COLONY_BASE_DESC"
    speed = 0
    fuel = 0
    stealth = 5
    structure = 2
    slots = Slot type = Internal position = (0.50, 0.50)
    buildCost = 1
    buildTime = 3
    location = OwnedBy empire = Source.Owner
    effectsgroups =
        [[REGULAR_HULL_DETECTION]]
    icon = "icons/ship_hulls/colony_base_hull_small.png"
    graphic = "hulls_design/colony_base_hull.png"
    
Hull
    name = "SH_BASIC_SMALL"
    description = "SH_BASIC_SMALL_DESC"
    speed = 75
    fuel = 4
    stealth = 5
    structure = 5
    slots = [
        Slot type = External position = (0.50, 0.45)
    ]
    buildCost = 10.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = Contains And [
        Building name = "BLD_SHIPYARD_BASE"
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/basic-small-hull_small.png"
    graphic = "hulls_design/basic-small-hull.png"
    
Hull
    name = "SH_BASIC_MEDIUM"
    description = "SH_BASIC_MEDIUM_DESC"
    speed = 60
    fuel = 3
    stealth = 5
    structure = 10
    slots = [
        Slot type = External position = (0.35, 0.40)
        Slot type = External position = (0.65, 0.40)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 20 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = Contains And [
        Building name = "BLD_SHIPYARD_BASE"
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/basic-medium-hull_small.png"
    graphic = "hulls_design/basic-medium-hull.png"

Hull
    name = "SH_STANDARD"
    description = "SH_STANDARD_DESC"
    speed = 60
    fuel = 3
    stealth = 5
    structure = 15
    slots = [
        Slot type = External position = (0.20, 0.20)
        Slot type = External position = (0.50, 0.20)
        Slot type = External position = (0.80, 0.20)
        Slot type = Internal position = (0.50, 0.60)
    ]
    buildCost = 30 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = Contains And [
        Building name = "BLD_SHIPYARD_BASE"
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/generic_hull.png"
    graphic = "hulls_design/generic_hull.png"

Hull
    name = "SH_ROBOTIC"
    description = "SH_ROBOTIC_DESC"
    speed = 75
    fuel = 3
    stealth = 5
    structure = 25
    slots = [
        Slot type = External position = (0.25, 0.25)
        Slot type = External position = (0.40, 0.25)
        Slot type = External position = (0.55, 0.25)
        Slot type = External position = (0.70, 0.25)
        Slot type = Internal position = (0.50, 0.55)
    ]
    buildCost = 40 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = SetStructure value = Value + 2

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/robotic_hull_small.png"
    graphic = "hulls_design/robotic_hull.png"

Hull
    name = "SH_SPATIAL_FLUX"
    description = "SH_SPATIAL_FLUX_DESC"
    speed = 80
    fuel = 6
    stealth = 15
    structure = 3
    slots = [
        Slot type = External position = (0.40, 0.50)
        Slot type = External position = (0.60, 0.50)
    ]
    buildCost = 6 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Not Stationary
            effects = SetStealth value = Value - 30

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/spatial_flux_hull_small.png"
    graphic = "hulls_design/spatial_flux_hull.png"

Hull
    name = "SH_SELF_GRAVITATING"
    description = "SH_SELF_GRAVITATING_DESC"
    speed = 80
    fuel = 3
    stealth = -5
    structure = 100
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.35, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.65, 0.15)
        Slot type = External position = (0.40, 0.80)
        Slot type = Core     position = (0.50, 0.50)
        Slot type = External position = (0.80, 0.50)
        Slot type = Internal position = (0.35, 0.50)
        Slot type = Internal position = (0.65, 0.50)
    ]
    buildCost = 60 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_CON_GEOINT"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/self_gravitating_hull_small.png"
    graphic = "hulls_design/self_gravitating_hull.png"

Hull
    name = "SH_NANOROBOTIC"
    description = "SH_NANOROBOTIC_DESC"
    speed = 80
    fuel = 3
    stealth = 5
    structure = 30
    slots = [
        Slot type = External position = (0.10, 0.25)
        Slot type = External position = (0.25, 0.25)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.55, 0.15)
        Slot type = External position = (0.70, 0.25)
        Slot type = External position = (0.85, 0.25)
        Slot type = Internal position = (0.45, 0.50)
    ]
    buildCost = 50 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_CON_NANOROBO"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Turn low = Source.CreationTurn + 1
            effects = SetStructure value = Target.MaxStructure

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/nano_robotic_hull_small.png"
    graphic = "hulls_design/nano_robotic_hull.png"

Hull
    name = "SH_TITANIC"
    description = "SH_TITANIC_DESC"
    speed = 80
    fuel = 3
    stealth = -35
    structure = 160
    slots = [
        Slot type = External position = (0.10, 0.15)
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.30, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.80, 0.15)
        Slot type = External position = (0.10, 0.85)
        Slot type = External position = (0.20, 0.85)
        Slot type = External position = (0.30, 0.85)
        Slot type = External position = (0.40, 0.85)
        Slot type = External position = (0.50, 0.85)
        Slot type = External position = (0.60, 0.85)
        Slot type = External position = (0.70, 0.85)
        Slot type = External position = (0.80, 0.85)
        Slot type = Internal position = (0.30, 0.50)
        Slot type = Internal position = (0.60, 0.50)
        Slot type = Internal position = (0.70, 0.50)
        Slot type = Core     position = (0.45, 0.50)
    ]
    buildCost = 160 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 5
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_CON_GEOINT"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/titanic_hull_small.png"
    graphic = "hulls_design/titanic_hull.png"

Hull
    name = "SH_TRANSSPATIAL"
    description = "SH_TRANSSPATIAL_DESC"
    speed = 80
    fuel = 3
    stealth = 15
    structure = 9
    slots = [
        Slot type = External position = (0.40, 0.50)
        Slot type = Core     position = (0.60, 0.50)
        ]
    buildCost = 10 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 3
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_CON_ADV_ENGINE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/trans_spatial_hull_small.png"
    graphic = "hulls_design/trans_spatial_hull.png"

Hull
    name = "SH_LOGISTICS_FACILITATOR"
    description = "SH_LOGISTICS_FACILITATOR_DESC"
    speed = 80
    fuel = 3
    stealth = 5
    structure = 110
    slots = [
        Slot type = External position = (0.10, 0.15)
        Slot type = External position = (0.22, 0.15)
        Slot type = External position = (0.34, 0.15)
        Slot type = External position = (0.46, 0.15)
        Slot type = External position = (0.58, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.82, 0.15)
        Slot type = Internal position = (0.22, 0.50)
        Slot type = Internal position = (0.34, 0.50)
        Slot type = Core     position = (0.50, 0.50)
    ]
    buildCost = 100 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 8
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_CON_ADV_ENGINE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_CON_GEOINT"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_CON_NANOROBO"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORBITAL_DRYDOCK"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = And [
                Ship
                InSystem id = Source.SystemID
                Turn low = Target.CreationTurn + 1
                Or [
                    OwnedBy empire = Source.Owner
                    OwnedBy affiliation = AllyOf empire = Source.Owner
                ]
            ]
            activation = And [
                InSystem
                Turn low = Source.CreationTurn + 1
            ]
            stackinggroup = "FLAGSHIP_EFFECT_LOGISTICS"
            effects = SetStructure value = max(Target.Structure, Target.MaxStructure)

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/logistics_facilitator_hull_small.png"
    graphic = "hulls_design/logistics_facilitator_hull.png"

Hull
    name = "SH_ASTEROID"
    description = "SH_ASTEROID_DESC"
    speed = 60
    fuel = 2
    stealth = 5
    structure = 30
    slots = [
        Slot type = External position = (0.47, 0.20)
        Slot type = External position = (0.25, 0.50)
        Slot type = External position = (0.70, 0.50)
        Slot type = External position = (0.47, 0.80)
        Slot type = Internal position = (0.40, 0.50)
        Slot type = Internal position = (0.55, 0.50)
    ]
    buildCost = 20.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Planet
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 20

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/asteroid_hull_small.png"
    graphic = "hulls_design/asteroid_hull.png"

Hull
    name = "SH_SMALL_ASTEROID"
    description = "SH_SMALL_ASTEROID_DESC"
    speed = 60
    fuel = 2
    stealth = 5
    structure = 15
    slots = [
        Slot type = External position = (0.60, 0.50)
        Slot type = Internal position = (0.40, 0.50)
    ]
    buildCost = 6.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 20

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/small_asteroid_hull_small.png"
    graphic = "hulls_design/small_asteroid_hull.png"

Hull
    name = "SH_HEAVY_ASTEROID"
    description = "SH_HEAVY_ASTEROID_DESC"
    speed = 60
    fuel = 2
    stealth = 5
    structure = 50
    slots = [
        Slot type = External position = (0.30, 0.25)
        Slot type = External position = (0.45, 0.25)
        Slot type = External position = (0.60, 0.25)
        Slot type = External position = (0.75, 0.50)
        Slot type = External position = (0.52, 0.75)
        Slot type = External position = (0.68, 0.75)
        Slot type = Internal position = (0.30, 0.50)
        Slot type = Internal position = (0.45, 0.50)
        Slot type = Internal position = (0.60, 0.50)
    ]
    buildCost = 40.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 3
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 20

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/heavy_asteroid_hull_small.png"
    graphic = "hulls_design/heavy_asteroid_hull.png"

Hull
    name = "SH_CAMOUFLAGE_ASTEROID"
    description = "SH_CAMOUFLAGE_ASTEROID_DESC"
    speed = 60
    fuel = 4
    stealth = 25
    structure = 40
    slots = [
        Slot type = Internal position = (0.25, 0.45)
        Slot type = Internal position = (0.40, 0.45)
        Slot type = Internal position = (0.55, 0.45)
        Slot type = Internal position = (0.70, 0.45)
    ]
    buildCost = 16.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 40

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/camouflage_asteroid_hull_small.png"
    graphic = "hulls_design/camouflage_asteroid_hull.png"

Hull
    name = "SH_SMALL_CAMOUFLAGE_ASTEROID"
    description = "SH_SMALL_CAMOUFLAGE_ASTEROID_DESC"
    speed = 60
    fuel = 4
    stealth = 35
    structure = 15
    slots = [
        Slot type = External position = (0.70, 0.50)
        Slot type = Internal position = (0.50, 0.50)
    ]
    buildCost = 9.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 20

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/small_camouflage_asteroid_hull_small.png"
    graphic = "hulls_design/small_camouflage_asteroid_hull.png"

/*
Hull
    name = "SH_AGREGATE_ASTEROID"
    description = "SH_AGREGATE_ASTEROID_DESC"
    speed = 60
    fuel = 2
    stealth = -20
    structure = 140
    slots = [
        Slot type = External position = (0.10, 0.15)
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.30, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.80, 0.15)
        Slot type = External position = (0.90, 0.15)
        Slot type = External position = (0.10, 0.50)
        Slot type = External position = (0.20, 0.50)
        Slot type = External position = (0.30, 0.50)
        Slot type = External position = (0.40, 0.50)
        Slot type = External position = (0.50, 0.50)
        Slot type = External position = (0.60, 0.50)
        Slot type = Internal position = (0.70, 0.50)
        Slot type = Internal position = (0.80, 0.50)
        Slot type = Internal position = (0.90, 0.50)
        Slot type = Internal position = (0.10, 0.85)
    ]
    buildCost = 60.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 3
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST_REF"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 40

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/agregate_asteroid_hull_small.png"
    graphic = "hulls_design/agregate_asteroid_hull.png"
*/
    
Hull
    name = "SH_MINIASTEROID_SWARM"
    description = "SH_MINIASTEROID_SWARM_DESC"
    speed = 60
    fuel = 4
    stealth = 35
    structure = 11
    slots = [
        Slot type = External position = (0.40, 0.55)
        Slot type = External position = (0.60, 0.55)
    ]
    buildCost = 10.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 3
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST_REF"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 20
            
        EffectsGroup
            scope = Source
            activation = Source
            effects = SetMaxShield value = Value + 5
            
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/mini_asteroid_swarm_small.png"
    graphic = "hulls_design/mini_asteroid_swarm.png"

Hull
    name = "SH_SCATTERED_ASTEROID"
    description = "SH_SCATTERED_ASTEROID_DESC"
    speed = 60
    fuel = 2
    stealth = 5
    structure = 140
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.30, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.80, 0.15)
        Slot type = External position = (0.85, 0.50)
        Slot type = External position = (0.20, 0.85)
        Slot type = External position = (0.30, 0.85)
        Slot type = External position = (0.40, 0.85)
        Slot type = External position = (0.50, 0.85)
        Slot type = External position = (0.60, 0.85)
        Slot type = External position = (0.70, 0.85)
        Slot type = External position = (0.80, 0.85)
        Slot type = Internal position = (0.20, 0.50)
        Slot type = Internal position = (0.30, 0.50)
        Slot type = Internal position = (0.60, 0.50)
        Slot type = Internal position = (0.70, 0.50)
        Slot type = Core     position = (0.45, 0.50)
    ]
    buildCost = 120.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 8
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST_REF"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 40

        EffectsGroup
            scope = And [
                WithinDistance distance = 0 condition = Source
                Ship
                Or [
                    OwnedBy empire = Source.Owner
                    OwnedBy affiliation = AllyOf empire = Source.Owner
                ]
            ]
            activation = Source
            stackinggroup = "FLAGSHIP_EFFECT_SCATTERED_ASTEROID"
            effects = SetMaxShield value = Value + 3

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/scattered_asteroid_hull_small.png"
    graphic = "hulls_design/scattered_asteroid_hull.png"

Hull
    name = "SH_CRYSTALLIZED_ASTEROID"
    description = "SH_CRYSTALLIZED_ASTEROID_DESC"
    speed = 60
    fuel = 2
    stealth = 5
    structure = 55
    slots = [
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.20, 0.50)
        Slot type = External position = (0.80, 0.50)
        Slot type = External position = (0.50, 0.85)
        Slot type = Internal position = (0.40, 0.50)
        Slot type = Internal position = (0.60, 0.50)
    ]
    buildCost = 20.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 3
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST"
                OwnedBy empire = Source.Owner
            ]
        ]
        ContainedBy And [
            System 
            Contains And [
                Building name = "BLD_SHIPYARD_AST_REF"
                OwnedBy empire = Source.Owner
            ]
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = ContainedBy And [
                System 
                Contains Planet type = Asteroids
            ]
            effects = SetStealth value = Value + 20

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/crystalized_asteroid_hull_small.png"
    graphic = "hulls_design/crystalized_asteroid_hull.png"

Hull
    name = "SH_ORGANIC"
    description = "SH_ORGANIC_DESC"
    speed = 90
    fuel = 2
    stealth = 5
    structure = 5
    slots = [
        Slot type = External position = (0.30, 0.25)
        Slot type = External position = (0.50, 0.25)
        Slot type = External position = (0.70, 0.25)
        Slot type = Internal position = (0.60, 0.60)
    ]
    buildCost = 14 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 3
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = [
                SetStructure value = Value + 2
                SetFuel value = Value + 0.2
                SetDetection value = Value + 10
            ]

        EffectsGroup
            scope = Source
            activation = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + min(Source.Age*0.2, 5)

        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/organic_hull_small.png"
    graphic = "hulls_design/organic_hull.png"

Hull
    name = "SH_STATIC_MULTICELLULAR"
    description = "SH_STATIC_MULTICELLULAR_DESC"
    speed = 100
    fuel = 2
    stealth = 5
    structure = 16
    slots = [
        Slot type = External position = (0.35, 0.35)
        Slot type = External position = (0.50, 0.35)
        Slot type = External position = (0.65, 0.35)
        Slot type = Internal position = (0.40, 0.60)
        Slot type = Internal position = (0.60, 0.60)
    ]
    buildCost = 18 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 4
    location = And [
       // Contains And [
        //    Building name = "BLD_SHIPYARD_ORG_XENO_FAC"
        //    OwnedBy empire = Source.Owner
       // ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/static_multicellular_small.png"
    graphic = "hulls_design/static_multicellular.png"

Hull
    name = "SH_ENDOMORPHIC"
    description = "SH_ENDOMORPHIC_DESC"
    speed = 100
    fuel = 2
    stealth = 5
    structure = 5
    slots = [
        Slot type = External position = (0.20, 0.45)
        Slot type = External position = (0.40, 0.25)
        Slot type = External position = (0.60, 0.25)
        Slot type = External position = (0.80, 0.45)
        Slot type = Internal position = (0.40, 0.55)
        Slot type = Internal position = (0.60, 0.55)
    ]
    buildCost = 23 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 5
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_XENO_FAC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = SetDetection value = Value + 50
            
        EffectsGroup
            scope = Source
            activation = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + min(Source.Age*0.5, 15)

        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/endomorphic_hull_small.png"
    graphic = "hulls_design/endomorphic_hull.png"

Hull
    name = "SH_SYMBIOTIC"
    description = "SH_SYMBIOTIC_DESC"
    speed = 100
    fuel = 2
    stealth = 25
    structure = 10
    slots = [
        Slot type = External position = (0.30, 0.30)
        Slot type = External position = (0.45, 0.30)
        Slot type = Internal position = (0.40, 0.55)
        Slot type = Internal position = (0.55, 0.55)
    ]
    buildCost = 12 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 4
    location = And [
        //Contains And [
         //   Building name = "BLD_SHIPYARD_ORG_CELL_GRO_CHAMB"
        //    OwnedBy empire = Source.Owner
       // ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = [
                SetStructure value = Value + 2
                SetFuel value = Value + 0.2
                SetDetection value = Value + 50
            ]
            
        EffectsGroup
            scope = Source
            activation = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + min(Source.Age*0.2, 10)

        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/symbiotic_hull_small.png"
    graphic = "hulls_design/symbiotic_hull.png"

Hull
    name = "SH_PROTOPLASMIC"
    description = "SH_PROTOPLASMIC_DESC"
    speed = 100
    fuel = 2
    stealth = 35
    structure = 5
    slots = [
        Slot type = External position = (0.75, 0.40)
        Slot type = External position = (0.65, 0.65)
        Slot type = Internal position = (0.55, 0.30)
        Slot type = Internal position = (0.45, 0.525)
        Slot type = Internal position = (0.35, 0.75)
    ]
    buildCost = 15 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 5
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_CELL_GRO_CHAMB"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = [
                SetStructure value = Value + 2
                SetFuel value = Value + 0.2
                SetDetection value = Value + 50
            ]

        EffectsGroup
            scope = Source
            activation = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + min(Source.Age*0.5, 25)

        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/protoplasmic_hull_small.png"
    graphic = "hulls_design/protoplasmic_hull.png"

Hull
    name = "SH_ENDOSYMBIOTIC"
    description = "SH_ENDOSYMBIOTIC_DESC"
    speed = 100
    fuel = 2
    stealth = 25
    structure = 5
    slots = [
        Slot type = External position = (0.20, 0.45)
        Slot type = External position = (0.40, 0.30)
        Slot type = External position = (0.60, 0.30)
        Slot type = External position = (0.80, 0.45)
        Slot type = Internal position = (0.35, 0.60)
        Slot type = Internal position = (0.50, 0.60)
        Slot type = Internal position = (0.65, 0.60)
    ]
    buildCost = 25 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 6
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_CELL_GRO_CHAMB"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_XENO_FAC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = [
                SetStructure value = Value + 2
                SetFuel value = Value + 0.2
                SetDetection value = Value + 50
            ]
            
        EffectsGroup
            scope = Source
            activation = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + min(Source.Age*0.5, 15)
            
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/endosymbiotic_hull_small.png"
    graphic = "hulls_design/endosymbiotic_hull.png"

Hull
    name = "SH_RAVENOUS"
    description = "SH_RAVENOUS_DESC"
    speed = 100
    fuel = 2
    stealth = 5
    structure = 5
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)        
        Slot type = Internal position = (0.45, 0.50)
        Slot type = Internal position = (0.55, 0.50)        
        Slot type = External position = (0.80, 0.55)        
        Slot type = External position = (0.20, 0.75)
        Slot type = External position = (0.40, 0.75)
    ]
    buildCost = 25 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 6
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_XENO_FAC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = SetDetection value = Value + 75
            
        EffectsGroup
            scope = Source
            activation = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + min(Source.Age*0.5, 20)
            
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/ravenous_hull_small.png"
    graphic = "hulls_design/ravenous_hull.png"

Hull
    name = "SH_BIOADAPTIVE"
    description = "SH_BIOADAPTIVE_DESC"
    speed = 100
    fuel = 2
    stealth = 35
    structure = 15
    slots = [
        Slot type = External position = (0.30, 0.35)
        Slot type = External position = (0.50, 0.35)
        Slot type = External position = (0.70, 0.35)
        Slot type = Internal position = (0.20, 0.65)
        Slot type = Internal position = (0.40, 0.65)
        Slot type = Internal position = (0.60, 0.65)
    ]
    buildCost = 21 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 6
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_CELL_GRO_CHAMB"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Turn low = Source.CreationTurn + 1
            effects = [
                SetStructure value = Target.MaxStructure
                SetFuel value = Value + 0.2
            ]
            
        EffectsGroup
            scope = Source
            activation = Source
            effects = SetDetection value = Value + 75
                        
        EffectsGroup
            scope = Source
            activation = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + min(Source.Age*0.5, 25)
            
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/bio_adaptive_hull_small.png"
    graphic = "hulls_design/bio_adaptive_hull.png"

Hull
    name = "SH_SENTIENT"
    description = "SH_SENTIENT_DESC"
    speed = 100
    fuel = 2
    stealth = 25
    structure = 12
    slots = [
        Slot type = External position = (0.10, 0.35)
        Slot type = External position = (0.25, 0.35)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.55, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.85, 0.35)
        Slot type = Internal position = (0.35, 0.75)
        Slot type = Internal position = (0.50, 0.75)
        Slot type = Internal position = (0.65, 0.75)
        Slot type = Core     position = (0.50, 0.50)
    ]
    buildCost = 60 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 8
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_XENO_FAC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_CELL_GRO_CHAMB"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ORG_ORB_INC"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = [
                SetStructure value = Value + 2
                SetFuel value = Value + 0.2
                SetDetection value = Value + 50
            ]
    
        EffectsGroup
            scope = And [
                WithinDistance distance = 0 condition = Source
                Ship
                Or [
                    OwnedBy empire = Source.Owner
                    OwnedBy affiliation = AllyOf empire = Source.Owner
                ]
            ]
            activation = Source
            stackinggroup = "FLAGSHIP_EFFECT_SENTIENT"
            effects = [
                SetStealth value = Value + 20
                SetDetection value = Value + 50
            ]
            
        EffectsGroup
            scope = Source
            activation = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + min(Source.Age*1, 45)
            
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/sentient_hull_small.png"
    graphic = "hulls_design/sentient_hull.png"

Hull
    name = "SH_COMPRESSED_ENERGY"
    description = "SH_COMPRESSED_ENERGY_DESC"
    speed = 120
    fuel = 5
    stealth = 45
    structure = 10
    slots = Slot type = External position = (0.65, 0.40)
    buildCost = 5 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 2
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ENRG_COMP"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
        Star type = [White Blue BlackHole]
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/compressed_energy_hull_small.png"
    graphic = "hulls_design/compressed_energy_hull.png"

Hull
    name = "SH_FRACTAL_ENERGY"
    description = "SH_FRACTAL_ENERGY_DESC"
    speed = 120
    fuel = 5
    stealth = -5
    structure = 40
    slots = [
        Slot type = External position = (0.10, 0.15)
        Slot type = External position = (0.30, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.90, 0.15)
        Slot type = External position = (0.20, 0.50)
        Slot type = External position = (0.40, 0.50)
        Slot type = External position = (0.60, 0.50)
        Slot type = External position = (0.80, 0.50)
        Slot type = External position = (0.10, 0.85)
        Slot type = External position = (0.30, 0.85)
        Slot type = External position = (0.50, 0.85)
        Slot type = External position = (0.70, 0.85)
        Slot type = External position = (0.90, 0.85)
    ]
    buildCost = 60.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 7
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ENRG_COMP"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
        Star type = [Blue BlackHole]
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/fractal_energy_hull_small.png"
    graphic = "hulls_design/fractal_energy_hull.png"

Hull
    name = "SH_QUANTUM_ENERGY"
    description = "SH_QUANTUM_ENERGY_DESC"
    speed = 120
    fuel = 5
    stealth = -15
    structure = 50
    slots = [
        Slot type = External position = (0.10, 0.25)
        Slot type = External position = (0.22, 0.25)
        Slot type = External position = (0.34, 0.25)
        Slot type = External position = (0.46, 0.25)
        Slot type = External position = (0.58, 0.25)
        Slot type = External position = (0.70, 0.25)
        Slot type = External position = (0.82, 0.25)
        Slot type = Internal position = (0.22, 0.50)
        Slot type = Internal position = (0.34, 0.50)
        Slot type = Internal position = (0.46, 0.50)
    ]
    buildCost = 30 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 5
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ENRG_COMP"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
        Star type = [Blue BlackHole]
    ]
    effectsgroups = [
        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/quantum_energy_hull_small.png"
    graphic = "hulls_design/quantum_energy_hull.png"

Hull
    name = "SH_SOLAR"
    description = "SH_SOLAR_DESC"
    speed = 120
    fuel = 5
    stealth = -55
    structure = 200
    slots = [
        Slot type = External position = (0.10, 0.15)
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.30, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.80, 0.15)
        Slot type = External position = (0.90, 0.15)
        Slot type = External position = (0.10, 0.85)
        Slot type = External position = (0.20, 0.85)
        Slot type = External position = (0.30, 0.85)
        Slot type = External position = (0.40, 0.85)
        Slot type = External position = (0.50, 0.85)
        Slot type = External position = (0.60, 0.85)
        Slot type = External position = (0.70, 0.85)
        Slot type = External position = (0.80, 0.85)
        Slot type = External position = (0.90, 0.85)
        Slot type = Internal position = (0.20, 0.40)
        Slot type = Internal position = (0.20, 0.60)
        Slot type = Internal position = (0.35, 0.40)
        Slot type = Internal position = (0.35, 0.60)
        Slot type = Internal position = (0.65, 0.40)
        Slot type = Internal position = (0.65, 0.60)
        Slot type = Internal position = (0.80, 0.40)
        Slot type = Internal position = (0.80, 0.60)
        Slot type = Core     position = (0.50, 0.50)
    ]
    buildCost = 120.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 10
    location = And [
        Contains And [
            Building name = "BLD_SHIPYARD_ENRG_COMP"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_ENRG_SOLAR"
            OwnedBy empire = Source.Owner
        ]
        Contains And [
            Building name = "BLD_SHIPYARD_BASE"
            OwnedBy empire = Source.Owner
        ]
        OwnedBy empire = Source.Owner
        Star type = BlackHole
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Star type = [Blue White Yellow Orange Red]
            stackinggroup = "STEALTH_SOLAR_STACK"
            effects = SetStealth value = Value + 120

        EffectsGroup
            scope = And [
                Ship
                InSystem id = Source.SystemID
                Or [
                    OwnedBy empire = Source.Owner
                    OwnedBy affiliation = AllyOf empire = Source.Owner
                ]
            ]
            activation = And [
                Source
                InSystem
            ]
            effects = SetFuel value = Target.MaxFuel

        EffectsGroup
            scope = And [
                WithinDistance distance = 0 condition = Source
                Ship
                Not Or [
                    OwnedBy empire = Source.Owner
                    OwnedBy affiliation = AllyOf empire = Source.Owner
                ]
            ]
            activation = Source
            stackinggroup = "FLAGSHIP_EFFECT_SOLAR"
            effects = SetStealth value = Value - 100

        [[REGULAR_HULL_DETECTION]]
        [[SCAVANGE_FUEL_UNOWNED]]
        [[UNOWNED_GOOD_VISION]]
        [[UNOWNED_MOVE]]
    ]
    icon = "icons/ship_hulls/solar_hull_small.png"
    graphic = "hulls_design/solar_hull.png"
    
Hull
    name = "SH_FLOATER_BODY"
    description = "SH_FLOATER_BODY_DESC"
    speed = 20
    fuel = 3
    stealth = 15
    structure = 20
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = Internal position = (0.50, 0.15)
        Slot type = External position = (0.80, 0.15)
    ]
    buildCost = 1
    buildTime = 2
    Unproducible
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[MODERATE_VISION]]

        EffectsGroup    // in systems with no other monsters, spawn trees
            scope = And [
                Object id = Source.SystemID
                System
                Star type = [Blue White Yellow Orange Red]                
                Not Number low = 2 condition = And [
                    Ship
                    Monster
                    InSystem id = Source.SystemID
                ]
            ]
            activation = And [
                InSystem
                Random probability = 0.1
            ]
            stackinggroup = "TREE_GROWTH"
            effects = [
                CreateShip designname = "SM_TREE"
                GenerateSitRepMessage
                    message = "EFFECT_TREE"
                    icon = "icons/monsters/tree.png"
                    parameters = [
                        tag = "system" data = Source.SystemID
                        ]
                    affiliation = CanSee condition = Source
                ]
        ]
    icon = ""
    graphic = "icons/monsters/floater.png"
    
Hull
    name = "SH_TREE_BODY"
    description = "SH_TREE_BODY_DESC"
    speed = 0
    fuel = 0
    stealth = 5
    structure = 5
    slots = Slot type = External position = (0.30, 0.15)
    buildCost = 1
    buildTime = 2
    Unproducible
    location = All
    effectsgroups = [
        [[EXCELLENT_VISION]]

        EffectsGroup    // remove self and recreate on first turn, so that trees start with age 0, and thus low initial health, instead of having thousands of structure at start of game
            scope = Source
            activation = Turn high = 2
            effects = [
                CreateShip designname = "SM_TREE"
                Destroy
            ]

        EffectsGroup    // grow larger / stronger with age
            scope = Source
            accountinglabel = "AGE_BONUS"
            effects = SetMaxStructure value = Value + Source.Age*3

        EffectsGroup    // regeneration
            scope = Source
            activation = Turn low = LocalCandidate.System.LastTurnBattleHere + 1
            effects = SetStructure value = Value + 7

        EffectsGroup    // spawn floaters to reproduce
            scope = Source
            activation = Random probability = 0.03
            stackinggroup = "TREE_GROWTH"
            effects = CreateShip designname = "SM_FLOATER"

        EffectsGroup
            scope = And [
                Object id = Source.FleetID
                Fleet
            ]
            effects = SetAggressive
    ]
    icon = ""
    graphic = "icons/monsters/tree.png"

Hull
    name = "SH_STRONG_MONSTER_BODY"
    description = "SH_STRONG_MONSTER_BODY_DESC"
    speed = 30
    fuel = 5
    stealth = 5
    structure = 80
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = External position = (0.80, 0.15)
        Slot type = Core position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 2
    Unproducible

    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[EXCELLENT_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/dragon.png"

Hull
    name = "SH_GUARD_MONSTER_BODY"
    description = "SH_GUARD_MONSTER_BODY_DESC"
    speed = 0
    fuel = 0
    stealth = 5
    structure = 35
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = External position = (0.80, 0.15)
        Slot type = External position = (0.20, 0.65)
        Slot type = Internal position = (0.40, 0.65)
        Slot type = External position = (0.60, 0.65)
    ]
    buildCost = 1
    buildTime = 2
    Unproducible
    location = All
    effectsgroups = [
        [[GOOD_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/sentinel.png"
    
Hull
    name = "SH_DRONE_BODY"
    description = "SH_DRONE_BODY_DESC"
    speed = 30
    fuel = 3
    stealth = 5
    structure = 10
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.80, 0.15)
    ]
    buildCost = 1
    buildTime = 2
    Unproducible
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[MODERATE_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/drone.png"

Hull
    name = "SH_IMMOBILE_FACTORY"
    description = "SH_IMMOBILE_FACTORY_DESC"
    speed = 0
    fuel = 0
    stealth = 5
    structure = 1000
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = Internal position = (0.50, 0.15)
        Slot type = External position = (0.80, 0.15)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[EXCELLENT_VISION]]
        EffectsGroup
            scope = Source
            activation = Not Turn low = 1
            effects = [   
                CreateShip designname = "SM_DRONE"
                CreateShip designname = "SM_DRONE"
            ]

        EffectsGroup
            scope = And [
                System
                InSystem id = Source.SystemID
                Number high = 7 condition = And [   // Limits the factory to producing only when there are less than 7 drones in system
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_DRONE_BODY"
                ]
            ]
            activation = Random probability = .1
            effects = CreateShip designname = "SM_DRONE"
    ]
    icon = ""
    graphic = "icons/monsters/factory.png"

Hull
    name = "SH_KRILL_1_BODY"
    description = "SH_KRILL_1_BODY_DESC"
    speed = 30
    fuel = 5
    stealth = 15
    structure = 20
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.80, 0.15)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [

        EffectsGroup    // merge small krills to create a medium krill
            scope = And [
                System
                InSystem id = Source.SystemID 
                Number low = 2 high = 3 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_1_BODY"
                ]
            ]
            activation = InSystem
            stackinggroup = "KRILL_1_ACTION_STACK"
            effects = CreateShip designname = "SM_KRILL_2"

        EffectsGroup    // remove merged krills
            scope = And [
                Number low = 2 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_1_BODY"
                ]
                NumberOf number = 2 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_1_BODY"
                ]
            ]
            activation = InSystem
            effects = Destroy

        EffectsGroup    // mature into medium krill
            scope = And [
                Source
                ContainedBy And [
                    System 
                    Contains Planet type = Asteroids
                ]
            ]
            activation = Random probability = 0.1
            stackinggroup = "KRILL_1_ACTION_STACK"
            effects = [
                CreateShip designname = "SM_KRILL_2"
                Destroy
                /*
                GenerateSitRepMessage
                    message = "EFFECT_MONSTER_SPAWNING"
                    parameters = [
                        tag = "predefinedshipdesign" data = "SM_KRILL_2"
                        tag = "system" data = Source.SystemID
                    ]
                */
            ]

        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[WEAK_VISION]]

        EffectsGroup
            scope = And [
                Fleet
                Stationary
                Object id = Source.FleetID
            ]
            activation = Random probability = 0.80
            stackinggroup = "KRILL_1_ACTION_STACK"
            effects = SetDestination destination = And [
                System
                WithinStarlaneJumps jumps = 1 condition = Source
                Not InSystem id = Source.SystemID
            ]
    ]
    icon = ""
    graphic = "icons/monsters/krill-1.png"

Hull
    name = "SH_KRILL_2_BODY"
    description = "SH_KRILL_2_BODY_DESC"
    speed = 30
    fuel = 6
    stealth = 15
    structure = 40
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.80, 0.15)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        EffectsGroup
            scope = And [
                System
                InSystem id = Source.SystemID
                Number low = 2 high = 3 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_2_BODY"
                ]
            ]
            activation = InSystem
           stackinggroup = "KRILL_2_ACTION_STACK"
            effects = [
                CreateShip designname = "SM_KRILL_3"
                /*
                GenerateSitRepMessage
                    message = "EFFECT_MONSTER_SPAWNING"
                    parameters = [
                        tag = "predefinedshipdesign" data = "SM_KRILL_3"
                        tag = "system" data = Source.SystemID
                    ]
                */
            ]
        EffectsGroup
            scope = And [
                Number low = 2 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_2_BODY"
                ]
                NumberOf number = 2 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_2_BODY"
                ]
            ]
            activation = InSystem
            effects = Destroy

        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System
                    Contains Planet type = Asteroids
                ]
            ]
            activation = Random probability = 0.15
            stackinggroup = "KRILL_2_ACTION_STACK"
            effects = [
                CreateShip designname = "SM_KRILL_1"
                /*
                GenerateSitRepMessage
                    message = "EFFECT_MONSTER_SPAWNING"
                    parameters = [
                        tag = "predefinedshipdesign" data = "SM_KRILL_1"
                        tag = "system" data = Source.SystemID
                    ]
                    */
            ]
            
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[MODERATE_VISION]]

        EffectsGroup
            scope = And [
                Fleet
                Stationary
                Object id = Source.FleetID
            ]
            activation = Random probability = 0.70
            stackinggroup = "KRILL_2_ACTION_STACK"
            effects = SetDestination destination = And [
                System
                WithinStarlaneJumps jumps = 1 condition = Source
                Not InSystem id = Source.SystemID
            ]
    ]
    icon = ""
    graphic = "icons/monsters/krill-2.png"

Hull
    name = "SH_KRILL_3_BODY"
    description = "SH_KRILL_3_BODY_DESC"
    speed = 25
    fuel = 5
    stealth = 15
    structure = 250
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.80, 0.15)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        EffectsGroup
            scope = And [
                System
                InSystem id = Source.SystemID
                Number low = 2 high = 3 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_3_BODY"
                ]
            ]
            activation = InSystem
            stackinggroup = "KRILL_3_ACTION_STACK"
            effects = [
                CreateShip designname = "SM_KRILL_4"
                /*
                GenerateSitRepMessage
                    message = "EFFECT_MONSTER_SPAWNING"
                    parameters = [
                        tag = "predefinedshipdesign" data = "SM_KRILL_4"
                        tag = "system" data = Source.SystemID
                    ]
                */
            ]
        EffectsGroup
            scope = And [
                Number low = 2 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_3_BODY"
                ]
                NumberOf number = 2 condition = And [
                    Ship
                    InSystem id = Source.SystemID
                    DesignHasHull name = "SH_KRILL_3_BODY"
                ]
            ]
            activation = InSystem
            effects = Destroy

        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System
                    Contains Planet type = Asteroids
                ]
            ]
            activation = Random probability = 0.08
            stackinggroup = "KRILL_3_ACTION_STACK"
            effects = [
                CreateShip designname = "SM_KRILL_1"
                /*
                GenerateSitRepMessage
                    message = "EFFECT_MONSTER_SPAWNING"
                    parameters = [
                        tag = "predefinedshipdesign" data = "SM_KRILL_1"
                        tag = "system" data = Source.SystemID
                    ]
                    */
            ]
            
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[GOOD_VISION]]

        EffectsGroup
            scope = And [
                Fleet
                Stationary
                Object id = Source.FleetID
            ]
            activation = Random probability = 0.60
            stackinggroup = "KRILL_3_ACTION_STACK"
            effects = SetDestination destination = And [
                System
                WithinStarlaneJumps jumps = 1 condition = Source
                Not InSystem id = Source.SystemID
            ]
    ]
    icon = ""
    graphic = "icons/monsters/krill-3.png"
    
Hull
    name = "SH_KRILL_4_BODY"
    description = "SH_KRILL_4_BODY_DESC"
    speed = 20
    fuel = 4
    stealth = 15
    structure = 1000
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.50, 0.15)
        Slot type = External position = (0.70, 0.15)
        Slot type = External position = (0.80, 0.15)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System 
                    Contains Planet type = Asteroids
                ]
            ]
            activation = Random probability = 0.06
            stackinggroup = "KRILL_4_ACTION_STACK"
            effects = [
                CreateShip designname = "SM_KRILL_1"
                /*
                GenerateSitRepMessage
                    message = "EFFECT_MONSTER_SPAWNING"
                    parameters = [
                        tag = "predefinedshipdesign" data = "SM_KRILL_1"
                        tag = "system" data = Source.SystemID
                    ]
                */
            ]

        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[GOOD_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/krill-4.png"

//   KRAKEN

Hull
    name = "SH_KRAKEN_1_BODY"
    description = "SH_KRAKEN_1_BODY_DESC"
    speed = 40
    fuel = 4
    stealth = 5
    structure = 20
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        EffectsGroup    // remove self and recreate on first turn, so that it starts with age 0
            scope = Source
            activation = Turn high = 1
            effects = [
                CreateShip designname = "SM_KRAKEN_1"
                Destroy
            ]

        EffectsGroup     
            scope = NumberOf number = 2 condition = And [
                Planet
                Planet type = GasGiant
                Not WithinStarlaneJumps jumps = 3 condition = And [
                    System
                    Contains And [
                        Planet
                        OwnedBy affiliation = AnyEmpire
                    ]
                ]
            ]
            activation = Turn high = 2
            effects = AddSpecial name = "KRAKEN_NEST_SPECIAL"
            
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]

        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System 
                    Contains Planet type = GasGiant
                ]
            ]
            activation = And [
                Turn low = 30
                //triple the chance of maturing when in a system with Krill
                Random probability = (Source.Age*0.01 - 0.1) * 3^(If condition = ContainedBy Contains OR [
                    Design name = "SM_KRILL_1"
                    Design name = "SM_KRILL_2" 
                    Design name = "SM_KRILL_3"  
                    Design name = "SM_KRILL_4"
                ])
            ]
            effects = [
                CreateShip designname = "SM_KRAKEN_2" empire = Source.Owner
                Destroy
                GenerateSitRepMessage
                    message = "EFFECT_TAME_MONSTER_MATURED"
                    icon = "icons/monsters/kraken-2.png"
                    parameters = [
                        tag = "system" data = Source.SystemID
                        tag = "predefinedshipdesign" data = "SM_KRAKEN_2"
                    ]
                    empire = Source.Owner
            ]
        [[WEAK_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/kraken-1.png"
    
Hull
    name = "SH_KRAKEN_2_BODY"
    description = "SH_KRAKEN_2_BODY_DESC"
    speed = 45
    fuel = 4
    stealth = 5
    structure = 100
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]

        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System 
                    Contains Planet type = GasGiant
                ]
            ]
            activation = And [
                Turn low = 60
                //triple the chance of maturing when in a system with Krill
                Random probability = (Source.Age*0.01 - 0.1) * 3^(If condition = ContainedBy Contains OR [
                    Design name = "SM_KRILL_1"
                    Design name = "SM_KRILL_2" 
                    Design name = "SM_KRILL_3"  
                    Design name = "SM_KRILL_4"
                ])
            ]
            effects = [
                CreateShip designname = "SM_KRAKEN_3" empire = Source.Owner
                Destroy
                GenerateSitRepMessage
                    message = "EFFECT_TAME_MONSTER_MATURED"
                    icon = "icons/monsters/kraken-3.png"
                    parameters = [
                        tag = "system" data = Source.SystemID
                        tag = "predefinedshipdesign" data = "SM_KRAKEN_3"
                    ]
                    empire = Source.Owner
            ]
        [[GOOD_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/kraken-2.png"
    
Hull
    name = "SH_KRAKEN_3_BODY"
    description = "SH_KRAKEN_3_BODY_DESC"
    speed = 50
    fuel = 4
    stealth = 5
    structure = 1000
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]

        [[GOOD_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/kraken-3.png"
    
//   SNOWFLAKE

Hull
    name = "SH_SNOWFLAKE_1_BODY"
    description = "SH_SNOWFLAKE_1_BODY_DESC"
    speed = 55
    fuel = 5
    stealth = 15
    structure = 25
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        EffectsGroup    // remove self and recreate on first turn, so that it starts with age 0
            scope = Source
            activation = Turn high = 1
            effects = [
                CreateShip designname = "SM_SNOWFLAKE_1"
                Destroy
            ]

        EffectsGroup
            scope = NumberOf number = 2 condition = And [
                Planet
                Planet size = Small
                Not WithinStarlaneJumps jumps = 2 condition = And [
                    System
                    Contains And [
                        Planet
                        OwnedBy affiliation = AnyEmpire
                    ]
                ]
            ]
            activation = Not Turn low = 1
            accountinglabel = "ADD_NEST_SPECIAL_EFFECT_1"
            effects = AddSpecial name = "SNOWFLAKE_NEST_SPECIAL"
            
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]

        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System 
                    Contains Planet size = Small
                ]
            ]
            activation = And [
                Turn low = 30
                Random probability = Source.Age*0.01 - 0.1
            ]
            accountinglabel = "SNOWFLAKE_GROWTH_LABEL"
            effects = [
                CreateShip designname = "SM_SNOWFLAKE_2" empire = Source.Owner
                Destroy
                GenerateSitRepMessage
                    message = "EFFECT_TAME_MONSTER_MATURED"
                    icon = "icons/monsters/snowflake-2.png"
                    parameters = [
                        tag = "system" data = Source.SystemID
                        tag = "predefinedshipdesign" data = "SM_SNOWFLAKE_2"
                    ]
                    empire = Source.Owner
            ]
        [[EXCELLENT_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/snowflake-1.png"
    
Hull
    name = "SH_SNOWFLAKE_2_BODY"
    description = "SH_SNOWFLAKE_2_BODY_DESC"
    speed = 60
    fuel = 5
    stealth = 5
    structure = 60
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]

        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System 
                    Contains Planet size = Small
                ]
            ]
            activation = And [
                Turn low = 60
                Random probability = Source.Age*0.01 - 0.1
            ]
            effects = [
                CreateShip designname = "SM_SNOWFLAKE_3" empire = Source.Owner
                Destroy
                GenerateSitRepMessage
                    message = "EFFECT_TAME_MONSTER_MATURED"
                    icon = "icons/monsters/snowflake-3.png"
                    parameters = [
                        tag = "system" data = Source.SystemID
                        tag = "predefinedshipdesign" data = "SM_SNOWFLAKE_3"
                    ]
                    empire = Source.Owner
            ]
        [[EXCELLENT_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/snowflake-2.png"
    
Hull
    name = "SH_SNOWFLAKE_3_BODY"
    description = "SH_SNOWFLAKE_3_BODY_DESC"
    speed = 65
    fuel = 5
    stealth = 5
    structure = 120
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[EXCELLENT_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/snowflake-3.png"
    
//   JUGGERNAUT

Hull
    name = "SH_JUGGERNAUT_1_BODY"
    description = "SH_JUGGERNAUT_1_BODY_DESC"
    speed = 30
    fuel = 3
    stealth = 5
    structure = 30
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
       EffectsGroup    // remove self and recreate on first turn, so that it starts with age 0
            scope = Source
            activation = Turn high = 1
            effects = [
                CreateShip designname = "SM_JUGGERNAUT_1"
                Destroy
            ]

        EffectsGroup
            scope = NumberOf number = 2 condition = And [
                Planet
                Planet type = Asteroids
                Not WithinStarlaneJumps jumps = 4 condition = And [
                    System
                    Contains And [
                        Planet
                        OwnedBy affiliation = AnyEmpire
                    ]
                ]
            ]
            activation = Not Turn low = 1
            effects = AddSpecial name = "JUGGERNAUT_NEST_SPECIAL"
            
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]

        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System 
                    Contains Planet type = Asteroids
                ]
            ]
            activation = And [
                Turn low = 30
                Random probability = Source.Age*0.01 - 0.1
            ]
            effects = [
                CreateShip designname = "SM_JUGGERNAUT_2" empire = Source.Owner
                Destroy
                GenerateSitRepMessage
                    message = "EFFECT_TAME_MONSTER_MATURED"
                    icon = "icons/monsters/juggernaut-2.png"
                    parameters = [
                        tag = "system" data = Source.SystemID
                        tag = "predefinedshipdesign" data = "SM_JUGGERNAUT_2"
                    ]
                    empire = Source.Owner
            ]
        [[GOOD_VISION]]
    ]
    icon = ""
    graphic = "icons/monsters/juggernaut-1.png"
    
Hull
    name = "SH_JUGGERNAUT_2_BODY"
    description = "SH_JUGGERNAUT_2_BODY_DESC"
    speed = 25
    fuel = 2
    stealth = 5
    structure = 200
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]

        EffectsGroup
            scope = And [
                Source
                ContainedBy And [
                    System 
                    Contains Planet type = Asteroids
                ]
            ]
            activation = And [
                Turn low = 60
                Random probability = Source.Age*0.01 - 0.1
            ]
            effects = [
                CreateShip designname = "SM_JUGGERNAUT_3" empire = Source.Owner
                Destroy
                GenerateSitRepMessage
                    message = "EFFECT_TAME_MONSTER_MATURED"
                    icon = "icons/monsters/juggernaut-3.png"
                    parameters = [
                        tag = "system" data = Source.SystemID
                        tag = "predefinedshipdesign" data = "SM_JUGGERNAUT_3"
                    ]
                    empire = Source.Owner
            ]
            
        [[GOOD_VISION]]
        
    ]
    icon = ""
    graphic = "icons/monsters/juggernaut-2.png"
    
Hull
    name = "SH_JUGGERNAUT_3_BODY"
    description = "SH_JUGGERNAUT_3_BODY_DESC"
    speed = 25
    fuel = 5
    stealth = 5
    structure = 1000
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[EXCELLENT_VISION]]

    ]
    icon = ""
    graphic = "icons/monsters/juggernaut-3.png"

Hull
    name = "SH_NEBULOUS_BODY"
    description = "SH_NEBULOUS_BODY"
    speed = 100
    fuel = 1
    stealth = 80
    structure = 5000
    slots = [
        Slot type = External position = (0.60, 0.45)
        Slot type = Internal position = (0.40, 0.55)
    ]
    buildcost = 1
    buildtime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[INFINITE_FUEL]]

        [[MONSTER_MOVE_PRE]]1[[MONSTER_MOVE_POST]]
    ]
    icon = ""
    graphic = ""

Hull
    name = "SH_EXP_OUTPOST_HULL"
    description = "SH_EXP_OUTPOST_HULL_DESC"
    speed = 0
    fuel = 1
    stealth = 55
    structure = 1700
    slots = [
        Slot type = External position = (0.60, 0.45)
        Slot type = Internal position = (0.40, 0.55)
    ]
    buildcost = 1
    buildtime = 1
    Unproducible
    location = All
    effectsgroups = [
        EffectsGroup
            scope = NumberOf number = 1 condition = And [
                Planet
                Not Planet type = [Asteroids GasGiant]
                InSystem id = Source.SystemID
            ]
            activation = Turn high = 0 
            effects = [
                SetSpecies name = "SP_EXPERIMENTOR"
                SetPopulation value = Target.TargetPopulation
                CreateBuilding type = "BLD_EXPERIMENTOR_OUTPOST"
            ]

            EffectsGroup // Render most shields and most of the weapons useless
            scope = And [
                Ship
                OwnedBy affiliation = AnyEmpire
                InSystem id = Source.SystemID
            ]   
            effects = [
                SetShield value = Value - 15
                SetDamage partname = "SR_WEAPON_1_1" value = Value - 1
                SetDamage partname = "SR_WEAPON_1_2" value = Value - 2
                SetDamage partname = "SR_WEAPON_1_3" value = Value - 2
                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 - 3
                SetDamage partname = "SR_WEAPON_2_4" value = Value - 4
                SetDamage partname = "SR_WEAPON_3_1" value = Value - 4
                SetDamage partname = "SR_WEAPON_3_2" value = Value - 4
                SetDamage partname = "SR_WEAPON_3_3" value = Value - 5
                SetDamage partname = "SR_WEAPON_3_4" value = Value - 6
                SetDamage partname = "SR_WEAPON_4_1" value = Value - 5
                SetDamage partname = "SR_WEAPON_4_2" value = Value - 6
                SetDamage partname = "SR_WEAPON_4_3" value = Value - 8
                SetDamage partname = "SR_WEAPON_4_4" value = Value - 10
            ]
    ]
    icon = ""
    graphic = ""

Hull
    name = "SH_BLACK_KRAKEN_BODY"
    description = "SH_BLACK_KRAKEN_BODY_DESC"
    speed = 200
    fuel = 100
    stealth = 20
    structure = 4000
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = External position = (0.80, 0.15)
        Slot type = Internal position = (0.40, 0.75)
    ]
    buildcost = 1
    buildtime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[HUNT_BUILDINGS]]
        [[MONSTER_MOVE_ALWAYS]]
        [[EXCELLENT_VISION]]
        [[INFINITE_FUEL]]
    ]
    icon = ""
    graphic = ""

Hull
    name = "SH_BLOATED_JUGGERNAUT_BODY"
    description = "SH_BLOATED_JUGGERNAUT_BODY_DESC"
    speed = 160
    fuel = 100
    stealth = 15
    structure = 7000
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = External position = (0.80, 0.15)
        Slot type = External position = (0.80, 0.75)
        Slot type = Internal position = (0.20, 0.75)
        Slot type = Internal position = (0.40, 0.75)
    ]
    buildcost = 1
    buildtime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[HUNT_BUILDINGS]]
        [[MONSTER_MOVE_ALWAYS]]
        [[EXCELLENT_VISION]]
        [[INFINITE_FUEL]]
    ]
    icon = ""
    graphic = ""

Hull
    name = "SH_PSIONIC_SNOWFLAKE_BODY"
    description = "SH_PSIONIC_SNOWFLAKE_BODY_DESC"
    speed = 300
    fuel = 100
    stealth = 25
    structure = 1800
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildCost = 1
    buildTime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[HUNT_SHIPS]]
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[EXCELLENT_VISION]]

        EffectsGroup
            scope = NumberOf number = 4 condition = And [
                Ship
                WithinStarlaneJumps jumps = 1 condition = Source
                HasTag name = "ORGANIC"
            ]
            activation = Random probability = 0.2
            effects = SetOwner empire = Source.Owner

        EffectsGroup
            scope = NumberOf number = 12 condition = And [
                Ship
                WithinStarlaneJumps jumps = 1 condition = Source
                HasTag name = "ORGANIC"
                Not HasTag name = "TELEPATHIC"
                Not OwnerHasTech name = "LRN_PSY_DOM"
            ]
            activation = Random probability = 0.8
            effects = SetOwner empire = Source.Owner
    ]
    icon = ""
    graphic = ""

Hull
    name = "SH_COSMIC_DRAGON_BODY"
    description = "SH_COSMIC_DRAGON_BODY_DESC"
    speed = 25
    fuel = 100
    stealth = 10
    structure = 50000
    slots = [
        Slot type = External position = (0.20, 0.15)
        Slot type = External position = (0.40, 0.15)
        Slot type = External position = (0.60, 0.15)
        Slot type = Internal position = (0.50, 0.65)
    ]
    buildcost = 1
    buildtime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[HUNT_PLANETS]]
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]

        EffectsGroup
            scope = NumberOf number = 1 condition = And [
                Planet
                InSystem id = Source.SystemID
                OwnedBy affiliation = AnyEmpire
                Stealth high = Source.Detection
            ]
            activation =
                InSystem
            effects = [
                AddSpecial name = "NOVA_BOMB_ACTIVATOR_SPECIAL"
                RemoveSpecial name = "SUPERNOVA_SPECIAL"
            ]

        [[GOOD_VISION]]
    ]
    icon = ""
    graphic = ""

Hull
    name = "SH_DAMPENING_CLOUD_BODY"
    description = "SH_DAMPENING_CLOUD_BODY_DESC"
    speed = 20
    fuel = 1
    stealth = 45
    structure = 5000
    slots = [
        Slot type = External position = (0.60, 0.45)
    ]
    buildcost = 1
    buildtime = 1
    Unproducible
    location = All
    effectsgroups = [
        [[INFINITE_FUEL]]
        [[MONSTER_MOVE_PRE]]0.10[[MONSTER_MOVE_POST_NOT_OWNED]]
        EffectsGroup
            scope = NumberOf number = 1 condition = And [
                Ship
                InSystem id = Source.SystemID
                OwnedBy affiliation = AnyEmpire
            ]
            activation = InSystem
            effects = [
                SetFuel value = Value - 99
                GenerateSitRepMessage
                    message = "EFFECT_DAMP_CLOUD"
                    icon = "icons/monsters/dampening-cloud.png"
                    parameters = [
                        tag = "ship" data = Target.ID
                        tag = "system" data = Source.SystemID
                        tag = "predefinedshipdesign" data = "SM_DAMPENING_CLOUD"
                        ]
                    empire = Target.Owner
            ]
    ]
    icon = ""
    graphic = ""

REGULAR_HULL_DETECTION
'''EffectsGroup
        scope = Source
        activation = Source
        effects = SetDetection value = Value + 25
'''

WEAK_VISION
'''EffectsGroup
        scope = Source
        activation = Source
        accountinglabel = "WEAK_VISION_LABEL"
        effects = SetDetection value = Value + 50
'''

MODERATE_VISION
'''EffectsGroup
        scope = Source
        activation = Source
        accountinglabel = "MODERATE_VISION_LABEL"
        effects = SetDetection value = Value + 75
'''

GOOD_VISION
'''EffectsGroup
        scope = Source
        activation = Source
        accountinglabel = "GOOD_VISION_LABEL"
        effects = SetDetection value = Value + 100
'''

EXCELLENT_VISION
'''EffectsGroup
        scope = Source
        activation = Source
        accountinglabel = "EXCELLENT_VISION_LABEL"
        effects = SetDetection value = Value + 150
'''

UNOWNED_GOOD_VISION
'''EffectsGroup
        scope = Source
        activation = And [
            Source
            Unowned
        ]
        accountinglabel = "GOOD_VISION_LABEL"
        effects = SetDetection value = Value + 100
'''


UNOWNED_MOVE
'''EffectsGroup
            scope = And [
                Fleet
                Object id = Source.FleetID
            ]
            activation = And [
                Turn low = 10
                Stationary
                Unowned
                Random probability = 0.9
                Not And [
                    DesignHasHull name = "SH_ASTEROID"
                    Monster
                ]
            ]
            stackinggroup = "MONSTER_FLEET_MOVE_STACK"
            effects = SetDestination destination = And [
                System
                Not InSystem id = Source.SystemID
                WithinStarlaneJumps jumps = 1 condition = Source
                Not Contains Building name = "BLD_EXPERIMENTOR_OUTPOST"
            ]
'''


MONSTER_MOVE_ALWAYS
'''EffectsGroup
            scope = And [
                Object id = Source.FleetID
                Fleet
            ]
            activation = And [
                Turn low = 10
                Stationary
                Unowned
            ]
            stackinggroup = "MONSTER_FLEET_MOVE_STACK"
            accountinglabel = "MONSTER_MOVE_ALWAYS_LABEL"
            effects = SetDestination destination = And [
                System
                Not InSystem id = Source.SystemID
                WithinStarlaneJumps jumps = 1 condition = Source
                Not Contains Building name = "BLD_EXPERIMENTOR_OUTPOST"
            ]
'''

MONSTER_MOVE_PRE
'''EffectsGroup
            scope = And [
                Object id = Source.FleetID
                Fleet
            ]
            activation = And [
                Stationary
                Unowned
                Random probability = 
'''

MONSTER_MOVE_POST_NOT_OWNED
'''
]
            stackinggroup = "MONSTER_FLEET_MOVE_STACK"
            effects = SetDestination destination = And [
                System
                Not InSystem id = Source.SystemID
                WithinStarlaneJumps jumps = 1 condition = Source
                Not Contains And [
                    Planet
                    OwnedBy affiliation = AnyEmpire
                ]
            ]
'''

MONSTER_MOVE_POST
'''
]
            stackinggroup = "MONSTER_FLEET_MOVE_STACK"
            effects = SetDestination destination = And [
                System
                Not InSystem id = Source.SystemID
                WithinStarlaneJumps jumps = 1 condition = Source
            ]
'''

INFINITE_FUEL
'''EffectsGroup
            scope = Source
            accountinglabel = "INFINITE_FUEL_LABEL"
            effects = SetFuel value = Value + 1
'''

SCAVANGE_FUEL_UNOWNED
'''EffectsGroup
            scope = Source
            activation = And [
                Stationary
                Unowned
                Random probability = 0.6
            ]
            effects = SetFuel value = Value + 1
'''

HUNT_BUILDINGS
'''EffectsGroup
            scope = And [
                Fleet
                Object id = Source.FleetID
                Number low = 1 condition = And [
                    System
                    Contains And [
                        Planet
                        Species
                        OwnedBy affiliation = AnyEmpire
                        Contains And [
                            Building
                            Stealth high = Source.Detection
                        ]
                    ]
                    WithinDistance distance = Source.Detection condition = Source
                ]
            ]
            activation = Unowned
            stackinggroup = "MONSTER_FLEET_MOVE_STACK"
            effects = SetDestination destination = And [
                System
                Contains And [
                    Planet
                    Species
                    OwnedBy affiliation = AnyEmpire
                    Contains And [
                        Building
                        Stealth high = Source.Detection
                    ]
                ]
                WithinDistance distance = Source.Detection condition = Source
            ]
'''

HUNT_SHIPS
'''EffectsGroup
            scope = And [
                Fleet
                Object id = Source.FleetID
                Number low = 1 condition = And [
                    Ship
                    OwnedBy affiliation = AnyEmpire
                    Stealth high = Source.Detection
                    WithinDistance distance = Source.Detection condition = Source
                ]
            ]
            activation = Unowned
            stackinggroup = "MONSTER_FLEET_MOVE_STACK"
            effects = SetDestination destination = And [
                System
                Contains And [
                    Ship
                    OwnedBy affiliation = AnyEmpire
                    Stealth high = Source.Detection
                    WithinDistance distance = Source.Detection condition = Source
                ]
            ]
'''

HUNT_PLANETS
'''EffectsGroup
            scope = And [
                Fleet
                Object id = Source.FleetID
                Number low = 1 condition = And [
                    Planet
                    OwnedBy affiliation = AnyEmpire
                    Stealth high = Source.Detection
                    WithinDistance distance = Source.Detection condition = Source
                ]
            ]
            activation = Unowned
            stackinggroup = "MONSTER_FLEET_MOVE_STACK"
            effects = SetDestination destination = And [
                System
                Contains And [
                    Planet
                    OwnedBy affiliation = AnyEmpire
                    Stealth high = Source.Detection
                    WithinDistance distance = Source.Detection condition = Source
                ]
            ]
'''

STRUCTURE_MULTIPLICATOR
'''2.0'''

// keep this entry at bottom, to best preserve line numbering for debugging
#include "shared_macros.txt"
