Part
    name = "SR_SPINES"
    description = "SR_SPINES_DESC"
    class = ShortRange
    damage = 40
    destroyFightersPerBattleMax = 0
    damageStructurePerBattleMax =
        max(0,ShipPartMeter part = "SR_SPINES" meter = Capacity object = Source.ID - Value(Target.Shield))
        * ShipPartMeter part = "SR_SPINES" meter = SecondaryStat object = Source.ID
        * NamedRealLookup name = "NUM_REAL_COMBAT_ROUNDS_IN_CLOSE_TARGETING_RANGE"
    combatTargets = And [
        (CombatBout >= NamedIntegerLookup name = "FIRST_COMBAT_ROUND_IN_CLOSE_TARGETING_RANGE")
        Or [
           [[COMBAT_TARGETS_NOT_DESTROYED_SHIP]]
           [[COMBAT_TARGETS_PLANET_WITH_DEFENSE]]
        ]
        [[COMBAT_TARGETS_VISIBLE_ENEMY]]
    ]
    mountableSlotTypes = External
    buildcost = 40 * [[FLEET_UPKEEP_MULTIPLICATOR]] * [[SHIP_PART_COST_MULTIPLIER]]
    buildtime = 3
    tags = [ "PEDIA_PC_DIRECT_WEAPON" ]
    location = And [
        Planet
        OwnedBy empire = Source.Owner
    ]
    icon = "icons/ship_parts/claw.png"

#include "shortrange.macros"

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