Anonymous

Template:HarvestingVeinsTable/doc: Difference between revisions

From Melvor Idle
Increase Vein image size to 25px
mNo edit summary
(Increase Vein image size to 25px)
Line 4: Line 4:
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 !! {{Skill|Harvesting|notext=true|nolink=true}} Level !! Products !! Intensity !! Chance !! AXP !! 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 !! {{Skill|Harvesting|notext=true|nolink=true}} Level !! Products !! Intensity !! Chance !! AXP !! 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}} ||rowspan=4| ${vein.name}`;
results += `\n|-\n| rowspan=4| {{Icon|${vein.name}|type=harvesting|type=vein|notext=true|size=25}} ||rowspan=4| ${vein.name}`;
vein.products.forEach((product, i) => {
vein.products.forEach((product, i) => {
if (i === 0) results += ` || rowspan=4; style="text-align: center"| ${vein.abyssalLevel}`
if (i === 0) results += ` || rowspan=4; style="text-align: center"| ${vein.abyssalLevel}`