[
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_NOISEMAKER",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_noise')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_noise" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_noise')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_noise" },
      {
        "u_message": "Use of your powers has led to an insight.  You could use a quick burst of telekinetic force to create noise, luring enemies away from you or toward a trapped location, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_SLAM_DOWN",
    "recurrence": [ "12 hours", "24 hours" ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 20 } },
            {
              "or": [
                { "math": [ "u_spell_level('telekinetic_push')", ">=", "4" ] },
                { "math": [ "u_spell_level('telekinetic_noise')", ">=", "1" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_slam_down')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_slam_down" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_slam_down')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_slam_down" },
      {
        "u_message": "Use of your powers has led to an insight.  Instead of just shoving someone away from your location, you could direct the force orthogonally to knock someone to the ground, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_MOMENTUM",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 20 } },
            {
              "and": [
                { "math": [ "u_spell_level('telekinetic_push')", ">=", "5" ] },
                { "math": [ "u_spell_level('telekinetic_pull')", ">=", "5" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_momentum')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_momentum" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_momentum')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_momentum" },
      {
        "u_message": "Use of your powers has led to an insight.  Instead of just applying all of your force at once, you could apply it gradually to all movement around you, making yourself slightly faster and anything dangerous slightly slower, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_SLOWFALL",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 20 } },
            { "and": [ { "math": [ "u_spell_level('telekinetic_momentum')", ">=", "6" ] } ] }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_slowfall')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_slowfall" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_slowfall')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_slowfall" },
      {
        "u_message": "Use of your powers has led to an insight.  You could lift yourself just a little, slowing you any time you take a fall and making swimming much easier, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_WAVE",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 40 } },
            {
              "and": [
                { "math": [ "u_spell_level('telekinetic_push')", ">=", "7" ] },
                { "math": [ "u_spell_level('telekinetic_slam_down')", ">=", "4" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_wave')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_wave" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_wave')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_wave" },
      {
        "u_message": "Use of your powers has led to an insight.  You could release force in all directions, knocking back everyone surrounding you all at once, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_STRENGTH",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 40 } },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_pull')", ">=", "6" ] },
                    { "math": [ "u_spell_level('telekinetic_push')", ">=", "6" ] }
                  ]
                },
                { "math": [ "u_spell_level('telekinetic_momentum')", ">=", "5" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_strength')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_strength" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_strength')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_strength" },
      {
        "u_message": "Use of your powers has led to an insight.  You could enhance your own strength, allowing you to pull much heavier objects or smash through study doors and walls, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_HAMMER",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 40 } },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_wave')", ">=", "4" ] },
                    { "math": [ "u_spell_level('telekinetic_push')", ">=", "8" ] }
                  ]
                },
                { "math": [ "u_spell_level('telekinetic_slam_down')", ">=", "6" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_hammer')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_hammer" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_hammer')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_hammer" },
      {
        "u_message": "Use of your powers has led to an insight.  You could concentrate your application of force into a blunt instrument, shattering bones and splintering furniture, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_VEHICLE_LIFT",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 40 } },
            {
              "or": [
                {
                  "and": [
                    { "math": [ "u_spell_level('telekinetic_pull')", ">=", "8" ] },
                    { "math": [ "u_spell_level('telekinetic_slowfall')", ">=", "8" ] }
                  ]
                },
                { "math": [ "u_spell_level('telekinetic_strength')", ">=", "10" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_vehicle_lift')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_vehicle_lift" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_vehicle_lift')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_vehicle_lift" },
      {
        "u_message": "Use of your powers has led to an insight.  Rather than smashing objects with your telekinetic strength, you could apply it to lifting a car, allowing you to work on the undercarriage without a jack, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_SHIELD",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 40 } },
            {
              "and": [
                { "math": [ "u_spell_level('telekinetic_wave')", ">=", "8" ] },
                { "math": [ "u_spell_level('telekinetic_momentum')", ">=", "10" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_shield')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_shield" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_shield')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_shield" },
      {
        "u_message": "Use of your powers has led to an insight.  You could create a barrier of force around yourself, shielding you from harm, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_EXPLOSION",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 80 } },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_slam_down')", ">=", "12" ] },
                    { "math": [ "u_spell_level('telekinetic_hammer')", ">=", "7" ] }
                  ]
                },
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_push')", ">=", "10" ] },
                    { "math": [ "u_spell_level('telekinetic_pull')", ">=", "10" ] }
                  ]
                }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_explosion')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_explosion" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_explosion')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_explosion" },
      {
        "u_message": "Use of your powers has led to an insight.  Rather than striking a single point, you could create an explosion of telekinetic force, damaging an entire area, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_LEVITATION",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 80 } },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_push')", ">=", "12" ] },
                    { "math": [ "u_spell_level('telekinetic_vehicle_lift')", ">=", "5" ] }
                  ]
                },
                { "math": [ "u_spell_level('telekinetic_slowfall')", ">=", "9" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_levitation')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_levitation" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_levitation')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_levitation" },
      {
        "u_message": "Use of your powers has led to an insight.  Rather than simply slowing your fall, you could stop it, completely defying gravity and walking on air, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_AEGIS",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 80 } },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_wave')", ">=", "8" ] },
                    { "math": [ "u_spell_level('telekinetic_slowfall')", ">=", "9" ] }
                  ]
                },
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_momentum')", ">=", "12" ] },
                    { "math": [ "u_spell_level('telekinetic_strength')", ">=", "8" ] }
                  ]
                },
                { "math": [ "u_spell_level('telekinetic_shield')", ">=", "7" ] }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_aegis')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_aegis" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_aegis')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_aegis" },
      {
        "u_message": "Use of your powers has led to an insight.  You could take all the energy of a telekinetic shield and pour it into a single instant, forming a barrier strong enough to repel a ballistic missile, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_LEARNING_EARTHSHAKER",
    "recurrence": [
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
      { "math": [ "jmath_telekinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "TELEKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "==", "1" ] },
        {
          "or": [
            { "x_in_y_chance": { "x": 1, "y": 80 } },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_explosion')", ">=", "8" ] },
                    { "math": [ "u_spell_level('telekinetic_wave')", ">=", "13" ] }
                  ]
                },
                {
                  "or": [
                    { "math": [ "u_spell_level('telekinetic_move_large_weight')", ">=", "5" ] },
                    { "math": [ "u_spell_level('telekinetic_hammer')", ">=", "9" ] }
                  ]
                }
              ]
            }
          ]
        },
        {
          "not": {
            "u_has_any_effect": [
              "sleep",
              "effect_psi_learning_new_power",
              "effect_vitakin_wakeful_resting",
              "infected",
              "spores",
              "taint",
              "visuals",
              "hallu",
              "motor_seizure",
              "frostbite",
              "blisters",
              "formication",
              "pre_common_cold",
              "common_cold",
              "pre_flu",
              "flu",
              "pre_conjunctivitis_viral",
              "conjunctivitis_viral",
              "pre_conjunctivitis_bacterial",
              "conjunctivitis_bacterial",
              "asthma",
              "brainworms",
              "bloodworms",
              "grabbed",
              "lack_sleep",
              "sleep_deprived",
              "under_operation",
              "zapped",
              "electrocuted",
              "anemia",
              "redcells_anemia",
              "scurvy",
              "toxin_buildup",
              "bad_food_ennui",
              "hypovolemia",
              "disabled",
              "foodpoison",
              "venom_pain",
              "venom_dmg",
              "badpoison",
              "onfire",
              "dazed",
              "stunned"
            ]
          }
        },
        { "math": [ "u_spell_level('telekinetic_earthshaker')", "<=", "0" ] },
        { "not": { "u_know_recipe": "practice_telekinetic_earthshaker" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "TELEKINETIC" } }, { "math": [ "u_spell_level('telekinetic_earthshaker')", ">=", "1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter')", "=", "0" ] },
      { "u_learn_recipe": "practice_telekinetic_earthshaker" },
      {
        "u_message": "Use of your powers has led to an insight.  You could grab the very earth with your powers, shaking it and causing a minor local earthquake, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  }
]
