[
  {
    "id": "xe_vampire_blood_powers",
    "type": "magic_type",
    "energy_source": "NONE",
    "cannot_cast_flags": [ "NO_VAMPIRE_BLOOD_POWERS" ],
    "cannot_cast_message": "Your blood will not respond to you!",
    "failure_cost_percent": 0.75,
    "max_book_level": 0
  },
  {
    "type": "enchantment",
    "id": "ench_vampire_heightened_senses_hearing",
    "condition": "ALWAYS",
    "values": [
      {
        "value": "HEARING_MULT",
        "multiply": { "math": [ "0.25 + (u_has_trait('VAMPIRE2') * 0.25) + (u_has_trait('VAMPIRE3') * 0.5)" ] }
      }
    ]
  },
  {
    "type": "enchantment",
    "id": "ench_vampire_heightened_senses_perception",
    "condition": "ALWAYS",
    "values": [
      {
        "value": "PERCEPTION",
        "add": {
          "math": [
            "1 + (vampire_total_tier_one_traits() * 0.20) + (vampire_total_tier_two_traits() * 0.3) + (vampire_total_tier_three_traits() * 0.45) + (vampire_total_tier_four_traits_plus_potence() * 0.6)"
          ]
        }
      }
    ]
  },
  {
    "id": "vampire_smell_nearby_blood_spell",
    "type": "SPELL",
    "name": "Scent of Blood",
    "description": "You can smell even the faintest traces of living human, or nearly-human, blood.\n\n<color_light_red>Blood Cost:</color> 0 ml.",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_SCENT_BLOOD_activated",
    "shape": "blast",
    "valid_targets": [ "self" ],
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "base_casting_time": 25,
    "difficulty": 1
  },
  {
    "id": "vampire_drink_blood_with_fangs_spell",
    "type": "SPELL",
    "name": "Drink Blood",
    "description": "Your fangs allow you to drink blood from an incapacitated or sleeping target.",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_DRINK_BLOOD_WITH_FANGS_activated",
    "shape": "blast",
    "valid_targets": [ "ally", "hostile" ],
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "base_casting_time": 0,
    "difficulty": 1,
    "min_range": 1
  },
  {
    "id": "vampire_stamina_for_blood_spell",
    "type": "SPELL",
    "name": "Unholy Endurance",
    "description": "You focus on sending the blood in your veins to where it can do the most good for your immediate stamina.\n\n<color_light_red>Blood Cost:</color> 100 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "effect": "effect_on_condition",
    "effect_str": "EOC_STAMINAFORBLOOD_activated",
    "shape": "blast",
    "valid_targets": [ "self" ],
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "base_casting_time": 100,
    "difficulty": 5
  },
  {
    "id": "vampire_commune_with_night_spell",
    "type": "SPELL",
    "name": "Learn from the Children of the Night",
    "description": "Speak to nearby night-creatures; rats, bats, wolves, and so on.  They will tell you the layout of your surrounding area.\n\n<color_light_red>Blood Cost:</color> 100 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "effect": "effect_on_condition",
    "effect_str": "EOC_COMMUNE_NIGHT_MAP",
    "shape": "blast",
    "valid_targets": [ "self" ],
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "base_casting_time": 12000,
    "difficulty": 5
  },
  {
    "id": "vampire_magic_for_blood_spell",
    "type": "SPELL",
    "name": "Blood-Fueled Magic",
    "description": "You consume some of the blood in your veins, turning it into magical power.\n\n<color_light_red>Blood Cost:</color> 200 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "effect": "effect_on_condition",
    "effect_str": "EOC_MAGICFORBLOOD_activated",
    "shape": "blast",
    "valid_targets": [ "self" ],
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "base_casting_time": 100,
    "difficulty": 5
  },
  {
    "id": "spell_blood_heal",
    "type": "SPELL",
    "name": "Sanguine Restoration",
    "description": "Heal your wounds with the power of stolen blood.\n\n<color_light_red>Blood Cost:</color> 750 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "self" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_BLOODHEAL_activated",
    "shape": "blast",
    "base_casting_time": 20,
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "difficulty": 2
  },
  {
    "id": "vampire_fear_gaze_spell",
    "type": "SPELL",
    "name": { "str": "Predator's Mien" },
    "description": "With a bit of stolen blood and a savage expression, you can send your enemies fleeing.  This power only works on enemies capable of feeling fear.\n\n<color_light_red>Blood Cost:</color> 150 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_FEAR_GAZE_activated",
    "shape": "blast",
    "valid_targets": [ "ally", "hostile" ],
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL", "NO_PROJECTILE" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "min_range": {
      "math": [
        "min((3 + (vampire_total_tier_one_traits() * 0.2) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits() * 0.75)), 12)"
      ]
    },
    "max_range": {
      "math": [
        "min((3 + (vampire_total_tier_one_traits() * 0.2) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits() * 0.75)), 12)"
      ]
    },
    "ignored_monster_species": [ "ZOMBIE", "ROBOT", "ROBOT_FLYING", "NETHER", "NETHER_EMANATION", "LEECH_PLANT", "WORM", "FUNGUS", "SLIME" ]
  },
  {
    "id": "spell_hypnotic_gaze",
    "type": "SPELL",
    "name": "Hypnotic Gaze",
    "description": "Stare into the eyes of your victim and wills them to pause.  This power does not work on unliving targets.\n\n<color_light_red>Blood Cost:</color> 150 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "valid_targets": [ "ally", "hostile" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_HYPNOTIC_GAZE_activated",
    "shape": "blast",
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL", "NO_PROJECTILE" ],
    "difficulty": 3,
    "base_casting_time": 100,
    "min_range": {
      "math": [
        "min((3 + (vampire_total_tier_one_traits() * 0.2) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits() * 0.75)), 12)"
      ]
    },
    "max_range": {
      "math": [
        "min((3 + (vampire_total_tier_one_traits() * 0.2) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits() * 0.75)), 12)"
      ]
    },
    "ignored_monster_species": [ "ZOMBIE", "ROBOT", "ROBOT_FLYING", "NETHER", "NETHER_EMANATION", "LEECH_PLANT", "WORM", "FUNGUS", "SLIME" ]
  },
  {
    "id": "vampire_command_beast_spell",
    "type": "SPELL",
    "name": "Cowing the Beast",
    "description": "Exert command over a predatory wild animal like a wolf or a rat, making it your ally for a time.\n\n<color_light_red>Blood Cost:</color> 500 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "hostile" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_COMMAND_BEAST_activated",
    "shape": "blast",
    "base_casting_time": 75,
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "difficulty": 7,
    "min_range": {
      "math": [
        "min((3 + (vampire_total_tier_one_traits() * 0.2) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits() * 0.75)), 12)"
      ]
    },
    "max_range": {
      "math": [
        "min((3 + (vampire_total_tier_one_traits() * 0.2) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits() * 0.75)), 12)"
      ]
    },
    "targeted_monster_species": [ "NIGHT_CREATURE" ]
  },
  {
    "id": "vampire_command_beast_spell_real",
    "type": "SPELL",
    "name": { "str": "Cowing the Beast Real", "//~": "NO_I18N" },
    "description": { "str": "The actual power that lets you command a beast.  If you see this, it's a bug.", "//~": "NO_I18N" },
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "hostile" ],
    "effect": "charm_monster",
    "shape": "blast",
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "difficulty": 7,
    "max_level": 1,
    "min_range": 60,
    "max_range": 60,
    "min_damage": {
      "math": [
        "rng (0.75,1.25) * (50 + (vampire_total_tier_one_traits()  * 5) + (vampire_total_tier_two_traits() * 12) + (vampire_total_tier_three_traits() * 20) + (vampire_total_tier_three_traits() * 35))"
      ]
    },
    "max_damage": {
      "math": [
        "rng (0.75,1.25) * (50 + (vampire_total_tier_one_traits()  * 5) + (vampire_total_tier_two_traits() * 12) + (vampire_total_tier_three_traits() * 20) + (vampire_total_tier_three_traits() * 35))"
      ]
    },
    "min_duration": {
      "math": [
        "rng (0.75,1.25) * (6000 + (vampire_total_tier_one_traits()  * 1000) + (vampire_total_tier_two_traits() * 1800) + (vampire_total_tier_three_traits() * 2700) + (vampire_total_tier_three_traits() * 4500))"
      ]
    },
    "max_duration": {
      "math": [
        "rng (0.75,1.25) * (6000 + (vampire_total_tier_one_traits()  * 1000) + (vampire_total_tier_two_traits() * 1800) + (vampire_total_tier_three_traits() * 2700) + (vampire_total_tier_three_traits() * 4500))"
      ]
    }
  },
  {
    "id": "vampire_earth_slumber_spell",
    "type": "SPELL",
    "name": "Earthen Slumber",
    "description": "You can sleep within the earth itself, avoiding the hateful light of the sun.  This power must be used on diggable soil.\n\n<color_light_red>Blood Cost:</color> 0 ml.",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "self" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_EARTH_SLUMBER_activated",
    "shape": "blast",
    "base_casting_time": 150,
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "difficulty": 2
  },
  {
    "id": "vampire_torpor",
    "type": "SPELL",
    "name": "Torpor",
    "description": "Enter a deathlike slumber and recover from your wounds and fatigue.  Preferably while somewhere nobody could attack you while you sleep.",
    "message": "You enter torpor.",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "self" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_FAIL" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_TORPOR_activated",
    "shape": "blast",
    "base_casting_time": 100,
    "difficulty": 2
  },
  {
    "id": "vampire_dominate",
    "type": "SPELL",
    "name": "Dominating Gaze",
    "description": "Take control of a mind.  Only works on targets that have weak minds.\n\n<color_light_red>Blood Cost:</color> 700 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "You look for a mind to control.",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "hostile" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_FAIL" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_DOMINATE_activated",
    "shape": "blast",
    "base_casting_time": 100,
    "difficulty": 8,
    "min_range": {
      "math": [
        "min((3 + (vampire_total_tier_one_traits() * 0.2) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits() * 0.75)), 12)"
      ]
    },
    "max_range": {
      "math": [
        "min((3 + (vampire_total_tier_one_traits() * 0.2) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits() * 0.75)), 12)"
      ]
    },
    "targeted_monster_species": [ "HUMAN", "FERAL", "CYBORG" ]
  },
  {
    "id": "vampire_dominate_real",
    "type": "SPELL",
    "name": { "str": "Dominating Gaze real", "//~": "NO_I18N" },
    "description": { "str": "The actual power that lets you take over a mind.  If you see this, it's a bug.", "//~": "NO_I18N" },
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "hostile" ],
    "effect": "charm_monster",
    "shape": "blast",
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "skill": "deduction",
    "difficulty": 8,
    "max_level": 1,
    "min_range": 60,
    "max_range": 60,
    "min_damage": {
      "math": [
        "rng (0.75,1.25) * (20 + (vampire_total_tier_one_traits()  * 4) + (vampire_total_tier_two_traits() * 10) + (vampire_total_tier_three_traits() * 16) + (vampire_total_tier_four_traits() * 30))"
      ]
    },
    "max_damage": {
      "math": [
        "rng (0.75,1.25) * (20 + (vampire_total_tier_one_traits()  * 4) + (vampire_total_tier_two_traits() * 10) + (vampire_total_tier_three_traits() * 16) + (vampire_total_tier_four_traits() * 30))"
      ]
    },
    "min_duration": {
      "math": [
        "rng (0.75,1.25) * (2500 + (vampire_total_tier_one_traits()  * 400) + (vampire_total_tier_two_traits() * 800) + (vampire_total_tier_three_traits() * 1150) + (vampire_total_tier_four_traits() * 2050))"
      ]
    },
    "max_duration": {
      "math": [
        "rng (0.75,1.25) * (2500 + (vampire_total_tier_one_traits()  * 400) + (vampire_total_tier_two_traits() * 800) + (vampire_total_tier_three_traits() * 1150) + (vampire_total_tier_four_traits() * 2050))"
      ]
    },
    "targeted_monster_species": [ "HUMAN", "FERAL", "CYBORG" ]
  },
  {
    "id": "vampire_mist_form_pass_through_doors_and_windows",
    "type": "SPELL",
    "name": "(Mist Form) Pass Through Barrier",
    "description": "Seep through a door or a window.",
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "self" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_MIST_FORM_SEEP_THROUGH_DOOR_WINDOW",
    "shape": "blast",
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "skill": "deduction",
    "base_casting_time": 500
  },
  {
    "id": "vampire_summon_blood_container",
    "type": "SPELL",
    "name": "Create blood-storing sphere.",
    "description": "Create a magical sphere that will contain any blood you will put in it until the spell ends.",
    "message": "You conjure a magical sphere to store blood.",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "self" ],
    "effect": "spawn_item",
    "effect_str": "vampire_blood_ball",
    "shape": "blast",
    "base_casting_time": 75,
    "flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "difficulty": 0,
    "min_duration": 16640000,
    "base_energy_cost": 350,
    "energy_source": "MANA"
  },
  {
    "id": "vampire_invisible_in_dark",
    "type": "SPELL",
    "name": "Shrouded by the Shadowed Path.",
    "description": "Surround yourself in shadows, becoming invisible for a while.  This power will fail if you stand outside under the sun.\n\n<color_light_red>Blood Cost:</color> 300 ml (<u_val:blood_amount_for_graph> ml current).",
    "message": "You gather as many shadows as you can.",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "self" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_FAIL" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_VAMPIRE_INVISIBLE_IN_DARK",
    "shape": "blast",
    "difficulty": 5
  },
  {
    "id": "mentor_vanish",
    "type": "SPELL",
    "name": { "str": "Vanish in mist.", "//~": "NO_I18N" },
    "description": { "str": "Vanish in mist and stay away until things are better.  This will likely be forever.", "//~": "NO_I18N" },
    "message": "",
    "teachable": false,
    "magic_type": "xe_vampire_blood_powers",
    "valid_targets": [ "self" ],
    "skill": "deduction",
    "spell_class": "VAMPIRE_BLOOD_ARTS",
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_FAIL" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_MENTOR_VANISH",
    "shape": "blast",
    "difficulty": 0
  }
]
