[
  {
    "type": "npc",
    "id": "OG_base_qmaster",
    "//": "Old guard quatermaster",
    "name_suffix": "Quartermaster",
    "class": "NC_SOLDIER_QMASTER",
    "attitude": 0,
    "mission": 3,
    "chat": "TALK_SOLDIER_QMASTER",
    "mission_offered": "MISSION_FREE_MERCHANTS_EVAC_1",
    "faction": "old_guard"
  },
  {
    "type": "npc_class",
    "id": "NC_SOLDIER_QMASTER",
    "name": { "str": "Merchant" },
    "job_description": "I'm a local shopkeeper.",
    "traits": [
      { "group": "NPC_starting_traits" },
      { "group": "Appearance_demographics" },
      { "trait": "IGNORE_SOUND" },
      { "trait": "NO_BASH" },
      { "trait": "RETURN_TO_START_POS" }
    ],
    "common": false,
    "bonus_int": { "one_in": 4 },
    "bonus_per": { "one_in": 4 },
    "shopkeeper_item_group": "NC_SOLDIER_QMASTER_misc",
    "carry_override": "NC_SOLDIER_QMASTER_misc",
    "skills": [
      {
        "skill": "ALL",
        "level": { "mul": [ { "one_in": 3 }, { "sum": [ { "dice": [ 2, 2 ] }, { "constant": -2 }, { "one_in": 4 } ] } ] }
      },
      { "skill": "mechanics", "bonus": { "one_in": 2 } },
      { "skill": "electronics", "bonus": { "rng": [ 0, 2 ] } },
      { "skill": "speech", "bonus": { "rng": [ 3, 5 ] } }
    ]
  },
  {
    "type": "item_group",
    "id": "NC_SOLDIER_QMASTER_storage",
    "subtype": "distribution",
    "entries": [ { "item": "duffelbag", "prob": 100 } ]
  },
  {
    "type": "item_group",
    "id": "NC_SOLDIER_QMASTER_coat",
    "subtype": "distribution",
    "entries": [ { "item": "trenchcoat", "prob": 80 }, { "item": "vest", "prob": 60 } ]
  },
  {
    "type": "item_group",
    "id": "NC_SOLDIER_QMASTER_misc",
    "subtype": "collection",
    "items": [
      { "item": "RobofacCoin", "count-min": 5, "count-max": 30, "prob": 30 },
      { "item": "FMCNote", "count-min": 30, "count-max": 300, "prob": 10 },
      { "group": "ammo_milspec", "count": [ 2, 5 ] },
      { "group": "mags_milspec", "count": [ 1, 3 ] },
      { "group": "mags_military", "count": [ 3, 7 ] },
      { "group": "mil_accessories", "count": [ 1, 3 ] },
      { "group": "tools_mechanic", "prob": 20, "count": [ 1, 3 ] },
      { "group": "ammo_any_batteries_full", "prob": 20, "count": [ 1, 3 ] },
      [ "vest", 40 ],
      [ "kevlar", 15 ],
      [ "jacket_army", 30 ],
      [ "pants_army", 30 ],
      [ "gloves_tactical", 15 ],
      [ "boots", 20 ],
      [ "boots_steel", 20 ],
      [ "boots_hiking", 30 ],
      [ "knee_high_boots", 5 ],
      [ "boots_combat", 15 ],
      [ "boots_larmor", 10 ],
      [ "helmet_army", 25 ],
      [ "tac_helmet", 20 ],
      [ "helmet_riot", 20 ],
      [ "tac_fullhelmet", 10 ],
      [ "helmet_larmor", 15 ],
      [ "firehelmet", 5 ],
      [ "hood_rain", 15 ],
      [ "molle_pack", 20 ],
      [ "backpack", 40 ],
      [ "backpack_leather", 35 ],
      [ "mask_gas", 25 ],
      [ "mask_filter", 20 ],
      [ "glasses_safety", 15 ],
      [ "goggles_ski", 5 ],
      [ "tacvest", 20 ],
      [ "legrig", 15 ],
      [ "tool_belt", 15 ],
      [ "dump_pouch", 15 ],
      [ "wristwatch", 30 ],
      [ "diving_watch", 5 ],
      [ "holster", 25 ],
      [ "bandana", 20 ],
      [ "balclava", 10 ],
      [ "small_repairkit", 20 ],
      [ "grapnel", 5 ],
      [ "misc_repairkit", 15 ],
      { "group": "tools_toolbox", "prob": 20 },
      [ "crowbar", 25 ],
      [ "machete", 25 ],
      [ "tarp", 25 ],
      [ "rope_30", 25 ],
      [ "rope_6", 25 ],
      [ "22_lr", 25 ],
      [ "22_fmj", 20 ],
      [ "223", 25 ],
      [ "308", 20 ],
      [ "3006", 20 ],
      [ "reloaded_9mm", 30 ],
      [ "9mm", 45 ],
      [ "9mmfmj", 35 ],
      [ "45_acp", 20 ],
      [ "reloaded_45_acp", 25 ],
      [ "45_jhp", 10 ],
      [ "rifle_9mm", 25 ],
      [ "rifle_22", 25 ],
      [ "uzi", 10 ],
      [ "mac_10", 10 ],
      [ "sig_mosquito", 15 ],
      [ "sw_22", 15 ],
      [ "glock_19", 15 ],
      [ "usp_9mm", 10 ],
      [ "m9", 35 ],
      [ "cx4", 10 ],
      [ "usp_45", 10 ],
      [ "m1911", 10 ],
      { "group": "modular_ar15", "prob": 10 },
      [ "savage_111f", 5 ],
      [ "remington_700", 5 ],
      [ "ruger_1022", 10 ],
      [ "marlin_9a", 10 ],
      [ "remington_870", 10 ],
      [ "mossberg_500", 5 ],
      [ "shotgun_d", 5 ],
      [ "laser_sight", 15 ],
      [ "rail_laser_sight", 10 ],
      [ "rifle_scope", 20 ],
      [ "pistol_scope", 10 ],
      [ "improve_sights", 20 ],
      [ "ashot", 5 ]
    ]
  },
  {
    "id": "TALK_SOLDIER_QMASTER",
    "type": "talk_topic",
    "dynamic_line": [
      "Welcome to camp Arabella, What will it be?",
      "I'm the camp quartermaster.  Come and see me if you have anything valuable to trade.",
      "If you're looking to trade you've come to the right place."
    ],
    "responses": [
      { "text": "Let's trade then.", "effect": "start_trade", "topic": "TALK_SOLDIER_QMASTER" },
      { "text": "Well, I'd better be going.  Bye.", "topic": "TALK_DONE" }
    ]
  }
]
