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 = 160.0 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildTime = 8
    tags = [ "ASTEROID_HULL" "PEDIA_HULL_LINE_ASTEROIDS" ]
    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
            ]
            accountinglabel = "ASTEROID_FIELD_STEALTH"
            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

        [[AVERAGE_BASE_FUEL_REGEN]]
        [[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"

#include "asteroid.macros"

#include "../ship_hulls.macros"

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