4,582
edits
(Increase Vein image size to 25px) |
m (Add IDs to vein name elem) |
||
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 | 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`; | ||
game.harvesting.sortedMasteryActions.forEach((vein, i) => { | game.harvesting.sortedMasteryActions.forEach((vein, i) => { | ||
results += `\n|-\n| rowspan=4| {{Icon|${vein.name}|type=harvesting|type=vein|notext=true | results += `\n|-\n|rowspan=4| {{Icon|${vein.name}|type=harvesting|type=vein|notext=true}}\n|rowspan=4 id="${vein.name}"| ${vein.name}`; | ||
vein.products.forEach((product, i) => { | vein.products.forEach((product, i) => { | ||
if (i === 0) results += ` | if (i === 0) results += `\n|rowspan=4 style="text-align: center"| ${vein.abyssalLevel}` | ||
results += `${i !== 0 ? '\n|-\n|' : ' | results += `${i !== 0 ? '\n|-\n|' : '\n|'} {{ItemIcon|${product.item.name}}}\n| ${product.minIntensityPercent}%\n| ${product.weight}/${vein.totalProductWeight} (${formatNumber(product.weight / vein.totalProductWeight * 100, 2)}%)`; | ||
if (i === 0) results += ` | if (i === 0) results += `\n|rowspan=4| ${formatNumber(vein.baseAbyssalExperience, 0)}\n|rowspan=4| ${formatNumber(vein.baseAbyssalExperience / 3, 0)}` | ||
}); | }); | ||
}); results += '\n|}';console.log(results); | }); results += '\n|}';console.log(results); | ||
self.nw?.Clipboard.get().set ? self.nw?.Clipboard?.get().set(results, 'text') : copy(results); | self.nw?.Clipboard.get().set ? self.nw?.Clipboard?.get().set(results, 'text') : copy(results); | ||
</syntaxhighlight> | </syntaxhighlight> |