[
  {
    "id": "adjustable_stock",
    "type": "GUNMOD",
    "name": { "str": "adjustable stock" },
    "description": "An adjustable replacement stock improving both recoil and accuracy.",
    "weight": "350 g",
    "volume": "500 ml",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 38000,
    "price_postapoc": 500,
    "install_time": "10 m",
    "to_hit": 1,
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "smg", "rifle", "shotgun", "crossbow", "launcher" ],
    "dispersion_modifier": -1,
    "handling_modifier": 1,
    "melee_damage": { "bash": 6 }
  },
  {
    "id": "folding_stock",
    "type": "GUNMOD",
    "name": { "str": "folding stock" },
    "description": "A folding stock which reduces length when folded.  Currently unfolded and ready to shoot.",
    "weight": "200 g",
    "volume": "500 ml",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 42000,
    "price_postapoc": 250,
    "install_time": "5 m",
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "smg", "rifle", "shotgun", "launcher" ],
    "use_action": {
      "type": "transform",
      "msg": "You fold the stock for transport.",
      "menu_text": "Fold",
      "target": "folding_stock_folded",
      "moves": 120
    },
    "min_skills": [ [ "weapon", 3 ] ]
  },
  {
    "id": "folding_stock_folded",
    "type": "GUNMOD",
    "name": { "str": "folding stock (folded)", "str_pl": "folding stocks (folded)" },
    "description": "A folding stock which reduces length.  Currently folded, making shooting this gun difficult.",
    "copy-from": "folding_stock",
    "use_action": {
      "type": "transform",
      "msg": "You unfold the stock for combat.",
      "menu_text": "Unfold",
      "target": "folding_stock",
      "moves": 120
    },
    "//": "10 is the modifier that stocked weapons normally get",
    "handling_modifier": -10,
    "flags": [ "FOLDED_STOCK" ]
  },
  {
    "id": "high_end_folding_stock",
    "type": "GUNMOD",
    "name": { "str": "modular folding stock" },
    "description": "A multi position, high-end folding stock which reduces length when folded.  Currently unfolded and ready to shoot.",
    "weight": "200 g",
    "volume": "500 ml",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 42000,
    "price_postapoc": 250,
    "install_time": "5 m",
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "smg", "rifle", "shotgun", "launcher" ],
    "use_action": {
      "type": "transform",
      "msg": "You fold the stock for transport.",
      "menu_text": "Fold",
      "target": "high_end_folding_stock_folded",
      "moves": 120
    },
    "//": "benefits of a recoil stock and adjustable stock",
    "dispersion_modifier": -1,
    "handling_modifier": 5,
    "min_skills": [ [ "weapon", 3 ] ]
  },
  {
    "id": "high_end_folding_stock_folded",
    "type": "GUNMOD",
    "name": { "str": "modular folding stock (folded)", "str_pl": "modular folding stocks (folded)" },
    "description": "A multi position, high-end folding stock which reduces length when folded.  Currently folded, making shooting this gun hard.",
    "copy-from": "high_end_folding_stock",
    "use_action": {
      "type": "transform",
      "msg": "You unfold the stock for combat.",
      "menu_text": "Unfold",
      "target": "high_end_folding_stock",
      "moves": 120
    },
    "//": "10 is the modifier that stocked weapons normally get",
    "dispersion_modifier": 0,
    "handling_modifier": -10,
    "flags": [ "FOLDED_STOCK" ]
  },
  {
    "id": "wire_stock",
    "type": "GUNMOD",
    "name": { "str": "collapsing wire stock" },
    "description": "A collapsing wire stock which folds closely against the body of the weapon, reducing length and volume.",
    "weight": "170 g",
    "volume": "250 ml",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 30000,
    "price_postapoc": 250,
    "install_time": "5 m",
    "material": [ "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "handling_modifier": 2,
    "mod_targets": [ "pistol", "smg", "rifle", "shotgun" ],
    "use_action": {
      "type": "transform",
      "msg": "You push the stock in for storage.",
      "menu_text": "Fold",
      "target": "wire_stock_folded",
      "moves": 120
    },
    "min_skills": [ [ "weapon", 3 ] ],
    "flags": [ "IRREMOVABLE" ]
  },
  {
    "id": "wire_stock_folded",
    "type": "GUNMOD",
    "name": { "str": "collapsing wire stock (collapsed)", "str_pl": "collapsing wire stocks (collapsed)" },
    "description": "A collapsing wire stock which folds closely against the body of the weapon, reducing length and volume.  Currently collapsed, making shooting difficult",
    "copy-from": "wire_stock",
    "use_action": {
      "type": "transform",
      "msg": "You pull the stock out for combat.",
      "menu_text": "Unfold",
      "target": "wire_stock",
      "moves": 120
    },
    "//": "10 is the modifier that stocked weapons normally get",
    "handling_modifier": -10,
    "flags": [ "COLLAPSED_STOCK", "IRREMOVABLE" ]
  },
  {
    "id": "stock_none",
    "type": "GUNMOD",
    "name": { "str": "sawn-off stock" },
    "description": "A quick saw cut removed the original stock from this weapon.  It is now much harder to handle, but much smaller.",
    "install_time": "5 m",
    "material": [ "wood" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock mount",
    "handling_modifier": -10,
    "mod_targets": [ "smg", "rifle", "shotgun" ],
    "//": "though the stock isn't COLLAPSED it is functionally the same",
    "flags": [ "REMOVED_STOCK", "IRREMOVABLE" ]
  },
  {
    "id": "pistol_stock",
    "type": "GUNMOD",
    "name": { "str": "pistol stock" },
    "description": "An add-on stock for handguns, this considerably improves control of recoil.",
    "weight": "350 g",
    "volume": "500 ml",
    "integral_longest_side": "30 cm",
    "integral_volume": "500 ml",
    "integral_weight": "350 g",
    "price": 38000,
    "price_postapoc": 500,
    "install_time": "5 m",
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "pistol", "crossbow" ],
    "handling_modifier": 6,
    "min_skills": [ [ "weapon", 2 ] ]
  },
  {
    "id": "recoil_stock",
    "type": "GUNMOD",
    "name": { "str": "recoil stock" },
    "description": "A replacement stock designed to absorb perceived recoil.",
    "weight": "960 g",
    "volume": "500 ml",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 400,
    "price_postapoc": 500,
    "install_time": "5 m",
    "to_hit": 1,
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "smg", "rifle", "shotgun", "launcher" ],
    "handling_modifier": 4,
    "min_skills": [ [ "weapon", 2 ] ],
    "melee_damage": { "bash": 6 }
  },
  {
    "id": "cheek_pad",
    "type": "GUNMOD",
    "name": { "str": "cheek pad" },
    "description": "A stock accessory for sniper rifles and DMRs, this considerably improves eye relief efficiency, prevents slipping, and reduces recoil to the neck and cheek.",
    "weight": "300 g",
    "volume": "250 ml",
    "integral_volume": "0 ml",
    "integral_weight": "300 g",
    "price": 4500,
    "price_postapoc": 500,
    "install_time": "3 m",
    "to_hit": 1,
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock accessory",
    "mod_targets": [ "rifle" ],
    "dispersion_modifier": -1,
    "handling_modifier": 2,
    "min_skills": [ [ "weapon", 2 ] ],
    "melee_damage": { "bash": 2 }
  },
  {
    "id": "butt_hook",
    "type": "GUNMOD",
    "name": { "str": "butt hook" },
    "description": "An attachment to the butt of the gun that is held under the armpit, improving stability.",
    "weight": "100 g",
    "volume": "100 ml",
    "integral_longest_side": "4 cm",
    "integral_volume": "100 ml",
    "integral_weight": "100 g",
    "price": 4750,
    "price_postapoc": 50,
    "material": [ "aluminum" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock accessory",
    "mod_targets": [ "smg", "rifle", "shotgun", "launcher", "crossbow" ],
    "install_time": "10 m",
    "dispersion_modifier": -15,
    "min_skills": [ [ "weapon", 1 ] ]
  },
  {
    "id": "tail_hook_stock",
    "type": "GUNMOD",
    "name": { "str": "tail hook stock" },
    "//": "When we get 'rate of angular change' a version for rifles and crossbow can be added.  Currently it would be too strong",
    "description": "A foldable add-on stock for handguns and machine guns with a pivoting hook that latches onto the forearm, allowing for greater stability.",
    "weight": "150 g",
    "volume": "200 ml",
    "integral_volume": "0 L",
    "price": 5000,
    "price_postapoc": 300,
    "material": [ "aluminum" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "smg", "pistol", "slingshot" ],
    "install_time": "5 m",
    "dispersion_modifier": -20,
    "handling_modifier": 4,
    "min_skills": [ [ "weapon", 3 ] ],
    "//2": "this seems to be for hooking the gun on your arm not actually folding it up for storage",
    "flags": [ "NEEDS_UNFOLD" ]
  },
  {
    "id": "under_folding_stock",
    "type": "GUNMOD",
    "name": { "str": "under folding stock" },
    "description": "A light wire-framed stock with a push button release catch on the side  which allows it to fold and be stored away under the weapon's receiver.  The wire construction means that it’s less comfortable to shoulder than a regular fixed attachment.  The stock is currently locked in the open position.",
    "weight": "100 g",
    "volume": "300 ml",
    "integral_volume": "100 ml",
    "integral_weight": "100 g",
    "price": 42000,
    "price_postapoc": 250,
    "install_time": "5 m",
    "material": [ "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "smg", "rifle", "shotgun", "launcher" ],
    "use_action": {
      "type": "transform",
      "msg": "You push in the release catch on the side and fold away the stock.",
      "menu_text": "Fold",
      "target": "under_folding_stock_folded",
      "moves": 120
    },
    "handling_modifier": 8,
    "min_skills": [ [ "weapon", 3 ] ]
  },
  {
    "id": "under_folding_stock_folded",
    "type": "GUNMOD",
    "name": { "str": "under-folding stock (folded)", "str_pl": "under-folding stocks (folded)" },
    "description": "A light wire-framed stock with a push button release catch on the side  which allows it to fold and be stored away under the weapon's receiver.  It is currently folded underneath the weapon's chassis, making it more difficult to control.",
    "copy-from": "under_folding_stock",
    "use_action": {
      "type": "transform",
      "msg": "You unfold the stock for combat.",
      "menu_text": "Unfold",
      "target": "under_folding_stock",
      "moves": 120
    },
    "handling_modifier": -10,
    "flags": [ "FOLDED_STOCK" ]
  },
  {
    "id": "sub2000_folding_mechanism",
    "type": "GUNMOD",
    "name": { "str": "integral folding mechanism" },
    "description": "The integral series of hinges and pivots which allow the SUB-2000 to fold in half and be stored for transport.  The firearm is currently locked in the unfolded position and is ready for use.",
    "weight": "10 g",
    "volume": "10 ml",
    "integral_longest_side": "35 cm",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 0,
    "price_postapoc": 0,
    "install_time": "5 m",
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "ksub2000" ],
    "mode_modifier": [ [ "DEFAULT", "semi-auto", 1 ] ],
    "use_action": {
      "type": "transform",
      "msg": "You tug down on the trigger guard whilst swinging the barrel assembly up and over onto the receiver, locking it into place by the buttplate.",
      "menu_text": "Fold",
      "target": "sub2000_folding_mechanism_folded",
      "moves": 300
    },
    "handling_modifier": 10,
    "min_skills": [ [ "weapon", 3 ] ]
  },
  {
    "id": "sub2000_folding_mechanism_folded",
    "type": "GUNMOD",
    "name": { "str": "integral folding mechanism (folded))", "str_pl": "integral folding mechanisms (folded)" },
    "description": "The integral series of hinges and pivots which allow the SUB-2000 to fold in half and be stored for transport.  Shooting this firearm would be particularly tricky given that the barrel assembly is folded and locked backwards for storage, rendering the weapon inoperable.",
    "weight": "10 g",
    "volume": "10 ml",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 0,
    "price_postapoc": 0,
    "install_time": "5 m",
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "ksub2000" ],
    "mode_modifier": [ [ "DEFAULT", "disabled", 0, [ "MELEE" ] ] ],
    "use_action": {
      "type": "transform",
      "msg": "You release the barrel and pivot it forwards, locking it in the open firing position.",
      "menu_text": "Unfold",
      "target": "sub2000_folding_mechanism",
      "moves": 300
    },
    "handling_modifier": -10,
    "//": "This mod shouldn’t get a folding stock flag. The deployed version of this mod adds extra length to the base gun item, which this folded version removes to simulate the greatly shorter length of the sub2000 when collapsed. Adding a folding stock flag will remove another 20 cm from the base gun, making it only 19 cm long."
  },
  {
    "id": "m26_mass_stock",
    "type": "GUNMOD",
    "name": { "str": "MASS compatible stock" },
    "description": "A specially designed adjustable stock with an integrated grip to convert the M26-MASS to a standalone configuration.",
    "weight": "960 g",
    "volume": "500 ml",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 400,
    "price_postapoc": 500,
    "install_time": "5 m",
    "to_hit": 1,
    "material": [ "plastic", "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "m26_mass_standalone" ],
    "handling_modifier": 4,
    "min_skills": [ [ "shotgun", 2 ] ],
    "melee_damage": { "bash": 6 }
  },
  {
    "id": "scout_stock",
    "type": "GUNMOD",
    "name": { "str": "hollow polymer stock" },
    "description": "An extremely lightweight stock.  There's a hollow cavity at the bottom where a spare magazine can be stored.",
    "weight": "260 g",
    "volume": "500 ml",
    "integral_volume": "0 ml",
    "integral_weight": "0 g",
    "price": 400,
    "price_postapoc": 500,
    "install_time": "5 m",
    "to_hit": 1,
    "material": [ "plastic" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "stock",
    "mod_targets": [ "steyr_scout" ],
    "melee_damage": { "bash": 6 },
    "pocket_mods": [
      {
        "pocket_type": "CONTAINER",
        "rigid": true,
        "item_restriction": [ "steyr_scout_mag", "steyr_scout_mag_makeshift" ],
        "max_contains_volume": "200 ml",
        "max_contains_weight": "200 g"
      }
    ]
  }
]
