Part
    name = "FT_HANGAR_1"
    description = "FT_HANGAR_1_DESC"
    exclusions = [ "FT_HANGAR_0" "FT_HANGAR_2" "FT_HANGAR_3" "FT_HANGAR_4" ]
    class = FighterHangar
    capacity = 3
    damage = 1
    combatTargets = And [
        [[COMBAT_TARGETS_VISIBLE_ENEMY]]
        Fighter
    ]
    mountableSlotTypes = Internal
    buildcost = 10 * [[FLEET_UPKEEP_MULTIPLICATOR]] * [[SHIP_PART_COST_MULTIPLIER]]
    buildtime = 1
    tags = [ "PEDIA_PC_FIGHTER_HANGAR" ]
    location = OwnedBy empire = Source.Owner
    effectsgroups = [
        EffectsGroup
            scope = And [
                Source
                [[EMPIRE_OWNED_SHIP_WITH_PART(FT_BAY_1)]]
            ]
            stackinggroup = "INTERCEPTOR_FAST_LAUNCH_EFFECT"
            effects = SetMaxCapacity partname = "FT_BAY_1" value = (
                3 +
                Statistic If Condition = And [ Target  OwnerHasTech Name = "SHP_FIGHTERS_2" ] +
                Statistic If Condition = And [ Target  OwnerHasTech Name = "SHP_FIGHTERS_3" ] +
                Statistic If Condition = And [ Target  OwnerHasTech Name = "SHP_FIGHTERS_4" ]
            )
    ]
    icon = "icons/ship_parts/fighter06.png"

#include "/scripting/common/upkeep.macros"
#include "/scripting/techs/techs.macros"
#include "/scripting/ship_parts/targeting.macros"
