DDO information project/Spot and Search/Summary Table

== Editor Note ==

This table was generated from javascript that scraped all the infos from DDO_information_project/Spot_and_Search. The code is listed here for reference, but please be advised that running this on your computer might be harmful as this page can be freely updated. Run at your own risk. Scraping Code  var DCs = {'Spot': {}, 'Search': {}}; var diff = ['Casual', 'Normal', 'Hard', 'Elite'];

function genDC_obj(type, level) { var DC_obj = DCs[type];

DC_obj[level] = {}; var sectionId = document.getElementById(`Level_${i}_quests`); var startFindUl = sectionId.parentElement;

// Find correct UL with DC info var ul = startFindUl; while((ul = ul.nextElementSibling).tagName !== "UL"){ } // This shouldn't infini-loop ? if(type === "Search") { while((ul = ul.nextElementSibling).tagName !== "UL"){ } // Do twice, to grab 2nd UL		}

// For each LI element: create the DC		DC_obj[i].Casual = '-'; Array.from(ul.children).forEach((v, c) => { 			var result = /[0-9]+/.exec(v.children[0].children[0].innerText);			if(!result) { // use speculated instead				result = /[0-9]+/.exec(v.children[0].children[1].innerText);				resultText = result ? result[0]+"*" : "-";			}			else { // Use actual				resultText = result[0];			}

// Set value for level/diff. Not all levels have DCs for casual. DC_obj[i][diff[ul.children.length == 4 ? c : c + 1] || 'err'] = resultText; });			}

// Generate object for each level for(var i=1; i<=34; i++){ genDC_obj("Spot", i); genDC_obj("Search", i); }

// Create table code for Mediawiki var tableStr = ""; for(var i=1; i<=34; i++){ tableStr += `\n|-\n|| ${i} || ${DCs.Spot[i].Casual} || ${DCs.Spot[i].Normal} || ${DCs.Spot[i].Hard} || ${DCs.Spot[i].Elite} \n|| ${DCs.Search[i].Casual} || ${DCs.Search[i].Normal} || ${DCs.Search[i].Hard} || ${DCs.Search[i].Elite}`; }	console.log(tableStr);