[
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_BETTER_SENSES_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_better_senses" } },
    "effect": [
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_message": "All of your senses are enhanced.", "type": "good" },
      { "u_add_effect": "effect_clair_better_senses", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_BETTER_SENSES_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('clair_better_senses') + u_spell_level('clair_better_senses_knack') ) * 215) + 595) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('clair_better_senses') + u_spell_level('clair_better_senses_knack') ) * 482) + 1264) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_BETTER_SENSES" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_BETTER_SENSES",
    "condition": { "u_has_effect": "effect_clair_better_senses" },
    "effect": [
      { "u_message": "The world now seems separated from you by a thin veil.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" },
      { "u_lose_effect": "effect_clair_better_senses" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_BETTER_SENSES_DRAIN",
    "condition": { "u_has_effect": "effect_clair_better_senses" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 1" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      {
        "if": { "math": [ "u_spell_level('clair_better_senses') >= 1" ] },
        "then": { "math": [ "u_spell_exp('clair_better_senses')", "+=", "psionic_power_experience_formula()" ] },
        "else": { "math": [ "u_spell_exp('clair_better_senses_knack')", "+=", "psionic_power_experience_formula()" ] }
      },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_BETTER_SENSES_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('clair_better_senses') + u_spell_level('clair_better_senses_knack') ) * 215) + 595) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('clair_better_senses') + u_spell_level('clair_better_senses_knack') ) * 482) + 1264) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_NIGHT_EYES_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_night_eyes" } },
    "effect": [
      { "u_message": "You open your senses to the world.", "type": "good" },
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE" ] },
      { "u_add_effect": "effect_clair_night_eyes", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_NIGHT_EYES_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('clair_night_vision') * 150 ) + 290) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('clair_night_vision') * 270 ) + 980) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_NIGHT_EYES" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_NIGHT_EYES",
    "condition": { "u_has_effect": "effect_clair_night_eyes" },
    "effect": [
      {
        "u_lose_effect": [
          "effect_clair_night_eyes_1",
          "effect_clair_night_eyes_2",
          "effect_clair_night_eyes_3",
          "effect_clair_night_eyes_4",
          "effect_clair_night_eyes_5",
          "effect_clair_night_eyes_6",
          "effect_clair_night_eyes_7",
          "effect_clair_night_eyes_8",
          "effect_clair_night_eyes"
        ]
      },
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_NIGHT_EYES_DRAIN",
    "condition": { "u_has_effect": "effect_clair_night_eyes" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 1" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('clair_night_vision')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_NIGHT_EYES_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( ( (u_spell_level('clair_night_vision') * 150 ) + 290) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( ( (u_spell_level('clair_night_vision') * 270 ) + 980) * (scaling_factor(u_val('intelligence') ) ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_SPEED_READING_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_speed_reader" } },
    "effect": [
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_message": "You feel like sitting down with a good book.", "type": "good" },
      { "u_add_effect": "effect_clair_speed_reader", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_SPEED_READING_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_speed_reading') * 372) + 7200) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_speed_reading') * 810) + 1400) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_SPEED_READ" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_SPEED_READ",
    "condition": { "u_has_effect": "effect_clair_speed_reader" },
    "effect": [
      { "u_message": "Your eyes ache a bit.  Maybe it's time to put the book down.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" },
      { "u_lose_effect": "effect_clair_speed_reader" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_SPEED_READING_DRAIN",
    "condition": { "u_has_effect": "effect_clair_speed_reader" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 2" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('clair_speed_reading')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_SPEED_READING_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_speed_reading') * 372) + 720) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_speed_reading') * 810) + 1400) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_SEE_AURAS_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_see_auras" } },
    "effect": [
      { "u_message": "Swirling colors coalesce around others' bodies", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_clair_see_auras", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_SEE_AURAS_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_see_auras') * 90) + 650) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_see_auras') * 190) + 1130) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_SEE_AURAS" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_SEE_AURAS",
    "condition": { "u_has_effect": "effect_clair_see_auras" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_clair_see_auras" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_SEE_AURAS_DRAIN",
    "condition": { "u_has_effect": "effect_clair_see_auras" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 3" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('clair_see_auras')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_SEE_AURAS_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_see_auras') * 90) + 650) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_see_auras') * 190) + 1130) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_DANGER_SENSE_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_premonition" } },
    "effect": [
      { "u_message": "You open your senses to the dangers of the world.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_clair_premonition", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_DANGER_SENSE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_danger_sense') * 45) + 120) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_danger_sense') * 75) + 490) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_DANGER_SENSE" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_DANGER_SENSE",
    "condition": { "u_has_effect": "effect_clair_premonition" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_clair_premonition" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_DANGER_SENSE_DRAIN",
    "condition": { "u_has_effect": "effect_clair_premonition" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 2" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      {
        "if": { "math": [ "u_spell_level('clair_danger_sense') >= 1" ] },
        "then": { "math": [ "u_spell_exp('clair_danger_sense')", "+=", "psionic_power_experience_formula()" ] },
        "else": { "math": [ "u_spell_exp('clair_danger_sense_knack')", "+=", "psionic_power_experience_formula()" ] }
      },
      { "math": [ "u_spell_exp('clair_danger_sense')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_DANGER_SENSE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_danger_sense') * 45) + 120) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_danger_sense') * 75) + 490) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_RANGED_ENHANCE_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_ranged_enhance" } },
    "effect": [
      {
        "u_message": "Distances seem to narrow and your enemies' movements seem to slow as their vulnerabilities are laid bare.",
        "type": "good"
      },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_clair_ranged_enhance", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_RANGED_ENHANCE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_ranged_enhance') * 8) + 210) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_ranged_enhance') * 25) + 640) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_RANGED_ENHANCE" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_RANGED_ENHANCE",
    "condition": { "u_has_effect": "effect_clair_ranged_enhance" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_clair_ranged_enhance" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_RANGED_ENHANCE_DRAIN",
    "condition": { "u_has_effect": "effect_clair_ranged_enhance" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 4" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('clair_ranged_enhance')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_RANGED_ENHANCE_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_ranged_enhance') * 8) + 210) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_ranged_enhance') * 25) + 640) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_DODGE_POWER_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_dodge" } },
    "effect": [
      { "u_message": "You can see a premonition of your enemies' attacks like a ghostly image.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_clair_dodge", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_DODGE_POWER_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_dodge_power') * 9) + 120) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_dodge_power') * 17) + 450) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_DODGE_POWER" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_DODGE_POWER",
    "condition": { "u_has_effect": "effect_clair_dodge" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_clair_dodge" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_DODGE_POWER_DRAIN",
    "condition": { "u_has_effect": "effect_clair_dodge" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 6" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('clair_dodge_power')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_DODGE_POWER_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_dodge_power') * 9) + 120) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_dodge_power') * 17) + 450) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_CRAFT_BONUS_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_craft_bonus" } },
    "effect": [
      { "u_message": "You can see how it all fits together, and how it *should* fit together.", "type": "good" },
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE", "EOC_CLAIR_CRAFT_BONUS_SWITCHER" ] },
      { "u_add_effect": "effect_clair_craft_bonus", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_CRAFT_BONUS_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_craft_bonus') * 250) + 1215) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_craft_bonus') * 600) + 2700) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_CRAFT_BONUS" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_CRAFT_BONUS_SWITCHER",
    "effect": {
      "switch": { "math": [ "u_spell_level('clair_craft_bonus')" ] },
      "cases": [
        { "case": 0, "effect": { "u_add_trait": "CLAIR_CRAFT_BONUS_01" } },
        { "case": 4, "effect": { "u_add_trait": "CLAIR_CRAFT_BONUS_02" } },
        { "case": 8, "effect": { "u_add_trait": "CLAIR_CRAFT_BONUS_03" } },
        { "case": 12, "effect": { "u_add_trait": "CLAIR_CRAFT_BONUS_04" } },
        { "case": 16, "effect": { "u_add_trait": "CLAIR_CRAFT_BONUS_05" } },
        { "case": 20, "effect": { "u_add_trait": "CLAIR_CRAFT_BONUS_06" } }
      ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_CRAFT_BONUS",
    "condition": { "u_has_effect": "effect_clair_craft_bonus" },
    "effect": [
      { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" },
      { "u_lose_effect": "effect_clair_craft_bonus" },
      { "u_lose_trait": "CLAIR_CRAFT_BONUS_01" },
      { "u_lose_trait": "CLAIR_CRAFT_BONUS_02" },
      { "u_lose_trait": "CLAIR_CRAFT_BONUS_03" },
      { "u_lose_trait": "CLAIR_CRAFT_BONUS_04" },
      { "u_lose_trait": "CLAIR_CRAFT_BONUS_05" },
      { "u_lose_trait": "CLAIR_CRAFT_BONUS_06" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_CRAFT_BONUS_DRAIN",
    "condition": { "u_has_effect": "effect_clair_craft_bonus" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 6" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('clair_craft_bonus')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_CRAFT_BONUS_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_craft_bonus') * 250) + 1215) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_craft_bonus') * 600) + 2700) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_CLEAR_SIGHT_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_clear_sight" } },
    "effect": [
      { "u_message": "Your senses sharpen and all distractions vanish.", "type": "good" },
      { "run_eocs": "EOC_POWER_MAINTENANCE_PLUS_ONE" },
      { "u_add_effect": "effect_clair_clear_sight", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_CLEAR_SIGHT_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_clear_sight') * 12) + 150) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_clear_sight') * 25) + 450) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_CLEAR_SIGHT" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_CLEAR_SIGHT",
    "condition": { "u_has_effect": "effect_clair_clear_sight" },
    "effect": [ { "run_eocs": "EOC_POWER_MAINTENANCE_MINUS_ONE" }, { "u_lose_effect": "effect_clair_clear_sight" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_CLEAR_SIGHT_DRAIN",
    "condition": { "u_has_effect": "effect_clair_clear_sight" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 8" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('clair_clear_sight')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_CLEAR_SIGHT_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_clear_sight') * 12) + 150) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_clear_sight') * 25) + 450) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_GROUP_TACTICS_INITIATE",
    "condition": { "not": { "u_has_effect": "effect_clair_group_tactics_self" } },
    "effect": [
      {
        "u_message": "As the visions overtake you, you start involuntarily calling out warnings to your allies.",
        "type": "good"
      },
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_PLUS_ONE", "EOC_POWER_MAINTENANCE_PLUS_ONE" ] },
      { "u_add_effect": "effect_clair_group_tactics_self", "duration": "PERMANENT" },
      {
        "run_eocs": "EOC_CLAIR_GROUP_TACTICS_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_group_tactics') * 9) + 60) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_group_tactics') * 23) + 180) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [ { "run_eocs": "EOC_CLAIR_REMOVE_GROUP_TACTICS" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_REMOVE_GROUP_TACTICS",
    "condition": { "u_has_effect": "effect_clair_group_tactics_self" },
    "effect": [
      { "run_eocs": [ "EOC_POWER_MAINTENANCE_MINUS_ONE", "EOC_POWER_MAINTENANCE_MINUS_ONE" ] },
      { "u_lose_effect": "effect_clair_group_tactics_self" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_GROUP_TACTICS_DRAIN",
    "condition": { "u_has_effect": "effect_clair_group_tactics_self" },
    "effect": [
      { "math": [ "u_latest_channeled_power_difficulty = 9" ] },
      { "run_eocs": [ "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2", "EOC_PSI_MAINTENANCE_CALORIE_COST_CALCULATOR" ] },
      { "math": [ "u_spell_exp('clair_group_tactics')", "+=", "psionic_power_experience_formula()" ] },
      { "run_eocs": "EOC_POWER_MAINTENANCE_CONCENTRATION_CHECK" },
      {
        "run_eocs": "EOC_CLAIR_GROUP_TACTICS_DRAIN",
        "time_in_future": [
          {
            "math": [
              "( (u_spell_level('clair_group_tactics') * 9) + 60) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          },
          {
            "math": [
              "( (u_spell_level('clair_group_tactics') * 23) + 180) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
            ]
          }
        ]
      }
    ],
    "false_effect": [  ]
  }
]
