<?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                  = Used for offsetting the spawns towards the end position of the level, so that they spawn farther afront the sub than normally. 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>
  <EventPrefabs>
    <ScriptedEvent identifier="beaconclown">
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="psychoclown" targettag="psychoclown" spawnpointtag="saferoom" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <AfflictionAction targettag="psychoclown" affliction="psychoclown" strength="100" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandits1">
      <TriggerEventAction identifier="beaconbandit_enablelayers" />
      <TriggerEventAction identifier="beaconbandit_spawndivingsuit" />
      <TriggerEventAction identifier="beaconbandit_spawndivingsuit" />
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <TriggerEventAction identifier="beaconbandit_defense" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandits2">
      <TriggerEventAction identifier="beaconbandit_enablelayers" />
      <TriggerEventAction identifier="beaconbandit_spawndivingsuit" />
      <TriggerEventAction identifier="beaconbandit_spawndivingsuit" />
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit_heavy" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <TriggerEventAction identifier="beaconbandit_defense" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandits3">
      <TriggerEventAction identifier="beaconbandit_enablelayers" />
      <TriggerEventAction identifier="beaconbandit_spawncombatdivingsuit" />
      <TriggerEventAction identifier="beaconbandit_spawncombatdivingsuit" />
      <TriggerEventAction identifier="beaconbandit_spawncombatdivingsuit" />
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="banditleader" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <TriggerEventAction identifier="beaconbandit_defense" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandits4">
      <TriggerEventAction identifier="beaconbandit_enablelayers" />
      <TriggerEventAction identifier="beaconbandit_spawncombatdivingsuit" />
      <TriggerEventAction identifier="beaconbandit_spawncombatdivingsuit" />
      <TriggerEventAction identifier="beaconbandit_spawncombatdivingsuit" />
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="banditleader_heavy" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit_heavy" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <TriggerEventAction identifier="beaconbandit_defense" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandits5">
      <TriggerEventAction identifier="beaconbandit_enablelayers" />
      <TriggerEventAction identifier="beaconbandit_spawnabyssdivingsuit" />
      <TriggerEventAction identifier="beaconbandit_spawnabyssdivingsuit" />
      <TriggerEventAction identifier="beaconbandit_spawnabyssdivingsuit" />
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="banditleader_heavy" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit_elite" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit_elite" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <SpawnAction npcsetidentifier="abandonedoutpostnpcs" npcidentifier="bandit" targettag="beacon_bandit" spawnpointtag="beacon_bandit" spawnlocation="beaconstation" requirespawnpointtag="true" team="None"/>
      <TriggerEventAction identifier="beaconbandit_defense" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandit_enablelayers">
      <LayerAction layer="bandit" enabled="true" />
      <CheckDifficultyAction mindifficulty="50">
        <Success>
          <LayerAction layer="bandit_hard" enabled="true" />
        </Success>
      </CheckDifficultyAction>

      <TagAction criteria="itemtag:reactor" submarinetype="BeaconStation" tag="beaconreactor" />
      <SpawnAction itemidentifier="fuelrod" targetinventory="beaconreactor" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandit_spawndivingsuit">
      <TagAction criteria="itemtag:divingsuitcontainer" submarinetype="BeaconStation" tag="banditsuitcontainer" />
      <SpawnAction itemidentifier="divingsuit" targettag="banditdivingsuit" targetinventory="banditsuitcontainer" />
      <SpawnAction itemidentifier="oxygentank" targetinventory="banditdivingsuit" />
      <TagAction criteria="itemtag:oxygentankcontainer" submarinetype="BeaconStation" tag="bandittankcontainer" />
      <SpawnAction itemidentifier="oxygentank" targetinventory="bandittankcontainer" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandit_spawncombatdivingsuit">
      <TagAction criteria="itemtag:divingsuitcontainer" submarinetype="BeaconStation" tag="banditsuitcontainer" />
      <SpawnAction itemidentifier="combatdivingsuit" targettag="banditdivingsuit" targetinventory="banditsuitcontainer" />
      <SpawnAction itemidentifier="oxygentank" targetinventory="banditdivingsuit" />
      <TagAction criteria="itemtag:oxygentankcontainer" submarinetype="BeaconStation" tag="bandittankcontainer" />
      <SpawnAction itemidentifier="oxygentank" targetinventory="bandittankcontainer" />
    </ScriptedEvent>

    <ScriptedEvent identifier="beaconbandit_spawnabyssdivingsuit">
      <TagAction criteria="itemtag:divingsuitcontainer" submarinetype="BeaconStation" tag="banditsuitcontainer" />
      <SpawnAction itemidentifier="abyssdivingsuit" targettag="banditdivingsuit" targetinventory="banditsuitcontainer" />
      <SpawnAction itemidentifier="oxygentank" targetinventory="banditdivingsuit" />
      <TagAction criteria="itemtag:oxygentankcontainer" submarinetype="BeaconStation" tag="bandittankcontainer" />
      <SpawnAction itemidentifier="oxygentank" targetinventory="bandittankcontainer" />
    </ScriptedEvent>
    
    <ScriptedEvent identifier="beaconbandit_defense">
      <!-- Pick one bandit at random to defend, and one target at random to defend. -->
      <TagAction criteria="humanprefabtag:bandit" tag="defender" chooserandom="true" />
      <TagAction criteria="itemtag:defendable" tag="defendable" chooserandom="true" AllowHiddenItems="true" />
      <WaitAction time="20" /> <!-- Give some time to start the reactor -->
      <!-- Make the NPC "operate" the defendable position (dummy item that marks the position the bandit should defend -->
      <!-- Priority of 70 makes defending take priority over autonomous objectives, but emergency objectives like finding safety are still higher prio (90) -->
      <NPCOperateItemAction npctag="defender" targettag="defendable" itemcomponentname="controller" operate="true" Priority="70" />
    </ScriptedEvent>
  </EventPrefabs>

  <!-- This set of events is design for the campaign progression. The sets should be biome specific and not used in multiplayer single mission game mode. -->


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!--                               Set 0                                       -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <EventSet identifier="Caverns entry" biome="coldcaverns" maxleveldifficulty="1" chooserandom="false" allowatstart="true" campaign="true">
    <Commonness commonness="1"/>
    <!--50% or 5 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.5" minmissiontime="300" minintensity="0.0" maxintensity="0.10">
      <MonsterEvent characterfile="Crawler" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="mainpath,sidepath" />
    </EventSet>
  </EventSet>

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

  <!-- Only Crawler and Unarmored Mudraptors -->

  <EventSet identifier="Caverns1" biome="coldcaverns" minleveldifficulty="1" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="0">
      <Override leveltype="ColdCavernsBasic" commonness="1" />
    </Commonness>

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

    <!-- There are no ruins -->

    <!-- Populate the wrecks -->

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

    <!--30% or 3 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.3" minmissiontime="180" minintensity="0.0" maxintensity="0.10">
      <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
    </EventSet>

    <!--60% or 15 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.6" minmissiontime="900" minintensity="0.0" maxintensity="0.10">
      <MonsterEvent characterfile="Crawler" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
    </EventSet>

  </EventSet>

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

  <!-- Introduces Spinelings and Hammerheads -->

  <EventSet identifier="Caverns2" biome="coldcaverns" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="0">
      <Override leveltype="ColdCavernsAdvanced" commonness="1" />
      <Override leveltype="ColdCavernsMaze" commonness="1" />
    </Commonness>

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="0" maxamount="1" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="0" maxamount="1" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="0" maxamount="1" 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" amount="1" 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">
        <ScriptedEvent identifier="shockjock2" />        
      </EventSet>
    </EventSet>

    <!-- There are no ruins -->

    <!-- There are no wrecks -->

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

    <!--25 or 3 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.25" minmissiontime="180" minintensity="0.0" maxintensity="0.15" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="false" commonness="40">
        <MonsterEvent characterfile="Crawler" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="40">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet chooserandom="true" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerhead" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--50% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.50" minmissiontime="600" minintensity="0.0" maxintensity="0.15" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="false" commonness="40">
        <MonsterEvent characterfile="Crawler" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="40">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet chooserandom="true" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerhead" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--75% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.75" minmissiontime="1800" minintensity="0.0" maxintensity="0.15" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="false" commonness="40">
        <MonsterEvent characterfile="Crawler" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="40">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet chooserandom="true" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerhead" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

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

  <!-- Introduces (armored/regular) Mudraptors, Golden Hammerhead (rare), Crawler Broodmother (rare), Husks, Husked Crawlers, and the first abyss monster. -->

  <EventSet identifier="Caverns Transition" maxleveldifficulty="15" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="0">
      <Override leveltype="ColdCavernsTransition" commonness="1" />
    </Commonness>

    <!-- Populate the caves -->
    <EventSet identifier="caves" chooserandom="true" percave="true" triggereventcooldown="false" allowatstart="true">
      <MonsterEvent characterfile="Crawler" minamount="0" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Crawlerhusk" minamount="0" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Spineling" minamount="0" maxamount="2" spawntype="cave" />
      <MonsterEvent characterfile="Mudraptor_unarmored" minamount="0" maxamount="2" spawntype="cave" />
    </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" />
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.5" />
      <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="ruin" probability="0.5" />
    </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" 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" minamount="1" maxamount="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="40">
            <MonsterEvent characterfile="Crawler" minamount="1" maxamount="3" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="beaconstation" spawnpointtag="encounter" />
          </EventSet>
        </EventSet>
      </EventSet>
      <EventSet identifier="bandits" requiredspawnpointtag="beacon_bandit" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="5">
        <ScriptedEvent identifier="beaconbandit">
          <TriggerEventAction identifier="beaconbandits2" />
        </ScriptedEvent>
      </EventSet>
      <EventSet identifier="crawlernest" requiredspawnpointtag="beacon_crawler" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="10">
        <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="5">
        <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">
        <ScriptedEvent identifier="shockjock2" />
      </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="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"/>
        <MonsterEvent characterfile="Husk" amount="1" spawntype="wreck" spawnprobability="0.5" 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"/>
        <MonsterEvent characterfile="Crawler" amount="1" 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_unarmored" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor" 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.2" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="true" commonness="30">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.25" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="30">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="true" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Hammerhead" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.25"/>
      </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="crawlers" chooserandom="true" commonness="30">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.25" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="30">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="true" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Hammerhead" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.25"/>
      </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="crawlers" chooserandom="true" commonness="30">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.25" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="30">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="true" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Hammerhead" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.25"/>
      </EventSet>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.2" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="true" commonness="30">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.25" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="30">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="true" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Hammerhead" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.25"/>
      </EventSet>
    </EventSet>

  </EventSet>

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

  <!-- Introduces Threshers, Moloch, and Husk prowler. Crawler Broodmother less rare. -->

  <EventSet identifier="Ridge" biome="europanridge" maxleveldifficulty="30" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="0">
      <Override leveltype="RidgeBasic" commonness="1" />
      <Override leveltype="RidgeAdvanced" commonness="0.5" />
    </Commonness>

    <!-- 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" />
          <!-- 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.5" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="0.25" 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">
        <ScriptedEvent identifier="shockjock2" />
      </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="Husk" amount="1" spawntype="ruin" probability="0.5" spawnpointtag="husk"/>
      <MonsterEvent characterfile="Husk" amount="1" spawntype="ruin" probability="0.1" 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>

    <!-- 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" amount="1" spawntype="wreck" spawnprobability="0.5" 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"/>
        <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="0.75" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" 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_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="1200">
      <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
    </EventSet>

    <!--15% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.15" minmissiontime="120" minintensity="0.0" maxintensity="0.3" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="true" commonness="25">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.5" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.5"/>
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--30% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.30" minmissiontime="600" minintensity="0.0" maxintensity="0.3" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="true" commonness="25">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.5" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.5"/>
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--50% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.50" minmissiontime="1800" minintensity="0.0" maxintensity="0.3" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="true" commonness="25">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.5" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.5"/>
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--70%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.70" minmissiontime="100000" minintensity="0.0" maxintensity="0.3" allowatstart="false">
      <EventSet identifier="crawlers" chooserandom="true" commonness="25">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.5" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="5" maxamount="6" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="5" maxamount="7" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.5"/>
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

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

  <!-- Introduces Veteran Mudraptor and Charybdis (and rarely Mantis). Threshers get more common. -->
  <EventSet identifier="Ridge to Plateau" maxleveldifficulty="35" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="0">
      <Override leveltype="RidgeAdvanced" commonness="1" />
    </Commonness>

    <!-- 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" />
          <DamageBeaconStationAction DisconnectWireProbability="0.10" 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.75" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="beaconstation" spawnpointtag="encounter" spawnprobability="1"/>
            <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnpointtag="encounter" spawnprobability="0.25"/>
          </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" 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">
        <ScriptedEvent identifier="shockjock2" />
      </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.2" 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" 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" amount="1" spawntype="wreck" spawnprobability="0.5" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500" />
        <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.5" spawndistance="1500" />
        <MonsterEvent characterfile="Crawler" amount="1" 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_unarmored" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="wreck" spawnprobability="0.5" 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.5" spawndistance="1500" />
      </EventSet>
    </EventSet>

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

    <!--15% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.15" minmissiontime="120" minintensity="0.0" maxintensity="0.4" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="20">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.75"/>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--30% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.30" minmissiontime="600" minintensity="0.0" maxintensity="0.4" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="20">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.75"/>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--50% or 30 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.50" minmissiontime="1800" minintensity="0.0" maxintensity="0.4" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="20">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.75"/>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <!--85%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.85" minmissiontime="100000" minintensity="0.0" maxintensity="0.4" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Bonethresher" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="5" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="20">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="7" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" amount="1" spawntype="mainpath,sidepath" spawnprobability="0.75"/>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

  </EventSet>

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

  <!-- Introduces Watcher and Exosuit husks, Mantises start to appear in larger numbers -->

  <EventSet identifier="Plateau1" biome="theaphoticplateau" maxleveldifficulty="40" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="1"/>

    <!-- 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">
      <!-- Mantises start appearing in larger numbers in the plateau -->
      <!-- 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.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="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="0.75" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="beaconstation" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnpointtag="encounter" spawnprobability="0.5"/>
          </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="20">
        <ScriptedEvent identifier="shockjock2" />        
      </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.25" 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="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_prowler" minamount="1" maxamount="2" spawntype="wreck" spawnprobability="1" spawnpointtag="encounter" />
        <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="wreck" spawnprobability="0.25" 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.5" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Husk_exosuit" 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="1" spawndistance="1500"/>
        <MonsterEvent characterfile="Crawler" amount="1" spawntype="wreck" spawnprobability="0.5" 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_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.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.5" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" 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" resettime="720">
      <EventSet commonness="50">
        <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="50">
        <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      </EventSet>
    </EventSet>

    <!--15% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.15" minmissiontime="120" minintensity="0.0" maxintensity="0.45" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="20">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

    <EventSet identifier="watcher" mindistancetraveled="0.2" minmissiontime="140" minintensity="0.1" maxintensity="1.0" ignorecooldown="true" allowatstart="false">
      <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" spawnprobability="0.2" />
    </EventSet>

    <!--40% or 10 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.40" minmissiontime="600" minintensity="0.0" maxintensity="0.45" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="20">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="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.45" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="25">
        <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="20">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
    </EventSet>

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

  </EventSet>

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

  <!-- Introduces Endworm and Husk chimera -->

  <EventSet identifier="Plateau2" minleveldifficulty="40" biome="theaphoticplateau" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="1"/>

    <!-- 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" 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="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="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.25" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="0.75" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="0.25" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="beaconstation" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnpointtag="encounter" spawnprobability="0.75"/>
          </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" 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">
        <ScriptedEvent identifier="shockjock2" />
      </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.25" 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="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="1" playdeadprobability="1.0"/>
        <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
        <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.25" spawndistance="1500"/>
          <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.25" 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.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="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="600">
      <EventSet commonness="40">
        <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="50">
        <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="10">
        <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
      </EventSet>
    </EventSet>

    <!--15% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.15" minmissiontime="120" minintensity="0.0" maxintensity="0.5" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="15">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="9" maxamount="11" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="10">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" 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>
    </EventSet>

    <!--30% or 5 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.30" minmissiontime="300" minintensity="0.0" maxintensity="0.5" allowatstart="false">
      <EventSet identifier="threshers" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="15">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="8" maxamount="10" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="hammerheads" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Hammerhead" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="9" maxamount="11" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="10">
        <MonsterEvent characterfile="Watcher" amount="1" spawntype="mainpath,sidepath" maxamountperlevel="1" triggereventcooldown="false" />
        <EventSet chooserandom="true">
          <EventSet identifier="crawlers">
            <MonsterEvent characterfile="Crawler" minamount="5" maxamount="8" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="mudraptors">
            <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" 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>
    </EventSet>

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

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

  </EventSet>

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

  <!-- Introduces Hammerhead Matriarch, Moloch Baby, Giant Spineling -->

  <EventSet identifier="Plateau to Sea" minleveldifficulty="45" maxleveldifficulty="50" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="0">
      <Override leveltype="PlateauBasic" commonness="1" />
    </Commonness>

    <!-- 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.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.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="2" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Husk_prowler" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="0.25" 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" amount="1" spawntype="beaconstation" spawnpointtag="encounter" spawnprobability="0.75"/>
          </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">
        <ScriptedEvent identifier="shockjock2" />
      </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" 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" amount="1" 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 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="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.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="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"/>
        <MonsterEvent characterfile="Mudraptor_veteran" 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="1" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500" />
        <MonsterEvent characterfile="Mantis" 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" resettime="420">
      <EventSet commonness="30">
        <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="40">
        <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="30">
        <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
      </EventSet>
    </EventSet>

    <!--15% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.15" minmissiontime="120" minintensity="0.0" maxintensity="0.6" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false" commonness="20">
        <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" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="10">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="10">
        <EventSet identifier="nobabies">
          <MonsterEvent characterfile="Moloch" minamount="2" maxamount="3" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="1500" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="watcher" commonness="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="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--30% or 5 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.30" minmissiontime="300" minintensity="0.0" maxintensity="0.6" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false" commonness="20">
        <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" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="10">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="10">
        <EventSet identifier="nobabies">
          <MonsterEvent characterfile="Moloch" minamount="2" maxamount="3" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="1500" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="watcher" commonness="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="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--50% or 20 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.60" minmissiontime="1200" minintensity="0.0" maxintensity="0.6" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false" commonness="20">
        <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" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="15">
        <MonsterEvent characterfile="Spineling" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="10">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="10">
        <EventSet identifier="nobabies">
          <MonsterEvent characterfile="Moloch" minamount="2" maxamount="3" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="1500" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="watcher" commonness="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="4" maxamount="5" spawntype="mainpath,sidepath" />
          </EventSet>
          <EventSet identifier="threshers">
            <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
            <MonsterEvent characterfile="Tigerthresher" minamount="4" maxamount="6" spawntype="mainpath,sidepath" />
          </EventSet>
        </EventSet>
      </EventSet>
    </EventSet>

    <!--70%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.6" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false" commonness="20">
        <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" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="8" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="0" maxamount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="15">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true" commonness="10">
        <EventSet identifier="nobabies">
          <MonsterEvent characterfile="Moloch" minamount="2" maxamount="3" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="5" maxamount="10" scatter="1500" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
    </EventSet>

  </EventSet>

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

  <!-- Introduces Black Moloch. Smaller creatures are less frequent and appear in even larger swarms, more bigger guys. -->

  <EventSet identifier="GreatSea" biome="thegreatsea" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="1"/>

    <!-- 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="4" maxamount="5" 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.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.75" spawnpointtag="encounter" />
            <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
              <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="beaconstation" spawnprobability="0.25" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="beaconstation" spawnprobability="0.25" spawnpointtag="encounter" />
            </EventSet>
          </EventSet>
          <EventSet identifier="husk_crawlers" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
          </EventSet>
          <EventSet identifier="mudraptors" chooserandom="false" triggereventcooldown="false" allowatstart="true" commonness="30">
            <MonsterEvent characterfile="Mudraptor_unarmored" amount="1" spawntype="beaconstation" spawnpointtag="encounter" probability="1"/>
            <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnpointtag="encounter" probability="0.75"/>
            <MonsterEvent characterfile="Mudraptor" amount="1" spawntype="beaconstation" spawnpointtag="encounter" probability="0.25"/>
          </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="3" maxamount="4" 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="19">
        <ScriptedEvent identifier="nestlayer">
          <LayerAction layer="mudraptor_nest" enabled="true" />
        </ScriptedEvent>
        <MonsterEvent characterfile="Mudraptor" minamount="2" maxamount="3" 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">
        <ScriptedEvent identifier="shockjock2" />
      </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" 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.25" 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" 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.75" spawndistance="1500"/>
        <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.5" spawndistance="1500"/>
          <MonsterEvent characterfile="Husk_exosuit" 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="0.5" 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="0.75" spawndistance="1500"/>
        <MonsterEvent characterfile="Mudraptor_veteran" 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="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="300">
      <EventSet commonness="20">
        <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="40">
        <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="40">
        <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
      </EventSet>
    </EventSet>

    <!--15% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.15" minmissiontime="120" minintensity="0.0" maxintensity="0.7" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false" commonness="20">
        <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="molochs" chooserandom="true" commonness="20">
        <EventSet identifier="nobabies">
          <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 identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="10">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="watcher" commonness="10">
        <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="5" 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>
    </EventSet>

    <!--30% or 5 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.30" minmissiontime="300" minintensity="0.0" maxintensity="0.7" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false" commonness="25">
        <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="molochs" chooserandom="true" commonness="20">
        <EventSet identifier="nobabies">
          <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 identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="5">
        <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="watcher" commonness="10">
        <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="5" 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>
    </EventSet>

    <!--50% or 20 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.50" minmissiontime="1200" minintensity="0.0" maxintensity="0.7" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false" commonness="20">
        <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="molochs" chooserandom="true" commonness="20">
        <EventSet identifier="nobabies">
          <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 identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="10">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="watcher" commonness="10">
        <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="5" 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>
    </EventSet>

    <!--70%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.70" minmissiontime="100000" minintensity="0.0" maxintensity="0.7" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false" commonness="20">
        <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="molochs" chooserandom="true" commonness="20">
        <EventSet identifier="nobabies">
          <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 identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false" commonness="20">
        <MonsterEvent characterfile="Spineling" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Spineling_giant" minamount="1" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Bonethresher" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="6" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false" commonness="10">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="2" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="crawlers" chooserandom="true" commonness="10">
        <EventSet identifier="crawlerswarm">
          <MonsterEvent characterfile="Crawler" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Crawlerbroodmother" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="watcher" commonness="10">
        <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="5" 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>
    </EventSet>

  </EventSet>

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

  <!-- Introduces Viperling. Smaller guys make a return -->

  <EventSet identifier="Wastes" biome="hydrothermalwastes" chooserandom="false" allowatstart="true" campaign="true">

    <Commonness commonness="1"/>

    <!-- 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="5" spawntype="cave" />
      <MonsterEvent characterfile="Tigerthresher" minamount="3" maxamount="5" spawntype="cave" />
      <MonsterEvent characterfile="Bonethresher" minamount="1" maxamount="2" spawntype="cave" />
      <!-- up toint 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.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="1" spawnpointtag="encounter" />
            <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
              <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="beaconstation" spawnprobability="0.5" spawnpointtag="encounter" />
              <MonsterEvent characterfile="Husk_exosuit" 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="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="1" spawnpointtag="encounter" />
            <MonsterEvent characterfile="Crawlerhusk" amount="1" spawntype="beaconstation" spawnprobability="0.75" 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" 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="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">
        <ScriptedEvent identifier="shockjock2" />
      </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.4" 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.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" 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"/>
        <EventSet identifier="extra" chooserandom="true" triggereventcooldown="false" allowatstart="true">
          <MonsterEvent characterfile="Husk_chimera" amount="1" spawntype="wreck" spawnprobability="0.75" spawndistance="1500"/>
          <MonsterEvent characterfile="Husk_exosuit" amount="1" spawntype="wreck" spawnprobability="0.75" 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" 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_veteran" 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="180">
      <EventSet commonness="10">
        <MonsterEvent characterfile="Latcher" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="40">
        <MonsterEvent characterfile="Charybdis" amount="1" spawntype="abyss" />
      </EventSet>
      <EventSet commonness="50">
        <MonsterEvent characterfile="Endworm" amount="1" spawntype="abyss" />
      </EventSet>
    </EventSet>

    <!--10% or 2 min-->
    <EventSet identifier="first" chooserandom="true" mindistancetraveled="0.10" minmissiontime="120" minintensity="0.0" maxintensity="0.8" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="2" amount="3" spawntype="mainpath,sidepath"/>
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet identifier="nobabies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" offset="10000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false">
        <MonsterEvent characterfile="Spineling" minamount="8" maxamount="9" 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="mudraptors" chooserandom="false">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false">
        <MonsterEvent characterfile="Bonethresher" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="7" maxamount="9" 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" amount="2" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="watcher">
        <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="5" maxamount="6" 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>
    </EventSet>

    <!--30% or 5 min-->
    <EventSet identifier="second" chooserandom="true" mindistancetraveled="0.30" minmissiontime="300" minintensity="0.0" maxintensity="0.8" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="2" amount="3" spawntype="mainpath,sidepath"/>
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet identifier="nobabies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" offset="10000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false">
        <MonsterEvent characterfile="Spineling" minamount="8" maxamount="9" 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" chooserandom="false">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false">
        <MonsterEvent characterfile="Bonethresher" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="7" maxamount="9" 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" amount="2" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="watcher">
        <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="5" maxamount="6" 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>
    </EventSet>

    <!--50% or 20 min-->
    <EventSet identifier="third" chooserandom="true" mindistancetraveled="0.50" minmissiontime="1200" minintensity="0.0" maxintensity="0.8" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="2" amount="3" spawntype="mainpath,sidepath"/>
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet identifier="nobabies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" offset="10000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false">
        <MonsterEvent characterfile="Spineling" minamount="8" maxamount="9" 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" chooserandom="false">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false">
        <MonsterEvent characterfile="Bonethresher" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="7" maxamount="9" 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" amount="2" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
      <EventSet identifier="watcher">
        <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="5" maxamount="6" 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>
    </EventSet>

    <!--80%-->
    <EventSet identifier="fourth" chooserandom="true" mindistancetraveled="0.80" minmissiontime="100000" minintensity="0.0" maxintensity="0.8" allowatstart="false">
      <EventSet identifier="hammerheads" chooserandom="false">
        <MonsterEvent characterfile="Hammerhead" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Hammerheadgold" minamount="2" amount="3" spawntype="mainpath,sidepath"/>
        <MonsterEvent characterfile="Hammerheadmatriarch" amount="1" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="molochs" chooserandom="true">
        <EventSet identifier="nobabies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" amount="1" spawntype="mainpath,sidepath" />
        </EventSet>
        <EventSet identifier="babies">
          <MonsterEvent characterfile="Moloch" minamount="1" maxamount="2" offset="10000" scatter="3000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochblack" minamount="0" maxamount="1" offset="10000" spawntype="mainpath,sidepath" />
          <MonsterEvent characterfile="Molochbaby" minamount="10" maxamount="20" scatter="3000" spawntype="mainpath,sidepath" />
        </EventSet>
      </EventSet>
      <EventSet identifier="spinelings" chooserandom="false">
        <MonsterEvent characterfile="Spineling" minamount="8" maxamount="9" 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" chooserandom="false">
        <MonsterEvent characterfile="Spineling_morbusine" minamount="7" maxamount="9" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="mudraptors" chooserandom="false">
        <MonsterEvent characterfile="Mudraptor" minamount="3" maxamount="4" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Mudraptor_veteran" minamount="2" maxamount="3" spawntype="mainpath,sidepath" />
      </EventSet>
      <EventSet identifier="threshers" chooserandom="false">
        <MonsterEvent characterfile="Bonethresher" minamount="3" maxamount="3" spawntype="mainpath,sidepath" />
        <MonsterEvent characterfile="Tigerthresher" minamount="7" maxamount="9" 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" amount="2" spawntype="mainpath,sidepath" />
        </EventSet>
        <Eventset identifier="Crawlerhusk">
          <MonsterEvent characterfile="Crawlerhusk" minamount="10" maxamount="12" spawntype="mainpath,sidepath" />
        </Eventset>
      </EventSet>
    </EventSet>
  </EventSet>

</Randomevents>