{
  "_doc": "Starship traits catalog. Traits are NARRATIVE / TRADE-OFF characteristics of a ship's build, history, or condition — Jury-Rigged, Hot-Shot, Salvaged, Veteran Crew, etc. They can carry positive effects, negative effects, both, or neither (pure flavor). They differ from upgrades (constructive only, in starship-upgrades.json) in that traits typically reflect the ship's STORY, not its shopping list. Many traits feed the sheet's Special Conditions panel via special_conditions_entry. The Modifications/Traits builder tab pulls from this file. price_credits is the trait's effect on the ship's total reference value (negative = a 'discount' trait, positive = a 'premium' trait); REFERENCE ONLY, not a credit pool.",
  "traits": [
    {
      "id": "jury-rigged",
      "name": "Jury-Rigged",
      "category": "trade-off",
      "price_credits": -15000,
      "effects": [
        { "type": "handling_bonus", "delta": -2 },
        { "type": "shields_max", "delta": -10 }
      ],
      "prereq": { "size": ["Small", "Medium"] },
      "narrative_prereq": "GM may require a 'questionable mechanic' contact or a salvage-yard backstory.",
      "special_conditions_entry": {
        "name": "Jury-Rigged",
        "body": "- On any attack roll of 1-2, roll a DC 12 Mechanics check. On failure, one system shorts out until the end of the next round.\n- First time Shields drop to 0 in a battle, roll DC 12 Mechanics. On failure, -5 HP to Hull immediately."
      },
      "trade_off_summary": "Cheap but unreliable. -2 Handling, -10 Shields max, occasional system shorts.",
      "description": "A 'shipyard special' assembled from salvaged parts and patched together by a desperate mechanic. Cheap, unreliable, beloved."
    },
    {
      "id": "hot-shot",
      "name": "Hot-Shot",
      "category": "trade-off",
      "price_credits": 5000,
      "effects": [
        { "type": "speed_band", "delta": 1 },
        { "type": "handling_bonus", "delta": 1 }
      ],
      "prereq": { "size": ["Small", "Medium"] },
      "narrative_prereq": "The pilot or owner has a hot-rod reputation; the ship has been deliberately tuned past spec.",
      "special_conditions_entry": {
        "name": "Hot-Shot",
        "body": "- On a Critical hit AGAINST this ship, take an additional 1d10 damage as red-lined systems flare. The ship is faster but more fragile under stress."
      },
      "trade_off_summary": "Tuned for speed. +1 speed band, +1 Handling, takes extra damage on crits.",
      "description": "Engine and thruster systems pushed past factory spec. Faster, twitchier, and noticeably louder in the cantina parking lot."
    },
    {
      "id": "salvaged",
      "name": "Salvaged",
      "category": "trade-off",
      "price_credits": -30000,
      "effects": [
        { "type": "hp_max", "delta": -10 },
        { "type": "shields_max", "delta": -5 }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": "Pulled from a junkyard or a wreck. GM may rule history of trouble — original owner, salvage claim disputes, etc.",
      "special_conditions_entry": {
        "name": "Salvaged",
        "body": "- Once per session, when the GM wants to drop a callback to the ship's prior owner (former lover, former enemy, former bounty), they may. The GM gains a free narrative complication; the player gains 1 Heroic Surge point in compensation."
      },
      "trade_off_summary": "Picked up cheap. -10 HP, -5 Shields, and a history of trouble. Major price discount.",
      "description": "Bought from a junker, won in a sabacc game, or stripped from a salvage hold. Cheap to acquire — but somebody, somewhere, still considers it theirs."
    },
    {
      "id": "veteran-crew",
      "name": "Veteran Crew",
      "category": "narrative",
      "price_credits": 8000,
      "effects": [
        { "type": "ability", "rule": "Crew gains Advantage on Starship Initiative rolls. The Veteran NPC crew member must be specified at trait acquisition and ride along; if they die or leave, this trait is lost." }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": "Specify the Veteran (NPC name, role, backstory) with the GM at trait acquisition.",
      "special_conditions_entry": null,
      "trade_off_summary": "A grizzled NPC veteran rides along and improves the crew's edge. Advantage on Starship Initiative.",
      "description": "An old hand crews one of the stations. Their reflexes are sharp; their stories are old. Lose them, lose the edge."
    },
    {
      "id": "modular-bays",
      "name": "Modular Bays",
      "category": "trade-off",
      "price_credits": 2000,
      "effects": [
        { "type": "sib", "delta": -1 },
        { "type": "ability", "rule": "Cargo capacity increased by 50% (round up to the nearest 10 tons). Hidden internal modularity allows on-the-fly bay reconfiguration." }
      ],
      "prereq": { "size": ["Medium", "Large"] },
      "narrative_prereq": null,
      "special_conditions_entry": {
        "name": "Modular Bays",
        "body": "- Once per session, the crew may declare a 'pre-installed' modular bay for the current mission (e.g. medical bay, prison cells, sensor mast, science lab). The change is free and applies for the session only."
      },
      "trade_off_summary": "Flexible cargo and reconfigurable bays. +50% cargo, -1 SIB from the bulkhead modularity.",
      "description": "The hull bulkheads slot in and out with surprising ease, letting the crew rejig the ship's interior between missions."
    },
    {
      "id": "smugglers-special",
      "name": "Smuggler's Special",
      "category": "narrative",
      "price_credits": 4500,
      "effects": [
        { "type": "ability", "rule": "Adds one hidden smuggling compartment. Enemy scans suffer Disadvantage to detect contraband stored in this compartment." }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": "Where, exactly, is the compartment? GM may want to know this up front for later 'they search the ship' beats.",
      "special_conditions_entry": {
        "name": "Smuggler's Special",
        "body": "- One hidden compartment (size: ~1 cubic meter). Inspection rolls against contraband stored here suffer Disadvantage."
      },
      "trade_off_summary": "Hidden compartment for contraband. Disadvantage on enemy scan checks.",
      "description": "Whoever built (or modified) this ship knew the value of a hidden hold. Customs has their work cut out for them."
    },
    {
      "id": "battle-scarred",
      "name": "Battle-Scarred",
      "category": "trade-off",
      "price_credits": -8000,
      "effects": [
        { "type": "sib", "delta": 1 },
        { "type": "hp_max", "delta": -10 }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": "The ship has been in fights before. What happened?",
      "special_conditions_entry": {
        "name": "Battle-Scarred",
        "body": "- Visible patch jobs and weld lines along the hull. NPCs who recognize this ship may identify a previous battle or owner on a DC 13 Knowledge: Galactic Politics check."
      },
      "trade_off_summary": "Old patch jobs run deep. +1 SIB but -10 HP, plus a reputation among those who notice.",
      "description": "Battle damage was patched over more than once. The repairs hold; the ship remembers."
    },
    {
      "id": "showroom-condition",
      "name": "Showroom Condition",
      "category": "virtue",
      "price_credits": 10000,
      "effects": [
        { "type": "ability", "rule": "Pristine cosmetic condition. The ship sells for +10% of total reference value if traded. Pure flavor; no combat effects." }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": null,
      "special_conditions_entry": null,
      "trade_off_summary": "Cosmetically perfect, premium resale. Pure flavor.",
      "description": "Spotless paint, polished trim, the seat upholstery is original. Everyone notices."
    },
    {
      "id": "cursed",
      "name": "Cursed",
      "category": "narrative",
      "price_credits": -5000,
      "effects": [
        { "type": "ability", "rule": "No mechanical effect. Pure narrative." }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": "What's the curse? Players + GM agree on the flavor at trait acquisition.",
      "special_conditions_entry": {
        "name": "Cursed",
        "body": "- This ship is said to be cursed. NPCs may refuse to fly on it, demand higher pay, or take cargo only to a 'lucky' port. No mechanical effect; purely narrative."
      },
      "trade_off_summary": "Locally known as cursed. NPCs react; mechanics don't.",
      "description": "Maybe it's haunted. Maybe the previous owner died in the cockpit. Maybe the dice just hate it. Locals have opinions."
    },
    {
      "id": "pristine-condition",
      "name": "Pristine Condition",
      "category": "virtue",
      "price_credits": 6000,
      "effects": [
        { "type": "ability", "rule": "Engineer's Mechanics checks made on this ship have Advantage. Everything is clean, labeled, and where it should be." }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": "A meticulous owner kept the ship up. Whose?",
      "special_conditions_entry": null,
      "trade_off_summary": "Meticulously maintained. Engineer has Advantage on all in-ship Mechanics checks.",
      "description": "Every panel is labeled, every cable bundled, every spare part shelved. The Engineer thinks they died and went to a holovid."
    },
    {
      "id": "heavily-modified",
      "name": "Heavily Modified",
      "category": "virtue",
      "price_credits": 0,
      "effects": [
        { "type": "ability", "rule": "Any one installed upgrade is acquired at 25% discount on first installation (subtract from reference price). Choose at trait acquisition; cannot be changed. GM-approved." }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": "The ship was already modified when acquired. GM and player agree on the carry-over upgrade.",
      "special_conditions_entry": null,
      "trade_off_summary": "One inherited upgrade comes 25% cheaper than catalog price.",
      "description": "The previous owner installed a major upgrade; you got it 'free' with the sale."
    },
    {
      "id": "infamous-reputation",
      "name": "Infamous Reputation",
      "category": "trade-off",
      "price_credits": -3000,
      "effects": [
        { "type": "ability", "rule": "This ship's silhouette and IFF signature are widely recognized. +1 to social rolls when the reputation works for you (intimidation, name-drops); -1 to social rolls when it works against you (port authorities, customs, anyone who has a grudge)." }
      ],
      "prereq": { "size": ["Small", "Medium", "Large"] },
      "narrative_prereq": "What's the ship famous for? Decide with the GM.",
      "special_conditions_entry": {
        "name": "Infamous Reputation",
        "body": "- This ship is recognizable. NPCs may identify it on a DC 12 Knowledge: Galactic Politics or Streetwise check (whichever fits)."
      },
      "trade_off_summary": "Famous (or infamous) silhouette. +1 social where it helps, -1 where it hurts.",
      "description": "The ship has a name and a reputation. Whether that's good or bad depends on who you're talking to."
    }
  ]
}
