[
  {
    "id": "afs_electrokinetic_see_electric",
    "type": "SPELL",
    "name": "[Ψ]Spark Sight (C)",
    "description": "Open your senses to the flow of electricity, revealing nearby electrical creatures or robots.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "AFS_ELECTROKINETIC",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 2,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_AFS_ELECTROKIN_SEE_ELECTRICITY_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [ "( (u_spell_level('afs_electrokinetic_see_electric') * 15000) + 90000) * (scaling_factor(u_val('intelligence') ) )" ]
    },
    "max_duration": {
      "math": [ "( (u_spell_level('afs_electrokinetic_see_electric') * 30000) + 180000) * (scaling_factor(u_val('intelligence') ) )" ]
    },
    "magic_type": "aftershock_psionics",
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_electrokin_see_electricity') > -1 ? 0 : max((2000 - (u_spell_level('afs_electrokinetic_see_electric') * 75)), 750)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_electrokin_see_electricity') > -1 ? 10 : max((150 -(u_spell_level('afs_electrokinetic_see_electric') * 6)), 80)"
      ]
    }
  },
  {
    "id": "afs_electrokinetic_shock_touch",
    "type": "SPELL",
    "name": "[Ψ]Static Touch",
    "description": "Unleash a shock when touching a target, doing a small amount of damage and dazing them.",
    "message": "Your hands crackle with sparks!",
    "teachable": false,
    "valid_targets": [ "hostile", "ground", "ally" ],
    "spell_class": "AFS_ELECTROKINETIC",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "CONCENTRATE", "LOUD", "NO_PROJECTILE", "RANDOM_DAMAGE", "RANDOM_DURATION", "NO_HANDS", "NO_LEGS" ],
    "difficulty": 2,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "effect_str": "psi_dazed_zap",
    "shape": "blast",
    "damage_type": "electric",
    "min_damage": {
      "math": [ "( (u_spell_level('afs_electrokinetic_shock_touch') * 1) + 2) * (scaling_factor(u_val('intelligence') ) )" ]
    },
    "max_damage": {
      "math": [ "( (u_spell_level('afs_electrokinetic_shock_touch') * 1.5) + 7) * (scaling_factor(u_val('intelligence') ) )" ]
    },
    "min_range": 1,
    "max_range": 1,
    "min_duration": 100,
    "max_duration": 300,
    "field_id": "fd_electricity",
    "min_field_intensity": 1,
    "max_field_intensity": 2,
    "field_chance": 1,
    "magic_type": "aftershock_psionics",
    "base_energy_cost": 1500,
    "final_energy_cost": 450,
    "energy_increment": -65,
    "base_casting_time": 100,
    "final_casting_time": 35,
    "casting_time_increment": -4,
    "sound_type": "combat",
    "sound_description": "zzzaaaaapp!",
    "ignored_monster_species": [ "PSI_NULL" ]
  },
  {
    "id": "afs_electrokinetic_zap_enemies",
    "type": "SPELL",
    "name": "[Ψ]Electrical Discharge",
    "description": "Build up a charge in your body, zapping anyone who attempts to attack you in melee.  It will also protect you from EMP attacks.",
    "message": "Your skin tingles.",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "AFS_ELECTROKINETIC",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 3,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "effect_str": "effect_afs_electrokin_zap_enemies",
    "shape": "blast",
    "min_duration": {
      "math": [ "( (u_spell_level('afs_electrokinetic_zap_enemies') * 8000) + 30000) * (scaling_factor(u_val('intelligence') ) )" ]
    },
    "max_duration": {
      "math": [ "( (u_spell_level('afs_electrokinetic_zap_enemies') * 22500) + 80000) * (scaling_factor(u_val('intelligence') ) )" ]
    },
    "magic_type": "aftershock_psionics",
    "base_energy_cost": 3500,
    "final_energy_cost": 1100,
    "energy_increment": -120,
    "base_casting_time": 125,
    "final_casting_time": 45,
    "casting_time_increment": -5
  },
  {
    "id": "afs_electrokinetic_hacking_interface",
    "type": "SPELL",
    "name": "[Ψ]Hacking Interface (C)",
    "description": "Create an electrical interface with your powers, allowing you to hack nearby devices as if you were using a computer.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "AFS_ELECTROKINETIC",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 4,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_AFS_ELECTROKIN_HACKING_INTERFACE_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( ( (u_spell_level('afs_electrokinetic_hacking_interface') * 4500 ) + 60000) * (scaling_factor(u_val('intelligence') ) ) )"
      ]
    },
    "max_duration": {
      "math": [
        "( ( (u_spell_level('afs_electrokinetic_hacking_interface') * 9000 ) + 180000) * (scaling_factor(u_val('intelligence') ) ) )"
      ]
    },
    "magic_type": "aftershock_psionics",
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_electrokin_hacking_interface') > 0 ? 0 : max((6500 - (u_spell_level('afs_electrokinetic_hacking_interface') * 150)), 3500)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_electrokin_hacking_interface') > 0 ? 10 : max((350 -(u_spell_level('afs_electrokinetic_hacking_interface') * 9)), 150)"
      ]
    }
  },
  {
    "id": "afs_electrokinetic_personal_battery",
    "type": "SPELL",
    "name": "[Ψ]Electron Overflow (C)",
    "description": "Generate power for UPS compatible devices on your person.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "AFS_ELECTROKINETIC",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 5,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_AFS_ELECTROKIN_PERSONAL_BATTERY_INITIATE",
    "shape": "blast",
    "min_damage": 1,
    "min_duration": 120000,
    "max_duration": 360000,
    "magic_type": "aftershock_psionics",
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_afs_electrokin_personal_battery') > 0 ? 0 : max((6500 - (u_spell_level('afs_electrokinetic_personal_battery') * 150)), 3500)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_afs_electrokin_personal_battery') > 0 ? 10 : max((350 -(u_spell_level('afs_electrokinetic_personal_battery') * 9)), 150)"
      ]
    }
  },
  {
    "id": "afs_electrokinetic_recharge_vehicle",
    "type": "SPELL",
    "name": "[Ψ]Re-energize",
    "description": "Turn your own energy into power for a vehicle or appliance.  You need merely touch the vehicle or any part of the power grid to recharge the batteries.",
    "message": "Power flows into your target.",
    "teachable": false,
    "valid_targets": [ "ground" ],
    "spell_class": "AFS_ELECTROKINETIC",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DAMAGE" ],
    "difficulty": 8,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "recharge_vehicle",
    "shape": "blast",
    "min_damage": {
      "math": [ "( (u_spell_level('afs_electrokinetic_recharge_vehicle') * 125) + 250) * (scaling_factor(u_val('intelligence') ) )" ]
    },
    "max_damage": {
      "math": [ "( (u_spell_level('afs_electrokinetic_recharge_vehicle') * 250) + 500) * (scaling_factor(u_val('intelligence') ) )" ]
    },
    "min_range": 1,
    "magic_type": "aftershock_psionics",
    "base_energy_cost": 7500,
    "final_energy_cost": 4500,
    "energy_increment": -150,
    "base_casting_time": 1500
  }
]
