[
  {
    "type": "effect_on_condition",
    "id": "blood_spiders_itch",
    "//": "Blood spiders effect should bother the player unless they are under the influence of stim_overdose, in which case the blood spiders are quieted.",
    "recurrence": [ "25 minutes", "1 hours 15 minutes" ],
    "condition": { "and": [ { "u_has_effect": "blood_spiders" }, { "not": { "u_has_effect": "formication" } } ] },
    "deactivate_condition": { "not": { "or": [ { "u_has_effect": "blood_spiders" }, { "u_has_effect": "stim_overdose" } ] } },
    "effect": [
      { "u_message": "The spiders in your veins itch!", "type": "bad" },
      { "u_add_effect": "formication", "duration": "10 minutes", "target_part": "RANDOM" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "xe_night_messages",
    "recurrence": [ "8 hours", "72 hours" ],
    "condition": { "and": [ { "one_in_chance": 6 }, { "not": "is_day" }, "u_can_see", "u_is_outside" ] },
    "effect": [
      {
        "if": { "or": [ { "is_weather": "clear" }, { "is_weather": "sunny" } ] },
        "then": { "u_message": "XE_NIGHT_MESSAGES_CLEAR_1", "snippet": true },
        "else": { "u_message": "XE_NIGHT_MESSAGES_CLOUDY_1", "snippet": true }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "xe_day_messages",
    "recurrence": [ "8 hours", "72 hours" ],
    "condition": { "and": [ { "one_in_chance": 6 }, "is_day", "u_can_see", { "is_weather": "clear" }, "u_is_outside" ] },
    "effect": [ { "u_message": "XE_DAY_MESSAGES_1", "snippet": true } ]
  },
  {
    "type": "effect_on_condition",
    "id": "xe_scraggy-boo_messages",
    "recurrence": [ "2 hours", "12 hours" ],
    "condition": { "u_has_items": { "item": "book_teens_deduction", "count": 1 } },
    "effect": [ { "u_message": "XE_SCRAGGY-BOO_MESSAGES_1", "snippet": true } ]
  },
  {
    "type": "effect_on_condition",
    "id": "xe_book_lies_carried",
    "recurrence": [ "20 minutes", "40 minutes" ],
    "condition": { "u_has_items": { "item": "book_deduction_lies", "count": 1 } },
    "effect": [
      { "math": [ "morale_book_lies = -3 * u_skill('deduction')" ] },
      {
        "u_add_morale": "morale_book_lies",
        "bonus": { "math": [ "morale_book_lies" ] },
        "max_bonus": { "math": [ "morale_book_lies" ] },
        "duration": "30 minutes",
        "decay_start": "15 minutes"
      },
      { "u_message": "XE_BOOK_LIES_CARRIED", "snippet": true }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "xe_book_lies_carried_no_tick_down",
    "recurrence": 60,
    "condition": { "u_has_items": { "item": "book_deduction_lies", "count": 1 } },
    "//": "The vitamin that scales everything the player gains and suffers from that book won't tick down if the book is carried.  It's a good idea to not carry that book.",
    "effect": [ { "math": [ "u_vitamin('xedra_knowing_lies') ++" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BOOK_LIES_NIGHTMARES",
    "eoc_type": "EVENT",
    "required_event": "character_wakes_up",
    "condition": { "math": [ "u_vitamin('xedra_knowing_lies') >= 500" ] },
    "effect": [
      { "u_message": "nightmares_book_lies", "snippet": true, "type": "bad" },
      { "math": [ "morale_book_lies = -3 * u_skill('deduction')" ] },
      {
        "u_add_morale": "morale_book_lies",
        "bonus": { "math": [ "morale_book_lies" ] },
        "max_bonus": { "math": [ "morale_book_lies" ] },
        "duration": "30 minutes",
        "decay_start": "15 minutes"
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "faeblood_hallu_light",
    "recurrence": [ "29 minutes", "29 minutes" ],
    "global": true,
    "condition": { "u_has_effect": "drank_fae_blood_hallucination", "intensity": 3 },
    "effect": [ { "u_add_effect": "hallu", "intensity": 1, "duration": "30 minutes" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "faeblood_hallu_hard",
    "recurrence": [ "29 minutes", "29 minutes" ],
    "condition": { "u_has_effect": "drank_fae_blood_hallucination", "intensity": 4 },
    "effect": [
      { "u_add_effect": "hallu", "intensity": 1, "duration": "30 minutes" },
      { "u_add_effect": "visuals", "intensity": 1, "duration": "30 minutes" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_EATER_CHECK",
    "global": true,
    "recurrence": [ "12 hours", "72 hours" ],
    "condition": { "math": [ "u_spell_count('school': 'EATER') >= 6" ] },
    "deactivate_condition": { "u_has_trait": "EATER_SIXTH_SENSE" },
    "effect": [
      {
        "u_message": "You suddenly realize that your ability to sense the unnatural has expanded to a level beyond those of the normal five senses.",
        "type": "good"
      },
      { "u_add_trait": "EATER_SIXTH_SENSE" }
    ]
  }
]
