Hull
    name = "SH_ENDOMORPHIC"
    description = "SH_ENDOMORPHIC_DESC"
    speed = 100
    fuel = 2
    NoDefaultFuelEffect
    stealth = 5
    structure = 5
    slots = [
        Slot type = External position = (0.40, 0.25)
        Slot type = External position = (0.60, 0.35)
        Slot type = External position = (0.60, 0.55)
        Slot type = External position = (0.75, 0.50)
        Slot type = Internal position = (0.25, 0.45)
        Slot type = Internal position = (0.40, 0.55)
    ]
    buildcost = 23 * [[FLEET_UPKEEP_MULTIPLICATOR]] * [[SHIP_HULL_COST_MULTIPLIER]]
    buildtime = 5
    tags = [ "ORGANIC_HULL" "PEDIA_HULL_LINE_ORGANIC" "GOOD_FUEL_EFFICIENCY" ]
    location = And [
        Planet
        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
        ]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            effects = SetDetection value = Value + 50

        EffectsGroup
            scope = Source
            accountinglabel = "ORGANIC_GROWTH"
            effects = SetMaxStructure value = Value + ( min(Source.Age*0.5, 15) * [[SHIP_STRUCTURE_FACTOR]] )

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

#include "organic.macros"

#include "../ship_hulls.macros"

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