[
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_PAIN_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_biokin_overcome_pain" } },
    "effect": [
      { "u_message": "You breathe deeply and your pain lessens.", "type": "good" },
      { "u_add_effect": "effect_biokin_overcome_pain", "duration": "PERMANENT" },
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE", "EOC_BIOKIN_OVERCOME_PAIN_SWITCHER" ] },
      { "u_cast_spell": { "id": "psionic_drained_difficulty_one", "hit_self": true } },
      {
        "queue_eocs": "EOC_BIOKIN_OVERCOME_PAIN_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('biokin_overcome_pain') * 20 ) + 600) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('biokin_overcome_pain') * 75 ) + 2100) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_BIOKIN_REMOVE_OVERCOME_PAIN" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_OVERCOME_PAIN_SWITCHER",
    "effect": {
      "switch": { "u_val": "spell_level", "spell": "biokin_overcome_pain" },
      "cases": [
        { "case": 0, "effect": { "u_add_effect": "effect_biokin_pkill_1", "duration": "PERMANENT" } },
        { "case": 4, "effect": { "u_add_effect": "effect_biokin_pkill_2", "duration": "PERMANENT" } },
        { "case": 8, "effect": { "u_add_effect": "effect_biokin_pkill_3", "duration": "PERMANENT" } },
        { "case": 12, "effect": { "u_add_effect": "effect_biokin_pkill_4", "duration": "PERMANENT" } },
        { "case": 16, "effect": { "u_add_effect": "effect_biokin_pkill_5", "duration": "PERMANENT" } },
        { "case": 20, "effect": { "u_add_effect": "effect_biokin_pkill_6", "duration": "PERMANENT" } }
      ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REMOVE_OVERCOME_PAIN",
    "condition": { "u_has_effect": "effect_biokin_overcome_pain" },
    "effect": [
      { "u_lose_effect": "effect_biokin_pkill_1" },
      { "u_lose_effect": "effect_biokin_pkill_2" },
      { "u_lose_effect": "effect_biokin_pkill_3" },
      { "u_lose_effect": "effect_biokin_pkill_4" },
      { "u_lose_effect": "effect_biokin_pkill_5" },
      { "u_lose_effect": "effect_biokin_pkill_6" },
      { "u_lose_effect": "effect_biokin_overcome_pain" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_OVERCOME_PAIN_DRAIN",
    "condition": { "u_has_effect": "effect_biokin_overcome_pain" },
    "effect": [
      { "u_cast_spell": { "id": "psionic_maintenance_drained_difficulty_one", "hit_self": true } },
      { "math": [ "u_val('stored_kcal')", "-=", "psionics_kcal_cost(1)" ] },
      { "math": [ "u_spell_exp('biokin_overcome_pain')", "+=", "(maintenance_exp_factor(u_val('focus')))" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "queue_eocs": "EOC_BIOKIN_OVERCOME_PAIN_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('biokin_overcome_pain') * 20 ) + 600) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('spell: biokin_overcome_pain') * 75 ) + 2100) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_PHYSICAL_ENHANCE_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_biokin_physical" } },
    "effect": [
      { "u_message": "You enhance your physical prowess.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_biokin_physical", "duration": "PERMANENT" },
      { "u_cast_spell": { "id": "psionic_drained_difficulty_two", "hit_self": true } },
      {
        "queue_eocs": "EOC_BIOKIN_PHYSICAL_ENHANCE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_physical_enhance') * 15) + 90) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_physical_enhance') * 90) + 450) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_BIOKIN_REMOVE_PHYSICAL_ENHANCE" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REMOVE_PHYSICAL_ENHANCE",
    "condition": { "u_has_effect": "effect_biokin_physical" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_biokin_physical" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_PHYSICAL_ENHANCE_DRAIN",
    "condition": { "u_has_effect": "effect_biokin_physical" },
    "effect": [
      { "u_cast_spell": { "id": "psionic_maintenance_drained_difficulty_two", "hit_self": true } },
      { "math": [ "u_val('stored_kcal')", "-=", "psionics_kcal_cost(2)" ] },
      { "math": [ "u_spell_exp('biokin_physical_enhance')", "+=", "(maintenance_exp_factor(u_val('focus')))" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "queue_eocs": "EOC_BIOKIN_PHYSICAL_ENHANCE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_physical_enhance') * 15) + 90) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_physical_enhance') * 90) + 450) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_BREATHE_SKIN_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_biokin_breathe_skin" } },
    "effect": [
      { "u_message": "As you seal your lips, your chest still rises and falls.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_biokin_breathe_skin", "duration": "PERMANENT" },
      { "u_spawn_item": "biokin_breathe_skin_item", "suppress_message": true, "force_equip": true },
      { "u_lose_effect": "biokin_sealed_system" },
      { "u_cast_spell": { "id": "psionic_drained_difficulty_two", "hit_self": true } },
      {
        "queue_eocs": "EOC_BIOKIN_BREATH_SKIN_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_breathe_skin') * 36) + 180) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_breathe_skin') * 72) + 540) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_BIOKIN_REMOVE_BREATHE_SKIN" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REMOVE_BREATHE_SKIN",
    "condition": { "u_has_effect": "effect_biokin_breathe_skin" },
    "effect": [
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" },
      { "u_lose_effect": "effect_biokin_breathe_skin" },
      { "u_remove_item_with": "biokin_breathe_skin_item" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_BREATH_SKIN_DRAIN",
    "condition": { "u_has_effect": "effect_biokin_breathe_skin" },
    "effect": [
      { "u_cast_spell": { "id": "psionic_maintenance_drained_difficulty_two", "hit_self": true } },
      { "math": [ "u_val('stored_kcal')", "-=", "psionics_kcal_cost(2)" ] },
      { "math": [ "u_spell_exp('biokin_breathe_skin')", "+=", "(maintenance_exp_factor(u_val('focus')))" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "queue_eocs": "EOC_BIOKIN_BREATH_SKIN_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_breathe_skin') * 36) + 180) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_breathe_skin') * 72) + 540) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_CLIMATE_CONTROL_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_biokin_climate_control" } },
    "effect": [
      { "u_message": "You feel much more comfortable.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_biokin_climate_control", "duration": "PERMANENT" },
      { "u_cast_spell": { "id": "psionic_drained_difficulty_four", "hit_self": true } },
      { "u_lose_effect": "biokin_sealed_system" },
      {
        "queue_eocs": "EOC_BIOKIN_CLIMATE_CONTROL_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_climate_control') * 180) + 300 ) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_climate_control') * 360) + 600) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_BIOKIN_REMOVE_CLIMATE_CONTROL" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REMOVE_CLIMATE_CONTROL",
    "condition": { "u_has_effect": "effect_biokin_climate_control" },
    "effect": [ { "u_lose_effect": "effect_biokin_climate_control" }, { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_CLIMATE_CONTROL_DRAIN",
    "condition": { "u_has_effect": "effect_biokin_climate_control" },
    "effect": [
      { "u_cast_spell": { "id": "psionic_maintenance_drained_difficulty_four", "hit_self": true } },
      { "math": [ "u_val('stored_kcal')", "-=", "psionics_kcal_cost(4)" ] },
      { "math": [ "u_spell_exp('biokin_climate_control')", "+=", "(maintenance_exp_factor(u_val('focus')))" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "queue_eocs": "EOC_BIOKIN_CLIMATE_CONTROL_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_climate_control') * 180) + 300 ) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_climate_control') * 360) + 600) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_ENHANCE_MOBILITY_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_biokin_enhance_mobility" } },
    "effect": [
      { "u_message": "Your gear doesn't seem to encumber you as much.", "type": "good" },
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE", "EOC_BIOKIN_ENHANCE_MOBILITY_SWITCHER" ] },
      { "u_add_effect": "effect_biokin_enhance_mobility", "duration": "PERMANENT" },
      { "u_cast_spell": { "id": "psionic_drained_difficulty_five", "hit_self": true } },
      {
        "queue_eocs": "EOC_BIOKIN_ENHANCE_MOBILITY_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('biokin_enhance_mobility') * 45 ) + 300) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('biokin_enhance_mobility') * 120 ) + 900) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_BIOKIN_REMOVE_ENHANCE_MOBILITY" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_ENHANCE_MOBILITY_SWITCHER",
    "effect": {
      "switch": { "math": [ "u_spell_level('biokin_enhance_mobility')" ] },
      "cases": [
        {
          "case": 0,
          "effect": [ { "u_spawn_item": "biokin_enhance_mobility_item_1", "suppress_message": true, "force_equip": true } ]
        },
        {
          "case": 4,
          "effect": [ { "u_spawn_item": "biokin_enhance_mobility_item_2", "suppress_message": true, "force_equip": true } ]
        },
        {
          "case": 8,
          "effect": [ { "u_spawn_item": "biokin_enhance_mobility_item_3", "suppress_message": true, "force_equip": true } ]
        },
        {
          "case": 12,
          "effect": [ { "u_spawn_item": "biokin_enhance_mobility_item_4", "suppress_message": true, "force_equip": true } ]
        },
        {
          "case": 16,
          "effect": [ { "u_spawn_item": "biokin_enhance_mobility_item_5", "suppress_message": true, "force_equip": true } ]
        },
        {
          "case": 20,
          "effect": [ { "u_spawn_item": "biokin_enhance_mobility_item_6", "suppress_message": true, "force_equip": true } ]
        }
      ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REMOVE_ENHANCE_MOBILITY",
    "condition": { "u_has_effect": "effect_biokin_enhance_mobility" },
    "effect": [
      { "u_remove_item_with": "biokin_enhance_mobility_item_1" },
      { "u_remove_item_with": "biokin_enhance_mobility_item_2" },
      { "u_remove_item_with": "biokin_enhance_mobility_item_3" },
      { "u_remove_item_with": "biokin_enhance_mobility_item_4" },
      { "u_remove_item_with": "biokin_enhance_mobility_item_5" },
      { "u_remove_item_with": "biokin_enhance_mobility_item_6" },
      { "u_lose_effect": "effect_biokin_enhance_mobility" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_ENHANCE_MOBILITY_DRAIN",
    "condition": { "u_has_effect": "effect_biokin_enhance_mobility" },
    "effect": [
      { "u_cast_spell": { "id": "psionic_maintenance_drained_difficulty_five", "hit_self": true } },
      { "math": [ "u_val('stored_kcal')", "-=", "psionics_kcal_cost(5)" ] },
      { "math": [ "u_spell_exp('biokin_enhance_mobility')", "+=", "(maintenance_exp_factor(u_val('focus')))" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "queue_eocs": "EOC_BIOKIN_ENHANCE_MOBILITY_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('biokin_enhance_mobility') * 45 ) + 300) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('biokin_enhance_mobility') * 120 ) + 900) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_HAMMERHAND_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_biokin_hammerhand" } },
    "effect": [
      { "u_message": "You flex your fingers.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_biokin_hammerhand", "duration": "PERMANENT" },
      { "u_spawn_item": "biokin_hammerhand_item", "suppress_message": true, "force_equip": true },
      { "u_cast_spell": { "id": "psionic_drained_difficulty_five", "hit_self": true } },
      {
        "queue_eocs": "EOC_BIOKIN_HAMMERHAND_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_hammerhand') * 450) + 1800) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_hammerhand') * 750) + 5400) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_BIOKIN_REMOVE_HAMMERHAND" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REMOVE_HAMMERHAND",
    "condition": { "u_has_effect": "effect_biokin_hammerhand" },
    "effect": [
      { "u_remove_item_with": "biokin_hammerhand_item" },
      { "u_lose_effect": "effect_biokin_hammerhand" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_HAMMERHAND_DRAIN",
    "condition": { "u_has_effect": "biokin_hammerhand" },
    "effect": [
      { "u_cast_spell": { "id": "psionic_maintenance_drained_difficulty_five", "hit_self": true } },
      { "math": [ "u_val('stored_kcal')", "-=", "psionics_kcal_cost(5)" ] },
      { "math": [ "u_spell_exp('biokin_hammerhand')", "+=", "(maintenance_exp_factor(u_val('focus')))" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "queue_eocs": "EOC_BIOKIN_HAMMERHAND_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_hammerhand') * 450) + 1800) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_hammerhand') * 750) + 5400) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REFLEX_ENHANCE_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_biokin_reflex" } },
    "effect": [
      { "u_message": "You enhance your speed and sensory prowess.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_biokin_reflex", "duration": "PERMANENT" },
      { "u_cast_spell": { "id": "psionic_drained_difficulty_six", "hit_self": true } },
      {
        "queue_eocs": "EOC_BIOKIN_REFLEX_ENHANCE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_reflex_enhance') * 15) + 90) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_reflex_enhance') * 90) + 450) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_BIOKIN_REMOVE_REFLEX_ENHANCE" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REMOVE_REFLEX_ENHANCE",
    "condition": { "u_has_effect": "effect_biokin_reflex" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_biokin_reflex" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REFLEX_ENHANCE_DRAIN",
    "condition": { "u_has_effect": "effect_biokin_reflex" },
    "effect": [
      { "u_cast_spell": { "id": "psionic_maintenance_drained_difficulty_six", "hit_self": true } },
      { "math": [ "u_val('stored_kcal')", "-=", "psionics_kcal_cost(6)" ] },
      { "math": [ "u_spell_exp('biokin_reflex_enhance')", "+=", "(maintenance_exp_factor(u_val('focus')))" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "queue_eocs": "EOC_BIOKIN_REFLEX_ENHANCE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_reflex_enhance') * 15) + 90) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_reflex_enhance') * 90) + 450) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_METABOLISM_ENHANCE_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_biokin_metabolism_enhance" } },
    "effect": [
      { "u_message": "You supercharge your metabolism.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_biokin_metabolism_enhance", "duration": "PERMANENT" },
      { "u_cast_spell": { "id": "psionic_drained_difficulty_seven", "hit_self": true } },
      {
        "queue_eocs": "EOC_BIOKIN_METABOLISM_ENHANCE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_metabolism_enhance') * 250) + 2700) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_metabolism_enhance') * 500) + 6750) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_BIOKIN_REMOVE_METABOLISM_ENHANCE" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_REMOVE_METABOLISM_ENHANCE",
    "condition": { "u_has_effect": "effect_biokin_metabolism_enhance" },
    "effect": [ { "u_lose_effect": "effect_biokin_metabolism_enhance" }, { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_METABOLISM_ENHANCE_DRAIN",
    "condition": { "u_has_effect": "effect_biokin_metabolism_enhance" },
    "effect": [
      { "u_cast_spell": { "id": "psionic_maintenance_drained_difficulty_seven", "hit_self": true } },
      { "math": [ "u_val('stored_kcal')", "-=", "psionics_kcal_cost(7)" ] },
      { "math": [ "u_spell_exp('biokin_metabolism_enhance')", "+=", "(maintenance_exp_factor(u_val('focus')))" ] },
      { "math": [ "u_val('sleep_deprivation')", "-=", "10" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "queue_eocs": "EOC_BIOKIN_METABOLISM_ENHANCE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('biokin_metabolism_enhance') * 250) + 2700) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('biokin_metabolism_enhance') * 500) + 6750) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  }
]
