[
  {
    "id": "afs_electroshock_grenade_1",
    "type": "TOOL",
    "copy-from": "grenade_canister",
    "category": "weapons",
    "looks_like": "grenade_emp",
    "name": "electroshock grenade",
    "description": "This is an electronic weapon that will emit a short ranged electric field.  When activated, you'll have five turns before it starts doing so; throwing it before that would be a good idea.",
    "use_action": { "menu_text": "Pull pin", "need_wielding": true, "type": "transform", "target": "afs_electroshock_grenade_1_act" }
  },
  {
    "id": "afs_electroshock_grenade_1_act",
    "type": "TOOL",
    "copy-from": "afs_electroshock_grenade_1",
    "looks_like": "grenade_emp_act",
    "name": "armed electroshock grenade",
    "description": "This electroshock grenade is currently creating a dangerous electric field.",
    "emits": [ "emit_shock_cloud" ],
    "countdown_interval": 20,
    "countdown_action": { "type": "transform", "target": "afs_material_1" },
    "flags": [ "TRADER_AVOID" ]
  },
  {
    "id": "grenade_cryo",
    "type": "TOOL",
    "category": "weapons",
    "name": { "str": "cryo grenade" },
    "description": "This is a military-grade cryo hand grenade.  Once it explodes it spreads exotic highly radioactive shrapnel.  Use this item to pull the pin and light the fuse.  You will then have five seconds before it explodes; throwing it would be a good idea.",
    "weight": "397 g",
    "volume": "250 ml",
    "price": 1500,
    "price_postapoc": 1000,
    "to_hit": -1,
    "bashing": 6,
    "material": [ "steel", "plastic" ],
    "symbol": "*",
    "color": "green",
    "use_action": {
      "need_wielding": true,
      "target": "grenade_cryo_act",
      "msg": "You pull the pin on the grenade.",
      "target_charges": 5,
      "active": true,
      "menu_text": "Pull pin",
      "type": "transform"
    },
    "flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "BOMB", "GRENADE" ]
  },
  {
    "id": "grenade_cryo_act",
    "type": "TOOL",
    "category": "weapons",
    "name": { "str": "active cryo grenade" },
    "description": "This is an active grenade, and will explode any second now.  Once it explodes it spreads exotic highly thermodynamic shrapnel.  Better throw it!",
    "weight": "397 g",
    "volume": "250 ml",
    "price": 0,
    "price_postapoc": 0,
    "to_hit": -1,
    "bashing": 6,
    "material": [ "superalloy" ],
    "symbol": "*",
    "color": "green",
    "initial_charges": 5,
    "max_charges": 5,
    "turns_per_charge": 1,
    "use_action": {
      "type": "explosion",
      "sound_volume": 0,
      "sound_msg": "Tick.",
      "fields_type": "fd_nuke_gas",
      "fields_radius": 3,
      "fields_min_intensity": 3,
      "fields_max_intensity": 3,
      "no_deactivate_msg": "You've already pulled the %s's pin; try throwing it instead.",
      "explosion": { "power": 540, "shrapnel": { "casing_mass": 217, "fragment_mass": 0.25 } }
    },
    "flags": [ "BOMB", "TRADER_AVOID" ]
  }
]
