Part
    name = "SR_WEAPON_1_1"
    description = "SR_WEAPON_1_1_DESC"
    class = ShortRange
    damage = 3
    NoDefaultCapacityEffect
    mountableSlotTypes = External
    buildcost = 20 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 1
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    effectsgroups =
        [[WEAPON_BASE_DEFAULT_EFFECTS(SR_WEAPON_1_1)]]
    icon = "icons/ship_parts/mass-driver.png"

Part
    name = "SR_WEAPON_0_1"
    description = "SR_WEAPON_0_1_DESC"
    class = ShortRange
    damage = 1
    shots = 3
    NoDefaultCapacityEffect
    mountableSlotTypes = External
    buildcost = 20 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 1
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    effectsgroups =
        [[WEAPON_BASE_DEFAULT_EFFECTS(SR_WEAPON_0_1)]]
    icon = "icons/ship_parts/flak.png"

Part
    name = "SR_WEAPON_2_1"
    description = "SR_WEAPON_2_1_DESC"
    class = ShortRange
    damage = 5
    NoDefaultCapacityEffect
    mountableSlotTypes = External
    buildcost = 30 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 2
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    effectsgroups =
        [[WEAPON_BASE_DEFAULT_EFFECTS(SR_WEAPON_2_1)]]
    icon = "icons/ship_parts/laser.png"

Part
    name = "SR_WEAPON_3_1"
    description = "SR_WEAPON_3_1_DESC"
    class = ShortRange
    damage = 9
    NoDefaultCapacityEffect
    mountableSlotTypes = External
    buildcost = 40 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 3
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    effectsgroups =
        [[WEAPON_BASE_DEFAULT_EFFECTS(SR_WEAPON_3_1)]]
    icon = "icons/ship_parts/plasma.png"

Part
    name = "SR_WEAPON_4_1"
    description = "SR_WEAPON_4_1_DESC"
    class = ShortRange
    damage = 15
    NoDefaultCapacityEffect
    mountableSlotTypes = External
    buildcost = 60 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 4
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    effectsgroups =
        [[WEAPON_BASE_DEFAULT_EFFECTS(SR_WEAPON_4_1)]]
    icon = "icons/ship_parts/death-ray.png"

Part
    name = "SR_JAWS"
    description = "SR_JAWS_DESC"
    class = ShortRange
    damage = 5
    mountableSlotTypes = External
    buildcost = 20 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 1
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    icon = "icons/ship_parts/teeth.png"

Part
    name = "SR_SPINES"
    description = "SR_SPINES_DESC"
    class = ShortRange
    damage = 20
    mountableSlotTypes = External
    buildcost = 40 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 3
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    icon = "icons/ship_parts/claw.png"

Part
    name = "SR_TENTACLE"
    description = "SR_TENTACLE_DESC"
    class = ShortRange
    damage = 5
    mountableSlotTypes = External
    buildcost = 30 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 2
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    icon = "icons/ship_parts/tentacle.png"

Part
    name = "SR_PLASMA_DISCHARGE"
    description = "SR_PLASMA_DISCHARGE_DESC"
    class = ShortRange
    damage = 20
    mountableSlotTypes = External
    buildcost = 40 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 3
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    icon = "icons/ship_parts/flame_thrower.png"

Part
    name = "SR_ICE_BEAM"
    description = "SR_ICE_BEAM_DESC"
    class = ShortRange
    damage = 9
    mountableSlotTypes = External
    buildcost = 30 * [[FLEET_UPKEEP_MULTIPLICATOR]]
    buildtime = 2
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = OwnedBy empire = Source.Owner
    icon = "icons/ship_parts/snowflake_laser.png"

// If unowned or owner has not unlocked the ship part yet.
WEAPON_BASE_DEFAULT_EFFECTS
'''        EffectsGroup
            scope = Source
            activation = Or [
                Unowned
                Not OwnerHasShipPartAvailable name = "@1@"
            ]
            stackinggroup = "WEAPON_BASE_DEFAULT_EFFECTS_@1@"
            accountinglabel = "@1@"
            effects = [
                SetMaxCapacity partname = "@1@" value = Value + PartCapacity name = "@1@"
                SetMaxSecondaryStat partname = "@1@" value = Value + PartSecondaryStat name = "@1@"
            ]
'''

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