4,958
edits
m (Hide spoiler recipe; Cleanup script) |
(Split chance into 2 row) |
||
Line 2: | Line 2: | ||
<syntaxhighlight lang="javascript" line> | <syntaxhighlight lang="javascript" line> | ||
let results = `<noinclude>{{/doc}}[[Category:Manual Tables]]</noinclude>\n{| class="wikitable sortable stickyHeader col-7-center col-8-center"\n|- class="headerRow-0"\n!colspan=2| Vein\n! {{Skill|Harvesting|notext=true|nolink=true}} Level\n! Products\n! Intensity\n! Chance\n! AXP\n! AXP/s`; | let results = `<noinclude>{{/doc}}[[Category:Manual Tables]]</noinclude>\n{| class="wikitable sortable stickyHeader col-7-center col-8-center"\n|- class="headerRow-0"\n!colspan=2| Vein\n! {{Skill|Harvesting|notext=true|nolink=true}} Level\n! Products\n! Intensity\n!colspan=2| Chance\n! AXP\n! AXP/s`; | ||
game.harvesting.sortedMasteryActions.forEach((vein, i) => { | game.harvesting.sortedMasteryActions.forEach((vein, i) => { | ||
if (vein.realm.id === 'melvorItA:Eternal') return; | if (vein.realm.id === 'melvorItA:Eternal') return; | ||
Line 11: | Line 11: | ||
results += `${i !== 0 ? '\n|-\n|' : '\n|'} {{ItemIcon|${product.item.name}}}`; | results += `${i !== 0 ? '\n|-\n|' : '\n|'} {{ItemIcon|${product.item.name}}}`; | ||
results += `\n| ${product.minIntensityPercent}%`; | results += `\n| ${product.minIntensityPercent}%`; | ||
results += `\n| ${product.weight}/${vein.totalProductWeight} | results += `\n| ${product.weight}/${vein.totalProductWeight}`; | ||
results += `\n| ${formatNumber(product.weight / vein.totalProductWeight * 100, 2)}%`; | |||
if (i === 0) { | if (i === 0) { | ||
results += `\n|rowspan=4| ${formatNumber(vein.baseAbyssalExperience, 0)}`; | results += `\n|rowspan=4| ${formatNumber(vein.baseAbyssalExperience, 0)}`; |