[
  {
    "id": "light_healing",
    "type": "SPELL",
    "name": "Cure Light Wounds",
    "description": "Heals a little bit of damage on the target.",
    "valid_targets": [ "self", "ally" ],
    "min_damage": -5,
    "max_damage": -20,
    "damage_increment": -1.0,
    "max_level": 15,
    "min_range": 0,
    "max_range": 4,
    "range_increment": 0.75,
    "effect": "attack",
    "shape": "blast",
    "base_casting_time": 300,
    "base_energy_cost": 800,
    "flags": [ "SOMATIC", "VERBAL", "NO_PROJECTILE" ],
    "spell_class": "BIOMANCER",
    "difficulty": 2,
    "energy_source": "MANA"
  },
  {
    "id": "pain_split",
    "type": "SPELL",
    "name": "Pain Split",
    "description": "Evens out damage among your limbs.",
    "valid_targets": [ "self" ],
    "effect": "pain_split",
    "shape": "blast",
    "base_casting_time": 100,
    "base_energy_cost": 800,
    "energy_source": "MANA",
    "flags": [ "SOMATIC", "NO_LEGS", "CONCENTRATE" ],
    "spell_class": "BIOMANCER",
    "difficulty": 4,
    "max_level": 1
  },
  {
    "id": "vicious_tentacle",
    "type": "SPELL",
    "name": "Vicious Tentacle",
    "description": "This spell extrudes a long nasty whiplike tentacle of sharp bones and oozing acid from your body, it has a long reach attack and vicious damage.",
    "valid_targets": [ "self" ],
    "min_damage": 1,
    "max_damage": 1,
    "effect": "spawn_item",
    "effect_str": "tentacle_whip",
    "shape": "blast",
    "base_casting_time": 250,
    "base_energy_cost": 550,
    "min_duration": 24000,
    "max_duration": 360000,
    "duration_increment": 24000,
    "difficulty": 6,
    "max_level": 15,
    "flags": [ "SOMATIC", "LOUD" ],
    "spell_class": "BIOMANCER",
    "learn_spells": { "vicious_tentacle_plus": 15 },
    "energy_source": "MANA"
  },
  {
    "id": "vicious_tentacle_plus",
    "type": "SPELL",
    "name": "Evolved Vicious Tentacle",
    "description": "This spell extrudes a long nasty whiplike tentacle of sharp bones and oozing acid from your body, it has a long reach attack and vicious damage.  Now you know this spell like the back of your hand, and start to design your own version.",
    "valid_targets": [ "self" ],
    "min_damage": 1,
    "max_damage": 1,
    "effect": "spawn_item",
    "effect_str": "tentacle_whip",
    "shape": "blast",
    "base_casting_time": 250,
    "final_casting_time": 100,
    "casting_time_increment": -6,
    "base_energy_cost": 550,
    "final_energy_cost": 200,
    "energy_increment": -14,
    "min_duration": 360000,
    "max_duration": 2160000,
    "duration_increment": 72000,
    "difficulty": 7,
    "max_level": 25,
    "flags": [ "LOUD" ],
    "spell_class": "BIOMANCER",
    "energy_source": "MANA"
  },
  {
    "id": "bio_grotesque",
    "type": "SPELL",
    "name": "Grotesque Enhancement",
    "description": "A spell that warps your body in alien ways to increase your physical abilities and strength.",
    "valid_targets": [ "self" ],
    "effect": "attack",
    "effect_str": "bio_boost",
    "shape": "blast",
    "base_casting_time": 100,
    "casting_time_increment": -2.5,
    "final_casting_time": 50,
    "base_energy_cost": 250,
    "energy_increment": -5.0,
    "final_energy_cost": 150,
    "energy_source": "MANA",
    "spell_class": "BIOMANCER",
    "difficulty": 6,
    "max_level": 20,
    "flags": [ "SOMATIC", "LOUD" ],
    "//": "duration is in moves",
    "min_duration": 6000,
    "max_duration": 60000,
    "duration_increment": 2700
  },
  {
    "id": "bio_acidicspray",
    "type": "SPELL",
    "name": { "str": "Acidic Spray" },
    "description": "When cast, the mage opens his mouth and sprays acid in a wide cone to dissolve his foes into goo.  Just imagine what he'll do with the goo.",
    "valid_targets": [ "ally", "hostile", "ground" ],
    "effect": "attack",
    "effect_str": "bio_acidburn",
    "shape": "cone",
    "base_casting_time": 200,
    "base_energy_cost": 200,
    "energy_source": "MANA",
    "spell_class": "BIOMANCER",
    "difficulty": 2,
    "max_level": 20,
    "min_damage": 8,
    "max_damage": 65,
    "damage_increment": 4.0,
    "damage_type": "acid",
    "min_range": 3,
    "max_range": 5,
    "flags": [ "VERBAL", "NO_HANDS" ],
    "range_increment": 0.25,
    "min_aoe": 25,
    "max_aoe": 60,
    "aoe_increment": 5.0
  },
  {
    "id": "bio_fleshpouch",
    "type": "SPELL",
    "name": "Flesh Pouch",
    "description": "This spell grows a large pouch out of your skin on your back, allowing you to store your gear in it.",
    "valid_targets": [ "none" ],
    "min_damage": 1,
    "max_damage": 1,
    "effect": "spawn_item",
    "effect_str": "fleshpouch",
    "shape": "blast",
    "base_casting_time": 250,
    "base_energy_cost": 300,
    "min_duration": 360000,
    "max_duration": 9000000,
    "duration_increment": 360000,
    "difficulty": 4,
    "max_level": 20,
    "flags": [ "NO_HANDS", "NO_LEGS", "SOMATIC" ],
    "spell_class": "BIOMANCER",
    "energy_source": "MANA"
  },
  {
    "id": "bio_bonespear",
    "type": "SPELL",
    "name": "Conjure Bonespear",
    "description": "This spell creates a long shaft of bone with a wicked point and blades along its length.",
    "valid_targets": [ "self" ],
    "min_damage": 1,
    "max_damage": 1,
    "effect": "spawn_item",
    "effect_str": "bonespear",
    "shape": "blast",
    "base_casting_time": 300,
    "base_energy_cost": 350,
    "min_duration": 24000,
    "max_duration": 360000,
    "duration_increment": 24000,
    "difficulty": 8,
    "max_level": 15,
    "flags": [ "LOUD", "SOMATIC" ],
    "spell_class": "BIOMANCER",
    "learn_spells": { "bio_bonespear_plus": 15 },
    "energy_source": "MANA"
  },
  {
    "id": "bio_bonespear_plus",
    "type": "SPELL",
    "name": "Evolved Conjure Bonespear",
    "description": "This spell creates a long shaft of bone with a wicked point and blades along its length.  Now you know this spell like the back of your hand, and start to design your own version.",
    "valid_targets": [ "self" ],
    "min_damage": 1,
    "max_damage": 1,
    "effect": "spawn_item",
    "effect_str": "bonespear",
    "shape": "blast",
    "base_casting_time": 300,
    "final_casting_time": 100,
    "casting_time_increment": -8,
    "base_energy_cost": 350,
    "final_energy_cost": 100,
    "energy_increment": -0.2,
    "min_duration": 360000,
    "max_duration": 2160000,
    "duration_increment": 72000,
    "difficulty": 9,
    "max_level": 25,
    "flags": [ "LOUD" ],
    "spell_class": "BIOMANCER",
    "energy_source": "MANA"
  },
  {
    "id": "create_rune_biomancer",
    "type": "SPELL",
    "name": { "str": "Biomancer Rune" },
    "description": "This ritual creates a small pebble attuned to Biomancers.  You can use the rune as a catalyst for recipes.",
    "valid_targets": [ "self" ],
    "min_damage": 1,
    "max_damage": 1,
    "effect": "spawn_item",
    "effect_str": "rune_biomancer",
    "shape": "blast",
    "base_casting_time": 5000,
    "base_energy_cost": 5,
    "min_duration": 1,
    "max_duration": 2,
    "duration_increment": 1,
    "difficulty": 0,
    "max_level": 0,
    "spell_class": "BIOMANCER",
    "energy_source": "MANA",
    "flags": [ "PERMANENT", "NO_LEGS", "CONCENTRATE" ]
  },
  {
    "id": "biomancer_paralytic_dart",
    "type": "SPELL",
    "name": "Paralytic Dart",
    "description": "Spits a warped needle of sinew and bone, carrying with it a sting that slows your victim.",
    "valid_targets": [ "ally", "hostile" ],
    "effect": "attack",
    "effect_str": "biomancer_dart_venom",
    "shape": "blast",
    "flags": [ "VERBAL", "NO_HANDS" ],
    "spell_class": "BIOMANCER",
    "energy_source": "MANA",
    "difficulty": 3,
    "base_casting_time": 100,
    "base_energy_cost": 80,
    "max_level": 15,
    "min_damage": 4,
    "max_damage": 28,
    "damage_increment": 1.6,
    "damage_type": "stab",
    "min_range": 3,
    "max_range": 9,
    "range_increment": 0.4,
    "min_duration": 1200,
    "max_duration": 12000,
    "duration_increment": 720
  },
  {
    "id": "biomancer_visceral_projection",
    "type": "SPELL",
    "name": "Visceral Projection",
    "description": "Projects a spray of acrid blood and gore all around you, growing to ensnare your prey in a field of twitching poisonous tendrils.",
    "valid_targets": [ "ally", "hostile", "ground" ],
    "effect": "attack",
    "effect_str": "badpoison",
    "shape": "blast",
    "extra_effects": [ { "id": "biomancer_visceral_paralyze" }, { "id": "biomancer_visceral_backlash", "hit_self": true } ],
    "flags": [ "VERBAL", "NO_HANDS" ],
    "spell_class": "BIOMANCER",
    "energy_source": "MANA",
    "difficulty": 4,
    "base_casting_time": 200,
    "base_energy_cost": 150,
    "max_level": 20,
    "min_damage": 1,
    "max_damage": 10,
    "damage_increment": 0.45,
    "damage_type": "biological",
    "min_aoe": 2,
    "max_aoe": 6,
    "aoe_increment": 0.2,
    "field_id": "fd_blood",
    "field_chance": 1,
    "min_field_intensity": 1,
    "max_field_intensity": 3,
    "field_intensity_increment": 0.1
  },
  {
    "id": "biomancer_visceral_paralyze",
    "type": "SPELL",
    "name": "Visceral Paralysis",
    "description": "Paralytic side effect of Projection.",
    "valid_targets": [ "ally", "hostile" ],
    "effect": "attack",
    "effect_str": "biomancer_dart_venom",
    "shape": "blast",
    "flags": [ "SILENT" ],
    "max_level": 20,
    "min_aoe": 2,
    "max_aoe": 6,
    "aoe_increment": 0.2,
    "min_duration": 6000,
    "max_duration": 18000,
    "duration_increment": 450,
    "field_id": "fd_gibs_flesh",
    "field_chance": 1,
    "min_field_intensity": 1,
    "max_field_intensity": 3,
    "field_intensity_increment": 0.1
  },
  {
    "id": "biomancer_visceral_backlash",
    "type": "SPELL",
    "name": "Visceral Backlash",
    "description": "Hits the user with side effects too.",
    "valid_targets": [ "self" ],
    "effect": "attack",
    "effect_str": "biomancer_visceral_side_effects",
    "shape": "blast",
    "flags": [ "VERBAL" ],
    "min_duration": 600,
    "max_duration": 600
  },
  {
    "id": "biomancer_coagulant_weave",
    "type": "SPELL",
    "name": "Coagulant Weave",
    "description": "Turns your biological mastery inwards, medically enhancing your flesh.  Rather than strength of healing, it staves off blood loss and purges wounds before they can turn septic, at the cost of increased hunger and thirst.",
    "valid_targets": [ "self" ],
    "effect": "attack",
    "effect_str": "bio_weave",
    "shape": "blast",
    "flags": [ "SOMATIC", "VERBAL" ],
    "energy_source": "MANA",
    "spell_class": "BIOMANCER",
    "difficulty": 4,
    "base_casting_time": 200,
    "base_energy_cost": 100,
    "max_level": 20,
    "min_duration": 6000,
    "max_duration": 90000,
    "duration_increment": 4200
  },
  {
    "id": "corrosive_aura_spell",
    "type": "SPELL",
    "name": "Caustic Feedback",
    "description": "This is a sub-spell of the Caustic Aura spell.",
    "valid_targets": [ "hostile" ],
    "effect": "attack",
    "shape": "blast",
    "damage_type": "acid",
    "min_damage": 3,
    "max_damage": 3,
    "flags": [ "SILENT", "NO_PROJECTILE" ],
    "sound_type": "combat",
    "sound_description": "acidic sizzle!",
    "min_range": 2,
    "max_range": 2,
    "min_dot": 2,
    "max_dot": 2,
    "min_duration": 300,
    "max_duration": 300
  },
  {
    "id": "biomancer_caustic_aura",
    "type": "SPELL",
    "name": "Caustic Aura",
    "description": "This spell suspends acid in a layer around you, corroding melee attackers when struck and enhancing your melee damage.",
    "valid_targets": [ "self" ],
    "effect": "spawn_item",
    "effect_str": "aura_caustic",
    "shape": "blast",
    "flags": [ "SOMATIC", "CONCENTRATE" ],
    "components": "spell_components_causticaura",
    "energy_source": "MANA",
    "spell_class": "BIOMANCER",
    "difficulty": 4,
    "min_damage": 1,
    "max_damage": 1,
    "base_casting_time": 400,
    "base_energy_cost": 350,
    "max_level": 15,
    "min_range": 1,
    "max_range": 1,
    "min_duration": 24000,
    "max_duration": 360000,
    "duration_increment": 24000,
    "learn_spells": { "biomancer_caustic_aura_plus": 15 }
  },
  {
    "id": "biomancer_caustic_aura_plus",
    "type": "SPELL",
    "name": "Improved Caustic Aura",
    "description": "This spell suspends acid in a layer around you, corroding melee attackers when struck and enhancing your melee damage.  Now you know this spell like the back of your hand, and start to design your own version.",
    "valid_targets": [ "self" ],
    "effect": "spawn_item",
    "effect_str": "aura_caustic",
    "shape": "blast",
    "flags": [ "SOMATIC" ],
    "components": "spell_components_causticaura",
    "energy_source": "MANA",
    "spell_class": "BIOMANCER",
    "difficulty": 7,
    "min_damage": 1,
    "max_damage": 1,
    "base_casting_time": 400,
    "final_casting_time": 150,
    "casting_time_increment": -10,
    "base_energy_cost": 350,
    "final_energy_cost": 150,
    "energy_increment": -8,
    "max_level": 25,
    "min_range": 1,
    "max_range": 1,
    "min_duration": 360000,
    "max_duration": 2160000,
    "duration_increment": 72000
  },
  {
    "id": "biomancer_swim_frog",
    "type": "SPELL",
    "name": "Limbs of the Frog",
    "description": "Grow webbing on your hands and feet, making quick swimming a breeze.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_swim_speed",
    "shape": "blast",
    "difficulty": 4,
    "max_level": 10,
    "min_duration": 120000,
    "max_duration": 360000,
    "duration_increment": 24000,
    "energy_source": "MANA",
    "base_energy_cost": 300,
    "base_casting_time": 1000
  },
  {
    "id": "biomancer_giant_growth",
    "type": "SPELL",
    "name": "Giant Growth",
    "description": "Grow to enormous size.  Your clothing and equipment will not grow with you.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "VERBAL", "SOMATIC" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_GIANT_GROWTH_MUTATION",
    "shape": "blast",
    "difficulty": 6,
    "max_level": 15,
    "min_duration": 30000,
    "max_duration": 90000,
    "duration_increment": 4000,
    "energy_source": "MANA",
    "base_energy_cost": 550,
    "base_casting_time": 100
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_GIANT_GROWTH_MUTATION",
    "condition": { "and": [ { "not": { "u_has_trait": "HUGE" } }, { "not": { "u_has_trait": "HUGE_OK" } } ] },
    "effect": [
      { "u_message": "Your body swells and warps as your size increases!", "type": "good" },
      { "u_add_trait": "BIO_GIANT_GROWTH" },
      { "math": [ "u_val('stored_kcal')", "+=", "100000" ] },
      {
        "queue_eocs": "EOC_GIANT_GROWTH_MUTATION_REMOVE",
        "time_in_future": { "math": [ "(( u_spell_level('biomancer_giant_growth') * 40 ) + 300 )" ] }
      }
    ],
    "false_effect": [ { "u_message": "You are already enormous--the spell cannot make you any larger!" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_GIANT_GROWTH_MUTATION_REMOVE",
    "effect": [
      { "u_message": "Your body shrinks and warps as your size decreases!", "type": "bad" },
      { "u_lose_trait": "BIO_GIANT_GROWTH" },
      { "math": [ "u_val('stored_kcal')", "-=", "100000" ] }
    ]
  },
  {
    "id": "biomancer_remove_instability",
    "type": "SPELL",
    "name": "Restore Genetic Stability",
    "description": "The scroll said that this spell is for \"Curing the aftereffects of XE037 overexposure\", whatever that means.  According the scroll, the spell should be allowed to run its course before reapplication.",
    "valid_targets": [ "self", "ally" ],
    "spell_class": "BIOMANCER",
    "components": "spell_components_remove_instability",
    "flags": [ "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_remove_instability",
    "shape": "blast",
    "difficulty": 10,
    "max_level": 15,
    "energy_source": "MANA",
    "min_range": 1,
    "base_energy_cost": 1500,
    "base_casting_time": 180000,
    "min_duration": 4500000,
    "max_duration": 45000000,
    "duration_increment": 2700000
  },
  {
    "id": "biomancer_carrion_feast",
    "type": "SPELL",
    "name": "Carrion Feast",
    "description": "Alter your digestive system to consume rotten food with no ill effects.  This is either a truly ancient spell or otherwise must have been the product of some university thaumaturgical research department.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_carrion_feast",
    "shape": "blast",
    "difficulty": 3,
    "energy_source": "MANA",
    "max_level": 10,
    "min_duration": 6000,
    "max_duration": 36000,
    "duration_increment": 2800,
    "base_energy_cost": 250,
    "base_casting_time": 1500
  },
  {
    "id": "biomancer_lashing_tentacles",
    "type": "SPELL",
    "name": "Lashing Tentacles",
    "description": "Grow a pair of lashing tentacles from your shoulders.  While not as long as the Vicious Tentacle, they will strike anyone in melee with you.  You cannot wear rigid torso armor with them.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_LASHING_TENTACLES_MUTATION",
    "shape": "blast",
    "difficulty": 6,
    "max_level": 15,
    "min_duration": 7000,
    "max_duration": 30000,
    "duration_increment": 1533,
    "energy_source": "MANA",
    "base_energy_cost": 400,
    "base_casting_time": 500
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_LASHING_TENTACLES_MUTATION",
    "effect": [
      { "u_message": "Your shoulders itch before two barbed tentacles erupt from them!", "type": "good" },
      { "u_add_trait": "BIO_LASHING_TENTACLES" },
      {
        "queue_eocs": "EOC_LASHING_TENTACLES_MUTATION_REMOVE",
        "time_in_future": { "math": [ "(( u_spell_level('biomancer_lashing_tentacles') * 15 ) + 70 )" ] }
      }
    ],
    "false_effect": [ { "u_message": "You are already enormous--the spell cannot make you any larger!" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_LASHING_TENTACLES_MUTATION_REMOVE",
    "effect": [
      { "u_message": "The tentacles recede back into your body.", "type": "bad" },
      { "u_lose_trait": "BIO_LASHING_TENTACLES" }
    ]
  },
  {
    "id": "biomancer_cure_disease_minor",
    "type": "SPELL",
    "name": "Cure Disease, Minor",
    "description": "Cure any flu or common cold you might be suffering from.  This is one of the few biomantic cure spells that is castable on other people.",
    "valid_targets": [ "self", "ally" ],
    "spell_class": "BIOMANCER",
    "flags": [ "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_cure_disease_minor",
    "shape": "blast",
    "difficulty": 4,
    "max_level": 10,
    "min_duration": 100,
    "max_duration": 100,
    "min_range": 1,
    "max_range": 1,
    "energy_source": "MANA",
    "base_energy_cost": 350,
    "base_casting_time": 90000,
    "final_casting_time": 30000,
    "casting_time_increment": -6000
  }
]
