[
  {
    "id": "afs_plasma",
    "type": "damage_type",
    "magic_color": "pink",
    "name": "plasma",
    "derived_from": [ "heat", 0.4 ]
  },
  {
    "id": "afs_plasma",
    "type": "damage_info_order",
    "info_display": "basic",
    "verb": "plasma",
    "bionic_info": { "order": 407, "show_type": true },
    "protection_info": { "order": 307, "show_type": true },
    "pet_prot_info": { "order": 307, "show_type": true },
    "melee_combat_info": { "order": 407, "show_type": true },
    "ablative_info": { "order": 307, "show_type": true }
  },
  {
    "id": "afs_laser",
    "type": "damage_type",
    "physical": true,
    "magic_color": "red",
    "name": "Laser",
    "derived_from": [ "heat", 1 ]
  },
  {
    "id": "afs_laser",
    "type": "damage_info_order",
    "info_display": "basic",
    "verb": "laser",
    "bionic_info": { "order": 393, "show_type": true },
    "protection_info": { "order": 293, "show_type": true },
    "pet_prot_info": { "order": 293, "show_type": true },
    "melee_combat_info": { "order": 393, "show_type": true },
    "ablative_info": { "order": 293, "show_type": true }
  },
  {
    "id": "afs_heat_melee",
    "type": "damage_type",
    "melee_only": true,
    "physical": true,
    "edged": true,
    "magic_color": "red",
    "name": { "ctxt": "damage_type", "str": "heat" },
    "skill": "cutting",
    "mon_difficulty": true,
    "derived_from": [ "heat", 1 ],
    "immune_flags": { "character": [ "CUT_IMMUNE" ] }
  },
  {
    "id": "afs_heat_melee",
    "type": "damage_info_order",
    "info_display": "detailed",
    "verb": { "ctxt": "damage_type", "str": "melting" },
    "bionic_info": { "order": 200, "show_type": true },
    "protection_info": { "order": 200, "show_type": false },
    "pet_prot_info": { "order": 200, "show_type": false },
    "melee_combat_info": { "order": 200, "show_type": true },
    "ablative_info": { "order": 200, "show_type": false }
  },
  {
    "id": "afs_toxin_pierce",
    "type": "damage_type",
    "physical": true,
    "edged": true,
    "melee_only": true,
    "magic_color": "light_green",
    "name": "toxic pierce",
    "skill": "stabbing",
    "derived_from": [ "stab", 1 ],
    "immune_flags": { "character": [ "STAB_IMMUNE" ] },
    "ondamage_eocs": [ "AFS_TOXIN_DAMAGE_EFFECTS" ]
  },
  {
    "id": "afs_toxin_bullet",
    "type": "damage_type",
    "physical": true,
    "magic_color": "light_green",
    "name": "toxic ballistic",
    "derived_from": [ "bullet", 1 ],
    "immune_flags": { "character": [ "BULLET_IMMUNE" ] },
    "ondamage_eocs": [ "AFS_TOXIN_DAMAGE_EFFECTS" ]
  },
  {
    "type": "effect_on_condition",
    "id": "AFS_TOXIN_DAMAGE_EFFECTS",
    "eoc_type": "ACTIVATION",
    "condition": {
      "and": [
        { "or": [ { "not": { "npc_has_flag": "BIO_IMMUNE" } }, { "not": { "npc_has_flag": "BIOLOGICALPROOF" } } ] },
        { "math": [ "_damage_taken > 0" ] }
      ]
    },
    "effect": [ { "npc_add_effect": "afs_badpoison", "duration": "5 m", "target_part": "torso" } ]
  },
  {
    "id": "afs_toxin_pierce",
    "type": "damage_info_order",
    "info_display": "detailed",
    "verb": "toxic piercing",
    "bionic_info": { "order": 407, "show_type": false },
    "protection_info": { "order": 307, "show_type": false },
    "pet_prot_info": { "order": 307, "show_type": false },
    "melee_combat_info": { "order": 407, "show_type": true },
    "ablative_info": { "order": 307, "show_type": false }
  },
  {
    "id": "afs_toxin_bullet",
    "type": "damage_info_order",
    "info_display": "detailed",
    "verb": "shooting",
    "bionic_info": { "order": 401, "show_type": false },
    "protection_info": { "order": 301, "show_type": false },
    "pet_prot_info": { "order": 301, "show_type": false },
    "melee_combat_info": { "order": 401, "show_type": false },
    "ablative_info": { "order": 301, "show_type": false }
  },
  {
    "id": "psi_telekinetic_damage",
    "type": "damage_type",
    "physical": false,
    "magic_color": "yellow",
    "name": "telekinetic",
    "skill": "metaphysics",
    "derived_from": [ "bash", 0.9 ],
    "immune_flags": { "character": [ "TELEKIN_SHIELD" ], "monster": [ "TELEKIN_IMMUNE" ] },
    "ondamage_eocs": [ "EOC_TELEKINETIC_DAMAGE_KNOCKDOWN_CHANCE", "EOC_TELEKINETIC_DAMAGE_STAGGER_CHANCE" ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKINETIC_DAMAGE_STAGGER_CHANCE",
    "condition": { "and": [ { "x_in_y_chance": { "x": { "math": [ "2" ] }, "y": 5 } }, { "math": [ "_damage_taken > 0" ] } ] },
    "effect": [ { "npc_add_effect": "staggered", "duration": "2 s" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKINETIC_DAMAGE_KNOCKDOWN_CHANCE",
    "condition": { "and": [ { "x_in_y_chance": { "x": { "math": [ "1" ] }, "y": 5 } }, { "math": [ "_damage_taken > 0" ] } ] },
    "effect": [ { "npc_add_effect": "downed", "duration": "1 s" } ]
  },
  {
    "id": "psi_telekinetic_damage",
    "type": "damage_info_order",
    "info_display": "detailed",
    "verb": "buffeting",
    "bionic_info": { "order": 999899, "show_type": false },
    "protection_info": { "order": 999899, "show_type": false },
    "pet_prot_info": { "order": 999899, "show_type": false },
    "melee_combat_info": { "order": 999899, "show_type": false },
    "ablative_info": { "order": 999899, "show_type": false }
  },
  {
    "id": "psi_telepathic_damage",
    "type": "damage_type",
    "physical": false,
    "magic_color": "white",
    "name": "telepathic",
    "skill": "metaphysics",
    "immune_flags": { "character": [ "TEEPSHIELD", "PSYSHIELD_PROTECT" ], "monster": [ "TEEP_IMMUNE" ] },
    "ondamage_eocs": [ "EOC_TELEPATHIC_DAMAGE_PSYSHIELD_CHECK", "EOC_TELEPATHIC_DAMAGE_STUN_HIVE_CHANCE" ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPATHIC_DAMAGE_PSYSHIELD_CHECK",
    "condition": {
      "and": [
        { "npc_has_worn_with_flag": "PSYSHIELD_PARTIAL" },
        { "math": [ "_damage_taken > -2" ] },
        { "npc_has_effect": "effect_psyshield_protection" },
        { "not": { "npc_has_flag": "HIVE_MIND" } },
        { "not": { "npc_has_flag": "TEEP_IMMUNE" } },
        { "not": { "npc_has_flag": "TEEPSHIELD" } }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_TELEPATHIC_DAMAGE_PSYSHIELD_CHECK_2",
            "condition": { "x_in_y_chance": { "x": 1, "y": 2 } },
            "effect": [
              {
                "npc_message": "Your head prickles.  It feels like spiders crawling across the surface of your brain.",
                "type": "bad"
              },
              { "npc_lose_effect": "effect_psyshield_protection" }
            ],
            "false_effect": [
              { "npc_lose_effect": "effect_psyshield_protection" },
              { "npc_cast_spell": { "id": "telepathic_self_damage", "hit_self": true } },
              { "npc_message": "Your minds reels!", "type": "bad" }
            ]
          }
        ]
      }
    ],
    "false_effect": [
      {
        "run_eocs": [ "EOC_TELEPATHIC_DAMAGE_STUN_CHANCE", "EOC_TELEPATHIC_DAMAGE_DAZED_CHANCE", "EOC_TELEPATHIC_DAMAGE_KNOCKDOWN_CHANCE" ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPATHIC_DAMAGE_KNOCKDOWN_CHANCE",
    "condition": {
      "and": [
        { "x_in_y_chance": { "x": 1, "y": 20 } },
        { "math": [ "_damage_taken > 0" ] },
        { "not": { "npc_has_flag": "HIVE_MIND" } },
        { "not": { "npc_has_flag": "TEEP_IMMUNE" } },
        { "not": { "npc_has_flag": "TEEPSHIELD" } }
      ]
    },
    "effect": [ { "npc_add_effect": "downed", "duration": "1 s" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPATHIC_DAMAGE_STUN_CHANCE",
    "condition": {
      "and": [
        { "x_in_y_chance": { "x": 1, "y": 3 } },
        { "math": [ "_damage_taken > 0" ] },
        { "not": { "npc_has_flag": "HIVE_MIND" } },
        { "not": { "npc_has_flag": "TEEP_IMMUNE" } },
        { "not": { "npc_has_flag": "TEEPSHIELD" } }
      ]
    },
    "effect": [ { "npc_add_effect": "psi_stunned", "duration": "1 s" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPATHIC_DAMAGE_DAZED_CHANCE",
    "condition": {
      "and": [
        { "x_in_y_chance": { "x": 2, "y": 3 } },
        { "math": [ "_damage_taken > 0" ] },
        { "not": { "npc_has_flag": "HIVE_MIND" } },
        { "not": { "npc_has_flag": "TEEP_IMMUNE" } },
        { "not": { "npc_has_flag": "TEEPSHIELD" } }
      ]
    },
    "effect": [ { "npc_add_effect": "psi_dazed", "duration": "2 s" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPATHIC_DAMAGE_STUN_HIVE_CHANCE",
    "condition": {
      "and": [ { "x_in_y_chance": { "x": 1, "y": 6 } }, { "math": [ "_damage_taken > 0" ] }, { "npc_has_flag": "HIVE_MIND" } ]
    },
    "effect": [ { "npc_add_effect": "psi_stunned", "duration": "5 s" } ]
  },
  {
    "id": "psi_telepathic_damage",
    "type": "damage_info_order",
    "info_display": "detailed",
    "verb": "mindblasting",
    "bionic_info": { "order": 999900, "show_type": false },
    "protection_info": { "order": 999900, "show_type": false },
    "pet_prot_info": { "order": 999900, "show_type": false },
    "melee_combat_info": { "order": 999900, "show_type": false },
    "ablative_info": { "order": 999900, "show_type": false }
  }
]
