Hull
    name = "SH_FLOATER_BODY"
    description = "SH_FLOATER_BODY_DESC"
    speed = 20
    fuel = 3
    NoDefaultFuelEffect
    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
    tags = [ "PEDIA_HULL_MONSTER_TREE" ]
    location = All
    effectsgroups = [
        [[MONSTER_MOVE_ALWAYS]]
        [[INFINITE_FUEL]]
        [[ADD_HULL_FUEL_TO_MAX_FUEL_METER]]
        [[MODERATE_VISION]]
        [[MONSTER_SHIELD_REGENERATION]]

        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 [
                Turn low = LocalCandidate.LastTurnActiveInBattle + 1
                InSystem
                Random probability = 0.1
            ]
            stackinggroup = "TREE_GROWTH"
            effects = [
                CreateShip designname = "SM_TREE" name = Source.Name
                GenerateSitRepMessage
                    message = "EFFECT_TREE"
                    label = "EFFECT_TREE_LABEL"
                    icon = "icons/monsters/tree.png"
                    parameters = [
                        tag = "system" data = Source.SystemID
                        ]
                    affiliation = CanSee condition = Source
                ]
        ]
    icon = ""
    graphic = "icons/monsters/floater.png"

#include "monster.macros"

#include "../ship_hulls.macros"
