--Boomtown

--These contain tables for relevant, spawnable NPCs
include_lua('./Spawndefs/5th_Boomtown.spawndef.lua')
include_lua('./Spawndefs/Clockwork_Boomtown.spawndef.lua')
include_lua('./Spawndefs/Outcasts_Boomtown.spawndef.lua')
include_lua('./Spawndefs/Rikti_Boomtown.spawndef.lua')
include_lua('./Spawndefs/Trolls_Boomtown.spawndef.lua')
include_lua('./Spawndefs/Vahzilok_Boomtown.spawndef.lua')

ES_Library_Objects = {
    ["ES_Trolls_L11_13_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Loiter_Trolls_L11_13_V0,},
      },
      ["ES_Trolls_L12_15_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {FightClub_Trolls_L12_15_V0,},
      },
      ["ES_Trolls_L16_19_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {FightClub_Trolls_L16_19_V0,},
      },
      ["ES_Trolls_L18_20_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Loiter_Trolls_L18_20_V0,},
      },
      ["ES_Outcasts_L11_13_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Loiter_Outcasts_L11_13_V0,},
      },
      ["ES_Outcasts_L12_15_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {FightClub_Outcasts_L12_15_V0,},
      },
      ["ES_Outcasts_L14_17_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Loiter_Outcasts_L14_17_V0,},
      },
      ["ES_Outcasts_L16_19_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {FightClub_Outcasts_L16_19_V0,},
      },
      ["ES_Outcasts_L18_20_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Loiter_Outcasts_L18_20_V0,},
      },
      ["ES_Vahzilok_L11_13_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41", "Encounter_V_44", 
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Harvest_Vahzilok_L11_13_V0,},
      },
      ["ES_Vahzilok_L12_15_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_31", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Loiter_Vahzilok_L12_15_V0,},
      },
      ["ES_Vahzilok_L14_17_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",  "Encounter_V_44" ,
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Harvest_Vahzilok_L14_17_V0,},
      },
      ["ES_Vahzilok_L16_19_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Loiter_Vahzilok_L16_19_V0,},
      },
      ["ES_Vahzilok_L18_20_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41","Encounter_V_44" ,
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Harvest_Vahzilok_L18_20_V0,},
      },
      ["ES_RiktiBeggar_L14_17_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Preaching_RiktiBeggars_L14_17_V0,},
      },
      ["ES_RiktiBeggar_L18_20_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Preaching_RiktiBeggars_L18_20_V0,},
      },
       ["ES_Clockwork_L12_15_AroundSpawn_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "AroundSpawn",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Building_Clockwork_L12_15_V0,},
      },
      ["ES_Clockwork_L16_19_AroundSpawn_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "AroundSpawn",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Building_Clockwork_L16_19_V0,},
      },
      ["ES_Clockwork_L11_13_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Scavenge_Clockwork_L11_13_V0,},
      },
      ["ES_Clockwork_L14_17_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Scavenge_Clockwork_L14_17_V0,},
      },
      ["ES_Clockwork_L18_20_Around_Haz_02_01"] = {
        "Encounter_V_40", "Encounter_V_42", "Encounter_V_41",
        "Encounter_E_06", "Encounter_E_05", "Encounter_S_31",
        "Encounter_S_30", "Encounter_E_02", "Encounter_E_01",
        "Encounter_E_08", "Encounter_S_32", "Encounter_E_07",
        "Encounter_E_03", "Encounter_E_04",
        ["EncounterSpawn"] = "Around",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Scavenge_Clockwork_L18_20_V0,},
      },
     ["ES_OutcastTroll_L11_13_Rumble_Haz_02_01"] = {
        "Encounter_E_08","Encounter_E_02","Encounter_S_34",
        "Encounter_E_06","Encounter_E_10","Encounter_E_12",
        "Encounter_E_04","Encounter_E_09","Encounter_S_32",
        "Encounter_S_33","Encounter_E_03","Encounter_E_11",
        "Encounter_S_35","Encounter_S_31","Encounter_E_05",
        "Encounter_E_01","Encounter_E_07","Encounter_S_30",
        ["EncounterSpawn"] = "Rumble",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Rumble_OutcastsTrolls_L11_13_V0,},
      },
      ["ES_OutcastTroll_L14_17_Rumble_Haz_02_01"] = {
        "Encounter_E_08","Encounter_E_02","Encounter_S_34",
        "Encounter_E_06","Encounter_E_10","Encounter_E_12",
        "Encounter_E_04","Encounter_E_09","Encounter_S_32",
        "Encounter_S_33","Encounter_E_03","Encounter_E_11",
        "Encounter_S_35","Encounter_S_31","Encounter_E_05",
        "Encounter_E_01","Encounter_E_07","Encounter_S_30",
        ["EncounterSpawn"] = "Rumble",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Rumble_OutcastsTrolls_L14_17_V0,},
      },
      ["ES_OutcastTroll_L18_20_Rumble_Haz_02_01"] = {
        "Encounter_E_08","Encounter_E_02","Encounter_S_34",
        "Encounter_E_06","Encounter_E_10","Encounter_E_12",
        "Encounter_E_04","Encounter_E_09","Encounter_S_32",
        "Encounter_S_33","Encounter_E_03","Encounter_E_11",
        "Encounter_S_35","Encounter_S_31","Encounter_E_05",
        "Encounter_E_01","Encounter_E_07","Encounter_S_30",
        ["EncounterSpawn"] = "Rumble",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Rumble_OutcastsTrolls_L18_20_V0,},
      },
      ["ES_5thCol_L12_15_Phalanx_Haz_02_01"] = {
        "Encounter_S_31","Encounter_S_30","Encounter_E_01",
        "Encounter_E_02","Encounter_E_03","Encounter_E_04",
        "Encounter_E_05","Encounter_E_10","Encounter_E_09",
        "Encounter_E_08","Encounter_E_07","Encounter_E_06",
        ["EncounterSpawn"] = "Phalanx",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Training_5thCol_L12_15_V0,},
      },
      ["ES_5thCol_L16_19_Phalanx_Haz_02_01"] = {
        "Encounter_S_31","Encounter_S_30","Encounter_E_01",
        "Encounter_E_02","Encounter_E_03","Encounter_E_04",
        "Encounter_E_05","Encounter_E_10","Encounter_E_09",
        "Encounter_E_08","Encounter_E_07","Encounter_E_06",
        ["EncounterSpawn"] = "Phalanx",
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Training_5thCol_L12_15_V0,},
      },
      ["ES_Babbage_Haz_02_01"] = {
        "Encounter_E_01",
        ["EncounterSpawn"] = "Encounter",
        ["SpawnProbability"] = 100,
        ["CanSpawn"] = {"CanSpawn1",},
        ["CanSpawnDefs"] = {Babbage_D10_V0,},
      },
}

--REQUIRED: This inserts universal into this map's OL
local UniOnce
if UniOnce == false or UniOnce == nil then
    InsertUniversals()
    UniOnce = true
end