<?xml version="1.0" encoding="utf-8"?>

<!--
EventSet
  chooserandom                = true/false. If true, one of the events in the set is chosen randomly, otherwise all of them are used.
  eventcount                  = how many random events to choose if chooserandom is set to true.
  mindistancetraveled         = 0-1. How large portion of the level must the submarine traverse before the event can be activated.
  minmissiontime              = How many seconds must have passed before the event can be activated. Note that the event activates 
                                if either mindistancetraveled OR minmissiontime is reached. If you want to make the event purely 
                                time-based or only distance-based, you can set the distance or time limit to a very high value.
  minintensity, maxintensity  = 0-1. Eventmanager's intensity value must be within this range for the event to be activated. 
                                Use the minintensity value to prevent the event from occurring when intensity is low (i.e. when there's
                                no immediate danger or much going on in the sub), and the maxintensity value to prevent activating 
                                additional events if there crew is already in trouble.
  minleveldifficulty,
  maxleveldifficulty          = 0-100, both inclusive.
  ignorecooldown              = true/false (defaults to false, or the setting of the parent event set if used in a child set).
                                If true, the global event cooldowns configured in the event manager settings are ignored.
  allowatstart                = true/false (defaults to false). Can the event be activated when the submarine hasn't left the start outpost.
  perruin                     = true/false (defaults to false). If true, the event set is applied for each alien ruin in the level.
  perwreck                    = true/false (defaults to false). If true, the event set is applied for each wreck in the level.
  percave                     = true/false (defaults to false). If true, the event set is applied for each cave in the level.  
  onceperlevel                = true/false (defaults to false). If true, this event set is only executed the first time you visit the outpost.
  triggereventcooldown        = true/false (defaults to true). Should the event cooldown be triggered when the event set triggers, 
                                i.e. when the set triggers, should there be a delay during which additional events can't trigger. If set to false,
                                the triggereventcooldown settings of the individual events in the set are ignored.
  delaywhencrewaway           = true/false (defaults to true if perruin, perwreck and percave are false, otherwise defaults to false).
                                If true, the events in the set are delayed if more than 50% of the human players are outside the sub near a ruin, wreck or cave.
  disableinhuntinggrounds     = true/false (defaults to false). If true, the event set won't trigger if the level has an active hunting grounds.
  
Any type of event
  commonness              = Used for making some events more probable than others when the set is defined to choose randomTechnically the weight of a weighted random.
  triggereventcooldown    = true/false (defaults to true). Should the event cooldown be triggered when the event triggers, 
                            i.e. should there be a delay after the event during which additional events can't trigger.
  
MonsterEvent 
  characterfile           = the identifier of the monster to spawn
  amount                  = how many of the monster to spawn
  minamount, maxamount    = use to configure a random number of monsters to spawn
  spawntype               = Where to spawn the monster(s): MainPath, SidePath, Cave, Ruin, Wreck, BeaconStation, Abyss.
  spawnprobability        = 0-1. How likely is it that this event spawns any creatures.
  scatter                 = default 500, max 3000. How far the monsters on a single spawn point are scattered/spread around the point. In pixels.
  offset                  = Use to offset some of the monsters farther from the spawn point than others. The direction is calculated from the waypoints towards the next outpost (in the main path). In pixels.
  maxamountperlevel       = Maximum number of this type of monster in the level. E.g. if set to 1, and another event or a mission has already spawned the same type of monster, the event won't spawn an additional one.
  spawndistance           = The distance at which the monsters are spawned. Defaults are, 8000px for caves, 5000 for ruins, and 3000 for wreck spawns.
                            Ignored for all the other spawn types unless specified, meaning the monsters spawn when the event is triggered.
  delaybetweenspawns      = The delay between spawning the individual monsters in the event. Only has an effect if the event spawns more than 1 monster. Defaults to 0.1 s.
-->

<Randomevents>

  <!-- This set of events is designed for single mission (multiplayer) game mode only. The set shouldn't be used in the campaign. -->

  <EventSet identifier="Difficulty level 0" minleveldifficulty="0" maxleveldifficulty="1" campaign="false" />

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 1                                       -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 1" minleveldifficulty="1" maxleveldifficulty="10" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" amount="1" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" amount="1" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="cave" />
    </EventSet>

    <!-- Don't populate the beacon stations -->

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="3" maxamount="4" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="fractalguardian"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" minamount="0" maxamount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="0.75" playdeadprobability="1.0"/>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
      </EventSet>
    </EventSet>

    <!-- Don't populate the abyss -->

    <!--20% or 3 min-->
    <EventSet chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.1" allowatstart="false">
      <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="CrawlerHusk" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Spineling" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Hammerhead" amount="1" spawntype="mainpath,sidepath" />
    </EventSet>

    <!--40% or 10 min-->
    <EventSet chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.1" allowatstart="false">
      <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="CrawlerHusk" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Spineling" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Hammerhead" amount="1" spawntype="mainpath,sidepath" />
    </EventSet>

    <!--60% or 30 min-->
    <EventSet chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.1" allowatstart="false">
      <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="CrawlerHusk" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Spineling" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Hammerhead" amount="1" spawntype="mainpath,sidepath" />
    </EventSet>

    <!--80%-->
    <EventSet chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.1" allowatstart="false">
      <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="CrawlerHusk" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Spineling" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Hammerhead" amount="1" spawntype="mainpath,sidepath" />
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 2                                       -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 2" minleveldifficulty="10" maxleveldifficulty="20" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="1" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="1" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="1" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="3" spawntype="cave" />
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="40">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <DamageBeaconStationAction DisconnectWireProbability="0" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="70">
            <MonsterEvent characterfile="Crawler" minamount="1" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits1" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
      </EventSet>
    </EventSet>

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="4" maxamount="5" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="fractalguardian"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="0.25" spawndistance="1500"/>
      </EventSet>
    </EventSet>

    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 3 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.15" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <MonsterEvent characterfile="Crawler" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="CrawlerHusk" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" amount="1" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="3" maxamount="4" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.15" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <MonsterEvent characterfile="Crawler" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="CrawlerHusk" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" amount="1" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="3" maxamount="4" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.15" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <MonsterEvent characterfile="Crawler" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="CrawlerHusk" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" amount="1" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="3" maxamount="4" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.15" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <MonsterEvent characterfile="Crawler" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="CrawlerHusk" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 3                                       -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 3" minleveldifficulty="20" maxleveldifficulty="30" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="2" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="2" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="1" spawntype="cave" scatter="2000" />
    </EventSet>

    <EventSet identifier="caves" percave="true" triggereventcooldown="false" allowatstart="true">
      <!-- Mantises start appearing at this point in low numbers -->
      <!-- In a separate set, because if a cave could only have mantises, it'd mean you can immediately tell there's no mantises if you see any other monster -->
      <MonsterEvent characterfile="Mantis" amount="1" spawntype="cave" probability="0.2" scatter="2000" />
      <MonsterEvent characterfile="Mantis" amount="1" spawntype="cave" probability="0.2" scatter="2000" />
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="40">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <!-- Start disconnecting some wires from this point-->
          <DamageBeaconStationAction DisconnectWireProbability="0.05" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="40">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="0.75" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits2" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="mudraptornest" requiredspawnpointtag="beacon_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="0" maxamount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
      </EventSet>
    </EventSet>


    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="5" maxamount="6" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.2" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="workshopguardian"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="mudraptor_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="0.25" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
    </EventSet>

    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true" resettime="1200">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 3 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.2" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" amount="1" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="4" maxamount="6" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.2" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" amount="1" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="4" maxamount="6" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.2" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="4" maxamount="6" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.2" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="3" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <MonsterEvent characterfile="Crawler" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="CrawlerHusk" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 4                                        -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 4" minleveldifficulty="30" maxleveldifficulty="40" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="2" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="2" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" scatter="2000" />
    </EventSet>

    <EventSet identifier="caves" percave="true" triggereventcooldown="false" allowatstart="true">
      <!-- In a separate set, because if a cave could only have mantises, it'd mean you can immediately tell there's no mantises if you see any other monster -->
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="2" spawntype="cave" probability="0.2" scatter="2000" />
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="2" spawntype="cave" probability="0.2" scatter="2000" />
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="40">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <DamageBeaconStationAction DisconnectWireProbability="0.15" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="35">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.4" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="clown" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <ScriptedEvent identifier="beaconclown" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits2" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" amount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="mudraptornest" requiredspawnpointtag="beacon_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
      </EventSet>
    </EventSet>

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="5" maxamount="7" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Swarmfeeder" minamount="3" maxamount="5" spawntype="ruin" probability="0.2" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.8" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.3" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="ruin" probability="0.1" spawnpointtag="husk"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
      <EventSet identifier="workshop_guardians" chooserandom="false" triggereventcooldown="false" allowatstart="true">
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.1" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="workshopguardian"/>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" amount="1" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="mudraptor_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="0.25" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
      </EventSet>
    </EventSet>
    
    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true" resettime="900">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.3" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.3" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.3" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.3" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 5                                        -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 5" minleveldifficulty="40" maxleveldifficulty="50" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="2" maxamount="3" spawntype="cave" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" scatter="2000" />
    </EventSet>

    <EventSet identifier="caves" percave="true" triggereventcooldown="false" allowatstart="true">
      <!-- In a separate set, because if a cave could only have mantises, it'd mean you can immediately tell there's no mantises if you see any other monster -->
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="2" spawntype="cave" probability="0.2" scatter="2000"/>
      <MonsterEvent characterfile="Mantis" amount="2" spawntype="cave" probability="0.2" scatter="2000"/>
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <DamageBeaconStationAction DisconnectWireProbability="0.2" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="35">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.4" spawnpointtag="encounter" />
            <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
              <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="beaconstation" spawnprobability="0.1" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="beaconstation" spawnprobability="0.1" spawnpointtag="encounter" />
            </EventSet>
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="clown" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <ScriptedEvent identifier="beaconclown" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits3" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="mudraptornest" requiredspawnpointtag="beacon_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
      </EventSet>
    </EventSet>

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="5" maxamount="8" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Swarmfeeder" minamount="4" maxamount="6" spawntype="ruin" probability="0.3" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.4" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="ruin" probability="0.2" spawnpointtag="husk"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
      <EventSet identifier="workshop_guardians" chooserandom="false" triggereventcooldown="false" allowatstart="true">
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="workshopguardian"/>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="mudraptor_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="0.75" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mantises" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500" />
      </EventSet>
    </EventSet>

    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true" resettime="720">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.4" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.4" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.4" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="2000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.4" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 6                                        -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 6" minleveldifficulty="50" maxleveldifficulty="60" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="3" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="3" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="3" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="2" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" scatter="2000" />
    </EventSet>

    <EventSet identifier="caves" percave="true" triggereventcooldown="false" allowatstart="true">
      <!-- In a separate set, because if a cave could only have mantises, it'd mean you can immediately tell there's no mantises if you see any other monster -->
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="2" spawntype="cave" probability="0.5" scatter="2000" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" probability="0.5" scatter="2000" />
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <DamageBeaconStationAction DisconnectWireProbability="0.25" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="35">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
            <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
              <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="beaconstation" spawnprobability="0.2" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="beaconstation" spawnprobability="0.2" spawnpointtag="encounter" />
            </EventSet>
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="clown" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <ScriptedEvent identifier="beaconclown" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits3" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="mudraptornest" requiredspawnpointtag="beacon_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
      </EventSet>
    </EventSet>

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="5" maxamount="8" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Swarmfeeder" minamount="4" maxamount="6" spawntype="ruin" probability="0.4" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.6" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="ruin" probability="0.3" spawnpointtag="husk"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
      <EventSet identifier="workshop_guardians" chooserandom="false" triggereventcooldown="false" allowatstart="true">
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.4" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.4" spawnpointtag="workshopguardian"/>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="mudraptor_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="0.75" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="wreck" spawnprobability="0.1" spawndistance="1500"/>
          <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.1" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="wreck" spawnprobability="0.2" spawndistance="1500"/>
          <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.2" spawndistance="1500"/>
        </EventSet>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="0.25" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mantises" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500" />
      </EventSet>
    </EventSet>

    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true" resettime="600">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.5" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="15" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="4" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.5" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="15" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="4" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.5" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="15" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="4" maxamount="4" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.5" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 7                                        -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 7" minleveldifficulty="60" maxleveldifficulty="70" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Spineling_morbusine" minamount="1" maxamount="1" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="cave" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" scatter="2000" />
    </EventSet>

    <EventSet identifier="caves" percave="true" triggereventcooldown="false" allowatstart="true">
      <!-- In a separate set, because if a cave could only have mantises, it'd mean you can immediately tell there's no mantises if you see any other monster -->
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="2" spawntype="cave" probability="0.5" scatter="2000" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" probability="0.5" scatter="2000" />
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <DamageBeaconStationAction DisconnectWireProbability="0.3" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="35">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.75" spawnpointtag="encounter" />
            <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
              <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="beaconstation" spawnprobability="0.3" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="beaconstation" spawnprobability="0.3" spawnpointtag="encounter" />
            </EventSet>
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="clown" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <ScriptedEvent identifier="beaconclown" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits4" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="mudraptornest" requiredspawnpointtag="beacon_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
      </EventSet>
    </EventSet>

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="6" maxamount="9" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Swarmfeeder" minamount="5" maxamount="8" spawntype="ruin" probability="0.5" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.8" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian3" amount="1" spawntype="ruin" probability="0.2" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" minamount="1" maxamount="2" spawntype="ruin" probability="0.25" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="ruin" probability="0.3" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="ruin" probability="0.1" spawnpointtag="husk"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
      <EventSet identifier="workshop_guardians" chooserandom="false" triggereventcooldown="false" allowatstart="true">
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="workshopguardian"/>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="mudraptor_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="0.75" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="wreck" spawnprobability="0.3" spawndistance="1500"/>
          <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.3" spawndistance="1500"/>
        </EventSet>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mantises" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500" />
      </EventSet>
    </EventSet>

    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true" resettime="480">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.6" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="8" maxamount="9" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="15" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.6" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="8" maxamount="9" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="15" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.6" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="8" maxamount="9" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="15" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" amount="1" offset="10000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.6" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="8" maxamount="9" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 8                                        -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 8" minleveldifficulty="70" maxleveldifficulty="80" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="4" maxamount="6" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="6" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Spineling_morbusine" minamount="1" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="cave" />
      <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" scatter="2000" />
    </EventSet>

    <EventSet identifier="caves" percave="true" triggereventcooldown="false" allowatstart="true">
      <!-- In a separate set, because if a cave could only have mantises, it'd mean you can immediately tell there's no mantises if you see any other monster -->
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="2" spawntype="cave" probability="0.5" scatter="2000" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" probability="0.5" scatter="2000" />
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <DamageBeaconStationAction DisconnectWireProbability="0.35" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="35">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.75" spawnpointtag="encounter" />
            <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
              <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="beaconstation" spawnprobability="0.4" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="beaconstation" spawnprobability="0.4" spawnpointtag="encounter" />
            </EventSet>
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="clown" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <ScriptedEvent identifier="beaconclown" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits4" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="mudraptornest" requiredspawnpointtag="beacon_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
      </EventSet>
    </EventSet>

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="6" maxamount="9" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Swarmfeeder" minamount="6" maxamount="9" spawntype="ruin" probability="0.5" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian3" amount="1" spawntype="ruin" probability="0.4" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" minamount="1" maxamount="2" spawntype="ruin" probability="0.25" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_prowler" minamount="1" maxamount="2" spawntype="ruin" probability="0.3" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="ruin" probability="0.2" spawnpointtag="husk"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
      <EventSet identifier="workshop_guardians" chooserandom="false" triggereventcooldown="false" allowatstart="true">
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian3" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="workshopguardian"/>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="mudraptor_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
        <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="wreck" spawnprobability="0.4" spawndistance="1500"/>
          <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.4" spawndistance="1500"/>
        </EventSet>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mantises" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500" />
      </EventSet>
    </EventSet>

    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true" resettime="240">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.7" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="8" maxamount="9" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="9" maxamount="10" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.75"/>
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="5" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.7" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="8" maxamount="9" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="9" maxamount="10" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.75"/>
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="5" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.7" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="8" maxamount="9" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="9" maxamount="10" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.75"/>
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="5" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.7" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="8" maxamount="9" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="9" maxamount="10" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 9                                        -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 9" minleveldifficulty="80" maxleveldifficulty="90" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="5" maxamount="7" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="7" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="4" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Spineling_morbusine" minamount="1" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="2" spawntype="cave" />
      <!-- up to 10 mantises per cave if you're unlucky -->
      <MonsterEvent characterfile="Mantis" minamount="4" maxamount="5" spawntype="cave" scatter="2000" />
    </EventSet>

    <EventSet identifier="caves" percave="true" triggereventcooldown="false" allowatstart="true">
      <!-- In a separate set, because if a cave could only have mantises, it'd mean you can immediately tell there's no mantises if you see any other monster -->
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="2" spawntype="cave" probability="0.5" scatter="2000" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" probability="0.5" scatter="2000" />
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <DamageBeaconStationAction DisconnectWireProbability="0.4" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.75" spawnpointtag="encounter" />
            <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
              <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.75" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
            </EventSet>
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mantis" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <MonsterEvent characterfile="Mantis" amount="1" spawntype="beaconstation" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Mantis" amount="1" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="clown" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <ScriptedEvent identifier="beaconclown" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits5" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="1">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="4" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="4" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="mudraptornest" requiredspawnpointtag="beacon_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="19">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="mudraptor_veteran" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
      </EventSet>
    </EventSet>

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="7" maxamount="10" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Swarmfeeder" minamount="7" maxamount="10" spawntype="ruin" probability="0.6" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian3" amount="1" spawntype="ruin" probability="0.6" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Husk" minamount="1" maxamount="2" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" minamount="1" maxamount="2" spawntype="ruin" probability="0.25" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_prowler" minamount="1" maxamount="2" spawntype="ruin" probability="0.3" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="ruin" probability="0.3" spawnpointtag="husk"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
      <EventSet identifier="workshop_guardians" chooserandom="false" triggereventcooldown="false" allowatstart="true">
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.75" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian3" amount="1" spawntype="ruin" probability="0.25" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.75" spawnpointtag="workshopguardian"/>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="mudraptor_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
        <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
          <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
        </EventSet>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mantises" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500" />
      </EventSet>
    </EventSet>

    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true" resettime="120">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 3 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.8" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="9" maxamount="10" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="11" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath"/>
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="9" maxamount="11" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.8" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="9" maxamount="10" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="11" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath"/>
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="9" maxamount="11" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.8" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="9" maxamount="10" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="11" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath"/>
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="9" maxamount="11" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.8" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="9" maxamount="10" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="11" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 10                                      -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

  <EventSet identifier="Difficulty level 10" minleveldifficulty="90" maxleveldifficulty="100" chooserandom="false" allowatstart="true" campaign="false">

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="6" maxamount="8" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="6" maxamount="8" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="5" maxamount="6" spawntype="cave" />
      <MonsterEvent characterfile="Spineling_morbusine" minamount="1" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor" minamount="4" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="cave" />
      <!-- up to 10 mantises per cave if you're unlucky -->
      <MonsterEvent characterfile="Mantis" minamount="4" maxamount="5" spawntype="cave" scatter="2000" />
    </EventSet>

    <EventSet identifier="caves" percave="true" triggereventcooldown="false" allowatstart="true">
      <!-- In a separate set, because if a cave could only have mantises, it'd mean you can immediately tell there's no mantises if you see any other monster -->
      <MonsterEvent characterfile="Mantis" minamount="1" maxamount="2" spawntype="cave" probability="0.5" scatter="2000" />
      <MonsterEvent characterfile="Mantis" minamount="2" maxamount="3" spawntype="cave" probability="0.5" scatter="2000" />
    </EventSet>

    <!-- Populate the beacon stations -->
    <EventSet identifier="beaconstation_populate" chooserandom="true" triggereventcooldown="false" allowatstart="true">
      <EventSet identifier="beaconstation_encounters" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <ScriptedEvent identifier="encounterlayer">
          <LayerAction layer="encounters" enabled="true" />
          <DamageBeaconStationAction DisconnectWireProbability="0.5" DamageWallProbability="0.25" DamageDeviceProbability="0.5" />
        </ScriptedEvent>
        <EventSet identifier="beaconstation_encounterspawn" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
              <MonsterEvent characterfile="Husk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
            </EventSet>
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Mudraptor_veteran" amount="1" spawnprobability="0.75" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mantis" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <MonsterEvent characterfile="Mantis" amount="1" spawntype="beaconstation" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Mantis" amount="1" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="clown" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
            <ScriptedEvent identifier="beaconclown" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits5" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="1">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="crawler_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="4" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="4" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
        <MonsterEvent characterfile="Crawler" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_crawler"/>
      </EventSet>
      <EventSet identifier="mudraptornest" requiredspawnpointtag="beacon_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="19">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="mudraptor_veteran" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="beacon_mudraptor" />
      </EventSet>
      <EventSet identifier="empty" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
      </EventSet>
    </EventSet>

    <!-- populate the ruins -->
    <EventSet identifier="ruins" chooserandom="false" allowatstart="true" perruin="true" triggereventcooldown="false">
      <MonsterEvent characterfile="Swarmfeeder" minamount="7" maxamount="10" spawntype="ruin" probability="1" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Swarmfeeder" minamount="7" maxamount="10" spawntype="ruin" probability="0.7" spawnpointtag="swarmfeeder"/>
      <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Fractalguardian3" amount="1" spawntype="ruin" probability="0.8" spawnpointtag="fractalguardian"/>
      <MonsterEvent characterfile="Husk" minamount="1" maxamount="2" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" minamount="1" maxamount="2" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_prowler" minamount="1" maxamount="2" spawntype="ruin" probability="0.4" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="ruin" probability="0.4" spawnpointtag="husk"/>
      <EventSet identifier="ruin_encounters" chooserandom="true" triggereventcooldown="false" allowatstart="true" >
        <EventSet identifier="entrance1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance1" />
        </EventSet>
        <EventSet identifier="entrance2" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance2" spawndistance="1500"/>
        </EventSet>
        <EventSet identifier="entrance3" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_entrance3" />
        </EventSet>
        <EventSet identifier="chambers1" chooserandom="false" triggereventcooldown="false" allowatstart="true" >
          <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
          <MonsterEvent characterfile="Crawler" amount="1" spawntype="ruin" spawnpointtag="encounter_chambers1" />
        </EventSet>
      </EventSet>
      <EventSet identifier="workshop_guardians" chooserandom="false" triggereventcooldown="false" allowatstart="true">
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="1" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian2" amount="1" spawntype="ruin" probability="0.75" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian3" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="workshopguardian"/>
        <MonsterEvent characterfile="Fractalguardian" amount="1" spawntype="ruin" probability="0.75" spawnpointtag="workshopguardian"/>
      </EventSet>
    </EventSet>

    <!-- Populate the wrecks -->
    <EventSet identifier="wreck_encounters" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="crawler_vs_husk" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Crawlerhusk" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_mudraptor" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="crawler_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Crawlerhusk" minamount="2" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="mudraptor_vs_thresher" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="15">
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Tigerthresher" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Husk" minamount="1" maxamount="3" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="0" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
      </EventSet>
    </EventSet>
    <EventSet identifier="wrecks" chooserandom="true" perwreck="true" allowatstart="true" triggereventcooldown="false">
      <EventSet identifier="husks" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="50">
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0" />
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="1" playdeadprobability="1.0" />
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
        <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" amount="2" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="CrawlerHusk" amount="2" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="20">
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
      </EventSet>
      <EventSet identifier="mantises" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500" />
      </EventSet>
    </EventSet>

    <!-- Populate the abyss -->
    <EventSet identifier="abyss" chooserandom="true" allowatstart="true" triggereventcooldown="false" disableinhuntinggrounds="true" resettime="60">
      <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
    </EventSet>

    <!--20% or 3 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.20" minmissiontime="180" minintensity="0.0" maxintensity="0.9" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="6" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.9" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="6" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--60% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1800" minintensity="0.0" maxintensity="0.9" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <EventSet>
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet>
          <MonsterEvent characterfile="Molochbaby" minamount="15" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
          <EventSet chooserandom="true">
            <MonsterEvent characterfile="Moloch" minamount="2" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Molochblack" amount="1" offset="10000" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="0.5">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="6" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers" chooserandom="false">
            <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.9" allowatstart="false">
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling" minamount="6" maxamount="7" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_morbusine" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs">
        <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

</Randomevents>