[
  {
    "id": "atomic_lamp",
    "type": "GENERIC",
    "category": "tools",
    "name": { "str": "atomic lamp" },
    "description": "Powered by the magic of nuclear decay and low-energy LEDs, this very expensive lamp will emit a small amount of light for at least a decade.  Before the Cataclysm, it was mostly an expensive way to show off your preparedness.  Now, it's actually really useful.  Use it to close the cover and hide the light.",
    "weight": "1438 g",
    "volume": "1 L",
    "price": 175000,
    "price_postapoc": 4000,
    "to_hit": -2,
    "material": [ "plastic", "aluminum" ],
    "symbol": ",",
    "color": "light_green",
    "use_action": { "target": "atomic_lamp_off", "msg": "You close the lamp's cover.", "menu_text": "Close cover", "type": "transform" },
    "flags": [ "LIGHT_15", "LEAK_DAM", "RADIOACTIVE", "DURABLE_MELEE", "ALLOWS_REMOTE_USE", "SPAWN_ACTIVE" ],
    "melee_damage": { "bash": 8 }
  },
  {
    "id": "atomic_lamp_off",
    "type": "GENERIC",
    "category": "tools",
    "name": { "str": "atomic lamp (covered)", "str_pl": "atomic lamps (covered)" },
    "description": "Powered by the magic of nuclear decay and low-energy LEDs, this very expensive lamp will emit a small amount of light for at least a decade.  Before the Cataclysm, it was mostly an expensive way to show off your preparedness.  Now, it's actually really useful.  The cover is closed.  Use it to open the cover and show the light.",
    "weight": "1438 g",
    "volume": "1 L",
    "price": 175000,
    "price_postapoc": 4000,
    "to_hit": -2,
    "material": [ "plastic", "aluminum" ],
    "symbol": ",",
    "color": "light_green",
    "use_action": {
      "target": "atomic_lamp",
      "active": true,
      "msg": "You open the lamp's cover.",
      "menu_text": "Open cover",
      "type": "transform"
    },
    "flags": [ "LEAK_DAM", "RADIOACTIVE", "DURABLE_MELEE", "ALLOWS_REMOTE_USE" ],
    "melee_damage": { "bash": 8 }
  },
  {
    "id": "atomic_light",
    "type": "GENERIC",
    "category": "tools",
    "name": { "str": "atomic reading light" },
    "description": "Powered by the magic of nuclear decay and low-energy LEDs, this extremely expensive little light will provide just enough light to read by for at least a decade.  It is also available with a cute cartoon bear cover to turn it into a nightlight for a very wealthy child with a fear of the dark.  Use it to close the cover and hide the light.",
    "weight": "214 g",
    "volume": "250 ml",
    "price": 125000,
    "price_postapoc": 4000,
    "to_hit": -2,
    "material": [ "plastic", "aluminum" ],
    "symbol": ",",
    "color": "light_green",
    "use_action": {
      "target": "atomic_light_off",
      "msg": "You close the nightlight's cover.",
      "menu_text": "Close cover",
      "type": "transform"
    },
    "flags": [ "LIGHT_10", "LEAK_DAM", "RADIOACTIVE", "DURABLE_MELEE", "ALLOWS_REMOTE_USE", "SPAWN_ACTIVE" ],
    "melee_damage": { "bash": 4 }
  },
  {
    "id": "atomic_light_off",
    "type": "GENERIC",
    "category": "tools",
    "name": { "str": "atomic reading light (covered)", "str_pl": "atomic reading lights (covered)" },
    "description": "Powered by the magic of nuclear decay and low-energy LEDs, this extremely expensive little light will provide just enough light to read by for at least a decade.  It is also available with a cute cartoon bear cover to turn it into a nightlight for a very wealthy child with a fear of the dark.  The cover is closed.  Use it to open the cover and show the light.",
    "weight": "214 g",
    "volume": "250 ml",
    "price": 125000,
    "price_postapoc": 4000,
    "to_hit": -2,
    "material": [ "plastic", "aluminum" ],
    "symbol": ",",
    "color": "light_green",
    "use_action": {
      "target": "atomic_light",
      "active": true,
      "msg": "You open the nightlight's cover.",
      "menu_text": "Open cover",
      "type": "transform"
    },
    "flags": [ "LEAK_DAM", "RADIOACTIVE", "DURABLE_MELEE", "ALLOWS_REMOTE_USE" ],
    "melee_damage": { "bash": 4 }
  },
  {
    "id": "candle",
    "type": "TOOL",
    "name": { "str": "candle" },
    "description": "A thick wax candle.  It doesn't provide very much light, but it can burn for quite a long time.  You'll need a lighter or matches to light it.",
    "weight": "370 g",
    "volume": "550 ml",
    "longest_side": "12 cm",
    "price": 100,
    "price_postapoc": 50,
    "to_hit": -2,
    "material": [ "paraffin_wax" ],
    "symbol": ",",
    "color": "white",
    "charges_per_use": 1,
    "pocket_data": [ { "pocket_type": "MAGAZINE", "ammo_restriction": { "candle_wax": 100 }, "rigid": true } ],
    "use_action": {
      "target": "candle_lit",
      "msg": "You light the candle.",
      "active": true,
      "need_fire": 1,
      "menu_text": "Light",
      "type": "transform"
    },
    "flags": [ "BURNOUT", "NO_RELOAD", "NO_UNLOAD" ]
  },
  {
    "id": "candle_lit",
    "type": "TOOL",
    "copy-from": "candle",
    "name": { "str": "candle" },
    "description": "A thick wax candle.  It doesn't provide very much light, but it can burn for quite a long time.  This candle is lit.",
    "turns_per_charge": 1260,
    "use_action": [
      { "type": "firestarter", "moves": 100 },
      {
        "ammo_scale": 0,
        "target": "candle",
        "msg": "The candle winks out.",
        "menu_text": "Extinguish",
        "type": "transform"
      }
    ],
    "extend": { "flags": [ "LIGHT_8", "WATER_EXTINGUISH", "TRADER_AVOID", "WIND_EXTINGUISH", "FIRESTARTER" ] }
  },
  {
    "id": "electric_lantern",
    "type": "TOOL",
    "name": { "str": "electric lantern (off)", "str_pl": "electric lanterns (off)" },
    "description": "A battery-powered lamp.  It does not provide much light, but it lasts a long time.",
    "weight": "980 g",
    "volume": "1 L",
    "price": 1000,
    "price_postapoc": 100,
    "to_hit": 2,
    "material": [ "plastic" ],
    "symbol": ";",
    "color": "green",
    "charges_per_use": 1,
    "ammo": [ "battery" ],
    "use_action": [
      {
        "type": "transform",
        "target": "electric_lantern_on",
        "active": true,
        "msg": "You turn the lamp on.",
        "need_charges": 1,
        "need_charges_msg": "The lantern has no batteries."
      },
      { "type": "link_up", "cable_length": 2, "charge_rate": "20 W" }
    ],
    "flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "ALLOWS_REMOTE_USE", "WATER_BREAK" ],
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_minus_battery_cell"
      }
    ],
    "melee_damage": { "bash": 1 }
  },
  {
    "id": "electric_lantern_on",
    "copy-from": "electric_lantern",
    "type": "TOOL",
    "name": { "str": "electric lantern (on)", "str_pl": "electric lanterns (on)" },
    "power_draw": "1 W",
    "revert_to": "electric_lantern",
    "use_action": [
      { "menu_text": "Turn off", "type": "transform", "target": "electric_lantern", "msg": "You turn the lamp off." },
      { "type": "link_up", "cable_length": 2, "charge_rate": "20 W" }
    ],
    "flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "LIGHT_15", "TRADER_AVOID", "ALLOWS_REMOTE_USE" ]
  },
  {
    "id": "flashlight",
    "type": "TOOL",
    "name": { "str": "flashlight (off)", "str_pl": "flashlights (off)" },
    "description": "A typical household flashlight with a plastic handle, powered by batteries.",
    "material": [ "plastic", "aluminum" ],
    "symbol": ";",
    "color": "blue",
    "weight": "280 g",
    "volume": "270 ml",
    "longest_side": "14 cm",
    "price": 500,
    "price_postapoc": 100,
    "charges_per_use": 1,
    "ammo": [ "battery" ],
    "flags": [ "BELT_CLIP", "WATER_BREAK_ACTIVE", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ],
    "use_action": {
      "type": "transform",
      "msg": "You turn the flashlight on.",
      "target": "flashlight_on",
      "active": true,
      "need_charges": 1,
      "need_charges_msg": "The flashlight's batteries are dead."
    },
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_disposable_cell"
      }
    ]
  },
  {
    "id": "flashlight_on",
    "copy-from": "flashlight",
    "type": "TOOL",
    "name": { "str": "flashlight (on)", "str_pl": "flashlights (on)" },
    "power_draw": "10 W",
    "revert_to": "flashlight",
    "use_action": {
      "menu_text": "Turn off",
      "type": "transform",
      "msg": "You turn the flashlight off.",
      "target": "flashlight",
      "ammo_scale": 0
    },
    "flags": [ "LIGHT_300", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "WATER_BREAK", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
  },
  {
    "id": "diving_flashlight_small",
    "type": "TOOL",
    "name": { "str": "mini diving flashlight (off)", "str_pl": "mini diving flashlights (off)" },
    "description": "A small waterproof flashlight with an aluminum handle, powered by batteries.  Can be attached to some diving masks and hoods.",
    "//": "Based on this: https://www.amazon.com/ORCATORCH-Underwater-Rotatable-Batteries-Included/dp/B07BDKRFJG?th=1",
    "material": [ "plastic", "aluminum" ],
    "looks_like": "flashlight",
    "symbol": ";",
    "color": "blue",
    "weight": "48 g",
    "volume": "45 ml",
    "longest_side": "10 cm",
    "price": 500,
    "price_postapoc": 100,
    "charges_per_use": 1,
    "ammo": [ "battery" ],
    "flags": [ "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ],
    "use_action": {
      "type": "transform",
      "msg": "You turn the flashlight on.",
      "target": "diving_flashlight_small_on",
      "active": true,
      "need_charges": 1,
      "need_charges_msg": "The flashlight's batteries are dead."
    },
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_disposable_cell"
      }
    ]
  },
  {
    "id": "diving_flashlight_small_on",
    "copy-from": "diving_flashlight_small",
    "type": "TOOL",
    "name": { "str": "mini diving flashlight (on)", "str_pl": "mini diving flashlights (on)" },
    "looks_like": "flashlight_on",
    "power_draw": "1200 mW",
    "revert_to": "diving_flashlight_small",
    "use_action": {
      "menu_text": "Turn off",
      "type": "transform",
      "msg": "You turn the flashlight off.",
      "target": "diving_flashlight_small",
      "ammo_scale": 0
    },
    "flags": [ "LIGHT_170", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
  },
  {
    "id": "diving_flashlight_small_hipower",
    "type": "TOOL",
    "name": { "str": "high-power mini diving flashlight (off)", "str_pl": "high-power mini diving flashlights (off)" },
    "description": "A small waterproof high-power flashlight with an aluminum handle, powered by batteries.  Can be attached to some diving masks and hoods.",
    "//": "Based on this: https://www.amazon.com/RAYVENGE-Headlamp-Underwater-Flashlight-Stainless/dp/B0BD6GVJH2",
    "material": [ "plastic", "aluminum", "lc_steel" ],
    "looks_like": "flashlight",
    "symbol": ";",
    "color": "blue",
    "weight": "40 g",
    "volume": "38 ml",
    "longest_side": "10 cm",
    "price": 500,
    "price_postapoc": 100,
    "charges_per_use": 1,
    "ammo": [ "battery" ],
    "flags": [ "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ],
    "use_action": {
      "type": "transform",
      "msg": "You turn the flashlight on.",
      "target": "diving_flashlight_small_hipower_on",
      "active": true,
      "need_charges": 1,
      "need_charges_msg": "The flashlight's batteries are dead."
    },
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_disposable_cell"
      }
    ]
  },
  {
    "id": "diving_flashlight_small_hipower_on",
    "copy-from": "diving_flashlight_small_hipower",
    "type": "TOOL",
    "name": { "str": "high-power mini diving flashlight (on)", "str_pl": "high-power mini diving flashlights (on)" },
    "looks_like": "flashlight_on",
    "power_draw": "3 W",
    "revert_to": "diving_flashlight_small_hipower",
    "use_action": {
      "menu_text": "Turn off",
      "type": "transform",
      "msg": "You turn the flashlight off.",
      "target": "diving_flashlight_small_hipower",
      "ammo_scale": 0
    },
    "flags": [ "LIGHT_450", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
  },
  {
    "id": "diving_flashlight_variable",
    "type": "TOOL",
    "name": { "str": "high-power mini diving flashlight (off)", "str_pl": "high-power mini diving flashlights (off)" },
    "description": "A waterproof variable power flashlight with a plastic handle, powered by batteries.  Can be attached to some diving masks and hoods and onto a proprietary wrist mount.",
    "//": "Based on this: https://www.amazon.com/Aqualite-Tauchlampe-schwarz-Lumen-12516/dp/B00DI5GMOM",
    "material": [ "plastic" ],
    "looks_like": "flashlight",
    "symbol": ";",
    "color": "blue",
    "weight": "182 g",
    "volume": "185 ml",
    "longest_side": "13 cm",
    "price": 500,
    "price_postapoc": 100,
    "charges_per_use": 1,
    "ammo": [ "battery" ],
    "flags": [ "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT", "WRIST_MOUNT_ATTACHMENT" ],
    "use_action": [
      {
        "type": "transform",
        "msg": "You turn the flashlight on.",
        "target": "diving_flashlight_variable_on_hi",
        "active": true,
        "need_charges": 1,
        "need_charges_msg": "The flashlight's batteries are dead."
      },
      {
        "type": "link_up",
        "menu_text": "Plug in / Unplug",
        "ammo_scale": 0,
        "cable_length": 2,
        "charge_rate": "20 W"
      }
    ],
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_battery_cell"
      }
    ]
  },
  {
    "id": "diving_flashlight_variable_on_hi",
    "copy-from": "diving_flashlight_variable",
    "type": "TOOL",
    "name": { "str": "variable power diving flashlight (on, high)", "str_pl": "variable power mini diving flashlights (on, high)" },
    "looks_like": "flashlight_on",
    "//": "Uses a 3.7 V battery at ~1.73 A at full power = 6.413 W draw.",
    "power_draw": "6420 mW",
    "revert_to": "diving_flashlight_variable",
    "use_action": [
      {
        "menu_text": "Lower power",
        "type": "transform",
        "msg": "You decrease power of the flashlight.",
        "target": "diving_flashlight_variable_on_med",
        "ammo_scale": 0
      },
      {
        "type": "link_up",
        "menu_text": "Plug in / Unplug",
        "ammo_scale": 0,
        "cable_length": 2,
        "charge_rate": "20 W"
      }
    ],
    "flags": [ "LIGHT_500", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
  },
  {
    "id": "diving_flashlight_variable_on_med",
    "copy-from": "diving_flashlight_variable",
    "type": "TOOL",
    "name": {
      "str": "variable power diving flashlight (on, medium)",
      "str_pl": "variable power mini diving flashlights (on, medium)"
    },
    "looks_like": "flashlight_on",
    "//": "Uses a 3.7 V battery at ~0.46 A at medium power = ~1.7 W draw.",
    "power_draw": "1700 mW",
    "revert_to": "diving_flashlight_variable",
    "use_action": [
      {
        "menu_text": "Lower power",
        "type": "transform",
        "msg": "You decrease power of the flashlight.",
        "target": "diving_flashlight_variable_on_low",
        "ammo_scale": 0
      },
      {
        "type": "link_up",
        "menu_text": "Plug in / Unplug",
        "ammo_scale": 0,
        "cable_length": 2,
        "charge_rate": "20 W"
      }
    ],
    "flags": [ "LIGHT_200", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
  },
  {
    "id": "diving_flashlight_variable_on_low",
    "copy-from": "diving_flashlight_variable",
    "type": "TOOL",
    "name": { "str": "variable power diving flashlight (on, low)", "str_pl": "variable power mini diving flashlights (on, low)" },
    "looks_like": "flashlight_on",
    "//": "Uses a 3.7 V battery at ~0.289 A at low power = ~1.07 W draw.",
    "power_draw": "1070 mW",
    "revert_to": "diving_flashlight_variable",
    "use_action": [
      {
        "menu_text": "Turn off",
        "type": "transform",
        "msg": "You turn the flashlight off.",
        "target": "diving_flashlight_variable",
        "ammo_scale": 0
      },
      {
        "type": "link_up",
        "menu_text": "Plug in / Unplug",
        "ammo_scale": 0,
        "cable_length": 2,
        "charge_rate": "20 W"
      }
    ],
    "flags": [ "LIGHT_80", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
  },
  {
    "id": "gasoline_lantern",
    "type": "TOOL",
    "name": { "str": "gasoline lantern (off)", "str_pl": "gasoline lanterns (off)" },
    "description": "A small gasoline-powered lantern.  It does not provide much light, but it lasts a long time.  Use it to turn it on.",
    "weight": "1400 g",
    "volume": "750 ml",
    "price": 3000,
    "price_postapoc": 100,
    "to_hit": 2,
    "material": [ "glass", "steel" ],
    "symbol": ";",
    "color": "yellow",
    "ammo": [ "gasoline" ],
    "pocket_data": [ { "pocket_type": "MAGAZINE", "watertight": true, "ammo_restriction": { "gasoline": 500 } } ],
    "charges_per_use": 1,
    "use_action": {
      "target": "gasoline_lantern_on",
      "msg": "You turn the lamp on.",
      "active": true,
      "need_fire": 1,
      "need_charges": 1,
      "need_charges_msg": "The lamp is empty.",
      "type": "transform"
    },
    "flags": [ "ALLOWS_REMOTE_USE" ],
    "melee_damage": { "bash": 1 }
  },
  {
    "id": "gasoline_lantern_on",
    "copy-from": "gasoline_lantern",
    "type": "TOOL",
    "name": { "str": "gasoline lantern (on)", "str_pl": "gasoline lanterns (on)" },
    "description": "A small gasoline-powered lantern.  It does not provide much light, but it lasts a long time.  It is turned on.  Use it to turn it off.",
    "turns_per_charge": 60,
    "revert_to": "gasoline_lantern",
    "use_action": [
      {
        "ammo_scale": 0,
        "target": "gasoline_lantern",
        "msg": "The lantern is extinguished.",
        "menu_text": "Turn off",
        "type": "transform"
      },
      { "type": "firestarter", "moves": 100 }
    ],
    "flags": [ "LIGHT_15", "TRADER_AVOID", "ALLOWS_REMOTE_USE", "FIRESTARTER", "FIRE" ]
  },
  {
    "id": "glowstick",
    "type": "TOOL",
    "name": { "str": "glowstick" },
    "description": "A small blue-light glowstick.  Use it to bend the plastic and break the glass cylinder inside to start the reaction.  It will produce a small amount of light.",
    "weight": "29 g",
    "volume": "25 ml",
    "price": 100,
    "price_postapoc": 10,
    "to_hit": -1,
    "material": [ "plastic" ],
    "symbol": ";",
    "color": "light_blue",
    "pocket_data": [ { "pocket_type": "MAGAZINE", "ammo_restriction": { "glowstick_juice": 1400 }, "rigid": true } ],
    "ammo": "glowstick_juice",
    "use_action": {
      "target": "glowstick_lit",
      "msg": "You activate the glowstick.",
      "active": true,
      "menu_text": "Activate",
      "type": "transform"
    },
    "flags": [ "NO_UNLOAD", "NO_RELOAD" ]
  },
  {
    "id": "glowstick_dead",
    "type": "TOOL",
    "category": "other",
    "name": { "str": "dead glowstick" },
    "description": "A spent glowstick.  It is essentially trash.",
    "weight": "29 g",
    "volume": "25 ml",
    "price": 0,
    "price_postapoc": 0,
    "to_hit": -1,
    "material": [ "plastic" ],
    "symbol": ";",
    "color": "light_gray",
    "flags": [ "TRADER_AVOID" ],
    "melee_damage": { "bash": 2 }
  },
  {
    "id": "glowstick_lit",
    "type": "TOOL",
    "name": { "str": "active glowstick" },
    "description": "An active glowstick, currently producing light.  It will last for a few hours before burning out.",
    "weight": "29 g",
    "volume": "25 ml",
    "to_hit": -1,
    "material": [ "plastic" ],
    "symbol": ";",
    "color": "light_blue",
    "pocket_data": [ { "pocket_type": "MAGAZINE", "ammo_restriction": { "glowstick_juice": 1400 }, "rigid": true } ],
    "turns_per_charge": 30,
    "revert_to": "glowstick_dead",
    "revert_msg": "The glowstick fades out.",
    "flags": [ "LIGHT_8", "TRADER_AVOID", "SLEEP_IGNORE", "NO_UNLOAD", "NO_RELOAD" ]
  },
  {
    "id": "handflare",
    "type": "TOOL",
    "name": { "str": "flare" },
    "description": "A slow-burning magnesium flare.  Use it to strike the striker and light it.  It will produce a bright light for about a half hour.",
    "material": [ "plastic", "powder" ],
    "symbol": ";",
    "color": "light_red",
    "weight": "128 g",
    "volume": "250 ml",
    "price": 400,
    "price_postapoc": 100,
    "pocket_data": [ { "pocket_type": "MAGAZINE", "ammo_restriction": { "flare_nitrate": 300 }, "rigid": true } ],
    "ammo": "flare_nitrate",
    "use_action": {
      "menu_text": "Strike the striker",
      "type": "transform",
      "target": "handflare_lit",
      "active": true,
      "msg": "You strike your flare and light it."
    },
    "flags": [ "NO_UNLOAD", "NO_RELOAD" ]
  },
  {
    "id": "handflare_lit",
    "copy-from": "handflare",
    "type": "TOOL",
    "name": { "str": "active flare" },
    "description": "A burning magnesium flare that is producing light.  It will last for about a half hour before burning out.",
    "color": "white",
    "turns_per_charge": 6,
    "revert_to": "handflare_dead",
    "revert_msg": "The flare sputters out",
    "use_action": { "type": "firestarter", "moves": 50 },
    "flags": [ "FIRE", "LIGHT_240", "CHARGEDIM", "FLAMING", "TRADER_AVOID", "FIRESTARTER", "NO_UNLOAD", "NO_RELOAD" ]
  },
  {
    "id": "sigflare_lit",
    "copy-from": "handflare",
    "type": "TOOL",
    "name": { "str": "active flare" },
    "description": "A bright burning flare that is producing light.  It will last for about a minute before burning out.",
    "color": "white",
    "countdown_interval": "60 seconds",
    "revert_to": "handflare_dead",
    "revert_msg": "The flare sputters out",
    "use_action": { "type": "firestarter", "moves": 50 },
    "flags": [ "FIRE", "LIGHT_720", "CHARGEDIM", "FLAMING", "TRADER_AVOID", "FIRESTARTER", "NO_UNLOAD", "NO_RELOAD" ]
  },
  {
    "id": "heavy_flashlight",
    "type": "TOOL",
    "name": { "str": "heavy-duty flashlight (off)", "str_pl": "heavy-duty flashlights (off)" },
    "description": "A heavy-duty aluminum LED flashlight, often used by security guards.  It even works underwater, and it's not bad for smacking hooligans.",
    "weight": "450 g",
    "volume": "470 ml",
    "longest_side": "37 cm",
    "price": 950,
    "price_postapoc": 200,
    "material": [ "aluminum" ],
    "symbol": ";",
    "color": "blue",
    "charges_per_use": 1,
    "ammo": [ "battery" ],
    "flags": [ "BELT_CLIP" ],
    "use_action": {
      "type": "transform",
      "msg": "You turn the heavy-duty flashlight on.",
      "target": "heavy_flashlight_on",
      "active": true,
      "need_charges": 1,
      "need_charges_msg": "The heavy-duty flashlight's batteries are dead."
    },
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_disposable_cell"
      }
    ],
    "melee_damage": { "bash": 8 }
  },
  {
    "id": "heavy_flashlight_on",
    "copy-from": "heavy_flashlight",
    "type": "TOOL",
    "name": { "str": "heavy-duty flashlight (on)", "str_pl": "heavy-duty flashlights (on)" },
    "power_draw": "15 W",
    "revert_to": "heavy_flashlight",
    "use_action": {
      "ammo_scale": 0,
      "menu_text": "Turn off",
      "type": "transform",
      "msg": "You turn the heavy-duty flashlight off.",
      "target": "heavy_flashlight"
    },
    "flags": [ "LIGHT_500", "CHARGEDIM", "BELT_CLIP" ]
  },
  {
    "abstract": "lightstrip_base",
    "type": "TOOL",
    "name": { "str": "lightstrip base" },
    "weight": "27 g",
    "volume": "50 ml",
    "price": 500,
    "price_postapoc": 25,
    "to_hit": 2,
    "material": [ "plastic", "aluminum" ],
    "symbol": ";",
    "melee_damage": { "bash": 1 }
  },
  {
    "id": "lightstrip",
    "type": "TOOL",
    "name": { "str": "lightstrip" },
    "copy-from": "lightstrip_base",
    "description": "A light-emitting circuit that has been wired directly to a battery.  It provides some weak light and can't be turned off until the battery dies.",
    "color": "green",
    "power_draw": "1 W",
    "revert_to": "lightstrip_inactive",
    "revert_msg": "The lightstrip dies.",
    "flags": [ "LIGHT_4", "NO_UNLOAD", "NO_RELOAD", "WATER_BREAK" ],
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_battery_cell"
      }
    ]
  },
  {
    "//": "This doesn't make too much sense, flavor-wise, but it's the best I can come up with.  Put it on the todo list.",
    "id": "lightstrip_inactive",
    "type": "TOOL",
    "name": { "str": "lightstrip (inactive)", "str_pl": "lightstrips (inactive)" },
    "copy-from": "lightstrip_base",
    "description": "A light-emitting circuit that can be wired directly to a battery.  It provides some weak light and can't be turned off until the battery dies.",
    "color": "white",
    "ammo": [ "battery" ],
    "use_action": {
      "target": "lightstrip",
      "msg": "You irreversibly activate the lightstrip.",
      "active": true,
      "need_charges": 1,
      "type": "transform"
    },
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_battery_cell"
      }
    ]
  },
  {
    "id": "oil_lamp",
    "type": "TOOL",
    "name": { "str": "oil lamp (off)", "str_pl": "oil lamps (off)" },
    "description": "An oil-fueled lamp.  It does not provide much light, but it lasts a long time.  Use it to turn it on.",
    "weight": "1720 g",
    "volume": "1 L",
    "price": 1000,
    "price_postapoc": 100,
    "to_hit": 2,
    "material": [ "glass", "iron" ],
    "symbol": ";",
    "color": "yellow",
    "ammo": [ "lamp_oil" ],
    "pocket_data": [ { "pocket_type": "MAGAZINE", "watertight": true, "ammo_restriction": { "lamp_oil": 750 } } ],
    "charges_per_use": 1,
    "use_action": {
      "target": "oil_lamp_on",
      "msg": "You turn the lamp on.",
      "active": true,
      "need_fire": 1,
      "need_charges": 1,
      "need_charges_msg": "The lamp is empty.",
      "type": "transform"
    },
    "flags": [ "ALLOWS_REMOTE_USE" ],
    "melee_damage": { "bash": 1 }
  },
  {
    "id": "oil_lamp_on",
    "copy-from": "oil_lamp",
    "type": "TOOL",
    "name": { "str": "oil lamp" },
    "description": "An oil-fueled lamp.  It does not provide much light, but it lasts a long time.  It is turned on.  Use it to turn it off.",
    "turns_per_charge": 240,
    "revert_to": "oil_lamp",
    "use_action": [
      {
        "ammo_scale": 0,
        "target": "oil_lamp",
        "msg": "The lantern is extinguished.",
        "menu_text": "Turn off",
        "type": "transform"
      },
      { "type": "firestarter", "moves": 100 }
    ],
    "flags": [ "LIGHT_10", "TRADER_AVOID", "FIRE", "ALLOWS_REMOTE_USE", "WATER_EXTINGUISH", "FIRESTARTER" ]
  },
  {
    "id": "oil_lamp_clay",
    "type": "TOOL",
    "name": { "str": "clay oil lamp (off)", "str_pl": "clay oil lamps (off)" },
    "description": "A specialized small clay container with a wick, an ancient form of oil lamp.  Unlike newer designs, it isn't windproof, so the flame is likely to be extinguished if exposed to wind; better use it indoors.  It does not provide much light, but it lasts a long time.  Use it to light it.",
    "weight": "620 g",
    "volume": "300 ml",
    "price": 800,
    "price_postapoc": 100,
    "material": [ "clay" ],
    "symbol": ";",
    "color": "brown",
    "ammo": [ "crude_lamp_oil", "lamp_oil" ],
    "pocket_data": [ { "pocket_type": "MAGAZINE", "watertight": true, "ammo_restriction": { "crude_lamp_oil": 250, "lamp_oil": 250 } } ],
    "charges_per_use": 1,
    "use_action": {
      "target": "oil_lamp_clay_on",
      "msg": "You light the lamp.",
      "active": true,
      "need_fire": 1,
      "need_charges": 1,
      "need_charges_msg": "The lamp is empty.",
      "type": "transform"
    },
    "flags": [ "ALLOWS_REMOTE_USE" ],
    "melee_damage": { "bash": 1 }
  },
  {
    "id": "oil_lamp_clay_on",
    "copy-from": "oil_lamp_clay",
    "looks_like": "oil_lamp_on",
    "sub": "oil_lamp_on",
    "type": "TOOL",
    "name": { "str": "clay oil lamp" },
    "description": "A specialized small clay container with a wick, an ancient form of oil lamp.  Unlike newer designs, it isn't windproof, so the flame is likely to be extinguished if exposed to wind; better use it indoors.  It does not provide much light, but lasts a long time.  It is lit, consuming oil and providing light.  Use it to extinguish the flame.",
    "turns_per_charge": 240,
    "revert_to": "oil_lamp_clay",
    "use_action": [
      {
        "ammo_scale": 0,
        "target": "oil_lamp_clay",
        "msg": "The lamp is extinguished.",
        "menu_text": "Turn off",
        "type": "transform"
      },
      { "type": "firestarter", "moves": 100 }
    ],
    "flags": [ "LIGHT_10", "TRADER_AVOID", "FIRE", "ALLOWS_REMOTE_USE", "WATER_EXTINGUISH", "WIND_EXTINGUISH", "FIRESTARTER" ]
  },
  {
    "id": "oxylamp",
    "type": "TOOL",
    "name": { "str": "acetylene lamp (off)", "str_pl": "acetylene lamps (off)" },
    "description": "An antique brass lamp designed to run from a pressurized cylinder of acetylene.  It is an efficient, if somewhat dangerous, light source.",
    "weight": "800 g",
    "volume": "500 ml",
    "price": 6500,
    "price_postapoc": 100,
    "symbol": ";",
    "color": "red",
    "material": [ "copper", "glass" ],
    "charges_per_use": 1,
    "ammo": [ "weldgas" ],
    "use_action": {
      "type": "transform",
      "msg": "You light the %s.",
      "target": "oxylamp_on",
      "active": true,
      "need_charges": 1,
      "need_charges_msg": "The %s must be attached to a gas cylinder to light."
    },
    "pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "weldtank", "tinyweldtank" ] } ]
  },
  {
    "id": "oxylamp_on",
    "copy-from": "oxylamp",
    "type": "TOOL",
    "name": { "str": "acetylene lamp (on)", "str_pl": "acetylene lamps (on)" },
    "turns_per_charge": 240,
    "revert_to": "oxylamp",
    "use_action": [
      { "ammo_scale": 0, "menu_text": "Turn off", "type": "transform", "msg": "The %s is extinguished", "target": "oxylamp" },
      { "type": "firestarter", "moves": 100 }
    ],
    "flags": [ "LIGHT_30", "FIRESTARTER", "TRADER_AVOID", "FIRE", "ALLOWS_REMOTE_USE" ]
  },
  {
    "id": "reading_light",
    "type": "TOOL",
    "name": { "str": "reading light" },
    "description": "A little clip-on LED light, meant for reading books in the dark.",
    "weight": "90 g",
    "volume": "100 ml",
    "price": 100,
    "price_postapoc": 100,
    "material": [ "plastic", "aluminum" ],
    "symbol": ";",
    "color": "white",
    "flags": [ "WATER_BREAK" ],
    "ammo": [ "battery" ],
    "charges_per_use": 1,
    "use_action": {
      "target": "reading_light_on",
      "msg": "You switch on the reading light.",
      "active": true,
      "need_charges": 1,
      "need_charges_msg": "The reading light winks out.",
      "type": "transform"
    },
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_minus_disposable_cell"
      }
    ]
  },
  {
    "id": "reading_light_on",
    "copy-from": "reading_light",
    "type": "TOOL",
    "name": { "str": "reading light (active)", "str_pl": "reading lights (active)" },
    "description": "A little clip-on LED light, meant for reading books in the dark.  This one is turned on.",
    "power_draw": "1 W",
    "revert_to": "reading_light",
    "use_action": {
      "ammo_scale": 0,
      "target": "reading_light",
      "msg": "You switch off the reading light.",
      "menu_text": "Turn off",
      "type": "transform"
    },
    "flags": [ "LIGHT_15", "CHARGEDIM" ]
  },
  {
    "id": "smart_lamp",
    "type": "TOOL",
    "name": { "str": "smart lamp (off)", "str_pl": "smart lamps (off)" },
    "description": "A smart lamp that can be activated remotely.",
    "weight": "400 g",
    "volume": "500 ml",
    "price": 500,
    "price_postapoc": 100,
    "to_hit": -1,
    "material": [ "plastic", "aluminum" ],
    "symbol": "&",
    "color": "blue",
    "ammo": [ "battery" ],
    "charges_per_use": 1,
    "use_action": {
      "target": "smart_lamp_on",
      "msg": "You turn the smart lamp on.",
      "active": true,
      "need_charges": 1,
      "need_charges_msg": "The smart lamp batteries are dead.",
      "type": "transform"
    },
    "flags": [ "ALLOWS_REMOTE_USE", "RADIO_ACTIVATION", "RADIO_INVOKE_PROC", "RADIOSIGNAL_2", "WATER_BREAK", "ELECTRONIC" ],
    "pocket_data": [
      {
        "pocket_type": "MAGAZINE_WELL",
        "rigid": true,
        "flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
        "default_magazine": "light_battery_cell"
      }
    ],
    "melee_damage": { "bash": 1 }
  },
  {
    "id": "smart_lamp_on",
    "copy-from": "smart_lamp",
    "type": "TOOL",
    "name": { "str": "smart lamp (on)", "str_pl": "smart lamps (on)" },
    "description": "A smart lamp which can be deactivated remotely.  Currently it is turned on.",
    "power_draw": "10 W",
    "revert_to": "smart_lamp",
    "use_action": {
      "ammo_scale": 0,
      "target": "smart_lamp",
      "msg": "Your smart lamp turned off.",
      "menu_text": "Turn off",
      "type": "transform"
    },
    "flags": [
      "ALLOWS_REMOTE_USE",
      "RADIO_ACTIVATION",
      "RADIO_INVOKE_PROC",
      "RADIOSIGNAL_2",
      "LIGHT_240",
      "CHARGEDIM",
      "TRADER_AVOID"
    ]
  },
  {
    "id": "torch",
    "type": "TOOL",
    "name": { "str": "torch", "str_pl": "torches" },
    "description": "A large stick wrapped in rags that are soaked with flammable material.  When lit, it produces a fair amount of light.  You'll need a lighter or matches to light it.",
    "weight": "623 g",
    "volume": "1089 ml",
    "longest_side": "122 cm",
    "//": "dimensions from pool_cue as least heavy ingredient from all",
    "price": 0,
    "price_postapoc": 50,
    "to_hit": 1,
    "material": [ { "type": "wood", "portion": 14 }, { "type": "cotton", "portion": 1 }, { "type": "gasoline", "portion": 1 } ],
    "symbol": "/",
    "color": "brown",
    "techniques": [ "WBLOCK_1" ],
    "initial_charges": 20,
    "max_charges": 20,
    "use_action": {
      "target": "torch_lit",
      "msg": "You light the torch.",
      "active": true,
      "need_fire": 1,
      "menu_text": "Light torch",
      "type": "transform"
    },
    "flags": [ "BURNOUT" ],
    "melee_damage": { "bash": 8 }
  },
  {
    "id": "torch_lit",
    "type": "TOOL",
    "name": { "str": "torch", "str_pl": "torches" },
    "description": "A large stick wrapped in rags that are soaked with flammable material.  It is burning, producing plenty of light.",
    "weight": "623 g",
    "volume": "1089 ml",
    "longest_side": "122 cm",
    "price": 0,
    "price_postapoc": 0,
    "to_hit": 1,
    "material": [ { "type": "wood", "portion": 14 }, { "type": "cotton", "portion": 1 }, { "type": "gasoline", "portion": 1 } ],
    "symbol": "/",
    "color": "brown",
    "initial_charges": 20,
    "max_charges": 20,
    "turns_per_charge": 60,
    "revert_to": "torch_done",
    "sub": "fire",
    "use_action": [
      { "type": "firestarter", "moves": 30 },
      {
        "target": "torch",
        "msg": "The torch is extinguished.",
        "active": false,
        "menu_text": "Extinguish",
        "type": "transform"
      }
    ],
    "techniques": [ "WBLOCK_1" ],
    "flags": [ "FIRE", "LIGHT_60", "CHARGEDIM", "FLAMING", "TRADER_AVOID", "WATER_EXTINGUISH", "BURNOUT" ],
    "melee_damage": { "bash": 8 }
  },
  {
    "id": "propane_lantern",
    "type": "TOOL",
    "name": { "str": "propane lantern (off)", "str_pl": "propane lanterns (off)" },
    "description": "A small propane-powered lantern.  It does not provide much light, but it lasts a long time.  Use it to turn it on.",
    "weight": "1400 g",
    "volume": "750 ml",
    "price": 3000,
    "price_postapoc": 100,
    "to_hit": 2,
    "material": [ "glass", "steel" ],
    "symbol": ";",
    "color": "yellow",
    "ammo": [ "propane" ],
    "pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "watertight": true, "item_restriction": [ "small_propane_tank" ] } ],
    "charges_per_use": 1,
    "use_action": {
      "target": "propane_lantern_on",
      "msg": "You turn the lamp on.",
      "active": true,
      "need_charges": 1,
      "need_charges_msg": "The lamp is empty.",
      "type": "transform"
    },
    "flags": [ "ALLOWS_REMOTE_USE" ],
    "melee_damage": { "bash": 1 }
  },
  {
    "id": "propane_lantern_on",
    "copy-from": "propane_lantern",
    "type": "TOOL",
    "name": { "str": "propane lantern (on)", "str_pl": "propane lanterns (on)" },
    "description": "A small propane-powered lantern.  It does not provide much light, but it lasts a long time.  It is turned on.  Use it to turn it off.",
    "power_draw": "60 mW",
    "revert_to": "propane_lantern",
    "use_action": [
      {
        "ammo_scale": 0,
        "target": "propane_lantern",
        "msg": "The lantern is extinguished.",
        "menu_text": "Turn off",
        "type": "transform"
      },
      { "type": "firestarter", "moves": 100 }
    ],
    "flags": [ "LIGHT_15", "TRADER_AVOID", "ALLOWS_REMOTE_USE", "FIRESTARTER", "FIRE" ]
  }
]
