[
  {
    "type": "effect_on_condition",
    "id": "EOC_DREAMS_DEDUCTION_SKILL_EXP",
    "eoc_type": "EVENT",
    "required_event": "spellcasting_finish",
    "condition": {
      "and": [
        {
          "u_has_any_trait": [
            "EATER",
            "DREAMER",
            "DREAMSMITH",
            "INVENTOR",
            "CHANGELING_MAGIC",
            "ARVORE",
            "IERDE",
            "HOMULLUS",
            "SALAMANDER",
            "UNDINE",
            "SYLPH",
            "VAMPIRE"
          ]
        },
        {
          "or": [
            { "compare_string": [ "EATER", { "context_val": "school" } ] },
            { "compare_string": [ "DREAMER", { "context_val": "school" } ] },
            { "compare_string": [ "DREAMSMITH", { "context_val": "school" } ] },
            { "compare_string": [ "INVENTOR", { "context_val": "school" } ] },
            { "compare_string": [ "CHANGELING_MAGIC", { "context_val": "school" } ] },
            { "compare_string": [ "CHANGELING_SEASONAL_MAGIC_SPRING", { "context_val": "school" } ] },
            { "compare_string": [ "CHANGELING_SEASONAL_MAGIC_SUMMER", { "context_val": "school" } ] },
            { "compare_string": [ "CHANGELING_SEASONAL_MAGIC_AUTUMN", { "context_val": "school" } ] },
            { "compare_string": [ "CHANGELING_SEASONAL_MAGIC_WINTER", { "context_val": "school" } ] },
            { "compare_string": [ "ARVORE", { "context_val": "school" } ] },
            { "compare_string": [ "IERDE", { "context_val": "school" } ] },
            { "compare_string": [ "HOMULLUS", { "context_val": "school" } ] },
            { "compare_string": [ "SALAMANDER", { "context_val": "school" } ] },
            { "compare_string": [ "UNDINE", { "context_val": "school" } ] },
            { "compare_string": [ "SYLPH", { "context_val": "school" } ] },
            { "compare_string": [ "VAMPIRE", { "context_val": "school" } ] }
          ]
        }
      ]
    },
    "effect": [ { "math": [ "u_skill_exp('deduction', 'format': 'raw')", "+=", "250" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CALL_DAFFODIL",
    "condition": { "u_has_effect": "called_daffodil" },
    "effect": [ { "u_message": "You can't call more daffodil yet.", "type": "bad" } ],
    "false_effect": [ { "u_add_effect": "called_daffodil", "duration": "24 hours" }, { "u_cast_spell": { "id": "call_daffodil_real" } } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_caster_necklace_boost",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": { "u_is_wearing": "dream_attuning_necklace" },
    "effect": [
      { "math": [ "u_school_level_adjustment('DREAMER')", "+=", "5" ] },
      { "math": [ "u_school_level_adjustment('EATER')", "+=", "5" ] },
      { "math": [ "u_school_level_adjustment('DREAMSMITH')", "+=", "5" ] },
      { "math": [ "u_school_level_adjustment('INVENTOR')", "+=", "5" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_SHADOW_LOOT",
    "effect": [
      { "u_message": "As the shadow dissipates, it leaves something behind.", "type": "good" },
      { "u_spawn_item": "shadow_singularity_piece", "count": 1 }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_DREAM_DRAINER_LOOT",
    "effect": [
      { "u_message": "As the mosquito fades away, it leaves something behind.", "type": "good" },
      { "u_spawn_item": "dream_drainer_heart", "count": 1 }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_LUNA_ATTUNED_LOOT",
    "effect": [
      { "u_message": "As the revenant decoheres, it leaves something behind.", "type": "good" },
      { "u_spawn_item": "moonstruck_pearl", "count": 1 }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ATTEMPT_TO_MAKE_STORMWROUGHT_BLOOD",
    "effect": [
      { "u_location_variable": { "context_val": "near_tear" }, "field": "fd_fatigue", "target_max_radius": 5 },
      {
        "if": { "map_field_id": "fd_fatigue", "loc": { "context_val": "near_tear" } },
        "then": { "run_eocs": "EOC_ATTEMPT_TO_MAKE_STORMWROUGHT_BLOOD_SUCCESS" },
        "else": { "run_eocs": "EOC_ATTEMPT_TO_MAKE_STORMWROUGHT_BLOOD_FAIL" }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ATTEMPT_TO_MAKE_STORMWROUGHT_BLOOD_SUCCESS",
    "effect": [
      { "u_spawn_item": "stormwrought_blood_itert" },
      {
        "u_message": "The ritual harnesses the energies of the tear to infuse some blood with it, leaving behind a small ball of almost-solid blood.  It only needs to bath in the energies of the storms until it is fully charged and it will be ready to use.",
        "type": "good"
      },
      { "run_eocs": "EOC_CAUSE_EARLY_PORTAL_STORM" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ATTEMPT_TO_MAKE_STORMWROUGHT_BLOOD_FAIL",
    "effect": [
      {
        "u_message": "Without the proximity of a tear in reality, the ritual fails to harness any energy and the blood boils away.",
        "type": "bad"
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "CHARGE_STORMWROUGHT_BLOOD",
    "recurrence": "5 minutes",
    "global": true,
    "condition": {
      "and": [
        {
          "or": [
            { "is_weather": "portal_storm" },
            { "and": [ { "is_weather": "distant_portal_storm" }, { "one_in_chance": 12 } ] },
            { "is_weather": "close_portal_storm" }
          ]
        },
        { "u_has_item": "stormwrought_blood_itert" },
        "u_is_outside"
      ]
    },
    "deactivate_condition": {
      "not": {
        "or": [ { "is_weather": "portal_storm" }, { "is_weather": "distant_portal_storm" }, { "is_weather": "close_portal_storm" } ]
      }
    },
    "effect": [
      { "math": [ "u_stormwrought_blood_charge++" ] },
      {
        "run_eocs": [
          {
            "id": "STORMWROUGHT_BLOOD_FULL_CHARGE",
            "condition": { "math": [ "u_stormwrought_blood_charge >= 25" ] },
            "effect": [
              { "u_message": "As the stormwrought blood becomes fully charged, it starts simmering.", "type": "good" },
              { "u_remove_item_with": "stormwrought_blood_itert" },
              { "u_spawn_item": "stormwrought_blood_charged", "suppress_message": true },
              { "math": [ "u_stormwrought_blood_charge = 0" ] }
            ],
            "false_effect": [
              {
                "run_eocs": [
                  {
                    "id": "STORMWROUGHT_BLOOD_HIGH_CHARGE",
                    "condition": { "math": [ "u_stormwrought_blood_charge >= 10" ] },
                    "effect": [
                      {
                        "u_message": "The stormwrought blood boils intensely for a moment before returning to its inert state.",
                        "type": "info"
                      }
                    ],
                    "false_effect": [
                      {
                        "run_eocs": [
                          {
                            "id": "STORMWROUGHT_BLOOD_LOW_CHARGE",
                            "condition": { "math": [ "u_stormwrought_blood_charge >= 1" ] },
                            "effect": [ { "u_message": "The stormwrought blood boils a little, then becomes inert again.", "type": "info" } ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_SUMMON_DREAM_DRAINER",
    "effect": [
      { "u_location_variable": { "context_val": "loc" } },
      {
        "run_eocs": [
          {
            "id": "EOC_SUMMON_DREAM_DRAINER_2",
            "effect": [
              { "npc_cast_spell": { "id": "dream_drainer_maker_real", "min_level": 1 }, "loc": { "context_val": "loc" } },
              { "u_remove_item_with": "dream_drainer_catalyst" },
              { "remove_active_mission": "MISSION_KILL_DREAM_DRAINER" },
              { "assign_mission": "MISSION_KILL_DREAM_DRAINER" },
              {
                "npc_message": "The mosquito consumes the catalyst and suddenly starts filling with air as it reshapes itself.",
                "type": "mixed"
              }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CHECK_TO_SUMMON_REVENANT",
    "effect": {
      "run_eocs": [
        {
          "id": "EOC_CHECK_TO_SUMMON_REVENANT_MOON_DARK_OUTSIDE",
          "condition": { "and": [ { "math": [ "moon_phase() == 4" ] }, "u_is_outside", { "not": "is_day" } ] },
          "effect": [
            {
              "u_message": "You utter the last words of the ritual and the revenant suddently animates, disappears and reappears nearby, a deadly glare in its eyes.",
              "type": "mixed"
            },
            {
              "u_spawn_monster": "mon_luna_attuned_revenant",
              "real_count": 1,
              "min_radius": 20,
              "max_radius": 25,
              "spawn_message": "You see a flash of moonlight surrounding a tall, slender being.",
              "spawn_message_plural": "You see a flash of moonlight surrounding tall, slender beings."
            },
            { "u_remove_item_with": "revenant_effigy" },
            { "assign_mission": "MISSION_KILL_LUNA_ATTUNED" },
            { "run_eocs": "EOC_REMOVE_LUNA_MISSION", "time_in_future": [ "1 d", "1 d" ] }
          ],
          "false_effect": [
            {
              "u_message": "The revenant cannot be animated unless a sufficient amount of the light of a full moon shines upon it.",
              "type": "bad"
            }
          ]
        }
      ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_REMOVE_LUNA_MISSION",
    "effect": { "remove_active_mission": "MISSION_KILL_LUNA_ATTUNED" }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CALL_NEXT_WEATHER",
    "effect": [ "next_weather" ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_LEARN_MOONS_TEARS_RECIPES",
    "effect": [
      {
        "u_roll_remainder": [
          "moon_tear_ingot",
          "moons_tears_knife_baselard",
          "moons_tears_broadsword",
          "moons_tears_arming_sword",
          "moons_tears_mace",
          "moons_tears_scimitar",
          "moons_tears_estoc",
          "moons_tears_spear",
          "moons_tears_battleaxe",
          "moons_tears_katana"
        ],
        "type": "recipe",
        "true_eocs": [  ],
        "false_eocs": [  ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_SLEEP_NEAR_SEVENOCLOCK",
    "eoc_type": "EVENT",
    "required_event": "character_attempt_to_fall_asleep",
    "condition": { "u_has_effect": "effect_sleep_shield_check" },
    "effect": [ { "run_eocs": [ "EOC_SLEEP_SHIELD_SEVENOCLOCK", "EOC_MINIMUM_TIME_ASLEEP" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_MINIMUM_TIME_ASLEEP",
    "condition": { "math": [ "u_val('sleepiness') <= 100" ] },
    "effect": [ { "math": [ "u_val('sleepiness') = 100" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_SLEEP_SHIELD_SEVENOCLOCK",
    "condition": { "not": { "math": [ "u_val('pos_z') == 10" ] } },
    "effect": [
      {
        "run_eocs": {
          "id": "EOC_SLEEP_SHIELD_SEVENOCLOCK_2",
          "effect": [
            { "u_add_effect": "sleep", "duration": "8 hours" },
            { "u_add_effect": "effect_hedge_no_nightmares", "duration": "8 hours" },
            { "u_add_effect": "effect_sleep_shield", "duration": "72 hours" },
            { "u_location_variable": { "u_val": "SLEEP_SHIELD_location" }, "min_radius": 0, "max_radius": 0 },
            {
              "u_location_variable": { "u_val": "SLEEP_SHIELD_destination" },
              "min_radius": 0,
              "max_radius": 0,
              "z_adjust": 10,
              "z_override": true
            },
            { "u_teleport": { "u_val": "SLEEP_SHIELD_destination" }, "force": true }
          ]
        }
      }
    ],
    "false_effect": [
      {
        "u_message": "Distrustful of the shenanigans you used to bring him at such a high altitude, the Man of the Nineteenth Hour refuses to shield you!",
        "type": "bad"
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_WAKE_UP_FROM_SLEEP_SHIELD",
    "eoc_type": "EVENT",
    "required_event": "character_wakes_up",
    "condition": { "u_has_effect": "effect_sleep_shield" },
    "effect": [ { "u_lose_effect": "effect_sleep_shield" }, { "u_teleport": { "u_val": "SLEEP_SHIELD_location" }, "force": true } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_FULL_MORALE_NEUTRALIZATION",
    "//": "I really wish there were a better way to do this.",
    "effect": [
      { "u_lose_morale": "morale_bile" },
      { "u_lose_morale": "morale_food_good" },
      { "u_lose_morale": "morale_food_hot" },
      { "u_lose_morale": "morale_chat" },
      { "u_lose_morale": "morale_chat_uncaring" },
      { "u_lose_morale": "morale_ate_with_table" },
      { "u_lose_morale": "morale_ate_without_table" },
      { "u_lose_morale": "morale_music" },
      { "u_lose_morale": "morale_honey" },
      { "u_lose_morale": "morale_game" },
      { "u_lose_morale": "morale_marloss" },
      { "u_lose_morale": "morale_mutagen" },
      { "u_lose_morale": "morale_feeling_good" },
      { "u_lose_morale": "morale_support" },
      { "u_lose_morale": "morale_photos" },
      { "u_lose_morale": "morale_craving_nicotine" },
      { "u_lose_morale": "morale_craving_caffeine" },
      { "u_lose_morale": "morale_craving_alcohol" },
      { "u_lose_morale": "morale_craving_opiate" },
      { "u_lose_morale": "morale_craving_speed" },
      { "u_lose_morale": "morale_craving_cocaine" },
      { "u_lose_morale": "morale_craving_crack" },
      { "u_lose_morale": "morale_craving_mutagen" },
      { "u_lose_morale": "morale_craving_diazepam" },
      { "u_lose_morale": "morale_craving_marloss" },
      { "u_lose_morale": "morale_food_bad" },
      { "u_lose_morale": "morale_cannibal" },
      { "u_lose_morale": "morale_demicannibal" },
      { "u_lose_morale": "morale_vegetarian" },
      { "u_lose_morale": "morale_antiveggy" },
      { "u_lose_morale": "morale_meatarian" },
      { "u_lose_morale": "morale_antimeat" },
      { "u_lose_morale": "morale_antifruit" },
      { "u_lose_morale": "morale_lactose" },
      { "u_lose_morale": "morale_antijunk" },
      { "u_lose_morale": "morale_antiwheat" },
      { "u_lose_morale": "morale_sweettooth" },
      { "u_lose_morale": "morale_no_digest" },
      { "u_lose_morale": "morale_wet" },
      { "u_lose_morale": "morale_dried_off" },
      { "u_lose_morale": "morale_cold" },
      { "u_lose_morale": "morale_hot" },
      { "u_lose_morale": "morale_feeling_bad" },
      { "u_lose_morale": "morale_bad_protein_bar" },
      { "u_lose_morale": "morale_killed_innocent" },
      { "u_lose_morale": "morale_killed_friend" },
      { "u_lose_morale": "morale_killed_monster" },
      { "u_lose_morale": "morale_mutilate_corpse" },
      { "u_lose_morale": "morale_mutagen_elf" },
      { "u_lose_morale": "morale_mutagen_chimera" },
      { "u_lose_morale": "morale_mutagen_mutation" },
      { "u_lose_morale": "morale_moodswing" },
      { "u_lose_morale": "morale_book" },
      { "u_lose_morale": "morale_comfy" },
      { "u_lose_morale": "morale_scream" },
      { "u_lose_morale": "morale_perm_masochist" },
      { "u_lose_morale": "morale_perm_radiophile" },
      { "u_lose_morale": "morale_perm_noface" },
      { "u_lose_morale": "morale_perm_fpmode_on" },
      { "u_lose_morale": "morale_perm_hoarder" },
      { "u_lose_morale": "morale_perm_fancy" },
      { "u_lose_morale": "morale_perm_optimist" },
      { "u_lose_morale": "morale_perm_badtemper" },
      { "u_lose_morale": "morale_perm_numb" },
      { "u_lose_morale": "morale_perm_constrained" },
      { "u_lose_morale": "morale_perm_nomad" },
      { "u_lose_morale": "morale_game_found_kitten" },
      { "u_lose_morale": "morale_haircut" },
      { "u_lose_morale": "morale_shave" },
      { "u_lose_morale": "morale_vomited" },
      { "u_lose_morale": "morale_play_with_pet" },
      { "u_lose_morale": "morale_pyromania_startfire" },
      { "u_lose_morale": "morale_pyromania_nearfire" },
      { "u_lose_morale": "morale_pyromania_nofire" },
      { "u_lose_morale": "morale_perm_filthy" },
      { "u_lose_morale": "morale_butcher" },
      { "u_lose_morale": "morale_gravedigger" },
      { "u_lose_morale": "morale_funeral" },
      { "u_lose_morale": "morale_tree_communion" },
      { "u_lose_morale": "morale_accomplishment" },
      { "u_lose_morale": "morale_failure" },
      { "u_lose_morale": "morale_nightmare" },
      { "u_lose_morale": "morale_migo_bio_tech" },
      { "u_lose_morale": "morale_impossible_shape" },
      { "u_lose_morale": "morale_afs_drugs" },
      { "u_lose_morale": "morale_social" },
      { "u_lose_morale": "morale_asocial" },
      { "u_lose_morale": "morale_sunrise" },
      { "u_lose_morale": "morale_sunset" },
      { "u_lose_morale": "morale_ate_dross" },
      { "u_lose_morale": "morale_drank_blood" },
      { "u_lose_morale": "morale_craving_lotus_blossom" },
      { "u_lose_morale": "morale_forest_unity" },
      { "u_lose_morale": "morale_broke_fae_ban" },
      { "u_lose_morale": "morale_homullus_self_deception" },
      { "u_lose_morale": "morale_ierde_meditation" },
      { "u_lose_morale": "morale_boring_fruit" },
      { "u_lose_morale": "morale_vw_no_fun" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VAMPIRE_BLEED_CHECK",
    "eoc_type": "EVENT",
    "required_event": "character_gains_effect",
    "condition": { "and": [ { "compare_string": [ "bleed", { "context_val": "effect" } ] } ] },
    "effect": [ { "run_eocs": "EOC_VAMPIRE_BLEED_STOLEN_BLOOD" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VAMPIRE_BLEED_STOLEN_BLOOD",
    "//": "Gives regular blood to not cause hypovolemia.  Losing stolen blood is already a sufficient penalty.",
    "//2": "Doesn't affect lesser vampires as they still have both mundane blood and stolen blood, as shown by their mundane blood recovery and by their non-exsanguination when using their stolen blood.",
    "//3": "A vampire cannot gain nourishment from its own blood, even if it still has some mundane blood.",
    "condition": {
      "and": [
        { "u_has_trait": "BLOOD_DRINKER" },
        {
          "or": [
            { "math": [ "u_effect_intensity('bleed', 'bodypart': 'arm_l') >= 1" ] },
            { "math": [ "u_effect_intensity('bleed', 'bodypart': 'arm_r') >= 1" ] },
            { "math": [ "u_effect_intensity('bleed', 'bodypart': 'leg_l') >= 1" ] },
            { "math": [ "u_effect_intensity('bleed', 'bodypart': 'leg_r') >= 1" ] },
            { "math": [ "u_effect_intensity('bleed', 'bodypart': 'torso') >= 1" ] },
            { "math": [ "u_effect_intensity('bleed', 'bodypart': 'head') >= 1" ] }
          ]
        }
      ]
    },
    "effect": [
      { "math": [ "u_vitamin('blood')", "+=", "1000" ] },
      { "math": [ "u_vitamin('redcells')", "+=", "1000" ] },
      { "math": [ "u_vitamin('human_blood_vitamin')", "-=", "u_effect_intensity('bleed', 'bodypart': 'arm_l') * 5" ] },
      { "math": [ "u_vitamin('human_blood_vitamin')", "-=", "u_effect_intensity('bleed', 'bodypart': 'arm_r') * 5" ] },
      { "math": [ "u_vitamin('human_blood_vitamin')", "-=", "u_effect_intensity('bleed', 'bodypart': 'leg_l') * 5" ] },
      { "math": [ "u_vitamin('human_blood_vitamin')", "-=", "u_effect_intensity('bleed', 'bodypart': 'leg_r') * 5" ] },
      { "math": [ "u_vitamin('human_blood_vitamin')", "-=", "u_effect_intensity('bleed', 'bodypart': 'torso') * 5" ] },
      { "math": [ "u_vitamin('human_blood_vitamin')", "-=", "u_effect_intensity('bleed', 'bodypart': 'head') * 5" ] },
      { "u_message": "You are losing your stolen blood through your bleeding wounds!", "type": "bad" },
      { "run_eocs": "EOC_VAMPIRE_BLEED_STOLEN_BLOOD", "time_in_future": [ "10 s", "10 s" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "HYDRATING_GOUT_SYMPTOMS_INCUBATION",
    "eoc_type": "EVENT",
    "required_event": "character_gains_effect",
    "condition": { "compare_string": [ "xe_hydrating_gout_incubation", { "context_val": "effect" } ] },
    "//": "As incubation is hardcoded, this EOC will apply the real effect in 1 to 2 hours.",
    "effect": [ { "run_eocs": "HYDRATING_GOUT_SYMPTOMS_START", "time_in_future": [ "1 hour", "2 hours" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "HYDRATING_GOUT_SYMPTOMS_START",
    "condition": { "u_has_effect": "xe_hydrating_gout_incubation" },
    "//": "The illness was supposed to last 1-2 days, but until deydration through consumables is possible it will last far less time.",
    "effect": [
      { "u_add_effect": "xe_hydrating_gout", "duration": { "math": [ "8400 + rand(8400)" ] } },
      { "u_lose_effect": "xe_hydrating_gout_incubation" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "HYDRATING_GOUT_SYMPTOMS",
    "recurrence": [ "45 s", "75 s" ],
    "global": true,
    "condition": { "u_has_effect": "xe_hydrating_gout" },
    "deactivate_condition": { "not": { "u_has_effect": "xe_hydrating_gout" } },
    "//": "The multiple EOCs are required until multiple If-Then can be part of a single effect.",
    "effect": [
      { "math": [ "u_val('thirst')--" ] },
      {
        "run_eocs": [
          {
            "id": "HYDRATING_GOUT_SYMPTOMS_LOW",
            "condition": {
              "and": [
                { "x_in_y_chance": { "x": 1, "y": { "math": [ "max(1, 35 + u_val('thirst'))" ] } } },
                { "math": [ "u_val('thirst') <= 0" ] }
              ]
            },
            "effect": [ { "u_add_effect": "shakes", "duration": "1 minute" } ]
          },
          {
            "id": "HYDRATING_GOUT_SYMPTOMS_MEDIUM",
            "condition": {
              "and": [
                { "x_in_y_chance": { "x": 1, "y": { "math": [ "max(1, 50 + u_val('thirst'))" ] } } },
                { "math": [ "u_val('thirst') < -20" ] }
              ]
            },
            "effect": [ { "math": [ "u_pain()++" ] } ]
          },
          {
            "id": "HYDRATING_GOUT_SYMPTOMS_HIGH",
            "condition": {
              "and": [
                { "x_in_y_chance": { "x": 1, "y": { "math": [ "max(1, 110 + u_val('thirst'))" ] } } },
                { "math": [ "u_val('thirst') < -60" ] }
              ]
            },
            "effect": [ { "u_add_effect": "stunned", "duration": 1 } ]
          },
          {
            "id": "HYDRATING_GOUT_SYMPTOMS_LETHAL",
            "condition": { "math": [ "u_val('thirst') <= -100" ] },
            "effect": [ { "math": [ "u_hp('torso')--" ] } ]
          }
        ]
      }
    ]
  }
]
