[
  {
    "id": "electrokinesis_practice",
    "type": "nested_category",
    "//": "XP for level 12 is 49417, for level 10 is 35279, for level 7 is 20514",
    "activity_level": "LIGHT_EXERCISE",
    "category": "CC_PRACTICE",
    "subcategory": "CSC_PRACTICE_METAPHYSICS",
    "name": "contemplation: electrokinesis",
    "description": "Recipes related to practicing electrokinesis.",
    "skill_used": "metaphysics",
    "nested_category_data": [
      "practice_electrokinetic_see_electric",
      "practice_electrokinetic_shock_touch",
      "practice_electrokinetic_zap_enemies",
      "practice_electrokinetic_melee_attacks",
      "practice_electrokinetic_personal_battery",
      "practice_electrokinetic_paralysis",
      "practice_electrokinetic_reduce_pain",
      "practice_electrokinetic_lightning_bolt",
      "practice_electrokinetic_recharge_vehicle",
      "practice_electrokinetic_speed_boost",
      "practice_electrokinetic_pain_immune",
      "practice_electrokinetic_kill_robot",
      "practice_electrokinetic_lightning_aura",
      "practice_electrokinetic_lightning_blast",
      "practice_electrokinetic_revive"
    ],
    "difficulty": 1
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: spark sight",
    "id": "practice_electrokinetic_see_electric",
    "description": "Contemplate your powers and improve your ability to detect electrical creatures or robots.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 0,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_SPARK_SIGHT",
        "condition": { "math": [ "u_spell_level('electrokinetic_see_electric')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_see_electric')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(1)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: static touch",
    "id": "practice_electrokinetic_shock_touch",
    "description": "Contemplate your powers and improve your ability to build up a charge in your hand and unleash it.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 0,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_SHOCK_TOUCH",
        "condition": { "math": [ "u_spell_level('electrokinetic_shock_touch')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_shock_touch')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(1)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: electrical discharge",
    "id": "practice_electrokinetic_zap_enemies",
    "description": "Contemplate your powers and improve your ability to electrocute those who attack you.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 1,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_ZAP_ENEMIES",
        "condition": { "math": [ "u_spell_level('electrokinetic_zap_enemies')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_zap_enemies')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(2)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_ZAP_ENEMIES_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(2)" ] }, { "math": [ "learn_new_power_upper_time_bound(2)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_ZAP_ENEMIES_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_ZAP_ENEMIES_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 6
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Electrical Discharge power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_zap_enemies')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 10,20 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 10,20 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: voltaic strikes",
    "id": "practice_electrokinetic_melee_attacks",
    "description": "Contemplate your powers and improve your ability to channel electrical current through your melee attacks.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 2,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_MELEE_ATTACKS",
        "condition": { "math": [ "u_spell_level('electrokinetic_melee_attacks')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_melee_attacks')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(3)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_MELEE_ATTACKS_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(3)" ] }, { "math": [ "learn_new_power_upper_time_bound(3)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_MELEE_ATTACKS_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_MELEE_ATTACKS_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 7
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Voltaic Strikes power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_melee_attacks')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 15,30 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 15,30 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: electron overflow",
    "id": "practice_electrokinetic_personal_battery",
    "description": "Contemplate your powers and improve your ability to fuel personal electronic devices with your powers.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 2,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTRO_PERSONAL_BATTERY",
        "condition": { "math": [ "u_spell_level('electrokinetic_personal_battery')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_personal_battery')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(3)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTRO_PERSONAL_BATTERY_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(3)" ] }, { "math": [ "learn_new_power_upper_time_bound(3)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTRO_PERSONAL_BATTERY_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTRO_PERSONAL_BATTERY_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 7
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Electron Overflow power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_personal_battery')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: neural spasms",
    "id": "practice_electrokinetic_paralysis",
    "description": "Contemplate your powers and improve your ability to paralyze your targets.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 3,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_PARALYSIS",
        "condition": { "math": [ "u_spell_level('electrokinetic_paralysis')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_paralysis')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(4)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_PARALYSIS_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(4)" ] }, { "math": [ "learn_new_power_upper_time_bound(4)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_PARALYSIS_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_PARALYSIS_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 8
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Neural Spasms power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_paralysis')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: pain suppression",
    "id": "practice_electrokinetic_reduce_pain",
    "description": "Contemplate your powers and improve your ability to reduce the effects of pain.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 3,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_REDUCE_PAIN",
        "condition": { "math": [ "u_spell_level('electrokinetic_reduce_pain')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_reduce_pain')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(4)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_REDUCE_PAIN_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(4)" ] }, { "math": [ "learn_new_power_upper_time_bound(4)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_REDUCE_PAIN_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_REDUCE_PAIN_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 8
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Pain Suppression power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_reduce_pain')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: electrocutioner",
    "id": "practice_electrokinetic_lightning_bolt",
    "description": "Contemplate your powers and improve your ability to unleash blasts of lightning.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 4,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_BOLT",
        "condition": { "math": [ "u_spell_level('electrokinetic_lightning_bolt')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_lightning_bolt')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(5)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_BOLT_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(5)" ] }, { "math": [ "learn_new_power_upper_time_bound(5)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_BOLT_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_BOLT_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 9
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Electrocutioner power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_lightning_bolt')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 25,50 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 25,50 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: re-energize",
    "id": "practice_electrokinetic_recharge_vehicle",
    "description": "Contemplate your powers and improve your ability to recharge large-scale batteries or connected power grids.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 4,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_RECHARGE_VEHICLE",
        "condition": { "math": [ "u_val('spell_level', 'spell: electrokinetic_recharge_vehicle')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          {
            "math": [ "u_val('spell_exp', 'spell: electrokinetic_recharge_vehicle')", "+=", "(contemplation_factor(1))" ]
          },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(5)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_RECHARGE_VEHICLE_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(6)" ] }, { "math": [ "learn_new_power_upper_time_bound(6)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_RECHARGE_VEHICLE_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_RECHARGE_VEHICLE_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 10
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Re-energize power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_recharge_vehicle')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 30,60 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 30,60 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: neuro-acceleration",
    "id": "practice_electrokinetic_speed_boost",
    "description": "Contemplate your powers and improve your ability to increase your or an ally's speed.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 5,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_SPEED_BOOST",
        "condition": { "math": [ "u_spell_level('electrokinetic_speed_boost')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_speed_boost')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(6)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_SPEED_BOOST_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(6)" ] }, { "math": [ "learn_new_power_upper_time_bound(6)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_SPEED_BOOST_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_SPEED_BOOST_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 10
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Neuro-acceleration power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_speed_boost')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 30,60 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 30,60 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: analgesic block",
    "id": "practice_electrokinetic_pain_immune",
    "description": "Contemplate your powers and improve your ability to put off the effects of pain completely until later.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 5,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_PAIN_IMMUNE",
        "condition": { "math": [ "u_spell_level('electrokinetic_pain_immune')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_pain_immune')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(6)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_PAIN_IMMUNE_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(6)" ] }, { "math": [ "learn_new_power_upper_time_bound(6)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_PAIN_IMMUNE_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_PAIN_IMMUNE_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 10
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Analgesic Block power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_pain_immune')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 30,60 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 30,60 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: short circuit",
    "id": "practice_electrokinetic_kill_robot",
    "description": "Contemplate your powers and improve your ability to overload robots and cyborgs.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 6,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_KILL_ROBOT",
        "condition": { "math": [ "u_spell_level('electrokinetic_kill_robot')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_kill_robot')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(7)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_KILL_ROBOT_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(7)" ] }, { "math": [ "learn_new_power_upper_time_bound(7)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_KILL_ROBOT_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_KILL_ROBOT_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 11
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Short Circuit power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_kill_robot')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 35,70 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 35,70 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: galvanic aura",
    "id": "practice_electrokinetic_lightning_aura",
    "description": "Contemplate your powers and improve your ability to charge the nearby air to blast your enemies.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 7,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_AURA",
        "condition": { "math": [ "u_spell_level('electrokinetic_lightning_aura')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_lightning_aura')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(8)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_AURA_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(8)" ] }, { "math": [ "learn_new_power_upper_time_bound(8)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_AURA_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_AURA_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 12
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Galvanic Aura power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_lightning_aura')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 40,80 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 40,80 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: ion blast",
    "id": "practice_electrokinetic_lightning_blast",
    "description": "Contemplate your powers and improve your ability to unleash enormous blasts of lightning.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 8,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_BLAST",
        "condition": { "math": [ "u_spell_level('electrokinetic_lightning_blast')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_lightning_blast')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(9)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_BLAST_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(9)" ] }, { "math": [ "learn_new_power_upper_time_bound(9)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_BLAST_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_LIGHTNING_BLAST_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 13
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Ion Blast power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_lightning_blast')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 45,90 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 45,90 )" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "contemplation: revivification",
    "id": "practice_electrokinetic_revive",
    "description": "Contemplate your powers and improve your ability to make the dead move again briefly.",
    "category": "CC_*",
    "subcategory": "CSC_*_NESTED",
    "skill_used": "metaphysics",
    "difficulty": 9,
    "time": "30 m",
    "autolearn": false,
    "proficiencies": [ { "proficiency": "prof_contemplation_electrokinesis", "required": false } ],
    "tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
    "components": [ [ [ "matrix_crystal_electrokin_dust", 1 ] ] ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_PRACTICE_ELECTROKIN_REVIVE",
        "condition": { "math": [ "u_spell_level('electrokinetic_revive')", ">=", "1" ] },
        "effect": [
          { "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
          { "math": [ "u_spell_exp('electrokinetic_revive')", "+=", "(contemplation_factor(1))" ] },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 1,10 )" ] },
          { "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(10)" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ],
        "false_effect": [
          { "u_message": "You attempt to unlock new capabilities within your mind." },
          { "u_assign_activity": "ACT_PSI_LEARNING_NEW_POWER", "duration": "16 hours" },
          { "u_add_effect": "effect_psi_learning_new_power", "duration": "16 hours" },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" },
          {
            "queue_eocs": "EOC_PRACTICE_ELECTROKIN_REVIVE_LEARNING",
            "time_in_future": [ { "math": [ "learn_new_power_lower_time_bound(10)" ] }, { "math": [ "learn_new_power_upper_time_bound(10)" ] } ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PRACTICE_ELECTROKIN_REVIVE_LEARNING",
    "condition": {
      "and": [
        { "u_has_effect": "effect_psi_learning_new_power" },
        {
          "not": { "u_has_any_effect": [ "sleep", "effect_vitakin_wakeful_resting", "lack_sleep", "sleep_deprived", "under_operation" ] }
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_PRACTICE_ELECTROKIN_REVIVE_LEARNING_2",
            "condition": {
              "and": [
                {
                  "roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency('prof_contemplation_electrokinesis')" ] },
                  "difficulty": 14
                }
              ]
            },
            "effect": [
              {
                "u_message": "As you meditate, all the pieces suddenly come together.  You've unlocked the Revivification power.",
                "popup": true
              },
              { "math": [ "u_spell_level('electrokinetic_revive')", "=", "1" ] },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 50,100 )" ] }
            ],
            "false_effect": [
              { "u_message": "You just couldn't manage to grasp the technique.  You'll have to try again.", "popup": true },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 50,100 )" ] }
            ]
          }
        ]
      }
    ]
  }
]
