[
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_biokin_potion_comedown" },
      { "u_add_effect": "effect_biokin_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "run_eocs": "EOC_BIOKIN_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BIOKIN_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_biokin_potion", "effect_matrix_potion_nether_boost" ] },
      { "u_add_effect": "effect_biokin_potion_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_clair_potion_comedown" },
      { "u_add_effect": "effect_clair_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "run_eocs": "EOC_CLAIR_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLAIR_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_clair_potion", "effect_matrix_potion_nether_boost" ] },
      { "u_add_effect": "effect_clair_potion_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ELECTROKIN_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_electrokin_potion_comedown" },
      { "u_add_effect": "effect_electrokin_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "run_eocs": "EOC_ELECTROKIN_POTION_JITTERS_CHECKER" },
      { "run_eocs": "EOC_ELECTROKIN_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ELECTROKIN_POTION_JITTERS_CHECKER",
    "condition": { "and": [ { "u_has_trait": "JITTERY" }, { "not": { "u_has_effect": "effect_electrokin_potion_comedown" } } ] },
    "effect": [ { "math": [ "u_preexisting_jittery_trait = 1" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ELECTROKIN_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_electrokin_potion", "effect_matrix_potion_nether_boost" ] },
      { "if": { "math": [ "u_preexisting_jittery_trait != 1" ] }, "then": { "u_add_trait": "JITTERY" } },
      { "u_add_effect": "effect_electrokin_potion_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ELECTROKIN_POTION_COMEDOWN_END",
    "eoc_type": "EVENT",
    "required_event": "character_loses_effect",
    "condition": { "compare_string": [ "effect_electrokin_potion_comedown", { "context_val": "effect" } ] },
    "effect": [ { "if": { "math": [ "u_preexisting_jittery_trait != 1" ] }, "then": { "u_lose_trait": "JITTERY" } } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PHOTOKIN_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_photokin_potion_comedown" },
      { "u_add_effect": "effect_photokin_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "u_add_trait": "PHOTOLIXIR_LIGHT" },
      { "run_eocs": "EOC_PHOTOKIN_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PHOTOKIN_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_photokin_potion", "effect_matrix_potion_nether_boost" ] },
      { "u_lose_trait": "PHOTOLIXIR_LIGHT" },
      { "u_lose_trait": "PHOTOLIXIR_LIGHT_active" },
      { "u_add_effect": "effect_photokin_potion_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_pyrokin_potion_comedown" },
      { "u_add_effect": "effect_pyrokin_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "run_eocs": "EOC_PYROKIN_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PYROKIN_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_pyrokin_potion", "effect_matrix_potion_nether_boost" ] },
      { "u_add_effect": "effect_pyrokin_potion_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_telekin_potion_comedown" },
      { "u_add_effect": "effect_telekin_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "u_add_trait": "TELELIXIRDOWN" },
      { "run_eocs": "EOC_TELEKIN_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEKIN_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_telekin_potion", "effect_matrix_potion_nether_boost" ] },
      { "u_add_effect": "effect_telekin_potion_comedown", "duration": [ "24 hours", "55 hours" ] },
      { "u_lose_trait": "TELELIXIRDOWN" },
      { "u_lose_trait": "TELELIXIRDOWN_active" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPATH_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_telepath_potion_comedown" },
      { "u_add_effect": "effect_telepath_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "run_eocs": "EOC_TELEPATH_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPATH_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_telepath_potion", "effect_matrix_potion_nether_boost" ] },
      { "u_add_effect": "effect_telepath_potion_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPORT_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_teleport_potion_comedown" },
      { "u_add_effect": "effect_teleport_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "run_eocs": "EOC_TELEPORT_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPORT_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_teleport_potion", "effect_matrix_potion_nether_boost" ] },
      { "u_add_effect": "effect_teleport_potion_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPORT_POTION_COMEDOWN_TELEPORT",
    "condition": { "u_has_effect": "effect_teleport_potion_comedown" },
    "recurrence": [ "30 minutes", "90 minutes" ],
    "deactivate_condition": { "not": { "u_has_effect": "effect_teleport_potion_comedown" } },
    "effect": [
      {
        "u_cast_spell": { "id": "teleport_blink_monster", "message": "Reality suddenly warps around you and you are somewhere else!" }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_POTION",
    "condition": { "not": { "u_has_trait": "CANNOT_GAIN_PSIONICS" } },
    "effect": [
      { "u_message": "You drink the concoction." },
      { "u_lose_effect": "effect_vitakin_potion_comedown" },
      { "u_add_effect": "effect_vitakin_potion", "duration": "30 hours" },
      { "u_add_effect": "effect_matrix_potion_nether_boost", "duration": "30 hours" },
      { "run_eocs": "EOC_VITAKIN_POTION_COMEDOWN", "time_in_future": [ "12 hours", "30 hours" ] }
    ],
    "false_effect": [
      { "u_message": "You drink the concoction." },
      { "u_add_effect": "effect_matrix_potion_headblind", "duration": [ "6 hours", "15 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": [ "effect_vitakin_potion", "effect_matrix_potion_nether_boost" ] },
      { "u_add_effect": "effect_vitakin_potion_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_NOETIC_RESILIENCE_TRIGGER",
    "eoc_type": "EVENT",
    "required_event": "character_gains_effect",
    "condition": { "compare_string": [ "effect_noetic_resilience_trigger", { "context_val": "effect" } ] },
    "effect": [ { "run_eocs": "EOC_DRAIN_RESIST_POTION_START_EFFECTS" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_DRAIN_RESIST_POTION_START_EFFECTS",
    "effect": [
      { "u_lose_effect": "effect_noetic_resilience_comedown" },
      { "u_add_effect": "effect_noetic_resilience", "duration": "30 hours" },
      { "run_eocs": "EOC_DRAIN_RESIST_POTION_COMEDOWN", "time_in_future": [ "18 hours", "30 hours" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_DRAIN_RESIST_POTION_COMEDOWN",
    "effect": [
      { "u_lose_effect": "effect_noetic_resilience" },
      { "u_add_effect": "effect_noetic_resilience_comedown", "duration": [ "24 hours", "55 hours" ] }
    ]
  }
]
