[
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_SLOW_BLEEDING_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_vitakin_slow_bleeding" } },
    "effect": [
      { "u_message": "You feel a warmth throughout your entire body.", "type": "good" },
      { "u_add_effect": "effect_vitakin_slow_bleeding", "duration": "PERMANENT" },
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE", "EOC_VITAKIN_SLOW_BLEEDING_SWITCHER" ] },
      {
        "run_eocs": "EOC_VITAKIN_SLOW_BLEEDING_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('vita_slow_bleeding') * 18) + 290) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('vita_slow_bleeding') * 163) + 1174) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_VITAKIN_REMOVE_SLOW_BLEEDING" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_SLOW_BLEEDING_SWITCHER",
    "effect": {
      "switch": { "math": [ "u_spell_level('vita_slow_bleeding')" ] },
      "cases": [
        { "case": 0, "effect": { "u_add_effect": "effect_vitakin_slow_bleeding_01", "duration": "PERMANENT" } },
        { "case": 8, "effect": { "u_add_effect": "effect_vitakin_slow_bleeding_02", "duration": "PERMANENT" } },
        { "case": 16, "effect": { "u_add_effect": "effect_vitakin_slow_bleeding_03", "duration": "PERMANENT" } }
      ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_REMOVE_SLOW_BLEEDING",
    "condition": { "u_has_effect": "effect_vitakin_slow_bleeding" },
    "effect": [
      {
        "u_lose_effect": [
          "effect_vitakin_slow_bleeding",
          "effect_vitakin_slow_bleeding_01",
          "effect_vitakin_slow_bleeding_02",
          "effect_vitakin_slow_bleeding_03"
        ]
      },
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_SLOW_BLEEDING_DRAIN",
    "condition": { "u_has_effect": "effect_vitakin_slow_bleeding" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 1" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('vita_slow_bleeding')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_VITAKIN_SLOW_BLEEDING_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('vita_slow_bleeding') * 18) + 290) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('vita_slow_bleeding') * 163) + 1174) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_HEALTH_POWER_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_vita_health" } },
    "effect": [
      { "u_message": "Your skin prickles and you feel like you're bursting with energy.", "type": "good" },
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE", "EOC_VITAKIN_REMOVE_CONCENTRATED_HEALING" ] },
      { "u_add_effect": "effect_vita_health", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_VITAKIN_HEALTH_POWER_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('vita_health_power') + u_spell_level('vita_health_power_knack') ) * 21) + 354) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('vita_health_power') + u_spell_level('vita_health_power_knack') ) * 298) + 1550) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_VITAKIN_REMOVE_HEALTH_POWER" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_REMOVE_HEALTH_POWER",
    "condition": { "u_has_effect": "effect_vita_health" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_vita_health" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_HEALTH_POWER_DRAIN",
    "condition": { "u_has_effect": "effect_vita_health" },
    "effect": [
      {
        "if": { "math": [ "u_spell_level('vita_health_power') >= 1" ] },
        "then": { "math": [ "u_latest_channeled_power_difficulty = u_spell_difficulty('vita_health_power')" ] },
        "else": { "math": [ "u_latest_channeled_power_difficulty = u_spell_difficulty('vita_health_power_knack')" ] }
      },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      {
        "if": { "math": [ "u_spell_level('vita_health_power') >= 1" ] },
        "then": { "math": [ "u_spell_exp('vita_health_power')", "+=", "psionic_power_experience_formula()" ] },
        "else": { "math": [ "u_spell_exp('vita_health_power_knack')", "+=", "psionic_power_experience_formula()" ] }
      },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_VITAKIN_HEALTH_POWER_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('vita_health_power') + u_spell_level('vita_health_power_knack') ) * 21) + 354) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('vita_health_power') + u_spell_level('vita_health_power_knack') ) * 298) + 1550) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_vita_concentrated_healing" } },
    "effect": [
      { "u_message": "Your injuries itch.", "type": "good" },
      { "u_add_effect": "effect_vita_concentrated_healing", "duration": "PERMANENT" },
      {
        "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE", "EOC_VITAKIN_CONCENTRATED_HEALING_SELECTOR", "EOC_VITAKIN_REMOVE_HEALTH_POWER" ]
      },
      {
        "run_eocs": "EOC_VITAKIN_CONCENTRATED_HEALING_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 73) + 463) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 284) + 1034) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      },
      {
        "run_eocs": "EOC_VITAKIN_CONCENTRATED_HEALING_DERMATIK_CHECK",
        "time_in_future": [
          {
            "math": [
              "3600 - ( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 60) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling)"
            ]
          },
          {
            "math": [
              "3600 - ( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 60) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling)"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_VITAKIN_REMOVE_CONCENTRATED_HEALING" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_SELECTOR",
    "//": "Hopefully there's eventually some way to get a dynamic list of body parts for this",
    "effect": [
      {
        "run_eoc_selector": [
          "EOC_VITAKIN_CONCENTRATED_HEALING_LEFT_ARM",
          "EOC_VITAKIN_CONCENTRATED_HEALING_RIGHT_ARM",
          "EOC_VITAKIN_CONCENTRATED_HEALING_HEAD",
          "EOC_VITAKIN_CONCENTRATED_HEALING_LEFT_LEG",
          "EOC_VITAKIN_CONCENTRATED_HEALING_RIGHT_LEG",
          "EOC_VITAKIN_CONCENTRATED_HEALING_TORSO"
        ],
        "title": "Choose body part.",
        "names": [ "Left Arm", "Right Arm", "Head", "Left Leg", "Right Leg", "Torso" ],
        "keys": [ "1", "2", "3", "4", "5", "6" ],
        "descriptions": [
          "Concentrate healing wounds on the left arm.",
          "Concentrate healing wounds on the right arm.",
          "Concentrate healing wounds on the head.",
          "Concentrate healing wounds on the left leg.",
          "Concentrate healing wounds on the right leg.",
          "Concentrate healing wounds on the torso."
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_LEFT_ARM",
    "condition": { "u_has_effect": "effect_vita_concentrated_healing" },
    "effect": [
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "head", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "torso", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_l", "duration": "PERMANENT" },
      { "set_string_var": "arm_l", "target_var": { "u_val": "latest_concentrated_body_part" } },
      {
        "u_add_effect": "effect_vita_concentrated_healing_bonus",
        "target_part": "arm_l",
        "duration": "PERMANENT",
        "intensity": {
          "math": [
            "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 1.5 ) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
          ]
        }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_RIGHT_ARM",
    "condition": { "u_has_effect": "effect_vita_concentrated_healing" },
    "effect": [
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "head", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "torso", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_l", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_l", "duration": "PERMANENT" },
      { "set_string_var": "arm_r", "target_var": { "u_val": "latest_concentrated_body_part" } },
      {
        "u_add_effect": "effect_vita_concentrated_healing_bonus",
        "target_part": "arm_r",
        "duration": "PERMANENT",
        "intensity": {
          "math": [
            "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 1.5 ) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
          ]
        }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_TORSO",
    "condition": { "u_has_effect": "effect_vita_concentrated_healing" },
    "effect": [
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "head", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_l", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_l", "duration": "PERMANENT" },
      { "set_string_var": "torso", "target_var": { "u_val": "latest_concentrated_body_part" } },
      {
        "u_add_effect": "effect_vita_concentrated_healing_bonus",
        "target_part": "torso",
        "duration": "PERMANENT",
        "intensity": {
          "math": [
            "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 1.5 ) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
          ]
        }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_RIGHT_LEG",
    "condition": { "u_has_effect": "effect_vita_concentrated_healing" },
    "effect": [
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "head", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "torso", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_l", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_l", "duration": "PERMANENT" },
      { "set_string_var": "leg_r", "target_var": { "u_val": "latest_concentrated_body_part" } },
      {
        "u_add_effect": "effect_vita_concentrated_healing_bonus",
        "target_part": "leg_r",
        "duration": "PERMANENT",
        "intensity": {
          "math": [
            "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 1.5 ) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
          ]
        }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_LEFT_LEG",
    "condition": { "u_has_effect": "effect_vita_concentrated_healing" },
    "effect": [
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "head", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "torso", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_l", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_r", "duration": "PERMANENT" },
      { "set_string_var": "leg_l", "target_var": { "u_val": "latest_concentrated_body_part" } },
      {
        "u_add_effect": "effect_vita_concentrated_healing_bonus",
        "target_part": "leg_l",
        "duration": "PERMANENT",
        "intensity": {
          "math": [
            "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 1.5 ) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
          ]
        }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_HEAD",
    "condition": { "u_has_effect": "effect_vita_concentrated_healing" },
    "effect": [
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "torso", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "arm_l", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_r", "duration": "PERMANENT" },
      { "u_add_effect": "effect_vita_concentrated_healing_penalty", "target_part": "leg_l", "duration": "PERMANENT" },
      { "set_string_var": "head", "target_var": { "u_val": "latest_concentrated_body_part" } },
      {
        "u_add_effect": "effect_vita_concentrated_healing_bonus",
        "target_part": "head",
        "duration": "PERMANENT",
        "intensity": {
          "math": [
            "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 1.5 ) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
          ]
        }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_REMOVE_CONCENTRATED_HEALING",
    "condition": { "u_has_effect": "effect_vita_concentrated_healing" },
    "effect": [
      {
        "u_lose_effect": [
          "effect_vita_concentrated_healing",
          "effect_vita_concentrated_healing_bonus",
          "effect_vita_concentrated_healing_penalty"
        ],
        "target_part": "ALL"
      },
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CONCENTRATED_HEALING_DRAIN",
    "condition": { "u_has_effect": "effect_vita_concentrated_healing" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 2" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('vita_slow_bleeding')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_VITAKIN_CONCENTRATED_HEALING_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 73) + 463) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('vita_concentrated_healing') + u_spell_level('vita_concentrated_healing_knack') ) * 284) + 1034) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CURE_DISEASE_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_vita_cure_disease" } },
    "effect": [
      { "u_message": "No disease is going to keep you down.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_vita_cure_disease", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_VITAKIN_CURE_DISEASE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('vita_cure_disease') + u_spell_level('vita_cure_disease_knack') ) * 48) + 1148) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('vita_cure_disease') + u_spell_level('vita_cure_disease_knack') ) * 311) + 2834) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      },
      {
        "run_eocs": "EOC_VITAKIN_CURE_DISEASE_CHECKS",
        "time_in_future": [
          {
            "math": [ "max( ( 600 - ( (u_spell_level('vita_cure_disease') + u_spell_level('vita_cure_disease_knack') ) * 5  ) ), 1)" ]
          },
          {
            "math": [ "max( ( 3600 - ( (u_spell_level('vita_cure_disease') + u_spell_level('vita_cure_disease_knack') ) * 30) ), 1)" ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_VITAKIN_REMOVE_CURE_DISEASE" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_REMOVE_CURE_DISEASE",
    "condition": { "u_has_effect": "effect_vita_cure_disease" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_vita_cure_disease" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_CURE_DISEASE_DRAIN",
    "condition": { "u_has_effect": "effect_vita_cure_disease" },
    "effect": [
      {
        "if": { "math": [ "u_spell_level('vita_cure_disease') >= 1" ] },
        "then": { "math": [ "u_latest_channeled_power_difficulty = u_spell_difficulty('vita_cure_disease')" ] },
        "else": { "math": [ "u_latest_channeled_power_difficulty = u_spell_difficulty('vita_cure_disease_knack')" ] }
      },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      {
        "if": { "math": [ "u_spell_level('vita_cure_disease') >= 1" ] },
        "then": { "math": [ "u_spell_exp('vita_cure_disease')", "+=", "psionic_power_experience_formula()" ] },
        "else": { "math": [ "u_spell_exp('vita_cure_disease_knack')", "+=", "psionic_power_experience_formula()" ] }
      },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_VITAKIN_CURE_DISEASE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('vita_cure_disease') + u_spell_level('vita_cure_disease_knack') ) * 48) + 1148) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('vita_cure_disease') + u_spell_level('vita_cure_disease_knack') ) * 311) + 2834) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_SUPER_HEAL_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_vita_super_heal" } },
    "effect": [
      { "u_message": "You feel a sudden sensation of fatigue and your wounds itch.", "type": "good" },
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE", "EOC_POWER_MAINTENANCE_PLUS_ONE" ] },
      { "u_add_effect": "effect_vita_super_heal", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_VITAKIN_SUPER_HEAL_RUN_HEALING",
        "time_in_future": [
          {
            "math": [
              "20 - min( ( (u_spell_level('vita_super_heal') * 0.5) * scaling_factor(u_val('intelligence') ) * u_nether_attunement_power_scaling), 17) "
            ]
          },
          {
            "math": [
              "35 - min( ( (u_spell_level('vita_super_heal') * 0.5) * scaling_factor(u_val('intelligence') ) * u_nether_attunement_power_scaling), 28) "
            ]
          }
        ]
      },
      {
        "run_eocs": "EOC_VITAKIN_SUPER_HEAL_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('vita_super_heal') * 29) + 146) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('vita_super_heal') * 110) + 372) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_VITAKIN_REMOVE_SUPER_HEAL" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_REMOVE_SUPER_HEAL",
    "condition": { "u_has_effect": "effect_vita_super_heal" },
    "effect": [
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_MINUS_ONE", "EOC_POWER_MAINTENANCE_MINUS_ONE" ] },
      { "u_lose_effect": "effect_vita_super_heal" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_SUPER_HEAL_DRAIN",
    "condition": { "u_has_effect": "effect_vita_super_heal" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 9" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('vita_super_heal')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_VITAKIN_SUPER_HEAL_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('vita_super_heal') * 29) + 146) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('vita_super_heal') * 110) + 372) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_RETURN_FROM_DEATH_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_vita_return_from_death" } },
    "effect": [
      { "u_message": "You prepare yourself to return from near-death.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "math": [ "u_vitakin_return_from_death_kcal = u_calories()" ] },
      { "u_add_effect": "effect_vita_return_from_death", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_VITAKIN_RETURN_FROM_DEATH_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('vita_return_from_death') * 962) + 3978) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('vita_return_from_death') * 2819) + 12360) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_VITAKIN_REMOVE_RETURN_FROM_DEATH" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_REMOVE_RETURN_FROM_DEATH",
    "condition": { "u_has_effect": "effect_vita_return_from_death" },
    "effect": [
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" },
      { "run_eocs": "EOC_VITAKIN_REMOVE_RETURN_FROM_DEATH_2", "time_in_future": [ "2 seconds", "2 seconds" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_REMOVE_RETURN_FROM_DEATH_2",
    "condition": { "u_has_effect": "effect_vita_return_from_death" },
    "effect": [ { "u_lose_effect": "effect_vita_return_from_death" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_RETURN_FROM_DEATH_DRAIN",
    "condition": { "u_has_effect": "effect_vita_return_from_death" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 10" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_vitakin_return_from_death_kcal = u_calories()" ] },
      { "math": [ "u_spell_exp('vita_return_from_death')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_VITAKIN_RETURN_FROM_DEATH_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('vita_return_from_death') * 962) + 3978) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('vita_return_from_death') * 2819) + 12360) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  }
]
