[
  {
    "type": "effect_on_condition",
    "id": "EOC_PAIN_DISABLES_PSI",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": {
      "and": [
        {
          "u_has_any_trait": [
            "BIOKINETIC",
            "CLAIRSENTIENT",
            "ELECTROKINETIC",
            "PHOTOKINETIC",
            "PYROKINETIC",
            "TELEKINETIC",
            "TELEPATH",
            "TELEPORTER",
            "VITAKINETIC"
          ]
        },
        { "not": { "u_has_flag": "PAIN_IMMUNE" } },
        { "not": { "u_has_effect": "effect_psi_too_much_pain_cant_channel" } },
        {
          "math": [
            "u_pain('type': 'perceived')",
            ">=",
            "40 + ( 15 * ((u_has_trait('CONCENTRATION_GOOD')) + (u_has_trait('CONCENTRATION_BAD') ? -1 : 0) + (u_has_trait('INT_ALPHA')) + (u_has_trait('CONCENTRATION_DEBUG') ? 50 : 0) + (u_has_proficiency('prof_concentration_basic') ? 1 : 0) + (u_has_proficiency('prof_concentration_intermediate') ? 2 : 0) + (u_has_proficiency('prof_concentration_master') ? 3 : 0)))"
          ]
        }
      ]
    },
    "effect": [ { "u_add_effect": "effect_psi_too_much_pain_cant_channel", "duration": "0 seconds" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PSIONICS_KCAL_COST",
    "effect": [ { "math": [ "u_calories()", "-=", "psionics_kcal_cost(u_latest_channeled_power_difficulty)" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "BIOKINETIC" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_BIOKINESIS" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('BIOKINETIC')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "CLAIRSENTIENT" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_CLAIRSENTIENCE" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('CLAIRSENTIENT')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ELECTRO_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "ELECTROKINETIC" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_ELECTROKINESIS" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('ELECTROKINETIC')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PHOTO_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "PHOTOKINETIC" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_PHOTOKINESIS" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('PHOTOKINETIC')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYRO_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "PYROKINETIC" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_PYROKINESIS" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('PYROKINETIC')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "TELEKINETIC" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_TELEKINESIS" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('TELEKINETIC')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TEEP_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "TELEPATH" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_TELEPATHY" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('TELEPATH')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPORT_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "TELEPORTER" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_TELEPORTATION" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('TELEPORTER')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_MATRIX_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "VITAKINETIC" }, { "u_has_wielded_with_flag": "MATRIX_CRYSTAL_VITAKINESIS" } ] },
    "effect": [ { "math": [ "u_school_level_adjustment('VITAKINETIC')", "+=", "4" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_YOU_ARE_NEAR_NETHER_POWER_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": {
      "and": [
        {
          "u_has_any_trait": [
            "BIOKINETIC",
            "CLAIRSENTIENT",
            "ELECTROKINETIC",
            "PHOTOKINETIC",
            "PYROKINETIC",
            "TELEKINETIC",
            "TELEPATH",
            "TELEPORTER",
            "VITAKINETIC"
          ]
        },
        { "test_eoc": "EOC_CONDITION_NEAR_NETHER_RELATED_LOCATION" }
      ]
    },
    "effect": [
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'BIOKINETIC') = 2" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'CLAIRSENTIENT') = 2" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'ELECTROKINETIC') = 2" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'PHOTOKINETIC') = 2" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'PYROKINETIC') = 2" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEKINETIC') = 2" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEPATH') = 2" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEPORTER') = 2" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'VITAKINETIC') = 2" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_YOU_ARE_IN_NETHER_POWER_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": {
      "and": [
        {
          "u_has_any_trait": [
            "BIOKINETIC",
            "CLAIRSENTIENT",
            "ELECTROKINETIC",
            "PHOTOKINETIC",
            "PYROKINETIC",
            "TELEKINETIC",
            "TELEPATH",
            "TELEPORTER",
            "VITAKINETIC"
          ]
        },
        { "test_eoc": "EOC_CONDITION_YOU_ARE_IN_NETHER_LOCATION" }
      ]
    },
    "effect": [
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'BIOKINETIC') = 4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'CLAIRSENTIENT') = 4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'ELECTROKINETIC') = 4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'PHOTOKINETIC') = 4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'PYROKINETIC') = 4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEKINETIC') = 4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEPATH') = 4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEPORTER') = 4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'VITAKINETIC') = 4" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_MOM_PSYCHIC_VAMPIRE_TELEPATHY",
    "eoc_type": "EVENT",
    "required_event": "spellcasting_finish",
    "condition": {
      "and": [
        { "u_has_trait": "MOM_PSYCHIC_VAMPIRE" },
        { "math": [ "_success == true" ] },
        { "or": [ { "compare_string": [ "telepathic_blast", { "context_val": "spell" } ] } ] }
      ]
    },
    "effect": [ { "math": [ "u_val('focus')", "+=", "rand(2) + 1" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_MOM_PSYCHIC_VAMPIRE_VITAKINESIS",
    "eoc_type": "EVENT",
    "required_event": "spellcasting_finish",
    "condition": {
      "and": [
        { "u_has_trait": "MOM_PSYCHIC_VAMPIRE" },
        { "math": [ "_success == true" ] },
        {
          "or": [
            { "compare_string": [ "vita_hurt_touch", { "context_val": "spell" } ] },
            { "compare_string": [ "vita_attack_touch", { "context_val": "spell" } ] }
          ]
        }
      ]
    },
    "effect": [ { "run_eocs": "EOC_perk_blood_drinking_heal_hp_check" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PSI_EXTENDED_CHANNELING",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "u_has_trait": "PSI_EXTENDED_CHANNELING_active" },
    "effect": [ { "math": [ "u_spellcasting_adjustment('casting_time', 'flag_whitelist': 'PSIONIC') = 25" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_NETHER_ATTUNEMENT_BOOST",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "u_has_effect": "effect_nether_attunement_power_surge" },
    "effect": [
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'BIOKINETIC') = 3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'CLAIRSENTIENT') = 3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'ELECTROKINETIC') = 3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'PHOTOKINETIC') = 3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'PYROKINETIC') = 3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEKINETIC') = 3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEPATH') = 3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEPORTER') = 3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'VITAKINETIC') = 3" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_DRAIN_RESIST_POTION_COMEDOWN_PENALTY",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "u_has_effect": "effect_noetic_resilience_comedown" },
    "effect": [
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'BIOKINETIC') = -4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'CLAIRSENTIENT') = -4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'ELECTROKINETIC') = -4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'PHOTOKINETIC') = -4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'PYROKINETIC') = -4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEKINETIC') = -4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEPATH') = -3" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'TELEPORTER') = -4" ] },
      { "math": [ "u_spellcasting_adjustment('caster_level', 'school': 'VITAKINETIC') = -4" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_END_PSI_POWERS",
    "//": "This should remove absolutely all powers.",
    "effect": [
      {
        "run_eocs": [
          "EOC_BIOKIN_REMOVE_OVERCOME_PAIN",
          "EOC_BIOKIN_REMOVE_PHYSICAL_ENHANCE",
          "EOC_BIOKIN_REMOVE_BREATHE_SKIN",
          "EOC_BIOKIN_REMOVE_HARDENED_SKIN",
          "EOC_BIOKIN_REMOVE_CLIMATE_CONTROL",
          "EOC_BIOKIN_REMOVE_ENHANCE_MOBILITY",
          "EOC_BIOKIN_REMOVE_GUIDED_EVOLUTION",
          "EOC_BIOKIN_REMOVE_HAMMERHAND",
          "EOC_BIOKIN_REMOVE_REFLEX_ENHANCE",
          "EOC_BIOKIN_REMOVE_METABOLISM_ENHANCE",
          "EOC_BIOKIN_REMOVE_COMBAT_DANCE",
          "EOC_BIOKIN_REMOVE_PERFECTED_MOTION",
          "EOC_CLAIR_REMOVE_BETTER_SENSES",
          "EOC_CLAIR_REMOVE_NIGHT_EYES",
          "EOC_CLAIR_REMOVE_SPEED_READ",
          "EOC_CLAIR_REMOVE_DANGER_SENSE",
          "EOC_CLAIR_REMOVE_SEE_AURAS",
          "EOC_CLAIR_REMOVE_RANGED_ENHANCE",
          "EOC_CLAIR_REMOVE_DODGE_POWER",
          "EOC_CLAIR_REMOVE_CRAFT_BONUS",
          "EOC_CLAIR_REMOVE_CLEAR_SIGHT",
          "EOC_CLAIR_REMOVE_GROUP_TACTICS",
          "EOC_ELECTROKIN_REMOVE_SEE_ELECTRICITY",
          "EOC_ELECTROKIN_REMOVE_ZAP_ENEMIES",
          "EOC_ELECTROKIN_REMOVE_MELEE_ATTACKS",
          "EOC_ELECTROKIN_REMOVE_HACKING_INTERFACE",
          "EOC_ELECTROKIN_REMOVE_PERSONAL_BATTERY",
          "EOC_ELECTROKIN_REMOVE_REDUCE_PAIN",
          "EOC_ELECTROKIN_REMOVE_SPEED_BOOST",
          "EOC_ELECTROKIN_REMOVE_LIGHTNING_AURA",
          "EOC_PHOTOKIN_REMOVE_LIGHT_LOCAL",
          "EOC_PHOTOKIN_REMOVE_LIGHT_DODGE",
          "EOC_PHOTOKIN_REMOVE_RAD_IMMUNITY",
          "EOC_PHOTOKIN_REMOVE_CAMOUFLAGE",
          "EOC_PHOTOKIN_REMOVE_HIDE_UGLY",
          "EOC_PHOTOKIN_REMOVE_RADIO",
          "EOC_PHOTOKIN_REMOVE_INVISIBILITY",
          "EOC_PHOTOKIN_REMOVE_BLINDING_GLARE",
          "EOC_PYRO_REMOVE_FIRE_TOOL",
          "EOC_PYRO_REMOVE_WARMTH_CLOAK",
          "EOC_PYROKIN_REMOVE_BLAZING_AURA",
          "EOC_PYRO_REMOVE_TORCH_WELD",
          "EOC_PYROKIN_REMOVE_FLAME_IMMUNITY",
          "EOC_TELEKIN_REMOVE_MOMENTUM",
          "EOC_TELEKIN_REMOVE_WATER_WALKING",
          "EOC_TELEKIN_REMOVE_LIFTING_FIELD",
          "EOC_TELEKIN_REMOVE_TELEKINETIC_STRENGTH",
          "EOC_TELEKIN_REMOVE_SHIELD",
          "EOC_TELEKIN_REMOVE_JACKING_TOOL",
          "EOC_TELEKIN_REMOVE_LEVITATION",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_CONCENTRATION",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_SHIELD",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_MORALE",
          "EOC_TELEPATH_REMOVE_SENSE_MINDS",
          "EOC_TELEPORT_REMOVE_EPHEMERAL_WALK",
          "EOC_TELEPORT_REMOVE_STRIDE",
          "EOC_TELEPORT_REMOVE_REACTIVE_DISPLACEMENT",
          "EOC_TELEPORT_REMOVE_LOCI_ESTABLISHMENT",
          "EOC_TELEPORT_REMOVE_WARPED_STRIKES",
          "EOC_TELEPORT_REMOVE_WARPER_COMBAT",
          "EOC_VITAKIN_REMOVE_SLOW_BLEEDING",
          "EOC_VITAKIN_REMOVE_CONCENTRATED_HEALING",
          "EOC_VITAKIN_REMOVE_HEALTH_POWER",
          "EOC_VITAKIN_REMOVE_CURE_DISEASE",
          "EOC_VITAKIN_REMOVE_SUPER_HEAL",
          "EOC_VITAKIN_REMOVE_RETURN_FROM_DEATH"
        ]
      },
      {
        "u_lose_effect": [
          "effect_biokin_sealed",
          "effect_clair_sense_rads_self",
          "effect_clair_perfect_shot",
          "effect_clair_omniscence",
          "effect_photokin_arms",
          "effect_telekinetic_slowfall",
          "effect_telekinetic_aegis",
          "effect_telepath_invisibility",
          "effect_telepath_network_effect",
          "effect_vitakin_purge_rads",
          "effect_psi_intense_concentration"
        ]
      },
      { "u_remove_item_with": "clair_sense_rad_item" },
      { "math": [ "u_vitamin('vitamin_maintained_powers') = 0" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_END_PSI_POWERS_SPECIFIC",
    "//": "This will remove a single toggleable power, selected by the player (or no power).",
    "effect": [
      {
        "title": "Stop concentrating on which power?",
        "run_eoc_selector": [
          "EOC_BIOKIN_REMOVE_OVERCOME_PAIN",
          "EOC_BIOKIN_REMOVE_PHYSICAL_ENHANCE",
          "EOC_BIOKIN_REMOVE_BREATHE_SKIN",
          "EOC_BIOKIN_REMOVE_HARDENED_SKIN",
          "EOC_BIOKIN_REMOVE_CLIMATE_CONTROL",
          "EOC_BIOKIN_REMOVE_ENHANCE_MOBILITY",
          "EOC_BIOKIN_REMOVE_GUIDED_EVOLUTION",
          "EOC_BIOKIN_REMOVE_HAMMERHAND",
          "EOC_BIOKIN_REMOVE_REFLEX_ENHANCE",
          "EOC_BIOKIN_REMOVE_METABOLISM_ENHANCE",
          "EOC_BIOKIN_REMOVE_COMBAT_DANCE",
          "EOC_BIOKIN_REMOVE_PERFECTED_MOTION",
          "EOC_CLAIR_REMOVE_BETTER_SENSES",
          "EOC_CLAIR_REMOVE_NIGHT_EYES",
          "EOC_CLAIR_REMOVE_SPEED_READ",
          "EOC_CLAIR_REMOVE_DANGER_SENSE",
          "EOC_CLAIR_REMOVE_SEE_AURAS",
          "EOC_CLAIR_REMOVE_RANGED_ENHANCE",
          "EOC_CLAIR_REMOVE_DODGE_POWER",
          "EOC_CLAIR_REMOVE_CRAFT_BONUS",
          "EOC_CLAIR_REMOVE_CLEAR_SIGHT",
          "EOC_CLAIR_REMOVE_GROUP_TACTICS",
          "EOC_ELECTROKIN_REMOVE_SEE_ELECTRICITY",
          "EOC_ELECTROKIN_REMOVE_ZAP_ENEMIES",
          "EOC_ELECTROKIN_REMOVE_MELEE_ATTACKS",
          "EOC_ELECTROKIN_REMOVE_HACKING_INTERFACE",
          "EOC_ELECTROKIN_REMOVE_PERSONAL_BATTERY",
          "EOC_ELECTROKIN_REMOVE_REDUCE_PAIN",
          "EOC_ELECTROKIN_REMOVE_SPEED_BOOST",
          "EOC_ELECTROKIN_REMOVE_LIGHTNING_AURA",
          "EOC_PHOTOKIN_REMOVE_LIGHT_LOCAL",
          "EOC_PHOTOKIN_REMOVE_LIGHT_DODGE",
          "EOC_PHOTOKIN_REMOVE_RAD_IMMUNITY",
          "EOC_PHOTOKIN_REMOVE_CAMOUFLAGE",
          "EOC_PHOTOKIN_REMOVE_HIDE_UGLY",
          "EOC_PHOTOKIN_REMOVE_RADIO",
          "EOC_PHOTOKIN_REMOVE_INVISIBILITY",
          "EOC_PHOTOKIN_REMOVE_BLINDING_GLARE",
          "EOC_PYRO_REMOVE_FIRE_TOOL",
          "EOC_PYRO_REMOVE_WARMTH_CLOAK",
          "EOC_PYROKIN_REMOVE_BLAZING_AURA",
          "EOC_PYRO_REMOVE_TORCH_WELD",
          "EOC_PYROKIN_REMOVE_FLAME_IMMUNITY",
          "EOC_TELEKIN_REMOVE_MOMENTUM",
          "EOC_TELEKIN_REMOVE_WATER_WALKING",
          "EOC_TELEKIN_REMOVE_LIFTING_FIELD",
          "EOC_TELEKIN_REMOVE_TELEKINETIC_STRENGTH",
          "EOC_TELEKIN_REMOVE_SHIELD",
          "EOC_TELEKIN_REMOVE_JACKING_TOOL",
          "EOC_TELEKIN_REMOVE_LEVITATION",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_CONCENTRATION",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_SHIELD",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_MORALE",
          "EOC_TELEPATH_REMOVE_SENSE_MINDS",
          "EOC_TELEPORT_REMOVE_EPHEMERAL_WALK",
          "EOC_TELEPORT_REMOVE_STRIDE",
          "EOC_TELEPORT_REMOVE_REACTIVE_DISPLACEMENT",
          "EOC_TELEPORT_REMOVE_LOCI_ESTABLISHMENT",
          "EOC_TELEPORT_REMOVE_WARPED_STRIKES",
          "EOC_TELEPORT_REMOVE_WARPER_COMBAT",
          "EOC_VITAKIN_REMOVE_SLOW_BLEEDING",
          "EOC_VITAKIN_REMOVE_CONCENTRATED_HEALING",
          "EOC_VITAKIN_REMOVE_HEALTH_POWER",
          "EOC_VITAKIN_REMOVE_CURE_DISEASE",
          "EOC_VITAKIN_REMOVE_SUPER_HEAL",
          "EOC_VITAKIN_REMOVE_RETURN_FROM_DEATH",
          "EOC_MOM_NO_EFFECT"
        ],
        "names": [
          "Overcome Pain",
          "Physical Enhancement",
          "Oxygen Absorption",
          "Hardened Skin",
          "Temperature Adaptability",
          "Enhance Mobility",
          "Guided Evolution",
          "Hammerhand",
          "Heightened Reflexes",
          "Metabolic Hyperefficiency",
          "Combat Dance",
          "Perfected Motion",
          "Heightened Senses",
          "Night Eyes",
          "Speed Reader",
          "Premonition",
          "Aura Sight",
          "Marksman's Eye",
          "Combat Sense",
          "Intuitive Artisan",
          "Clarity",
          "Prescient Tactician",
          "Spark Sight",
          "Electrical Discharge",
          "Voltaic Strikes",
          "Hacking Interface",
          "Electron Overflow",
          "Pain Suppression",
          "Neuro-acceleration",
          "Galvanic Aura",
          "Candle's Glow",
          "Trick of the Light",
          "Lucent Barrier",
          "Chameleoflage",
          "Mirror-Mask",
          "Radio Transception",
          "Veil of Light",
          "Blinding Radiance",
          "Banked Flames",
          "Cloak of Warmth",
          "Blazing Aura",
          "Incandescent Lance",
          "Flameshield",
          "Momentum Alteration",
          "Water Walking",
          "Lifting Field",
          "Enhance Strength",
          "Inertial Barrier",
          "Lift Vehicle",
          "Levitation",
          "Concentration Trance",
          "Telepathic Shield",
          "Mood Stabilization",
          "Sense Minds",
          "Ephemeral Walk",
          "Extended Stride",
          "Reactive Displacement",
          "Loci Establishment",
          "Warped Strikes",
          "Flickerflash Stance",
          "Coagulation",
          "Leukocyte Accumulation",
          "Healthy Glow",
          "Immunostimulus",
          "Anabolic Rejuvenation",
          "Accelerated Resuscitation",
          "cancel"
        ],
        "hide_failing": true,
        "allow_cancel": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_MOM_NO_EFFECT",
    "effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_END_PSI_POWERS_MAINTAINED",
    "//": "This should remove only those powers which are toggleable.",
    "effect": [
      {
        "run_eocs": [
          "EOC_BIOKIN_REMOVE_OVERCOME_PAIN",
          "EOC_BIOKIN_REMOVE_PHYSICAL_ENHANCE",
          "EOC_BIOKIN_REMOVE_BREATHE_SKIN",
          "EOC_BIOKIN_REMOVE_HARDENED_SKIN",
          "EOC_BIOKIN_REMOVE_CLIMATE_CONTROL",
          "EOC_BIOKIN_REMOVE_ENHANCE_MOBILITY",
          "EOC_BIOKIN_REMOVE_GUIDED_EVOLUTION",
          "EOC_BIOKIN_REMOVE_HAMMERHAND",
          "EOC_BIOKIN_REMOVE_REFLEX_ENHANCE",
          "EOC_BIOKIN_REMOVE_METABOLISM_ENHANCE",
          "EOC_BIOKIN_REMOVE_COMBAT_DANCE",
          "EOC_BIOKIN_REMOVE_PERFECTED_MOTION",
          "EOC_CLAIR_REMOVE_BETTER_SENSES",
          "EOC_CLAIR_REMOVE_NIGHT_EYES",
          "EOC_CLAIR_REMOVE_SPEED_READ",
          "EOC_CLAIR_REMOVE_DANGER_SENSE",
          "EOC_CLAIR_REMOVE_SEE_AURAS",
          "EOC_CLAIR_REMOVE_RANGED_ENHANCE",
          "EOC_CLAIR_REMOVE_DODGE_POWER",
          "EOC_CLAIR_REMOVE_CRAFT_BONUS",
          "EOC_CLAIR_REMOVE_CLEAR_SIGHT",
          "EOC_CLAIR_REMOVE_GROUP_TACTICS",
          "EOC_ELECTROKIN_REMOVE_SEE_ELECTRICITY",
          "EOC_ELECTROKIN_REMOVE_ZAP_ENEMIES",
          "EOC_ELECTROKIN_REMOVE_MELEE_ATTACKS",
          "EOC_ELECTROKIN_REMOVE_HACKING_INTERFACE",
          "EOC_ELECTROKIN_REMOVE_PERSONAL_BATTERY",
          "EOC_ELECTROKIN_REMOVE_REDUCE_PAIN",
          "EOC_ELECTROKIN_REMOVE_SPEED_BOOST",
          "EOC_ELECTROKIN_REMOVE_LIGHTNING_AURA",
          "EOC_PHOTOKIN_REMOVE_LIGHT_LOCAL",
          "EOC_PHOTOKIN_REMOVE_LIGHT_DODGE",
          "EOC_PHOTOKIN_REMOVE_RAD_IMMUNITY",
          "EOC_PHOTOKIN_REMOVE_CAMOUFLAGE",
          "EOC_PHOTOKIN_REMOVE_HIDE_UGLY",
          "EOC_PHOTOKIN_REMOVE_RADIO",
          "EOC_PHOTOKIN_REMOVE_INVISIBILITY",
          "EOC_PHOTOKIN_REMOVE_BLINDING_GLARE",
          "EOC_PYRO_REMOVE_FIRE_TOOL",
          "EOC_PYRO_REMOVE_WARMTH_CLOAK",
          "EOC_PYROKIN_REMOVE_BLAZING_AURA",
          "EOC_PYRO_REMOVE_TORCH_WELD",
          "EOC_PYROKIN_REMOVE_FLAME_IMMUNITY",
          "EOC_TELEKIN_REMOVE_MOMENTUM",
          "EOC_TELEKIN_REMOVE_WATER_WALKING",
          "EOC_TELEKIN_REMOVE_LIFTING_FIELD",
          "EOC_TELEKIN_REMOVE_TELEKINETIC_STRENGTH",
          "EOC_TELEKIN_REMOVE_SHIELD",
          "EOC_TELEKIN_REMOVE_JACKING_TOOL",
          "EOC_TELEKIN_REMOVE_LEVITATION",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_CONCENTRATION",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_SHIELD",
          "EOC_TELEPATH_REMOVE_TELEPATHIC_MORALE",
          "EOC_TELEPATH_REMOVE_SENSE_MINDS",
          "EOC_TELEPORT_REMOVE_EPHEMERAL_WALK",
          "EOC_TELEPORT_REMOVE_STRIDE",
          "EOC_TELEPORT_REMOVE_REACTIVE_DISPLACEMENT",
          "EOC_TELEPORT_REMOVE_LOCI_ESTABLISHMENT",
          "EOC_TELEPORT_REMOVE_WARPED_STRIKES",
          "EOC_TELEPORT_REMOVE_WARPER_COMBAT",
          "EOC_VITAKIN_REMOVE_SLOW_BLEEDING",
          "EOC_VITAKIN_REMOVE_CONCENTRATED_HEALING",
          "EOC_VITAKIN_REMOVE_HEALTH_POWER",
          "EOC_VITAKIN_REMOVE_CURE_DISEASE",
          "EOC_VITAKIN_REMOVE_SUPER_HEAL",
          "EOC_VITAKIN_REMOVE_RETURN_FROM_DEATH"
        ]
      },
      { "math": [ "u_vitamin('vitamin_maintained_powers') = 0" ] },
      { "u_lose_effect": "effect_psi_intense_concentration" }
    ]
  }
]
