[
  {
    "id": "gravitymage_graviton_damage",
    "type": "SPELL",
    "name": { "str": "Graviton Polarization Damage", "//~": "NO_I18N" },
    "description": { "str": "Handles the damage part of Graviton Polarization - if you see this, something went wrong.", "//~": "NO_I18N" },
    "valid_targets": [ "self", "ally", "hostile", "ground" ],
    "effect": "attack",
    "shape": "blast",
    "max_level": 35,
    "min_damage": { "math": [ "(u_spell_level('gravitymage_graviton') * 0.4) + 10" ] },
    "max_damage": { "math": [ "(u_spell_level('gravitymage_graviton') * 0.7) + 17" ] },
    "damage_type": "gravity",
    "min_aoe": 2,
    "max_aoe": 7,
    "aoe_increment": 0.2,
    "min_range": 5,
    "max_range": 17,
    "range_increment": 0.5,
    "flags": [ "EVOCATION_SPELL", "RANDOM_DAMAGE", "LOUD", "SPLIT_DAMAGE" ]
  },
  {
    "id": "gravitymage_graviton",
    "type": "SPELL",
    "spell_class": "GRAVITY_MAGE",
    "name": "Graviton Polarization",
    "description": "Changes and amplifies gravitational pull towards a point you choose, even through walls.  Pulls in items and deals bashing damage in its center.",
    "valid_targets": [ "self", "ally", "hostile", "ground", "item", "field" ],
    "effect": "area_pull",
    "shape": "blast",
    "base_casting_time": 600,
    "base_energy_cost": 450,
    "magic_type": "magiclysm_generic_magic",
    "difficulty": 10,
    "max_level": 35,
    "min_damage": { "math": [ "(u_spell_level('gravitymage_graviton') * 0.4) + 10" ] },
    "max_damage": { "math": [ "(u_spell_level('gravitymage_graviton') * 0.7) + 17" ] },
    "damage_type": "bash",
    "min_aoe": 4,
    "max_aoe": 9,
    "aoe_increment": 0.2,
    "min_range": 5,
    "max_range": 17,
    "range_increment": 0.5,
    "extra_effects": [
      { "id": "gravitymage_graviton_damage" },
      { "id": "gravitymage_graviton_centerdamage" },
      { "id": "eoc_evocation_setup", "hit_self": true }
    ],
    "flags": [
      "EVOCATION_SPELL",
      "SOMATIC",
      "VERBAL",
      "RANDOM_DAMAGE",
      "CONCENTRATE",
      "NO_PROJECTILE",
      "IGNORE_WALLS",
      "LOUD",
      "MUST_HAVE_CLASS_TO_LEARN",
      "SPLIT_DAMAGE"
    ],
    "sound_description": "a crack"
  },
  {
    "id": "gravitymage_graviton_centerdamage",
    "type": "SPELL",
    "name": { "str": "Graviton Polarization Center Damage", "//~": "NO_I18N" },
    "description": { "str": "Handles damage in the extreme center of the Graviton.", "//~": "NO_I18N" },
    "valid_targets": [ "self", "ally", "hostile", "ground" ],
    "effect": "attack",
    "shape": "blast",
    "max_level": 35,
    "min_damage": { "math": [ "(u_spell_level('gravitymage_graviton') * 0.8) + 14" ] },
    "max_damage": { "math": [ "(u_spell_level('gravitymage_graviton') * 1.5) + 26" ] },
    "damage_type": "gravity",
    "min_aoe": 0,
    "max_aoe": 2,
    "aoe_increment": 0.06,
    "min_range": 5,
    "max_range": 17,
    "range_increment": 0.5,
    "flags": [ "EVOCATION_SPELL", "RANDOM_DAMAGE", "LOUD", "SPLIT_DAMAGE" ]
  },
  {
    "type": "SPELL",
    "id": "gravity_mage_leap",
    "name": "Gravity Leap",
    "description": "Decrease your weight to a minimum, and use a mana flow to jump to your enemies from a long distance.",
    "valid_targets": [ "ground" ],
    "flags": [ "CONVEYANCE_SPELL", "RANDOM_DAMAGE", "SILENT", "NO_LEGS", "NO_HANDS", "MUST_HAVE_CLASS_TO_LEARN" ],
    "extra_effects": [ { "id": "eoc_conveyance_setup", "hit_self": true } ],
    "effect": "dash",
    "shape": "cone",
    "damage_type": "bash",
    "min_range": 4,
    "max_range": 21,
    "range_increment": 0.5,
    "spell_class": "GRAVITY_MAGE",
    "difficulty": 5,
    "base_casting_time": 400,
    "final_casting_time": 50,
    "casting_time_increment": -10,
    "base_energy_cost": 200,
    "final_energy_cost": 50,
    "energy_increment": -4.5,
    "max_level": 35,
    "magic_type": "magiclysm_generic_magic"
  },
  {
    "id": "gravity_mage_melee",
    "type": "SPELL",
    "name": "Tactile Telekinesis",
    "description": "When you make contact with an object, it's way easier to manipulate its gravity.  Control gravity around yourself to change your inertia in order to make quick but heavy attacks.",
    "valid_targets": [ "self" ],
    "effect": "attack",
    "effect_str": "gravity_mage_melee",
    "shape": "blast",
    "flags": [ "ENHANCEMENT_SPELL", "NO_LEGS", "SILENT", "NO_EXPLOSION_SFX", "MUST_HAVE_CLASS_TO_LEARN" ],
    "extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
    "spell_class": "GRAVITY_MAGE",
    "magic_type": "magiclysm_generic_magic",
    "difficulty": 7,
    "base_casting_time": 500,
    "final_casting_time": 150,
    "casting_time_increment": -10,
    "base_energy_cost": 500,
    "final_energy_cost": 150,
    "energy_increment": -10,
    "max_level": 35,
    "min_duration": 20000,
    "max_duration": 720000,
    "duration_increment": 20000
  },
  {
    "id": "gravity_mage_melee",
    "type": "effect_type",
    "name": [ "Gravity Control" ],
    "desc": [ "Decreases mass of weapon on swing, increases the gravity on attack." ],
    "remove_message": "You cease your control over gravity.",
    "rating": "good",
    "show_intensity": false,
    "enchantments": [
      {
        "values": [
          { "value": "ATTACK_SPEED", "add": -30 },
          { "value": "BONUS_BLOCK", "add": 2 },
          { "value": "MELEE_DAMAGE", "multiply": 1 }
        ]
      }
    ]
  }
]
