Hull
    name = "SH_SOLAR"
    description = "SH_SOLAR_DESC"
    speed = 120
    fuel = 5
    stealth = -55
    structure = 100
    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 = 250.0 * [[FLEET_UPKEEP_MULTIPLICATOR]] * [[SHIP_HULL_COST_MULTIPLIER]]
    buildTime =8
    tags = [ "ENERGY_HULL" "PEDIA_HULL_LINE_ENERGY" ]
    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

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

#include "energy.macros"

#include "../ship_hulls.macros"

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