[
  {
    "type": "effect_on_condition",
    "id": "EOC_metamagic_toggle_careful",
    "condition": { "compare_string": [ "yes", { "u_val": "perk_metamagic_careful_deactivated" } ] },
    "effect": [
      { "u_message": "You activate your careful metamagic" },
      { "u_add_var": "perk_metamagic_careful_deactivated", "value": "no" }
    ],
    "false_effect": [
      { "u_message": "You deactivate your careful metamagic" },
      { "u_add_var": "perk_metamagic_careful_deactivated", "value": "yes" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_metamagic_careful",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": {
      "and": [
        { "u_has_trait": "perk_metamagic_careful" },
        { "not": { "compare_string": [ "yes", { "u_val": "perk_metamagic_careful_deactivated" } ] } }
      ]
    },
    "effect": [
      { "math": [ "u_spellcasting_adjustment('casting_time', 'mod': 'magiclysm'  ) = 2" ] },
      { "math": [ "u_spellcasting_adjustment('difficulty', 'mod': 'magiclysm' ) = -5" ] }
    ]
  }
]
