[
  {
    "id": "biomantic_pain_caused_light",
    "type": "SPELL",
    "name": { "str": "Cause minor pain", "//~": "NO_I18N" },
    "description": { "str": "Causes a small amount of pain when certain spells are used.", "//~": "NO_I18N" },
    "valid_targets": [ "self" ],
    "effect": "recover_energy",
    "effect_str": "PAIN",
    "shape": "blast",
    "flags": [ "SILENT", "RANDOM_DAMAGE" ],
    "spell_class": "BIOMANCER",
    "min_damage": -1,
    "max_damage": -4
  },
  {
    "id": "light_healing",
    "type": "SPELL",
    "name": "Knit the Rent Flesh",
    "description": "Cause the target's wounds to writhe, the flesh to crawl back together, and their injuries to heal.  Disturbing, and painful, but effective.",
    "valid_targets": [ "self", "ally" ],
    "min_damage": { "math": [ "(u_spell_level('light_healing') * -0.5) - 1" ] },
    "max_damage": { "math": [ "(u_spell_level('light_healing') * -1.1) - 4" ] },
    "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,
    "extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
    "flags": [ "RESTORATION_SPELL", "RANDOM_DAMAGE", "SOMATIC", "VERBAL", "NO_PROJECTILE" ],
    "spell_class": "BIOMANCER",
    "difficulty": 2,
    "magic_type": "magiclysm_generic_magic"
  },
  {
    "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,
    "//": "This is transformation because it moves wounds around, it does not actually heal anything.",
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
    "magic_type": "magiclysm_generic_magic",
    "flags": [ "TRANSFORMATION_SPELL", "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 and nasty whiplike tentacle of sharp bones and oozing acid from your body, which 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,
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
    "difficulty": 6,
    "max_level": 15,
    "flags": [ "TRANSFORMATION_SPELL", "SOMATIC", "LOUD" ],
    "spell_class": "BIOMANCER",
    "learn_spells": { "vicious_tentacle_plus": 15 },
    "magic_type": "magiclysm_generic_magic"
  },
  {
    "id": "vicious_tentacle_plus",
    "type": "SPELL",
    "name": "Evolved Vicious Tentacle",
    "description": "This spell extrudes a long and nasty whiplike tentacle of sharp bones and oozing acid from your body, which 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,
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
    "difficulty": 7,
    "max_level": 25,
    "flags": [ "TRANSFORMATION_SPELL", "LOUD", "NO_FAIL" ],
    "spell_class": "BIOMANCER",
    "magic_type": "magiclysm_generic_magic"
  },
  {
    "id": "bio_grotesque",
    "type": "SPELL",
    "name": "Grotesque Enhancement",
    "description": "A spell that warps your body in foreign, unnatural 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,
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
    "base_energy_cost": 250,
    "energy_increment": -5.0,
    "final_energy_cost": 150,
    "magic_type": "magiclysm_generic_magic",
    "spell_class": "BIOMANCER",
    "difficulty": 6,
    "max_level": 20,
    "flags": [ "TRANSFORMATION_SPELL", "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,
    "magic_type": "magiclysm_generic_magic",
    "spell_class": "BIOMANCER",
    "difficulty": 2,
    "max_level": 20,
    "min_damage": { "math": [ "(u_spell_level('bio_acidicspray') * 1.5) + 0" ] },
    "max_damage": { "math": [ "(u_spell_level('bio_acidicspray') * 3) + 3" ] },
    "extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
    "damage_type": "acid",
    "min_range": 3,
    "max_range": 5,
    "flags": [ "EVOCATION_SPELL", "RANDOM_DAMAGE", "VERBAL", "NO_HANDS", "SPLIT_DAMAGE" ],
    "range_increment": 0.25,
    "min_aoe": 25,
    "max_aoe": 60,
    "aoe_increment": 5.0,
    "field_id": "fd_acid",
    "min_field_intensity": 1,
    "max_field_intensity": 3,
    "field_intensity_increment": 1,
    "field_chance": 3
  },
  {
    "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,
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
    "difficulty": 4,
    "max_level": 20,
    "flags": [ "TRANSFORMATION_SPELL", "NO_HANDS", "NO_LEGS", "SOMATIC" ],
    "spell_class": "BIOMANCER",
    "magic_type": "magiclysm_generic_magic"
  },
  {
    "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,
    "extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
    "difficulty": 8,
    "max_level": 15,
    "flags": [ "CONJURATION_SPELL", "LOUD", "SOMATIC" ],
    "spell_class": "BIOMANCER",
    "learn_spells": { "bio_bonespear_plus": 15 },
    "magic_type": "magiclysm_generic_magic"
  },
  {
    "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 have started 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": 21600000,
    "duration_increment": 72000,
    "extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
    "difficulty": 9,
    "max_level": 25,
    "flags": [ "CONJURATION_SPELL", "LOUD", "NO_FAIL" ],
    "spell_class": "BIOMANCER",
    "magic_type": "magiclysm_generic_magic"
  },
  {
    "id": "create_rune_biomancer",
    "type": "SPELL",
    "name": { "str": "Biomancer Rune" },
    "description": "This ritual grows a small nub of flesh on you, which quickly falls off and turns into a rune 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,
    "extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
    "base_energy_cost": 5,
    "min_duration": 1,
    "max_duration": 2,
    "duration_increment": 1,
    "difficulty": 0,
    "max_level": 0,
    "spell_class": "BIOMANCER",
    "magic_type": "magiclysm_generic_magic",
    "flags": [ "CHANNELING_SPELL", "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": [ "EVOCATION_SPELL", "RANDOM_DAMAGE", "VERBAL", "NO_HANDS" ],
    "spell_class": "BIOMANCER",
    "magic_type": "magiclysm_generic_magic",
    "difficulty": 3,
    "base_casting_time": 100,
    "base_energy_cost": 80,
    "max_level": 15,
    "min_damage": { "math": [ "(u_spell_level('biomancer_paralytic_dart') * 0.8) + 0" ] },
    "max_damage": { "math": [ "(u_spell_level('biomancer_paralytic_dart') * 1.3) + 4" ] },
    "extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
    "damage_type": "poison",
    "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 },
      { "id": "eoc_evocation_setup", "hit_self": true }
    ],
    "flags": [ "EVOCATION_SPELL", "RANDOM_DAMAGE", "VERBAL", "NO_HANDS", "SPLIT_DAMAGE" ],
    "spell_class": "BIOMANCER",
    "magic_type": "magiclysm_generic_magic",
    "difficulty": 4,
    "base_casting_time": 200,
    "base_energy_cost": 150,
    "max_level": 20,
    "min_damage": 1,
    "max_damage": 5,
    "damage_type": "poison",
    "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": { "str": "Visceral Paralysis", "//~": "NO_I18N" },
    "description": { "str": "Paralytic side effect of Projection.", "//~": "NO_I18N" },
    "valid_targets": [ "ally", "hostile" ],
    "effect": "attack",
    "effect_str": "biomancer_dart_venom",
    "shape": "blast",
    "flags": [ "EVOCATION_SPELL", "SILENT" ],
    "max_level": 20,
    "min_aoe": 2,
    "max_aoe": 6,
    "aoe_increment": 0.2,
    "min_duration": 6000,
    "max_duration": 18000,
    "duration_increment": 450,
    "extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
    "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": { "str": "Visceral Backlash", "//~": "NO_I18N" },
    "description": { "str": "Hits the user with side effects too.", "//~": "NO_I18N" },
    "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": [ "ENHANCEMENT_SPELL", "SOMATIC", "VERBAL" ],
    "magic_type": "magiclysm_generic_magic",
    "spell_class": "BIOMANCER",
    "difficulty": 4,
    "base_casting_time": 200,
    "extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
    "base_energy_cost": 100,
    "max_level": 20,
    "min_duration": 6000,
    "max_duration": 90000,
    "duration_increment": 4200
  },
  {
    "id": "corrosive_aura_spell",
    "type": "SPELL",
    "name": { "str": "Caustic Feedback", "//~": "NO_I18N" },
    "description": { "str": "This is a sub-spell of the Caustic Aura spell.", "//~": "NO_I18N" },
    "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,
    "field_id": "fd_acid",
    "min_field_intensity": 1,
    "max_field_intensity": 2,
    "field_intensity_increment": 1,
    "field_chance": 2
  },
  {
    "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": "attack",
    "effect_str": "effect_biomancer_aura_caustic",
    "shape": "blast",
    "flags": [ "ENHANCEMENT_SPELL", "SOMATIC", "CONCENTRATE" ],
    "components": "spell_components_causticaura",
    "magic_type": "magiclysm_generic_magic",
    "spell_class": "BIOMANCER",
    "difficulty": 4,
    "base_casting_time": 400,
    "base_energy_cost": 350,
    "max_level": 15,
    "min_duration": 24000,
    "max_duration": 360000,
    "duration_increment": 24000,
    "extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
    "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 have started to design your own version.",
    "valid_targets": [ "self" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_aura_caustic",
    "shape": "blast",
    "flags": [ "ENHANCEMENT_SPELL", "SOMATIC", "NO_FAIL" ],
    "components": "spell_components_causticaura",
    "magic_type": "magiclysm_generic_magic",
    "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,
    "extra_effects": [ { "id": "eoc_summon_setup", "hit_self": true } ],
    "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": [ "TRANSFORMATION_SPELL", "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,
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
    "magic_type": "magiclysm_generic_magic",
    "base_energy_cost": 200,
    "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": [ "TRANSFORMATION_SPELL", "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,
    "magic_type": "magiclysm_generic_magic",
    "base_energy_cost": 500,
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
    "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" },
      { "math": [ "u_preshift_size = u_val('size')" ] },
      {
        "switch": { "math": [ "u_preshift_size" ] },
        "cases": [
          { "case": 1, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "12" ] } ] },
          { "case": 2, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "6" ] } ] },
          { "case": 3, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "2" ] } ] },
          { "case": 4, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "1.5" ] } ] },
          { "case": 5, "effect": [  ] }
        ]
      },
      { "u_add_trait": "BIO_GIANT_GROWTH" },
      {
        "run_eocs": "EOC_GIANT_GROWTH_MUTATION_REMOVE",
        "time_in_future": { "math": [ "(( u_spell_level('biomancer_giant_growth') * 40 ) + 300 ) * ( transformation_proficiency_modifier() )" ] }
      }
    ],
    "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" },
      {
        "switch": { "math": [ "u_preshift_size" ] },
        "cases": [
          { "case": 1, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "12" ] } ] },
          { "case": 2, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "6" ] } ] },
          { "case": 3, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "2" ] } ] },
          { "case": 4, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "1.5" ] } ] },
          { "case": 5, "effect": [  ] }
        ]
      },
      { "u_lose_trait": "BIO_GIANT_GROWTH" }
    ]
  },
  {
    "id": "biomancer_remove_instability",
    "type": "SPELL",
    "name": "Preserve Genetic Stability",
    "description": "The scroll said that this spell is for \"Reducing negative consequences from XE037 exposure\", 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": [ "CHANNELING_SPELL", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_remove_instability",
    "shape": "blast",
    "difficulty": 10,
    "max_level": 15,
    "magic_type": "magiclysm_generic_magic",
    "min_range": 1,
    "base_energy_cost": 1500,
    "base_casting_time": 180000,
    "min_duration": 4500000,
    "max_duration": 45000000,
    "extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ],
    "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": [ "ENHANCEMENT_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_carrion_feast",
    "shape": "blast",
    "difficulty": 3,
    "magic_type": "magiclysm_generic_magic",
    "max_level": 10,
    "min_duration": 6000,
    "max_duration": 36000,
    "duration_increment": 2800,
    "extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
    "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 armor that covers the shoulders with them.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "TRANSFORMATION_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_lashing_tentacles",
    "shape": "blast",
    "difficulty": 6,
    "max_level": 15,
    "min_duration": 7000,
    "max_duration": 30000,
    "duration_increment": 1533,
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
    "magic_type": "magiclysm_generic_magic",
    "base_energy_cost": 400,
    "base_casting_time": 500
  },
  {
    "id": "biomancer_cure_disease_minor",
    "type": "SPELL",
    "name": "Purgation of Maladies",
    "description": "Vomit up any minor illnesses you might be suffering from, such as colds or the flu.  This is one of the few biomantic cure spells that is castable on other people.",
    "valid_targets": [ "self", "ally" ],
    "spell_class": "BIOMANCER",
    "flags": [ "RESTORATION_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "vomit",
    "shape": "blast",
    "difficulty": 4,
    "max_level": 10,
    "min_duration": 60480000,
    "max_duration": 60480000,
    "min_range": 1,
    "max_range": 1,
    "magic_type": "magiclysm_generic_magic",
    "base_energy_cost": 500,
    "extra_effects": [
      { "id": "eoc_restoration_setup", "hit_self": true },
      { "id": "biomantic_pain_caused_light", "hit_self": true },
      { "id": "biomancer_cure_disease_minor_actual_effect" }
    ],
    "base_casting_time": 90000,
    "final_casting_time": 30000,
    "casting_time_increment": -6000
  },
  {
    "id": "biomancer_cure_disease_minor_actual_effect",
    "type": "SPELL",
    "name": { "str": "Purgation of Maladies Cure", "//~": "NO_I18N" },
    "description": { "str": "This causes the actual cure effect, since a vomit effect spell doesn't apply effect_str", "//~": "NO_I18N" },
    "valid_targets": [ "self", "ally" ],
    "spell_class": "BIOMANCER",
    "flags": [ "SILENT" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_cure_disease_minor",
    "shape": "blast",
    "difficulty": 4,
    "max_level": 10,
    "min_duration": 60480000,
    "max_duration": 60480000,
    "min_range": 1,
    "max_range": 1
  },
  {
    "id": "biomancer_hyper_regeneration",
    "type": "SPELL",
    "name": "Corporeal Reconstitution",
    "description": "Possibly the most powerful of the biomantic healing spells, this causes your flesh to literally knit itself together before your eyes.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "RESTORATION_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_hyper_regeneration",
    "shape": "blast",
    "difficulty": 10,
    "max_level": 20,
    "min_duration": 3000,
    "max_duration": 13000,
    "duration_increment": 500,
    "magic_type": "magiclysm_generic_magic",
    "extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true } ],
    "base_energy_cost": 900,
    "base_casting_time": 150
  },
  {
    "id": "biomancer_slow_bleeding",
    "type": "SPELL",
    "name": "Halt Bleeding",
    "description": "As you can control your body, you can control your blood.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "ENHANCEMENT_SPELL", "CONCENTRATE", "SOMATIC", "VERBAL" ],
    "difficulty": 4,
    "max_level": 15,
    "effect": "effect_on_condition",
    "effect_str": "EOC_BIOMANCER_SLOW_BLEEDING",
    "shape": "blast",
    "min_duration": 90000,
    "max_duration": 630000,
    "duration_increment": 36000,
    "magic_type": "magiclysm_generic_magic",
    "base_energy_cost": 250,
    "extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
    "base_casting_time": 350
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOMANCER_SLOW_BLEEDING",
    "effect": {
      "switch": { "math": [ "u_spell_level('biomancer_slow_bleeding')" ] },
      "cases": [
        {
          "case": 0,
          "effect": {
            "u_add_effect": "effect_biomancer_slow_bleeding_01",
            "duration": { "math": [ "(( u_spell_level('biomancer_slow_bleeding') * 360 ) + 900 ) * ( enhancement_proficiency_modifier() )" ] }
          }
        },
        {
          "case": 8,
          "effect": {
            "u_add_effect": "effect_biomancer_slow_bleeding_02",
            "duration": { "math": [ "(( u_spell_level('biomancer_slow_bleeding') * 360 ) + 900 ) * ( enhancement_proficiency_modifier() )" ] }
          }
        },
        {
          "case": 15,
          "effect": {
            "u_add_effect": "effect_biomancer_slow_bleeding_03",
            "duration": { "math": [ "(( u_spell_level('biomancer_slow_bleeding') * 360 ) + 900 ) * ( enhancement_proficiency_modifier() )" ] }
          }
        }
      ]
    }
  },
  {
    "id": "biomancer_scalpel_fingers",
    "type": "SPELL",
    "name": "Flensing Fingers",
    "description": "Change each of your fingers into a myriad of tiny bone knives, allowing you to cut with surgical precision… or slice your enemies to ribbons.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "TRANSFORMATION_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "difficulty": 5,
    "max_level": 20,
    "effect": "spawn_item",
    "effect_str": "item_biomancer_scalpel_fingers",
    "shape": "blast",
    "min_duration": 24000,
    "max_duration": 360000,
    "duration_increment": 24000,
    "magic_type": "magiclysm_generic_magic",
    "extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
    "base_energy_cost": 300,
    "base_casting_time": 500
  },
  {
    "id": "biomancer_caustic_blood",
    "type": "SPELL",
    "name": "Caustic Blood",
    "description": "Transmute your blood to magically-enhanced acid, making you immune to acid and also splashing anyone who spills your blood.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "ENHANCEMENT_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_caustic_blood",
    "shape": "blast",
    "difficulty": 7,
    "max_level": 20,
    "min_duration": 180000,
    "max_duration": 1380000,
    "duration_increment": 60000,
    "magic_type": "magiclysm_generic_magic",
    "base_energy_cost": 450,
    "extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
    "base_casting_time": 600
  },
  {
    "id": "biomancer_eat_tons_of_food",
    "type": "SPELL",
    "name": "Gluttonous Consumption",
    "description": "Magically expand your stomach size, allowing it to consume more food without taking up any more room in your body.  Once a rarely-learned spell, it's much more useful now that you're not always sure where your next meal is coming from.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "ENHANCEMENT_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_eat_tons_of_food",
    "shape": "blast",
    "difficulty": 3,
    "max_level": 16,
    "min_duration": 72000,
    "max_duration": 1224000,
    "duration_increment": 72000,
    "magic_type": "magiclysm_generic_magic",
    "base_energy_cost": 200,
    "extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
    "base_casting_time": 1500
  },
  {
    "id": "biomancer_get_more_blood",
    "type": "SPELL",
    "name": "Carmine Infusion",
    "description": "Using water as a catalyst, restore some of your lost blood.  This spell has no effect if you're healthy and uninjured.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "RESTORATION_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_BIO_GET_MORE_BLOOD",
    "components": "spell_components_biomancer_get_more_blood",
    "shape": "blast",
    "difficulty": 5,
    "max_level": 15,
    "magic_type": "magiclysm_generic_magic",
    "base_energy_cost": 350,
    "extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
    "base_casting_time": 1500
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIO_GET_MORE_BLOOD",
    "effect": [
      {
        "if": { "math": [ "u_vitamin('blood') < 0" ] },
        "then": { "math": [ "u_vitamin('blood')", "+=", "300 + (u_spell_level('biomancer_get_more_blood') * 150)" ] }
      },
      {
        "if": { "math": [ "u_vitamin('redcells') < 0" ] },
        "then": { "math": [ "u_vitamin('redcells')", "+=", "300 + (u_spell_level('biomancer_get_more_blood') * 150)" ] }
      }
    ]
  },
  {
    "id": "biomancer_control_mutations",
    "type": "SPELL",
    "name": "Morphogenic Mastery",
    "description": "The scroll said that this spell is for \"Exerting deliberate control over morphogenic alterations\", which sounds ominous.",
    "valid_targets": [ "self" ],
    "spell_class": "BIOMANCER",
    "flags": [ "ENHANCEMENT_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
    "effect": "attack",
    "effect_str": "effect_biomancer_control_mutations",
    "shape": "blast",
    "difficulty": 12,
    "max_level": 15,
    "magic_type": "magiclysm_generic_magic",
    "min_duration": 360000,
    "max_duration": 3060000,
    "duration_increment": 180000,
    "base_energy_cost": 1200,
    "extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
    "base_casting_time": 6000
  }
]
