{
  "_comment": "Droid chassis upgrade catalog. Three categories: plating (AC), armament (chassis-mounted weapons referencing weapons.json by weapon_ref), utility (shields, ability bonuses, sensors). Engine reads via collectChassisEffects() in useCharacter.js. Plating ladder is drawn from SWSE droid-armor canon (Wookieepedia + SWSE Wiki).",

  "plating_upgrades": [
    {
      "name": "Plasteel Plating",
      "compatible_chassis": ["all"],
      "cost_credits": 600,
      "min_level": 1,
      "is_legendary": false,
      "ac_bonus": 1,
      "effect": "Mass-produced lightweight chassis reinforcement."
    },
    {
      "name": "Bronzium Shell",
      "compatible_chassis": ["all"],
      "cost_credits": 1500,
      "min_level": 1,
      "is_legendary": false,
      "ac_bonus": 2,
      "effect": "Legacy alloy used on older destroyer-class droids."
    },
    {
      "name": "Duravlex Shell",
      "compatible_chassis": ["all"],
      "cost_credits": 2500,
      "min_level": 3,
      "is_legendary": false,
      "ac_bonus": 2,
      "effect": "Damage Resistance 2 vs Fire damage. Heat-resistant alloy used on smelter and mining droids."
    },
    {
      "name": "Durasteel Plating I",
      "compatible_chassis": ["all"],
      "cost_credits": 2000,
      "min_level": 3,
      "is_legendary": false,
      "ac_bonus": 2,
      "effect": "Standard mass-produced military-grade plating."
    },
    {
      "name": "Durasteel Plating II",
      "compatible_chassis": ["all"],
      "cost_credits": 5000,
      "min_level": 6,
      "is_legendary": false,
      "ac_bonus": 3,
      "effect": "Heavy military durasteel."
    },
    {
      "name": "Durasteel Plating III",
      "compatible_chassis": ["all"],
      "cost_credits": 11000,
      "min_level": 9,
      "is_legendary": false,
      "ac_bonus": 5,
      "effect": "Heaviest mass-produced durasteel."
    },
    {
      "name": "Quadanium Plating",
      "compatible_chassis": ["all"],
      "cost_credits": 6000,
      "min_level": 6,
      "is_legendary": false,
      "ac_bonus": 3,
      "effect": "Damage Resistance 2 vs Energy damage. Battle-droid-grade alloy."
    },
    {
      "name": "Cortosis-Durasteel Alloy",
      "compatible_chassis": ["all"],
      "cost_credits": 14000,
      "min_level": 8,
      "is_legendary": true,
      "ac_bonus": 4,
      "effect": "Damage Resistance 3 vs Energy damage. Lightsabers do not gain critical-hit bonuses against you."
    },
    {
      "name": "Laminanium Plating I",
      "compatible_chassis": ["all"],
      "cost_credits": 7000,
      "min_level": 6,
      "is_legendary": false,
      "ac_bonus": 2,
      "effect": "Regeneration 1. Tendrando self-repairing qellan alloy."
    },
    {
      "name": "Laminanium Plating II",
      "compatible_chassis": ["all"],
      "cost_credits": 16000,
      "min_level": 10,
      "is_legendary": false,
      "ac_bonus": 3,
      "effect": "Regeneration 2."
    },
    {
      "name": "Laminanium Plating III",
      "compatible_chassis": ["all"],
      "cost_credits": 32000,
      "min_level": 14,
      "is_legendary": false,
      "ac_bonus": 4,
      "effect": "Regeneration 3."
    },
    {
      "name": "Duranium Plating",
      "compatible_chassis": ["all"],
      "cost_credits": 20000,
      "min_level": 11,
      "is_legendary": false,
      "ac_bonus": 5,
      "effect": "Heavy-duty industrial chassis reinforcement."
    },
    {
      "name": "Neutronium Plating",
      "compatible_chassis": ["all"],
      "cost_credits": 36000,
      "min_level": 13,
      "is_legendary": true,
      "ac_bonus": 6,
      "effect": "Damage Resistance 3 vs Bludgeoning, Piercing, and Slashing damage. Assassin-droid grade; extreme density."
    },
    {
      "name": "Phrik Alloy Plating",
      "compatible_chassis": ["all"],
      "cost_credits": 18000,
      "min_level": 11,
      "is_legendary": true,
      "ac_bonus": 4,
      "effect": "Damage Resistance 3 vs Bludgeoning, Piercing, and Slashing damage. Lightsabers do not gain critical-hit bonuses against you."
    },
    {
      "name": "Beskar Plating",
      "compatible_chassis": ["all"],
      "cost_credits": 42000,
      "min_level": 15,
      "is_legendary": true,
      "ac_bonus": 6,
      "effect": "Damage Resistance 5 vs Bludgeoning, Piercing, and Slashing damage. Lightsabers do not gain critical-hit bonuses against you. Mandalorian iron."
    },
    {
      "name": "Reinforced Plating Mk I",
      "compatible_chassis": ["all"],
      "cost_credits": 700,
      "min_level": 1,
      "is_legendary": false,
      "ac_bonus": 1,
      "effect": "Reinforced frame and load-bearing struts. +5 Max HP. Entry-tier structural reinforcement — modest plating with extra durability baked into the chassis frame itself."
    },
    {
      "name": "Reinforced Plating Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 3000,
      "min_level": 5,
      "is_legendary": false,
      "ac_bonus": 2,
      "effect": "Reinforced frame, structural overhaul, and redundant actuators. +10 Max HP. Mid-tier structural reinforcement — replaces Mk I."
    },
    {
      "name": "Reinforced Plating Mk III",
      "compatible_chassis": ["all"],
      "cost_credits": 7500,
      "min_level": 10,
      "is_legendary": false,
      "ac_bonus": 3,
      "effect": "Full structural overhaul with redundant actuators and reinforced load-bearing frame. +15 Max HP. High-tier structural reinforcement — replaces Mk II."
    }
  ],

  "armament_upgrades": [
    {
      "name": "Integrated Blowtorch",
      "weapon_ref": "Blowtorch (Droid)",
      "compatible_chassis": ["all"],
      "cost_credits": 500,
      "min_level": 1,
      "is_legendary": false,
      "effect": "Mounts a Blowtorch on your chassis. 5 ft range, 1d6 Fire damage. Industrial cutting tool, also effective vs droids in close combat."
    },
    {
      "name": "Charge Arm",
      "weapon_ref": "Charge Arm",
      "compatible_chassis": ["all"],
      "cost_credits": 800,
      "min_level": 1,
      "is_legendary": false,
      "effect": "Chassis-mounted electric prod. 5 ft melee, 1d4 Energy + Stun on a failed CON save. Short-range defensive arm."
    },
    {
      "name": "Electro-Shock Prod",
      "weapon_ref": "Electro-Shock Prod",
      "compatible_chassis": ["all"],
      "cost_credits": 1000,
      "min_level": 1,
      "is_legendary": false,
      "effect": "Astromech defensive prod. 5 ft melee, 1d4 Energy + Stun on a failed CON save. Non-lethal — cannot reduce a target below 1 HP."
    },
    {
      "name": "Wrist Blaster Mk I",
      "weapon_ref": "Wrist Blaster",
      "compatible_chassis": ["all"],
      "cost_credits": 1500,
      "min_level": 1,
      "is_legendary": false,
      "effect": "Standard chassis-mounted blaster. 50 ft range, 1d8 Energy + Stun setting."
    },
    {
      "name": "Vibroclaw Mk I",
      "weapon_ref": "Vibroclaw Mk I",
      "compatible_chassis": ["all"],
      "cost_credits": 1200,
      "min_level": 2,
      "is_legendary": false,
      "effect": "Retractable claw integrated into a droid limb. 5 ft melee, 1d6 Slashing, finesse."
    },
    {
      "name": "Mini Grenade Launcher",
      "weapon_ref": "Mini Grenade Launcher",
      "compatible_chassis": ["all"],
      "cost_credits": 3000,
      "min_level": 4,
      "is_legendary": false,
      "effect": "Fires energy concussion grenades. 20 ft range, 2d6 Bludgeoning + Energy in a 10-ft (2x2) blast radius. DEX save halves. Limited ammo: 3 charges, recharge after a Short Rest."
    },
    {
      "name": "Sonic Stunner Mk I",
      "weapon_ref": "Sonic Stunner Mk I",
      "compatible_chassis": ["all"],
      "cost_credits": 2500,
      "min_level": 4,
      "is_legendary": false,
      "effect": "Cone-shaped sonic blast. 5-ft cone at 30 ft range, 1d8 Sonic + Stun on failed CON save. Save halves damage and negates Stun."
    },
    {
      "name": "Buzz Saw Arm",
      "weapon_ref": "Buzz Saw Arm",
      "compatible_chassis": ["all"],
      "cost_credits": 3000,
      "min_level": 5,
      "is_legendary": false,
      "effect": "Industrial buzz saw. 5 ft melee, 2d4 Slashing + 1 bleed at the start of target's next turn. B2 buzzsaw droid signature."
    },
    {
      "name": "Integrated Flamethrower",
      "weapon_ref": "Integrated Flamethrower",
      "compatible_chassis": ["all"],
      "cost_credits": 4500,
      "min_level": 6,
      "is_legendary": false,
      "effect": "Hidden internal flamethrower. 10-ft cone at 20 ft range, 2d6 Fire (DEX save halves). Limited ammo: 4 charges, recharge after a Short Rest."
    },
    {
      "name": "Wrist Blaster Mk II",
      "weapon_ref": "Wrist Blaster Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 4500,
      "min_level": 6,
      "is_legendary": false,
      "effect": "Improved chassis-mounted blaster. 50 ft range, 1d10 Energy + Stun setting."
    },
    {
      "name": "Ion Projector",
      "weapon_ref": "Ion Projector",
      "compatible_chassis": ["all"],
      "cost_credits": 5500,
      "min_level": 7,
      "is_legendary": false,
      "effect": "Anti-droid weapon. 50 ft range, 2d8 Ion damage; +2d6 Ion vs droids and electronics. Ion damage functions as Stun damage to other droids."
    },
    {
      "name": "Vibroclaw Mk II",
      "weapon_ref": "Vibroclaw Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 6000,
      "min_level": 8,
      "is_legendary": false,
      "effect": "Reinforced retractable claw with vibro-edge. 5 ft melee, 1d10 Slashing, finesse."
    },
    {
      "name": "Sonic Stunner Mk II",
      "weapon_ref": "Sonic Stunner Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 7000,
      "min_level": 9,
      "is_legendary": false,
      "effect": "Improved cone-shaped sonic blast. 10-ft cone at 30 ft range, 1d12 Sonic + Stun on failed CON save."
    },
    {
      "name": "Grenade Launcher",
      "weapon_ref": "Grenade Launcher",
      "compatible_chassis": ["all"],
      "cost_credits": 8500,
      "min_level": 9,
      "is_legendary": false,
      "effect": "Full-size energy-grenade launcher. 50 ft range, 3d6 Bludgeoning + Energy in a 20-ft (4x4) blast radius. DEX save halves. Limited ammo: 5 charges, recharge after a Short Rest."
    },
    {
      "name": "Wrist Rocket Launcher",
      "weapon_ref": "Wrist Rocket Launcher",
      "compatible_chassis": ["all"],
      "cost_credits": 9000,
      "min_level": 10,
      "is_legendary": false,
      "effect": "Single-rocket chassis launcher. 80 ft range, 3d8 Slashing in a 10-ft blast radius. DEX save halves. Limited ammo: 2 charges, recharge after a Short Rest. B2 SBD signature ordnance."
    },
    {
      "name": "Heavy Repeating Wrist Cannon",
      "weapon_ref": "Heavy Repeating Wrist Cannon",
      "compatible_chassis": ["all"],
      "cost_credits": 14000,
      "min_level": 12,
      "is_legendary": false,
      "effect": "IG-series heavy repeater. 60 ft range, 2d8 Energy + Stun. Autofire option: target a 10-ft square; all creatures take 2d8 (DEX save halves)."
    }
  ],

  "utility_upgrades": [
    {
      "name": "Servomotor Mk I",
      "compatible_chassis": ["all"],
      "cost_credits": 2500,
      "min_level": 1,
      "is_legendary": false,
      "effect": "+1 to Strength."
    },
    {
      "name": "Servomotor Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 6000,
      "min_level": 6,
      "is_legendary": false,
      "effect": "+2 to Strength."
    },
    {
      "name": "Servomotor Mk III",
      "compatible_chassis": ["all"],
      "cost_credits": 12000,
      "min_level": 10,
      "is_legendary": false,
      "effect": "+3 to Strength."
    },
    {
      "name": "Hydraulic Joints Mk I",
      "compatible_chassis": ["all"],
      "cost_credits": 3000,
      "min_level": 4,
      "is_legendary": false,
      "effect": "+1 to Dexterity."
    },
    {
      "name": "Hydraulic Joints Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 8000,
      "min_level": 8,
      "is_legendary": false,
      "effect": "+2 to Dexterity."
    },
    {
      "name": "Magnetic Footpads",
      "compatible_chassis": ["all"],
      "cost_credits": 1500,
      "min_level": 2,
      "is_legendary": false,
      "effect": "Climb speed equal to your walking speed on metal surfaces. Advantage on saves to resist being shoved or knocked prone while standing on a metallic surface."
    },
    {
      "name": "Repulsorlift Pack",
      "compatible_chassis": ["all"],
      "cost_credits": 10000,
      "min_level": 11,
      "is_legendary": false,
      "effect": "Fly speed 30 ft for up to 10 minutes per use. Limited charges: 2, recharge after a Short Rest."
    },
    {
      "name": "Cognition Module Mk I",
      "compatible_chassis": ["all"],
      "cost_credits": 2500,
      "min_level": 1,
      "is_legendary": false,
      "effect": "+1 to Intelligence."
    },
    {
      "name": "Cognition Module Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 6000,
      "min_level": 6,
      "is_legendary": false,
      "effect": "+2 to Intelligence."
    },
    {
      "name": "Cognition Module Mk III",
      "compatible_chassis": ["all"],
      "cost_credits": 14000,
      "min_level": 12,
      "is_legendary": false,
      "effect": "+3 to Intelligence."
    },
    {
      "name": "Insight Processor",
      "compatible_chassis": ["all"],
      "cost_credits": 4000,
      "min_level": 5,
      "is_legendary": false,
      "effect": "+1 to Wisdom. Tactical pattern-recognition routine."
    },
    {
      "name": "Translator Unit",
      "compatible_chassis": ["all"],
      "cost_credits": 3000,
      "min_level": 5,
      "is_legendary": false,
      "effect": "You understand all common languages and can read any common script. For uncommon or rare languages, make a DC 12 INT (Investigation) check to comprehend. (Already granted by RA-7 Protocol Droid as a species trait.)"
    },
    {
      "name": "Tactical Battle Computer",
      "compatible_chassis": ["all"],
      "cost_credits": 12000,
      "min_level": 11,
      "is_legendary": false,
      "effect": "+2 to Initiative rolls. Advantage on Knowledge: Tactics checks."
    },
    {
      "name": "Energy Shield Mk I",
      "compatible_chassis": ["all"],
      "cost_credits": 2000,
      "min_level": 4,
      "is_legendary": false,
      "effect": "+5 temporary HP that depletes before your regular HP. Recovers after a Short Rest."
    },
    {
      "name": "Energy Shield Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 5500,
      "min_level": 8,
      "is_legendary": false,
      "effect": "+10 temporary HP that depletes before your regular HP. Recovers after a Short Rest."
    },
    {
      "name": "Energy Shield Mk III",
      "compatible_chassis": ["all"],
      "cost_credits": 12000,
      "min_level": 12,
      "is_legendary": false,
      "effect": "+15 temporary HP that depletes before your regular HP. Recovers after a Short Rest."
    },
    {
      "name": "Magnetic Stabilizer",
      "compatible_chassis": ["all"],
      "cost_credits": 4500,
      "min_level": 8,
      "is_legendary": false,
      "effect": "Advantage on checks and saves to resist being shoved, tripped, knocked prone, or grappled."
    },
    {
      "name": "Self-Repair Diagnostics",
      "compatible_chassis": ["all"],
      "cost_credits": 8000,
      "min_level": 10,
      "is_legendary": false,
      "effect": "As a Bonus Action, regain 1d6 + Proficiency Bonus HP. Limited use: 1 per Short Rest. Onboard repair routine — not biological healing, so it functions on droids despite §13.7."
    },
    {
      "name": "Stim-Injector Mk I",
      "compatible_chassis": ["all"],
      "cost_credits": 2000,
      "min_level": 1,
      "is_legendary": false,
      "effect": "As a Bonus Action, heal a creature within 5 ft (self or ally) for 1d6 + Proficiency Bonus HP. Limited use: 1 per Long Rest. (BD-Series Supporter Droid ships with this baseline.)"
    },
    {
      "name": "Stim-Injector Mk II",
      "compatible_chassis": ["all"],
      "cost_credits": 5000,
      "min_level": 7,
      "is_legendary": false,
      "effect": "As a Bonus Action, heal a creature within 5 ft for 2d6 + Proficiency Bonus HP. Limited use: 1 per Long Rest."
    },
    {
      "name": "Stim-Injector Mk III",
      "compatible_chassis": ["all"],
      "cost_credits": 12000,
      "min_level": 13,
      "is_legendary": false,
      "effect": "As a Bonus Action, heal a creature within 5 ft for 3d6 + Proficiency Bonus HP. Limited use: 1 per Long Rest."
    },
    {
      "name": "Sensor Suite",
      "compatible_chassis": ["all"],
      "cost_credits": 2500,
      "min_level": 4,
      "is_legendary": false,
      "effect": "Advantage on Perception checks."
    },
    {
      "name": "Infrared Vision Module",
      "compatible_chassis": ["all"],
      "cost_credits": 1800,
      "min_level": 4,
      "is_legendary": false,
      "effect": "You gain darkvision out to 60 feet."
    },
    {
      "name": "Targeting Computer",
      "compatible_chassis": ["all"],
      "cost_credits": 7000,
      "min_level": 9,
      "is_legendary": false,
      "effect": "Once per turn, you may take a single attack with Advantage. Targeting solutions reset on a Short Rest."
    },
    {
      "name": "Tool Mount: Mechanic's Toolkit",
      "compatible_chassis": ["all"],
      "cost_credits": 1200,
      "min_level": 1,
      "is_legendary": false,
      "effect": "Built-in Mechanic's Toolkit — tools always at hand, no item-interaction needed to deploy. Functions identically to a hand-held Mechanic's Toolkit."
    },
    {
      "name": "Holographic Projector",
      "compatible_chassis": ["all"],
      "cost_credits": 4000,
      "min_level": 5,
      "is_legendary": false,
      "effect": "As an Action, project a 1-minute disguise of any humanoid you have seen. Visual only — does not change your size or your voice. Limited use: 1 per Short Rest."
    },
    {
      "name": "Cloaking Field",
      "compatible_chassis": ["all"],
      "cost_credits": 25000,
      "min_level": 14,
      "is_legendary": true,
      "effect": "As an Action, become Invisible for up to 1 minute (concentration). Limited use: 1 per Long Rest."
    }
  ]
}
