From Dark and Darker Wiki

(init)
 
m (create_loot_table() table css)
Line 1: Line 1:
local p = {}
local p = {}


 
function p.create_loot_table(frame)
local droprate_filename = "Data:Droprate Monsters Bosses.json"
local lootdrop_filename = "Data:Lootdrop GhostKing.json"
local resulting_table = ""
resulting_table = resulting_table .. '<br>'
resulting_table = resulting_table .. '<table cellspacing="0" class="loottable stripedtable sortable jquery-tablesorter mw-collapsible" style="width:100%">'
resulting_table = resulting_table .. ' <caption>Loot Table at 0 Luck</caption>'
resulting_table = resulting_table .. ' <tr><th style="width:5%">Name</th><th class="tooltip" style="width:5%"><u>Luck Grade</u><span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">Luck Grades present on the graph but missing in the column below are associated with dropping nothing.</span></th><th style="width:5%">Rarity</th><th style="width:5%">Item Count</th></tr>"'
resulting_table = resulting_table .. '</table><br>'
end


return p
return p

Revision as of 21:00, 3 May 2025


Script error: The function "create_monster_loot_tables" does not exist.


local p = {}

function p.create_loot_table(frame)
	local droprate_filename = "Data:Droprate Monsters Bosses.json"
	local lootdrop_filename = "Data:Lootdrop GhostKing.json"
	
	local resulting_table = ""
	resulting_table = resulting_table .. '<br>'
	resulting_table = resulting_table .. '<table cellspacing="0" class="loottable stripedtable sortable jquery-tablesorter mw-collapsible" style="width:100%">'
	resulting_table = resulting_table .. '	<caption>Loot Table at 0 Luck</caption>'
	resulting_table = resulting_table .. '	<tr><th style="width:5%">Name</th><th class="tooltip" style="width:5%"><u>Luck Grade</u><span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">Luck Grades present on the graph but missing in the column below are associated with dropping nothing.</span></th><th style="width:5%">Rarity</th><th style="width:5%">Item Count</th></tr>"'
	
	resulting_table = resulting_table .. '</table><br>'
end

return p