[
  {
    "type": "effect_on_condition",
    "id": "EOC_RandEnc_Roadstop_add",
    "recurrence": 1800,
    "global": true,
    "effect": [
      { "set_condition": "random_enc_condition", "condition": { "and": [ { "not": { "is_season": "winter" } }, "is_day" ] } },
      {
        "run_eoc_with": "EOC_RandEnc",
        "variables": {
          "omt": "roadstop_a",
          "map_update": "nest_RandEnc_roadstop_a_add",
          "map_removal": "nest_RandEnc_roadstop_a_remove",
          "chance": "10",
          "days_till_spawn": "7"
        }
      }
    ]
  },
  {
    "type": "mapgen",
    "method": "json",
    "update_mapgen_id": "nest_RandEnc_roadstop_a_add",
    "//": "Adds a random encounter at this roadstop",
    "object": {
      "place_npcs": [
        { "class": "FM_caravan_merchant_random", "x": 5, "y": 4 },
        { "class": "FM_caravan_guard_A", "x": 4, "y": 1 },
        { "class": "FM_caravan_guard_B", "x": 4, "y": 2 }
      ],
      "place_vehicles": [ { "vehicle": "FM_early_pickup", "chance": 100, "fuel": 50, "faction": "free_merchants", "x": [ 4 ], "y": [ 1 ] } ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "update_mapgen_id": "nest_RandEnc_roadstop_a_remove",
    "//": "removes a random encounter at this roadstop",
    "object": {
      "remove_npcs": [
        { "class": "FM_caravan_merchant_random", "x": 0, "y": 0 },
        { "class": "FM_caravan_guard_A", "x": 0, "y": 0 },
        { "class": "FM_caravan_guard_B", "x": 0, "y": 0 }
      ],
      "remove_vehicles": [ { "vehicles": [ "FM_early_pickup" ], "x": [ 1, 15 ], "y": [ 1, 10 ] } ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_RandEnc_Roadstop_refugee_add",
    "recurrence": 1800,
    "global": true,
    "effect": [
      {
        "set_condition": "random_enc_condition",
        "condition": { "and": [ { "not": { "is_season": "winter" } }, "is_day", { "not": { "days_since_cataclysm": 45 } } ] }
      },
      {
        "run_eoc_with": "EOC_RandEnc",
        "variables": {
          "omt": "roadstop_a",
          "map_update": "nest_RandEnc_roadstop_a_refugee_add",
          "map_removal": "nest_RandEnc_roadstop_a_refugee_remove",
          "chance": "10",
          "days_till_spawn": "7"
        }
      }
    ]
  },
  {
    "type": "mapgen",
    "method": "json",
    "update_mapgen_id": "nest_RandEnc_roadstop_a_refugee_add",
    "//": "Adds refugee random encounter at this roadstop",
    "object": {
      "place_npcs": [
        { "class": "NC_caravan_refugee_A", "x": 5, "y": 4 },
        { "class": "NC_caravan_refugee_B", "x": 4, "y": 1 },
        { "class": "NC_caravan_refugee_C", "x": 4, "y": 2 }
      ]
    }
  },
  {
    "type": "mapgen",
    "method": "json",
    "update_mapgen_id": "nest_RandEnc_roadstop_a_refugee_remove",
    "//": "removes refugee random encounter at this roadstop",
    "object": {
      "remove_npcs": [
        { "class": "NC_caravan_refugee_A", "x": 0, "y": 0 },
        { "class": "NC_caravan_refugee_B", "x": 0, "y": 0 },
        { "class": "NC_caravan_refugee_C", "x": 0, "y": 0 }
      ]
    }
  }
]
