[
  {
    "type": "effect_on_condition",
    "id": "EOC_PERK_PHOENIX_RISING",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "and": [ { "u_has_trait": "perk_phoenix_rising" }, { "math": [ "u_vitamin('vitamin_psionic_drain') >= 155" ] } ] },
    "effect": [
      {
        "math": [
          "u_spellcasting_adjustment('cost', 'flag_whitelist': 'PSIONIC' )",
          "=",
          "((u_vitamin('vitamin_psionic_drain') - 154) * -0.0069)"
        ]
      }
    ]
  }
]
