[
  {
    "type": "effect_on_condition",
    "id": "EOC_CONDITION_SKY_ISLAND_ON_THE_ISLAND",
    "//": "Used for Paraclesians so they can learn their spells on the sky island.  Always false if not on the island so it's ignored.",
    "condition": { "math": [ "1 == 0" ] },
    "effect": [  ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PARACLESIAN_FAE_SIGHT_ON",
    "effect": [ { "u_add_effect": "effect_paraclesian_see_fae", "duration": "PERMANENT" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PARACLESIAN_FAE_SIGHT_PROCESSING",
    "condition": { "math": [ "u_val('mana') >= 1" ] },
    "effect": {
      "run_eocs": [
        {
          "id": "EOC_PARACLESIAN_FAE_SIGHT_PROCESSING_2",
          "condition": { "x_in_y_chance": { "x": 1, "y": 8 } },
          "effect": [ { "math": [ "u_val('mana')", "-=", "1" ] } ]
        }
      ]
    },
    "false_effect": [
      { "u_message": "You do not have enough mana to fuel your fae sight!", "type": "bad" },
      { "u_lose_effect": "effect_paraclesian_see_fae" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PARACLESIAN_FAE_SIGHT_OFF",
    "effect": [ { "u_lose_effect": "effect_paraclesian_see_fae" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PARACLESIAN_WYRD_SIGHT_ON",
    "effect": [ { "u_add_effect": "effect_paraclesian_see_fae", "duration": "PERMANENT" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PARACLESIAN_WYRD_SIGHT_OFF",
    "effect": [ { "u_lose_effect": "effect_paraclesian_see_fae" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_SUCCESSFUL_ROLL_REMAINDER_GOSSAMER_RECIPE",
    "effect": { "u_message": "Your dreams have revealed to you a recipe for gossamer raiment.", "type": "good" }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PARACLESIAN_GOSSAMER_RECIPES",
    "eoc_type": "EVENT",
    "required_event": "character_wakes_up",
    "condition": {
      "and": [
        { "u_has_trait": "PARACLESIAN_LEARN_GOSSAMER_RECIPES" },
        { "not": { "u_has_effect": "effect_paraclesian_learned_gossamer" } }
      ]
    },
    "effect": [
      { "u_add_effect": "effect_paraclesian_learned_gossamer", "duration": { "math": [ "rand(864000) + 345600" ] } },
      {
        "u_roll_remainder": [
          "tunic_gossamer",
          "sleeveless_tunic_gossamer",
          "doublet_gossamer",
          "dress_gossamer",
          "gown_gossamer",
          "cloak_gossamer",
          "jacket_light_gossamer",
          "robe_wizard_gossamer",
          "gloves_light_gossamer",
          "loincloth_gossamer",
          "pants_gossamer",
          "pants_no_pocket_gossamer",
          "skirt_gossamer",
          "skirt_long_gossamer",
          "socks_gossamer",
          "stockings_gossamer",
          "slippers_gossamer",
          "sheet_gossamer_patchwork",
          "gambeson_gossamer",
          "gambeson_hood_gossamer",
          "gambeson_pants_gossamer",
          "gambeson_batting_gossamer"
        ],
        "type": "recipe",
        "true_eocs": [ "EOC_SUCCESSFUL_ROLL_REMAINDER_GOSSAMER_RECIPE" ],
        "false_eocs": [  ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PARACLESIAN_TURN_COTTON_TO_GOSSAMER",
    "condition": { "and": [ { "not": "is_day" }, "u_is_outside" ] },
    "effect": [
      { "u_cast_spell": { "id": "paraclesian_spell_make_gossamer_real" } },
      {
        "u_message": "The moonlight permeates the cotton and it begins to shimmer like an opal in the sunlight.",
        "type": "good"
      }
    ],
    "false_effect": { "u_message": "You must be outdoors under the moonlight to turn cotton into gossamer." }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_WANTS_TO_TALK",
    "eoc_type": "EVENT",
    "required_event": "character_gains_effect",
    "condition": { "and": [ "u_is_npc", { "compare_string": [ "effect_wants_to_talk", { "context_val": "effect" } ] } ] },
    "effect": [
      { "u_lose_effect": "effect_wants_to_talk" },
      {
        "if": { "not": { "u_has_trait": "FINAL_DISCUSSION" } },
        "then": [ { "u_add_trait": "FINAL_DISCUSSION" }, "u_wants_to_talk" ],
        "else": [ { "u_lose_effect": "effect_wants_to_talk" }, { "message": "You cannot lead this person to talk to you anymore." } ]
      }
    ]
  }
]
