[
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_CAUTERIZE",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_ONE_POWER_INSIGHT" },
            {
              "or": [
                { "math": [ "u_spell_level('pyrokinetic_lance') >= 5" ] },
                {
                  "and": [
                    { "math": [ "u_spell_level('pyrokinetic_eruption') >= 6" ] },
                    { "math": [ "u_spell_level('pyrokinetic_quell_flames') >= 6" ] }
                  ]
                }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_cauterize') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_cauterize" } }
      ]
    },
    "deactivate_condition": { "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_cauterize') >= 1" ] } ] },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_cauterize" },
      {
        "u_message": "Use of your powers has led to an insight.  You could focus your heat and sear bleeding wounds shut, stopping bleeding instantly at the cost of a small amount of further damage, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_CALL_FLAMES",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_ONE_POWER_INSIGHT" },
            { "or": [ { "math": [ "u_spell_level('pyrokinetic_eruption') >= 4" ] } ] }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_call_flames') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_call_flames" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_call_flames') >= 1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_call_flames" },
      {
        "u_message": "Use of your powers has led to an insight.  With a bit of concentration you could keep a fire going through your powers alone, burning on air and providing a source of heat and light without needing fuel, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_QUELL_FLAMES",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_one_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_ONE_POWER_INSIGHT" },
            { "or": [ { "math": [ "u_spell_level('pyrokinetic_call_flames') >= 5" ] } ] }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_quell_flames') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_quell_flames" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_quell_flames') >= 1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_quell_flames" },
      {
        "u_message": "Use of your powers has led to an insight.  Just as you can start fires, you could also stop them, harmlessly dispersing the heat and dissipating existing flames, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_CLOAK",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_TWO_POWER_INSIGHT" },
            {
              "or": [
                { "math": [ "u_spell_level('pyrokinetic_call_flames') >= 6" ] },
                { "math": [ "u_spell_level('pyrokinetic_eruption') >= 6" ] }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_cloak') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_cloak" } }
      ]
    },
    "deactivate_condition": { "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_cloak') >= 1" ] } ] },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_cloak" },
      {
        "u_message": "Use of your powers has led to an insight.  You could heat the air around yourself to an even greater degree, maintaining comfort and a pleasant temperature in the depths of winter, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_FLAMETHROWER",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_TWO_POWER_INSIGHT" },
            {
              "and": [
                { "math": [ "u_spell_level('pyrokinetic_call_flames') >= 7" ] },
                { "math": [ "u_spell_level('pyrokinetic_flash') >= 5" ] }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_flamethrower') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_flamethrower" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_flamethrower') >= 1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_flamethrower" },
      {
        "u_message": "Use of your powers has led to an insight.  Rather than focusing on a point, you could spew a swath of flames, damaging a whole group of enemies, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_LANCE",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_TWO_POWER_INSIGHT" },
            {
              "or": [
                {
                  "and": [
                    { "math": [ "u_spell_level('pyrokinetic_eruption') >= 9" ] },
                    { "math": [ "u_spell_level('pyrokinetic_quell_flames') >= 6" ] }
                  ]
                },
                { "math": [ "u_spell_level('pyrokinetic_call_flames') >= 6" ] }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_lance') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_lance" } }
      ]
    },
    "deactivate_condition": { "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_lance') >= 1" ] } ] },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_lance" },
      {
        "u_message": "Use of your powers has led to an insight.  You could focus your heat into a searing line, capable of welding or cutting through metal, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_THERMOGENESIS",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_TWO_POWER_INSIGHT" },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('pyrokinetic_call_flames') >= 10" ] },
                    { "math": [ "u_spell_level('pyrokinetic_cloak') >= 6" ] }
                  ]
                },
                { "math": [ "u_spell_level('pyrokinetic_flash') >= 7" ] }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_thermogenesis') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_thermogenesis" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_thermogenesis') >= 1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_thermogenesis" },
      {
        "u_message": "Use of your powers has led to an insight.  You could heat the air itself, making an entire room warm, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_AURA",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_TWO_POWER_INSIGHT" },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('pyrokinetic_thermogenesis') >= 5" ] },
                    { "math": [ "u_spell_level('pyrokinetic_flamethrower') >= 6" ] }
                  ]
                },
                { "math": [ "u_spell_level('pyrokinetic_cloak') >= 8" ] },
                { "math": [ "u_spell_level('pyrokinetic_eruption') >= 7" ] }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_aura') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_aura" } }
      ]
    },
    "deactivate_condition": { "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_aura') >= 1" ] } ] },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_aura" },
      {
        "u_message": "Use of your powers has led to an insight.  You could heat the air around yourself burning hot, injuring anyone engaged in melee combat with you, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_FLAME_IMMUNITY",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_THREE_POWER_INSIGHT" },
            {
              "and": [
                {
                  "or": [ { "math": [ "u_spell_level('pyrokinetic_cloak') >= 10" ] }, { "math": [ "u_spell_level('pyrokinetic_aura') >= 6" ] } ]
                },
                { "math": [ "u_spell_level('pyrokinetic_quell_flames') >= 9" ] }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_flame_immunity') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_flame_immunity" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_flame_immunity') >= 1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_flame_immunity" },
      {
        "u_message": "Use of your powers has led to an insight.  Your control over temperature is strong enough that you could keep yourself completely shielded from it, becoming totally immune to flame and heat, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_BLAST",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_THREE_POWER_INSIGHT" },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('pyrokinetic_flamethrower') >= 8" ] },
                    { "math": [ "u_spell_level('pyrokinetic_eruption') >= 13" ] }
                  ]
                },
                {
                  "or": [
                    { "math": [ "u_spell_level('pyrokinetic_thermogenesis') >= 6" ] },
                    { "math": [ "u_spell_level('pyrokinetic_aura') >= 6" ] }
                  ]
                }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_blast') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_blast" } }
      ]
    },
    "deactivate_condition": { "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_blast') >= 1" ] } ] },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_blast" },
      {
        "u_message": "Use of your powers has led to an insight.  With enough focused heat you could unleash an explosion, catching multiple enemies in its wake, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_AOE_BLAST",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_THREE_POWER_INSIGHT" },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('pyrokinetic_flamethrower') >= 12" ] },
                    { "math": [ "u_spell_level('pyrokinetic_blast') >= 6" ] }
                  ]
                },
                {
                  "or": [
                    { "math": [ "u_spell_level('pyrokinetic_thermogenesis') >= 10" ] },
                    { "math": [ "u_spell_level('pyrokinetic_flame_immunity') >= 6" ] }
                  ]
                }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_aoe_blast') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_aoe_blast" } }
      ]
    },
    "deactivate_condition": { "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_aoe_blast') >= 1" ] } ] },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_aoe_blast" },
      {
        "u_message": "Use of your powers has led to an insight.  You could build the heat up around yourself quickly enough to cause an expanding explosion and protect yourself from its effects, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_LEARNING_INCINERATION",
    "recurrence": [
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
      { "math": [ "jmath_pyrokinesis_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
    ],
    "condition": {
      "and": [
        { "u_has_trait": "PYROKINETIC" },
        { "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
        {
          "or": [
            { "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_THREE_POWER_INSIGHT" },
            {
              "and": [
                {
                  "or": [
                    { "math": [ "u_spell_level('pyrokinetic_eruption') >= 14" ] },
                    { "math": [ "u_spell_level('pyrokinetic_flamethrower') >= 10" ] }
                  ]
                },
                { "math": [ "u_spell_level('pyrokinetic_blast') >= 10" ] },
                { "math": [ "u_spell_level('pyrokinetic_aoe_blast') >= 6" ] }
              ]
            }
          ]
        },
        { "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
        { "math": [ "u_spell_level('pyrokinetic_incineration') <= 0" ] },
        { "not": { "u_know_recipe": "practice_pyrokinetic_incineration" } }
      ]
    },
    "deactivate_condition": {
      "or": [ { "not": { "u_has_trait": "PYROKINETIC" } }, { "math": [ "u_spell_level('pyrokinetic_incineration') >= 1" ] } ]
    },
    "effect": [
      { "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
      { "u_learn_recipe": "practice_pyrokinetic_incineration" },
      {
        "u_message": "Use of your powers has led to an insight.  By focusing all of your power on a single point, you could raise the temperature there thousands of degrees, incinerating whatever you're focused on, if you can figure out the proper technique.",
        "popup": true
      }
    ]
  }
]
