Tech
    name = "SHP_FIGHTERS_4"
    description = "SHP_FIGHTERS_4_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 500 * [[TECH_COST_MULTIPLIER]]
    researchturns = 3
    tags = [ "PEDIA_FIGHTER_TECHS" ]
    prerequisites = [
        "SHP_WEAPON_4_1"
        "SHP_FIGHTERS_3"
            ]
    effectsgroups =
        EffectsGroup
            scope = And [
                Ship
                OwnedBy empire = Source.Owner
                Or [
                    DesignHasPart  name = "FT_HANGAR_1"
                    DesignHasPart  name = "FT_HANGAR_2"
                    DesignHasPart  name = "FT_HANGAR_3"
                    DesignHasPart  name = "FT_HANGAR_4"
                ]
            ]
            accountinglabel = "SHP_FIGHTERS_3"
            effects = [
                SetMaxCapacity      partname = "FT_HANGAR_1" value = Value + (PartsInShipDesign name = "FT_HANGAR_1" design = Target.DesignID)
                SetMaxSecondaryStat partname = "FT_HANGAR_2" value = Value + (2 * [[FIGHTER_DAMAGE_FACTOR]])
                SetMaxSecondaryStat partname = "FT_HANGAR_3" value = Value + (3 * [[FIGHTER_DAMAGE_FACTOR]])
                SetMaxSecondaryStat partname = "FT_HANGAR_4" value = Value + (6 * [[FIGHTER_DAMAGE_FACTOR]])
            ]
    graphic = "icons/ship_parts/fighter05.png"

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

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