Hull
    name = "SH_IMMOBILE_FACTORY"
    description = "SH_IMMOBILE_FACTORY_DESC"
    speed = 0
    fuel = 0
    NoDefaultFuelEffect
    stealth = 5
    structure = 1000
    slots = [
        Slot type = External position = (0.20, 0.18)
        Slot type = Internal position = (0.50, 0.26)
        Slot type = External position = (0.80, 0.47)
    ]
    buildcost = 1
    buildtime = 1
    Unproducible
    tags = [ "PEDIA_HULL_MONSTER_GUARD" ]
    location = All
    effectsgroups = [
        [[MONSTER_SHIELD_REGENERATION]]
        [[UNOWNED_OWNED_VISION_BONUS(WEAK,10,10)]]
        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"

#include "monster.macros"

#include "../ship_hulls.macros"
