Module:Cooking Random Weights: Difference between revisions

m
no edit summary
(Created page with "local p = {} local process_args = require('Module:ProcessArgs') local text_util = require('Module:Text Utility') function p.splitEncounterTableArgs(row) local TABLE_ARGS...")
 
mNo edit summary
 
Line 44: Line 44:
     local tr = ''
     local tr = ''
     for _, v in ipairs(final) do
     for _, v in ipairs(final) do
         tr = tr ..  ' <tr><td>' .. v['item'] .. '</td><td>' .. v['quantity'] .. '</td><td>' .. v['weight'] .. '</td><td>' .. v['chance'] .. '</td></tr>'
         tr = tr ..  ' <tr><td>' ..v['cookeffect'] .. '</td><td>' .. v['weight'] .. '</td><td>' .. v['chance'] .. '</td></tr>'
     end
     end
     return '<table class="wikitable sortable">' .. tblheader  .. tr .. '</table>'
     return '<table class="wikitable sortable">' .. tblheader  .. tr .. '</table>'