[
  {
    "id": "photokinetic_light_local",
    "type": "SPELL",
    "name": "[Ψ]Candle's Glow (C)",
    "description": "Create a simple patch of light nearby, sufficient to read or perform simple tasks with.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.  It is <color_red>canceled by engaging in combat</color>.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 1,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_LIGHT_LOCAL_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( (u_spell_level('photokinetic_light_local') * 26000) + 156000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( (u_spell_level('photokinetic_light_local') * 87000) + 342000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokin_light_local') > -1 ? 0 : max((1500 - (u_spell_level('photokinetic_light_local') * 80)), 450)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokin_light_local') > -1 ? 10 : max((125 -(u_spell_level('photokinetic_light_local') * 7.5)), 50)"
      ]
    }
  },
  {
    "id": "photokinetic_create_light",
    "type": "SPELL",
    "name": "[Ψ]Field of Light",
    "description": "Create photons to illuminate an entire area.",
    "message": "Sudden light bursts forth!",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_PROJECTILE", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
    "difficulty": 2,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_CREATE_LIGHT_SWITCH",
    "shape": "blast",
    "base_energy_cost": 2500,
    "final_energy_cost": 1000,
    "energy_increment": -115,
    "base_casting_time": 150,
    "final_casting_time": 75,
    "casting_time_increment": -6.5
  },
  {
    "id": "photokinetic_create_light_01",
    "type": "SPELL",
    "name": "[Ψ]Field of Light",
    "description": "Create photons to illuminate an entire area.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self", "ground", "ally", "hostile" ],
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_PROJECTILE", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 2,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "shape": "blast",
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_create_light') * 1.2) + 5) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 70)"
      ]
    },
    "max_range": 70,
    "min_aoe": {
      "math": [
        "min( (( (u_spell_level('photokinetic_create_light') * 0.8) + 1) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 50)"
      ]
    },
    "max_aoe": 50,
    "field_id": "fd_photokin_light_1",
    "min_field_intensity": 1,
    "max_field_intensity": 3,
    "field_chance": 3
  },
  {
    "id": "photokinetic_create_light_02",
    "type": "SPELL",
    "name": "[Ψ]Field of Light",
    "description": "Create photons to illuminate an entire area.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self", "ground", "ally", "hostile" ],
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_PROJECTILE", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 2,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "shape": "blast",
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_create_light') * 1.2) + 5) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 70)"
      ]
    },
    "max_range": 70,
    "min_aoe": {
      "math": [
        "min( (( (u_spell_level('photokinetic_create_light') * 0.8) + 1) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 50)"
      ]
    },
    "max_aoe": 50,
    "field_id": "fd_photokin_light_2",
    "min_field_intensity": 1,
    "max_field_intensity": 3,
    "field_chance": 3
  },
  {
    "id": "photokinetic_create_light_03",
    "type": "SPELL",
    "name": "[Ψ]Field of Light",
    "description": "Create photons to illuminate an entire area.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self", "ground", "ally", "hostile" ],
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_PROJECTILE", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 2,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "shape": "blast",
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_create_light') * 1.2) + 5) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 70)"
      ]
    },
    "max_range": 70,
    "min_aoe": {
      "math": [
        "min( (( (u_spell_level('photokinetic_create_light') * 0.8) + 1) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 50)"
      ]
    },
    "max_aoe": 50,
    "field_id": "fd_photokin_light_3",
    "min_field_intensity": 1,
    "max_field_intensity": 3,
    "field_chance": 3
  },
  {
    "id": "photokinetic_light_up_enemy",
    "type": "SPELL",
    "name": "[Ψ]Illuminate",
    "description": "Create photons to illuminate an entire area.",
    "message": "Your target is outlined in light.",
    "teachable": false,
    "valid_targets": [ "ally", "hostile" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_PROJECTILE", "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_PHOTOKIN_LIGHT_UP_ENEMY_TARGET",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( (u_spell_level('photokinetic_light_up_enemy') * 1800) + 6600) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( (u_spell_level('photokinetic_light_up_enemy') * 7100) + 18400) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_light_up_enemy') * 1.1) + 3) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 70)"
      ]
    },
    "max_range": 70,
    "base_energy_cost": 2750,
    "final_energy_cost": 750,
    "energy_increment": -95,
    "base_casting_time": 100,
    "final_casting_time": 35,
    "casting_time_increment": -5
  },
  {
    "id": "photokinetic_snuff_light",
    "type": "SPELL",
    "name": "[Ψ]Blackout",
    "description": "Interrupt the flow of photons to create an area of darkness.",
    "message": "As you concentrate, an area nearby is plunged into darkness!",
    "teachable": false,
    "valid_targets": [ "self", "ground" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_PROJECTILE", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 2,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "shape": "blast",
    "min_duration": { "math": [ "((u_spell_level('photokinetic_snuff_light') * 1000) + 5000) * u_nether_attunement_power_scaling" ] },
    "max_duration": { "math": [ "((u_spell_level('photokinetic_snuff_light') * 1000) + 10000) * u_nether_attunement_power_scaling" ] },
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_snuff_light') * 1.2) + 5) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 70)"
      ]
    },
    "max_range": 70,
    "min_aoe": {
      "math": [
        "min( (( (u_spell_level('photokinetic_snuff_light') * 0.8) + 1) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 50)"
      ]
    },
    "field_id": "fd_darkness",
    "min_field_intensity": 1,
    "max_field_intensity": 1,
    "base_energy_cost": 2500,
    "final_energy_cost": 1000,
    "energy_increment": -150,
    "base_casting_time": 150,
    "final_casting_time": 75,
    "casting_time_increment": -6.5
  },
  {
    "id": "photokinetic_light_dodge",
    "type": "SPELL",
    "name": "[Ψ]Trick of the Light (C)",
    "description": "Manipulate the light around your body, creating shifting illusions, blurring your outline and position, and becoming harder to hit.  An enemy successfully hitting you will pinpoint your location and <color_red>disrupt the power</color>.\n\nhis 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": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "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_PHOTOKIN_LIGHT_DODGE_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( (u_spell_level('photokinetic_light_dodge') * 1300) + 2800) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( (u_spell_level('photokinetic_light_dodge') * 2700) + 12500) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokin_dodge') > -1 ? 0 : max((2250 - (u_spell_level('photokinetic_light_dodge') * 135)), 500)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokin_dodge') > -1 ? 10 : max((200 -(u_spell_level('photokinetic_light_dodge') * 9.5)), 65)"
      ]
    }
  },
  {
    "id": "photokinetic_light_beam",
    "type": "SPELL",
    "name": "[Ψ]Photon Beam",
    "description": "Concentrate photons into a high-energy beam.",
    "message": "You fire a searing beam of light!",
    "teachable": false,
    "valid_targets": [ "ground", "hostile" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "SILENT", "RANDOM_DAMAGE" ],
    "effect": "attack",
    "difficulty": 3,
    "shape": "line",
    "min_damage": {
      "math": [
        "( (u_spell_level('photokinetic_light_beam') * 1.5) + 3) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_damage": {
      "math": [
        "( (u_spell_level('photokinetic_light_beam') * 3.5) + 15) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "damage_type": "psi_photokinetic_damage",
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_light_beam') * 0.6) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 30)"
      ]
    },
    "max_range": 30,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "field_id": "fd_laser",
    "min_field_intensity": 2,
    "max_field_intensity": 2,
    "field_chance": 1,
    "base_energy_cost": 2750,
    "final_energy_cost": 800,
    "energy_increment": -110,
    "base_casting_time": 100,
    "final_casting_time": 35,
    "casting_time_increment": -6
  },
  {
    "id": "photokinetic_camouflage",
    "type": "SPELL",
    "name": { "//~": "Combination of chameleon and camouflage", "str": "[Ψ]Chameleoflage (C)" },
    "description": "By blending the light reflecting from you with the light reflecting from nearby surfaces, you can make yourself much harder to spot from a distance.\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": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "RANDOM_DURATION", "NO_EXPLOSION_SFX" ],
    "difficulty": 3,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_CAMOUFLAGE_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( ( (u_spell_level('photokinetic_camouflage') + u_spell_level('photokinetic_camouflage_knack') ) * 4800) + 69000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( ( (u_spell_level('photokinetic_camouflage') + u_spell_level('photokinetic_camouflage_knack') ) * 11300) + 143000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokin_camouflage') > -1 ? 0 : max((3500 - ( (u_spell_level('photokinetic_camouflage') + u_spell_level('photokinetic_camouflage_knack') ) * 75)), 1500)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokin_camouflage') > -1 ? 10 : max((150 -( (u_spell_level('photokinetic_camouflage') + u_spell_level('photokinetic_camouflage_knack') ) * 8)), 75)"
      ]
    }
  },
  {
    "id": "photokinetic_rad_immunity",
    "type": "SPELL",
    "name": "[Ψ]Lucent Barrier (C)",
    "description": "Create a barrier of light around yourself to protect against radiation and light damage.\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": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "RANDOM_DURATION", "NO_EXPLOSION_SFX" ],
    "difficulty": 3,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_RAD_IMMUNITY_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( (u_spell_level('photokinetic_rad_immunity') * 1800) + 37000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( (u_spell_level('photokinetic_rad_immunity') * 18200) + 81000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokin_light_barrier') > -1 ? 0 : max((3000 - (u_spell_level('photokinetic_rad_immunity') * 125)), 800)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokin_light_barrier') > -1 ? 10 : max((250 -(u_spell_level('photokinetic_rad_immunity') * 4.5)), 100)"
      ]
    }
  },
  {
    "id": "photokinetic_light_arms",
    "type": "SPELL",
    "name": "[Ψ]Refracted Arms",
    "description": "Create the illusion of extra arms and wielded items to trick your enemies, forcing them off balance and rendering them open to attack.",
    "message": "Light around your arms shimmers and refracts, creating the illusion of multiple arms.",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 4,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "effect_str": "effect_photokin_arms",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( (u_spell_level('photokinetic_light_arms') * 800) + 2600) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( (u_spell_level('photokinetic_light_arms') * 4100) + 7100) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": 4000,
    "final_energy_cost": 1500,
    "energy_increment": -125,
    "base_casting_time": 125,
    "final_casting_time": 25,
    "casting_time_increment": -7
  },
  {
    "id": "photokinetic_hide_ugly",
    "type": "SPELL",
    "name": "[Ψ]Mirror-Mask (C)",
    "description": "Hide your true form behind unassuming illusions, preventing baseline humans from reacting poorly to your presence if you are mutated or a cyborg.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.  It is <color_red>canceled by engaging in combat</color>.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "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_PHOTOKIN_HIDE_UGLY_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( ( (u_spell_level('photokinetic_hide_ugly') + u_spell_level('photokinetic_hide_ugly_knack') ) * 2250) + 45000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( ( (u_spell_level('photokinetic_hide_ugly') + u_spell_level('photokinetic_hide_ugly_knack') ) * 5500) + 89000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokin_hide_ugly') > -1 ? 0 : max( (6500 - ( (u_spell_level('photokinetic_hide_ugly') + u_spell_level('photokinetic_hide_ugly_knack') ) * 150) ), 2000)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokin_hide_ugly') > -1 ? 10 : max( (1500 - ( (u_spell_level('photokinetic_hide_ugly') + u_spell_level('photokinetic_hide_ugly_knack') ) * 75) ), 150)"
      ]
    }
  },
  {
    "id": "photokinetic_light_image",
    "type": "SPELL",
    "name": "[Ψ]Lucid Shadows",
    "description": "Form images of yourself to confuse and distract enemies.",
    "message": "Identical copies of you suddenly appear!",
    "teachable": false,
    "valid_targets": [ "ground", "hostile", "self", "ally" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION", "RANDOM_DAMAGE" ],
    "difficulty": 5,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "summon",
    "effect_str": "mon_photokin_image",
    "shape": "blast",
    "min_damage": 1,
    "max_damage": {
      "math": [
        " (u_spell_level('photokinetic_light_beam') / 3) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "min_duration": {
      "math": [
        "((u_spell_level('photokinetic_light_image') * 550) + 4840) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "((u_spell_level('photokinetic_light_image') * 1350) + 13650) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_light_image') * 0.8) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 40)"
      ]
    },
    "max_range": 40,
    "min_aoe": 3,
    "max_aoe": 3,
    "base_energy_cost": 4000,
    "final_energy_cost": 1750,
    "energy_increment": -145,
    "base_casting_time": 150,
    "final_casting_time": 90,
    "casting_time_increment": -4
  },
  {
    "id": "photokinetic_radio",
    "type": "SPELL",
    "name": "[Ψ]Radio Transception (C)",
    "description": "Attune your senses to radio waves, allowing you to listen to transmissions and send them yourself.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.  It is <color_red>canceled by engaging in combat</color>.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "RANDOM_DURATION", "NO_EXPLOSION_SFX" ],
    "difficulty": 5,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_RADIO_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( ( (u_spell_level('photokinetic_radio') + u_spell_level('photokinetic_radio_knack') ) * 12600) + 145600) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( ( (u_spell_level('photokinetic_radio') + u_spell_level('photokinetic_radio_knack') ) * 77200) + 522000) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokinetic_radio') > -1 ? 0 : max( (5000 - ( (u_spell_level('photokinetic_radio') + u_spell_level('photokinetic_radio_knack') ) * 100) ), 2250)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokinetic_radio') > -1 ? 10 : max( (250 - ( (u_spell_level('photokinetic_radio') + u_spell_level('photokinetic_radio_knack') ) * 10) ), 75)"
      ]
    }
  },
  {
    "id": "photokinetic_sterilize_food",
    "type": "SPELL",
    "name": "[Ψ]Gamma Sterilization",
    "description": "Use a focused emission of high-power radiation to eliminating microorganisms in food and allowing it to last much longer before rotting.  This power is <color_red>extremely taxing</color>.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "NO_HANDS", "NO_LEGS", "SILENT", "RANDOM_DAMAGE" ],
    "difficulty": 5,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKINETIC_STERILIZE_FOODS",
    "shape": "blast",
    "base_energy_cost": 7500,
    "final_energy_cost": 4000,
    "energy_increment": -200,
    "base_casting_time": 1500
  },
  {
    "id": "photokinetic_stun_robots",
    "type": "SPELL",
    "name": "[Ψ]Sensor Jamming",
    "description": "Unleash a localized burst of electromagnetic radiation, overloading any electronic sensory equipment in the area.",
    "message": "You unleash an electromagnetic wave!",
    "teachable": false,
    "valid_targets": [ "ground", "hostile" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "NO_HANDS", "NO_LEGS", "SILENT", "RANDOM_DAMAGE" ],
    "difficulty": 6,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "effect_str": "sensor_stun",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( (u_spell_level('photokinetic_stun_robots') * 200) + 75) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( (u_spell_level('photokinetic_stun_robots') * 300) + 150) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_stun_robots') * 0.8) + 3) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 50)"
      ]
    },
    "max_range": 50,
    "min_aoe": {
      "math": [
        "min( (( (u_spell_level('photokinetic_stun_robots') * 0.25) + 1) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 20)"
      ]
    },
    "max_aoe": {
      "math": [
        "min( (( (u_spell_level('photokinetic_stun_robots') * 0.25) + 1) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 20)"
      ]
    },
    "base_energy_cost": 6000,
    "final_energy_cost": 2200,
    "energy_increment": -150,
    "base_casting_time": 200,
    "final_casting_time": 80,
    "casting_time_increment": -9.5,
    "targeted_monster_species": [ "ROBOT", "ROBOT_FLYING", "CYBORG" ]
  },
  {
    "id": "photokinetic_invisibility",
    "type": "SPELL",
    "name": "[Ψ]Veil of Light (C)",
    "description": "Refract light around yourself to become invisible.  Moving too quickly has a chance to disrupt the effect, and attacking in melee will invariably do so.\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": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 6,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_INVISIBILITY_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( (u_spell_level('photokinetic_invisibility') * 600) + 1600) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( (u_spell_level('photokinetic_invisibility') * 2300) + 4200) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokin_invisibility') > -1 ? 0 : max((3500 - (u_spell_level('photokinetic_invisibility') * 125)), 1200)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokin_invisibility') > -1 ? 10 : max((150 -(u_spell_level('photokinetic_invisibility') * 6.5)), 35)"
      ]
    }
  },
  {
    "id": "photokinetic_light_flash",
    "type": "SPELL",
    "name": "[Ψ]Star Flash",
    "description": "Create a destructive flash of light in a line, damaging all targets caught in the beam.",
    "message": "You fire a searing wave of light!",
    "teachable": false,
    "valid_targets": [ "ground", "hostile" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "NO_HANDS", "NO_LEGS", "SILENT", "RANDOM_DAMAGE" ],
    "difficulty": 6,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "shape": "line",
    "min_damage": {
      "math": [
        "( (u_spell_level('photokinetic_light_flash') * 2.5) + 20) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_damage": {
      "math": [
        "( (u_spell_level('photokinetic_light_flash') * 6) + 54) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "damage_type": "psi_photokinetic_damage",
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_light_flash') * 0.6) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 50)"
      ]
    },
    "max_range": 50,
    "min_aoe": {
      "math": [
        "min( (( (u_spell_level('photokinetic_light_flash') * 0.3) + 1) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 20)"
      ]
    },
    "max_aoe": 20,
    "field_id": "fd_laser",
    "min_field_intensity": 2,
    "max_field_intensity": 3,
    "field_chance": 1,
    "base_energy_cost": 5500,
    "final_energy_cost": 2750,
    "energy_increment": -125,
    "base_casting_time": 135,
    "final_casting_time": 40,
    "casting_time_increment": -8.5
  },
  {
    "id": "photokinetic_blinding_glare",
    "type": "SPELL",
    "name": "[Ψ]Blinding Radiance (C)",
    "description": "You can emit so much light that anyone trying to attack you risks being blinded.\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": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 7,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_BLINDING_GLARE_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( (u_spell_level('photokinetic_blinding_glare') * 1100) + 5900) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( (u_spell_level('photokinetic_blinding_glare') * 4700) + 17800) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokin_blinding_glare') > -1 ? 0 : max((6500 - (u_spell_level('photokinetic_blinding_glare') * 95)), 3250)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokin_blinding_glare') > -1 ? 10 : max((125 -(u_spell_level('photokinetic_blinding_glare') * 7.5)), 25)"
      ]
    }
  },
  {
    "id": "photokinetic_light_disintegrate",
    "type": "SPELL",
    "name": "[Ψ]Luminous Disintegration",
    "description": "Concentrate a massive amount of light into a single target, causing it to disintegrate.",
    "message": "You focus a pointpoint burst of light on your target!",
    "teachable": false,
    "valid_targets": [ "hostile" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "NO_HANDS", "NO_LEGS", "SILENT", "RANDOM_DAMAGE" ],
    "difficulty": 8,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "attack",
    "shape": "blast",
    "min_damage": {
      "math": [
        "( (u_spell_level('photokinetic_light_disintegrate') * 5.5) + 45) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_damage": {
      "math": [
        "( (u_spell_level('photokinetic_light_disintegrate') * 17) + 135) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
      ]
    },
    "damage_type": "psi_photokinetic_damage",
    "min_range": {
      "math": [
        "min( (( (u_spell_level('photokinetic_light_disintegrate') * 0.8) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 50)"
      ]
    },
    "max_range": 50,
    "base_energy_cost": 8000,
    "final_energy_cost": 4000,
    "energy_increment": -150,
    "base_casting_time": 200,
    "final_casting_time": 50,
    "casting_time_increment": -10
  },
  {
    "id": "photokinetic_light_army",
    "type": "SPELL",
    "name": "[Ψ]Phantom Legion (C)",
    "description": "Create a myriad of illusions around yourself to mislead and confuse your enemies.  The illusions will explode into blinding flashes if damaged.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.  It requires <color_yellow>even more concentration</color> than usual.  Concentration will <color_green>automatically end</color> if all illusions are destroyed.",
    "message": "",
    "teachable": false,
    "valid_targets": [ "self" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "difficulty": 9,
    "max_level": { "math": [ "int_to_level(1)" ] },
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_LIGHT_ARMY_INITIATE",
    "shape": "blast",
    "min_duration": {
      "math": [
        "( ( u_spell_level('photokinetic_light_army') * 450) + 3740) * scaling_factor(u_val('intelligence') ) * u_nether_attunement_power_scaling"
      ]
    },
    "max_duration": {
      "math": [
        "( ( u_spell_level('photokinetic_light_army') * 1100) + 9650) * scaling_factor(u_val('intelligence') ) * u_nether_attunement_power_scaling"
      ]
    },
    "base_energy_cost": {
      "math": [
        "u_effect_intensity('effect_photokin_light_army') > -1 ? 0 : max((10000 - (u_spell_level('photokinetic_light_army') * 255)), 5500)"
      ]
    },
    "base_casting_time": {
      "math": [
        "u_effect_intensity('effect_photokin_light_army') > -1 ? 10 : max((150 -(u_spell_level('photokinetic_light_army') * 4)), 90)"
      ]
    }
  },
  {
    "id": "photokinetic_light_army_remove",
    "type": "SPELL",
    "name": { "str": "[Ψ]Phantom Legion Destruction", "//~": "NO_I18N" },
    "description": { "str": "Removes all remaining illusions when the power ends.", "//~": "NO_I18N" },
    "message": "",
    "teachable": false,
    "valid_targets": [ "ground", "hostile", "ally" ],
    "spell_class": "PHOTOKINETIC",
    "magic_type": "mom_psionics",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "IGNORE_WALLS" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_PHOTOKIN_LIGHT_ARMY_DISAPPEAR_MONSTERS",
    "shape": "blast",
    "min_aoe": 70,
    "max_aoe": 70,
    "targeted_monster_ids": [ "mon_photokin_army_image" ]
  }
]
