-- this file is used for large table updates that are automatically generated, since fitting those into corrections is a bad idea
-- not all of this data is validated as its generated from external sources

---@type QuestieDB
local QuestieDB = QuestieLoader:ImportModule("QuestieDB")

if Questie.IsClassic then
    local npcsToUpdate = {
        [239] = 2,
        [240] = 2,
        [313] = 18,
        [384] = 7,
        [715] = 2,
        [786] = 2,
        [931] = 9,
        [1218] = 19,
        [1261] = 7,
        [1295] = 16388,
        [1298] = 16388,
        [1299] = 16388,
        [1303] = 4,
        [1304] = 4,
        [1308] = 4,
        [1310] = 16388,
        [1314] = 16388,
        [1318] = 4,
        [1319] = 16388,
        [1324] = 16388,
        [1341] = 16388,
        [1348] = 16388,
        [1349] = 16388,
        [1350] = 16388,
        [1351] = 4,
        [1387] = 8,
        [1411] = 18,
        [1458] = 19,
        [1459] = 16404,
        [1460] = 7,
        [1519] = 2,
        [1571] = 9,
        [1701] = 16,
        [1755] = 2,
        [2122] = 18,
        [2130] = 18,
        [2153] = 2,
        [2299] = 8,
        [2389] = 8,
        [2397] = 4,
        [2405] = 0,
        [2409] = 8,
        [2432] = 8,
        [2439] = 2,
        [2464] = 2,
        [2465] = 2,
        [2487] = 2,
        [2491] = 2,
        [2497] = 2,
        [2621] = 0,
        [2663] = 4,
        [2670] = 6,
        [2700] = 2,
        [2708] = 2,
        [2737] = 0,
        [2771] = 2,
        [2785] = 2,
        [2789] = 2,
        [2796] = 0,
        [2801] = 16,
        [2802] = 16,
        [2808] = 6,
        [2818] = 16,
        [2835] = 8,
        [2851] = 8,
        [2858] = 9,
        [2859] = 9,
        [2861] = 8,
        [2870] = 16,
        [2880] = 20,
        [2881] = 20,
        [2910] = 2,
        [2920] = 2,
        [2941] = 9,
        [2981] = 2,
        [3001] = 16,
        [3079] = 16388,
        [3137] = 16,
        [3139] = 2,
        [3155] = 18,
        [3170] = 18,
        [3182] = 0,
        [3233] = 2,
        [3292] = 2,
        [3293] = 2,
        [3305] = 9,
        [3327] = 18,
        [3357] = 16,
        [3362] = 7,
        [3370] = 1536,
        [3401] = 18,
        [3411] = 6,
        [3418] = 2,
        [3443] = 2,
        [3467] = 0,
        [3502] = 0,
        [3628] = 0,
        [3679] = 0,
        [3685] = 7,
        [3841] = 8,
        [3845] = 2,
        [3846] = 2,
        [3848] = 2,
        [3881] = 6,
        [3936] = 2,
        [4161] = 1536,
        [4254] = 16,
        [4256] = 7,
        [4265] = 6,
        [4267] = 8,
        [4312] = 8,
        [4314] = 9,
        [4317] = 8,
        [4319] = 8,
        [4321] = 8,
        [4407] = 8,
        [4453] = 2,
        [4501] = 2,
        [4508] = 3,
        [4582] = 18,
        [4584] = 18,
        [4598] = 16,
        [4606] = 18,
        [4607] = 18,
        [4613] = 1536,
        [4618] = 2,
        [4730] = 7,
        [4731] = 7,
        [4885] = 7,
        [4921] = 2,
        [4941] = 2,
        [4963] = 2,
        [4974] = 1536,
        [4981] = 4,
        [5032] = 17,
        [5037] = 17,
        [5038] = 17,
        [5040] = 17,
        [5041] = 17,
        [5054] = 1536,
        [5086] = 3,
        [5130] = 1536,
        [5392] = 16,
        [5395] = 2,
        [5509] = 16388,
        [5510] = 16388,
        [5512] = 16390,
        [5698] = 0,
        [5749] = 7,
        [5750] = 7,
        [5753] = 7,
        [5782] = 2,
        [5843] = 0,
        [5848] = 0,
        [5875] = 2,
        [6026] = 8,
        [6027] = 7,
        [6030] = 16390,
        [6091] = 6,
        [6301] = 6,
        [6328] = 7,
        [6373] = 7,
        [6374] = 7,
        [6376] = 7,
        [6548] = 7,
        [6706] = 8,
        [6707] = 18,
        [6726] = 8,
        [6749] = 8192,
        [6782] = 2,
        [7172] = 3,
        [7233] = 2,
        [7770] = 2,
        [7823] = 8,
        [7824] = 8,
        [7879] = 6,
        [7937] = 2,
        [7952] = 7,
        [7955] = 7,
        [7957] = 3,
        [8018] = 9,
        [8019] = 8,
        [8020] = 8,
        [8214] = 0,
        [8320] = 0,
        [8383] = 2,
        [8416] = 2,
        [8582] = 2,
        [8586] = 2,
        [8609] = 8,
        [8610] = 8,
        [8664] = 2,
        [8665] = 20,
        [8923] = 0,
        [9022] = 0,
        [9087] = 7,
        [9177] = 2,
        [9460] = 0,
        [9540] = 2,
        [9598] = 2,
        [9679] = 0,
        [9976] = 8192,
        [9977] = 8192,
        [9978] = 8192,
        [9979] = 8192,
        [9980] = 8192,
        [9981] = 8192,
        [9982] = 8192,
        [9983] = 8192,
        [9984] = 8192,
        [9985] = 8192,
        [9986] = 8192,
        [9987] = 8192,
        [9988] = 8192,
        [9989] = 8192,
        [10045] = 8192,
        [10046] = 8192,
        [10047] = 8192,
        [10048] = 8192,
        [10049] = 8192,
        [10050] = 8192,
        [10051] = 8192,
        [10052] = 8192,
        [10053] = 8192,
        [10054] = 8192,
        [10055] = 8192,
        [10056] = 8192,
        [10057] = 8192,
        [10058] = 8192,
        [10059] = 8192,
        [10060] = 8192,
        [10061] = 8192,
        [10062] = 8192,
        [10063] = 8192,
        [10076] = 2,
        [10085] = 8192,
        [10118] = 6,
        [10181] = 2,
        [10260] = 2,
        [10296] = 0,
        [10299] = 0,
        [10370] = 16,
        [10378] = 9,
        [10540] = 0,
        [10583] = 8,
        [10665] = 2,
        [10666] = 2,
        [10740] = 2,
        [10776] = 1,
        [10897] = 8,
        [10917] = 2,
        [10931] = 2,
        [10941] = 2,
        [11064] = 3,
        [11069] = 8192,
        [11073] = 16,
        [11079] = 2,
        [11104] = 8192,
        [11105] = 8192,
        [11117] = 8192,
        [11119] = 8192,
        [11138] = 8,
        [11139] = 8,
        [11176] = 3,
        [11194] = 2,
        [11277] = 0,
        [11278] = 5,
        [11279] = 0,
        [11281] = 0,
        [11286] = 2,
        [11316] = 0,
        [11390] = 0,
        [11470] = 0,
        [11486] = 0,
        [11491] = 1,
        [11555] = 6,
        [11625] = 2,
        [11626] = 2,
        [11627] = 0,
        [11696] = 2,
        [11701] = 0,
        [11832] = 2,
        [11899] = 8,
        [11900] = 8,
        [11901] = 8,
        [11948] = 2,
        [11949] = 2,
        [12096] = 6,
        [12144] = 0,
        [12246] = 4,
        [12338] = 0,
        [12577] = 8,
        [12578] = 8,
        [12596] = 8,
        [12616] = 8,
        [12617] = 8,
        [12636] = 8,
        [12740] = 8,
        [12776] = 7,
        [12777] = 4,
        [12782] = 4,
        [12792] = 4,
        [12807] = 7,
        [13018] = 6,
        [13076] = 0,
        [13088] = 0,
        [13089] = 0,
        [13097] = 0,
        [13176] = 2,
        [13177] = 8,
        [13256] = 0,
        [13257] = 2,
        [13316] = 0,
        [13429] = 7,
        [13431] = 7,
        [13437] = 2,
        [13438] = 2,
        [13439] = 2,
        [13442] = 2,
        [13443] = 0,
        [13444] = 2,
        [13447] = 2,
        [13577] = 2,
        [13616] = 8194,
        [13617] = 8194,
        [14321] = 1,
        [14323] = 1,
        [14337] = 16389,
        [14338] = 2,
        [14351] = 0,
        [14353] = 0,
        [14358] = 2,
        [14368] = 2,
        [14369] = 0,
        [14371] = 4,
        [14381] = 2,
        [14382] = 2,
        [14383] = 2,
        [14395] = 0,
        [14401] = 1,
        [14450] = 6,
        [14522] = 4,
        [14581] = 4,
        [14624] = 16391,
        [14625] = 2,
        [14637] = 6,
        [14753] = 16390,
        [14754] = 16390,
        [14774] = 0,
        [14776] = 0,
        [14871] = 1,
        [15077] = 2,
        [15126] = 16390,
        [15127] = 16390,
        [15131] = 8192,
        [15165] = 2,
        [15177] = 9,
        [15178] = 9,
        [15199] = 7,
        [15293] = 4,
        [15350] = 3,
        [15351] = 3,
        [15354] = 5,
        [15362] = 3,
        [15378] = 2,
        [15379] = 2,
        [15380] = 2,
        [15458] = 1,
        [15459] = 3,
        [15460] = 3,
        [15469] = 3,
        [15471] = 7,
        [15477] = 3,
        [15508] = 3,
        [15512] = 3,
        [15515] = 3,
        [15522] = 3,
        [15525] = 3,
        [15528] = 3,
        [15529] = 3,
        [15532] = 3,
        [15533] = 3,
        [15534] = 3,
        [15535] = 3,
        [15589] = 2,
        [15609] = 3,
        [15610] = 3,
        [15611] = 3,
        [15700] = 3,
        [15702] = 3,
        [15703] = 3,
        [15704] = 3,
        [15707] = 3,
        [15736] = 3,
        [15737] = 3,
        [15738] = 3,
        [15739] = 3,
        [16002] = 2,
        [16031] = 2,
        [16032] = 2,
        [16033] = 3,
        [16094] = 8192,
        [16227] = 8,
        [16230] = 1,
        [16285] = 1,
        [16359] = 1,
        [16365] = 3,
        [16376] = 16391,
        [16384] = 1,
        [16395] = 1,
        [16431] = 3,
        [16433] = 1,
        [16434] = 1,
        [16435] = 1,
        [16436] = 1,
        [16439] = 1,
        [16478] = 3,
        [16484] = 3,
        [16531] = 3,
        [16543] = 4,
        [16786] = 2,
        [16787] = 0
    }

    -- npcFlags table update
    for id, flags in pairs(npcsToUpdate) do
        if QuestieDB.npcData[id] then
            QuestieDB.npcData[id][QuestieDB.npcKeys.npcFlags] = flags
        end
    end

end