[
  {
    "type": "effect_on_condition",
    "id": "thunder",
    "recurrence": 1,
    "global": true,
    "condition": {
      "and": [
        { "or": [ { "is_weather": "thunder" }, { "is_weather": "lightning" } ] },
        { "one_in_chance": 50 },
        { "compare_num": [ { "u_val": "pos_z" }, ">=", { "const": 0 } ] }
      ]
    },
    "deactivate_condition": { "not": { "or": [ { "is_weather": "thunder" }, { "is_weather": "lightning" } ] } },
    "effect": [
      { "u_message": "You hear a distant rumble of thunder.", "sound": true },
      { "sound_effect": "thunder_far", "outdoor_event": true, "id": "environment" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "lightning",
    "recurrence": 1,
    "global": true,
    "condition": {
      "and": [
        { "is_weather": "lightning" },
        { "one_in_chance": 600 },
        { "compare_num": [ { "u_val": "pos_z" }, ">=", { "const": 0 } ] }
      ]
    },
    "deactivate_condition": { "not": { "is_weather": "lightning" } },
    "effect": [
      { "u_message": "A flash of lightning illuminates your surroundings!" },
      { "sound_effect": "thunder_near", "id": "environment" },
      "lightning",
      { "custom_light_level": 100, "length": [ "1 seconds", "1 seconds" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "snow",
    "recurrence": 6,
    "global": true,
    "run_for_npcs": true,
    "condition": { "and": [ { "is_weather": "snowing" }, "u_is_outside" ] },
    "deactivate_condition": { "not": { "is_weather": "snowing" } },
    "effect": [ { "u_add_wet": 10 } ]
  },
  {
    "type": "effect_on_condition",
    "id": "snowstorm",
    "recurrence": 6,
    "global": true,
    "run_for_npcs": true,
    "condition": { "and": [ { "is_weather": "snowstorm" }, "u_is_outside" ] },
    "deactivate_condition": { "not": { "is_weather": "snowstorm" } },
    "effect": [ { "u_add_wet": 40 } ]
  }
]
