[
  {
    "id": "night_sight",
    "type": "SPELL",
    "name": "Night Sight",
    "description": "Gives you the power to see in the dark.",
    "message": "Your eyes glow lavender for a moment.  Now your sight can pierce the darkest shadows.",
    "valid_targets": [ "self" ],
    "effect": "attack",
    "effect_str": "night_sight",
    "skill": "deduction",
    "shape": "blast",
    "base_casting_time": 2000,
    "base_energy_cost": 1200,
    "energy_source": "MANA",
    "difficulty": 6,
    "max_level": 20,
    "min_duration": { "math": [ "spell_time(u_val('time: 3 m'))" ] },
    "max_duration": { "math": [ "spell_time(u_val('time: 3 h'))" ] },
    "duration_increment": { "math": [ "spell_time(u_val('time: 3 m'))" ] }
  },
  {
    "id": "dread_weight",
    "type": "SPELL",
    "name": "Weight of Dread",
    "description": "Everything around you faces an existential crisis and moves slower as a result.  Including things that you wouldn't expect to suffer from existential crises, like the undead.  The air around the targets' extremities chills dramatically.  Higher levels allow a bigger AoE, and longer effect.",
    "effect": "attack",
    "effect_str": "effect_dread_weight",
    "skill": "deduction",
    "shape": "blast",
    "affected_body_parts": [ "foot_l", "foot_r", "arm_l", "arm_r" ],
    "valid_targets": [ "hostile" ],
    "max_level": 20,
    "min_damage": 10,
    "max_damage": 30,
    "damage_increment": 1.0,
    "min_aoe": 2,
    "max_aoe": 20,
    "aoe_increment": 0.9,
    "min_range": 5,
    "max_range": 20,
    "range_increment": 2.0,
    "min_duration": 1000,
    "max_duration": 5000,
    "duration_increment": 200,
    "spell_class": "NONE",
    "flags": [ "SOMATIC", "NO_PROJECTILE" ],
    "base_casting_time": 200,
    "base_energy_cost": 400,
    "energy_source": "MANA",
    "difficulty": 3,
    "damage_type": "cold"
  },
  {
    "id": "blur",
    "type": "SPELL",
    "name": "Blur",
    "description": "The edges of your form seem to blur and distort, increasing the amount of attacks you might dodge in a given turn.",
    "valid_targets": [ "self" ],
    "effect": "spawn_item",
    "effect_str": "blurred_aura",
    "skill": "deduction",
    "shape": "blast",
    "energy_source": "MANA",
    "spell_class": "NONE",
    "flags": [ "NO_LEGS" ],
    "difficulty": 4,
    "max_level": 15,
    "base_casting_time": 200,
    "base_energy_cost": 400,
    "min_duration": 21000,
    "max_duration": 90000,
    "duration_increment": 4600
  },
  {
    "id": "damage_transfer",
    "type": "SPELL",
    "name": "Damage Transfer",
    "description": "Allows you to move some damage from your body to someone else.  Usually people don't like it, but who cares now?",
    "//": "deal damage, give heal. nothing special.",
    "valid_targets": [ "hostile" ],
    "flags": [ "SOMATIC", "SILENT", "NO_PROJECTILE" ],
    "skill": "deduction",
    "effect": "attack",
    "shape": "blast",
    "damage_type": "bash",
    "min_damage": 5,
    "max_damage": 25,
    "damage_increment": 1,
    "min_range": 1,
    "max_range": 1,
    "max_level": 20,
    "difficulty": 6,
    "base_casting_time": 200,
    "energy_source": "MANA",
    "base_energy_cost": 600,
    "extra_effects": [ { "id": "damage_transfer_heal", "hit_self": true } ]
  },
  {
    "id": "damage_transfer_heal",
    "type": "SPELL",
    "name": "Damage Transfer Heal",
    "description": "A spell that will heal you for a bit.  You can see it only in debug mode.",
    "valid_targets": [ "self" ],
    "flags": [ "SILENT" ],
    "effect": "attack",
    "shape": "blast",
    "min_damage": -2,
    "max_damage": -12,
    "damage_increment": -0.5,
    "max_level": 20
  },
  {
    "id": "fire_teleport",
    "type": "SPELL",
    "name": "Pyroportation",
    "description": "Transports you from one place to another, creating a huge fire explosion in the end.",
    "effect": "short_range_teleport",
    "shape": "blast",
    "valid_targets": [ "ground" ],
    "flags": [ "SOMATIC", "SILENT", "NO_LEGS", "TARGET_TELEPORT" ],
    "skill": "deduction",
    "min_range": 4,
    "max_range": 12,
    "range_increment": 0.3,
    "min_aoe": 6,
    "max_aoe": 3,
    "aoe_increment": -0.1,
    "max_level": 30,
    "difficulty": 5,
    "base_casting_time": 300,
    "energy_source": "MANA",
    "base_energy_cost": 900,
    "energy_increment": -10,
    "final_energy_cost": 600,
    "extra_effects": [ { "id": "fire_teleport_explosion", "hit_self": true } ]
  },
  {
    "id": "fire_teleport_explosion",
    "type": "SPELL",
    "name": "Pyroportation Explosion",
    "description": "Makes a pretty big fire explosion around you.",
    "effect": "attack",
    "shape": "blast",
    "valid_targets": [ "hostile", "ground" ],
    "flags": [ "IGNITE_FLAMMABLE", "LOUD" ],
    "max_level": 30,
    "min_damage": 30,
    "max_damage": 80,
    "damage_increment": 1.7,
    "min_aoe": 3,
    "max_aoe": 6,
    "aoe_increment": 0.1,
    "damage_type": "heat"
  }
]
