[
  {
    "id": "afs_hard_hat",
    "type": "item_group",
    "subtype": "collection",
    "items": [
      { "item": "hat_hard" },
      { "item": "attachable_ear_muffs", "prob": 50 },
      { "item": "nape_protector", "prob": 20 },
      { "item": "sun_shield", "prob": 30 }
    ]
  },
  {
    "type": "item_group",
    "id": "afs_tools_space_emergency",
    "//": "Emergency Firefighting and repair tools for inside an habitat or spaceship. Can get as specialized as needed.",
    "subtype": "collection",
    "items": [
      {
        "distribution": [
          { "item": "extinguisher", "prob": 35, "charges": [ 75, 100 ] },
          { "item": "throw_extinguisher", "prob": 75, "count": [ 3, 5 ] }
        ],
        "prob": 100
      },
      { "item": "rebreather", "ammo-item": "rebreather_filter", "charges": 60, "prob": 75 },
      { "distribution": [ { "item": "fire_ax", "prob": 20 }, { "item": "crash_axe", "prob": 80 } ], "prob": 30 },
      {
        "collection": [ { "item": "afs_foamgun" }, { "item": "afs_foam_tank", "ammo-item": "afs_foamcrete", "charges": 30, "prob": 100 } ],
        "prob": 10
      },
      { "item": "afs_oxygen_candle", "prob": 75, "count": [ 2, 4 ] },
      { "distribution": [ { "group": "full_ifak" }, { "group": "used_ifak" } ], "prob": 10 }
    ]
  },
  {
    "type": "item_group",
    "id": "afs_tools_robot_maintenance",
    "//": "tools used for fixing robots.",
    "items": [
      { "group": "afs_robotics_scrapgroup", "prob": 10 },
      [ "glasses_safety", 5 ],
      { "group": "afs_tools_electric_repair", "prob": 10 },
      { "group": "afs_tools_welding", "prob": 5 },
      [ "vac_mold", 5 ],
      { "group": "tools_toolbox", "prob": 5 },
      { "group": "tools_lighting_industrial", "prob": 5 }
    ]
  },
  {
    "type": "item_group",
    "id": "afs_tools_electric_repair",
    "//": "Keeps your solar panels, lights and well everything going.",
    "items": [
      [ "screwdriver_set", 20 ],
      [ "superglue", 30 ],
      [ "pliers", 10 ],
      [ "multitool", 20 ],
      [ "voltmeter", 20 ],
      [ "jumper_cable", 10 ],
      [ "hd_tow_cable", 5 ],
      [ "recharge_station", 10 ],
      [ "magnifying_glass", 10 ],
      { "item": "gloves_work", "prob": 10 },
      { "group": "ammo_any_batteries_full", "prob": 20 },
      { "group": "tools_lighting_industrial", "prob": 10 },
      { "item": "UPS_off", "prob": 10, "charges": [ 0, 1000 ] },
      { "group": "writing_utensils", "prob": 10 },
      { "item": "soldering_iron", "prob": 30 },
      { "item": "soldering_iron_portable", "prob": 30, "charges": [ 0, 50 ] },
      { "item": "solder_wire", "prob": 30 },
      { "item": "duct_tape", "prob": 30, "count": [ 1, 2 ] }
    ]
  },
  {
    "type": "item_group",
    "id": "afs_tools_structural_repair",
    "//": "Fixes up spaceships, habitats and probably more.",
    "items": [
      {
        "distribution": [
          { "group": "afs_tools_welding", "prob": 20 },
          {
            "collection": [
              { "item": "afs_foamgun", "prob": 100, "count": [ 1, 2 ] },
              { "item": "afs_foam_tank", "ammo-item": "afs_foamcrete", "charges": 30, "prob": 100, "count": [ 1, 2 ] }
            ],
            "prob": 20
          },
          {
            "collection": [ { "item": "plastic_sheet", "prob": 100, "count": [ 3, 6 ] }, { "item": "duct_tape", "prob": 100, "count": [ 1, 5 ] } ],
            "prob": 60
          }
        ],
        "prob": 80
      },
      { "item": "afs_imager", "prob": 10 }
    ]
  },
  {
    "type": "item_group",
    "id": "afs_tools_welding",
    "//": "tools used for sci-fi and not sci-fi welding.",
    "ammo": 75,
    "subtype": "collection",
    "items": [
      {
        "distribution": [
          { "item": "welder", "prob": 40 },
          {
            "collection": [
              { "item": "oxy_torch", "prob": 100, "count": [ 1, 2 ] },
              { "item": "tinyweldtank", "prob": 100, "count": [ 1, 3 ] },
              { "item": "weldtank", "prob": 50, "count": [ 1, 2 ] }
            ],
            "prob": 20
          },
          {
            "collection": [
              { "item": "afs_40g_plasma_civ", "prob": 100, "count": [ 1, 2 ] },
              { "item": "afs_plasma_torch", "prob": 50, "count": [ 1, 2 ] }
            ],
            "prob": 40
          }
        ],
        "prob": 30
      },
      { "item": "polisher", "prob": 20 },
      { "item": "angle_grinder", "prob": 20 },
      [ "clamp", 10 ],
      [ "metal_file", 10 ],
      [ "sandpaper", 10 ],
      [ "goggles_welding", 30 ]
    ]
  },
  {
    "type": "item_group",
    "id": "afs_tools_programing",
    "//": "tools used by legitimate and illegitimate programmers.",
    "items": [
      { "item": "laptop", "prob": 50, "charges": [ 0, 500 ] },
      { "item": "electrohack", "prob": 5, "charges": [ 0, 500 ] },
      { "item": "control_laptop", "prob": 2, "charges": [ 0, 500 ] },
      { "item": "afs_wrist_computer", "prob": 20 }
    ]
  },
  {
    "type": "item_group",
    "id": "afs_tools_pocket",
    "//": "General use tools that fit in small pockets.",
    "subtype": "distribution",
    "entries": [
      {
        "distribution": [
          { "item": "pockknife", "prob": 50 },
          { "item": "knife_folding", "prob": 30 },
          { "item": "knife_swissarmy", "prob": 10 },
          { "item": "switchblade", "prob": 10 }
        ],
        "prob": 15
      },
      {
        "distribution": [
          { "item": "lighter", "prob": 100, "charges": [ 0, 100 ] },
          { "item": "ref_lighter", "prob": 40, "charges": [ 0, 50 ] },
          { "item": "matches", "prob": 20, "charges": [ 0, 20 ] }
        ],
        "prob": 5
      },
      { "item": "multitool", "prob": 5 },
      { "item": "screwdriver_set", "prob": 15 },
      { "item": "pliers", "prob": 5 },
      { "item": "superglue", "prob": 5 },
      { "item": "duct_tape", "prob": 10, "count": [ 1, 2 ] }
    ]
  },
  {
    "type": "item_group",
    "id": "afs_tools_scavenging",
    "//": "lightweight tools used for finding and getting into places where you dont belong.",
    "items": [
      { "item": "electrohack", "prob": 100 },
      {
        "collection": [
          { "item": "afs_40g_plasma_civ", "prob": 100, "count": [ 1, 2 ] },
          { "item": "afs_plasma_torch", "prob": 50, "count": [ 1, 2 ] }
        ],
        "prob": 20
      },
      {
        "collection": [ { "item": "afs_jetpack", "prob": 50 }, { "item": "ammonia_liquid", "prob": 100, "count": [ 1, 2 ] } ],
        "prob": 10
      },
      { "item": "afs_imager", "prob": 100 },
      { "item": "UPS_off", "prob": 20 },
      { "item": "emf_detector", "prob": 50 },
      { "group": "tools_lighting_industrial", "prob": 100 },
      { "item": "tskbem_master_keycard", "prob": 2 }
    ]
  }
]
