local EC = require("design.Encounter")
local thisLevel, Area_1_Encounter_1, Area_1_Encounter_2
function OnScriptLoaded(level, obj)
  thisLevel = level
end
function Start_Area_1_Encounter_1()
  if Area_1_Encounter_1 ~= nil then
    if Area_1_Encounter_1:IsRunning() then
      Area_1_Encounter_1:AlertEnemies(1)
    else
      Area_1_Encounter_1:Start()
      Area_1_Encounter_1:AlertEnemies()
    end
  end
end
function Sleeping_Draugrs_Area_1()
  Area_1_Encounter_1 = EC.NewEncounter(thisLevel, "[Area 1]EC:1 Sleeping", {CheckpointOnComplete = true})
  Area_1_Encounter_1:AddWave({
    {
      spawners = "DW_Draugr_N_SUSL",
      spawnLocators = "A1_Loc_Open_1",
      useSpawnLocatorsOnly = true,
      maxActive = 1,
      totalSpawns = 1,
      spawnCooldown = 0.1
    },
    {
      spawners = "U_Draugr_P_SUSL",
      spawnLocators = "A1_Loc_Open_2",
      useSpawnLocatorsOnly = true,
      maxActive = 1,
      totalSpawns = 1,
      spawnCooldown = 0.1
    },
    {
      spawners = "DW_Draugr_N_SUSL",
      spawnLocators = "A1_Loc_Open_3",
      useSpawnLocatorsOnly = true,
      maxActive = 1,
      totalSpawns = 1,
      spawnCooldown = 0.1
    }
  })
  Area_1_Encounter_1:SetStartZone(thisLevel:GetGameObject("EntZn_Area_1_Spawn"))
end
function Stn400_Start_Area_1_Encounter_2()
  if Area_1_Encounter_2 ~= nil then
    Area_1_Encounter_2:Start()
  end
end
function Turret_Draugrs_Area_1()
  Area_1_Encounter_2 = EC.NewEncounter(thisLevel, "[Area 1]EC:2 Turret", {CheckpointOnComplete = false})
  Area_1_Encounter_2:AddWave({
    {
      spawners = "U_Draugr_PT_SFG",
      maxActive = 1,
      totalSpawns = 1,
      spawnCooldown = 8
    }
  })
end
