Template:HarvestingVeinsTable: Difference between revisions
From Melvor Idle
m (Add IDs to vein name elem) |
m (Remove the duplicate type= property in the Icon template) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{/doc}}[[Category:Manual Tables]]</noinclude> | <noinclude>{{/doc}}[[Category:Manual Tables]]</noinclude> | ||
{| class="wikitable sortable stickyHeader col-7-center col-8-center" | {| class="wikitable sortable stickyHeader col-7-center col-8-center" | ||
|- class="headerRow-0 | |- class="headerRow-0" | ||
!colspan=2| Vein | !colspan=2| Vein | ||
! {{Skill|Harvesting|notext=true|nolink=true}} Level | ! {{Skill|Harvesting|notext=true|nolink=true}} Level | ||
Line 10: | Line 10: | ||
! AXP/s | ! AXP/s | ||
|- | |- | ||
|rowspan=4| {{Icon|Abyssal Vein | |rowspan=4| {{Icon|Abyssal Vein|type=vein|notext=true}} | ||
|rowspan=4 id="Abyssal Vein"| Abyssal Vein | |rowspan=4 id="Abyssal Vein"| Abyssal Vein | ||
|rowspan=4 style="text-align: center"| 1 | |rowspan=4 style="text-align: center"| 1 | ||
Line 31: | Line 31: | ||
| 1/1001 (0.09%) | | 1/1001 (0.09%) | ||
|- | |- | ||
|rowspan=4| {{Icon|Twisted Vein | |rowspan=4| {{Icon|Twisted Vein|type=vein|notext=true}} | ||
|rowspan=4 id="Twisted Vein"| Twisted Vein | |rowspan=4 id="Twisted Vein"| Twisted Vein | ||
|rowspan=4 style="text-align: center"| 11 | |rowspan=4 style="text-align: center"| 11 | ||
Line 52: | Line 52: | ||
| 1/1001 (0.09%) | | 1/1001 (0.09%) | ||
|- | |- | ||
|rowspan=4| {{Icon|Gloom Vein | |rowspan=4| {{Icon|Gloom Vein|type=vein|notext=true}} | ||
|rowspan=4 id="Gloom Vein"| Gloom Vein | |rowspan=4 id="Gloom Vein"| Gloom Vein | ||
|rowspan=4 style="text-align: center"| 22 | |rowspan=4 style="text-align: center"| 22 | ||
Line 73: | Line 73: | ||
| 1/1001 (0.09%) | | 1/1001 (0.09%) | ||
|- | |- | ||
|rowspan=4| {{Icon|Shadow Vein | |rowspan=4| {{Icon|Shadow Vein|type=vein|notext=true}} | ||
|rowspan=4 id="Shadow Vein"| Shadow Vein | |rowspan=4 id="Shadow Vein"| Shadow Vein | ||
|rowspan=4 style="text-align: center"| 33 | |rowspan=4 style="text-align: center"| 33 | ||
Line 94: | Line 94: | ||
| 1/1001 (0.09%) | | 1/1001 (0.09%) | ||
|- | |- | ||
|rowspan=4| {{Icon|Obsidian Vein | |rowspan=4| {{Icon|Obsidian Vein|type=vein|notext=true}} | ||
|rowspan=4 id="Obsidian Vein"| Obsidian Vein | |rowspan=4 id="Obsidian Vein"| Obsidian Vein | ||
|rowspan=4 style="text-align: center"| 44 | |rowspan=4 style="text-align: center"| 44 | ||
Line 115: | Line 115: | ||
| 1/1001 (0.09%) | | 1/1001 (0.09%) | ||
|- | |- | ||
|rowspan=4| {{Icon|Voidfire Vein | |rowspan=4| {{Icon|Voidfire Vein|type=vein|notext=true}} | ||
|rowspan=4 id="Voidfire Vein"| Voidfire Vein | |rowspan=4 id="Voidfire Vein"| Voidfire Vein | ||
|rowspan=4 style="text-align: center"| 55 | |rowspan=4 style="text-align: center"| 55 |
Latest revision as of 13:48, 27 October 2024
A script is used to generate the following table. To use, open the game and paste the below into the console. The outputs will be copied to your clipboard automatically. After running the script, 'edit source' on Template:HarvestingVeinsTable then Ctrl+A and Ctrl+V. Look over the contents to ensure everything looks fine.
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) => {
if (vein.realm.id === 'melvorItA:Eternal') return;
results += `\n|-\n|rowspan=4| {{Icon|${vein.name}|type=vein|notext=true}}`;
results += `\n|rowspan=4 id="${vein.name}"| ${vein.name}`;
vein.products.forEach((product, i) => {
if (i === 0) results += `\n|rowspan=4 style="text-align: center"| ${vein.abyssalLevel}`;
results += `${i !== 0 ? '\n|-\n|' : '\n|'} {{ItemIcon|${product.item.name}}}`;
results += `\n| ${product.minIntensityPercent}%`;
results += `\n| ${product.weight}/${vein.totalProductWeight} (${formatNumber(product.weight / vein.totalProductWeight * 100, 2)}%)`;
if (i === 0) {
results += `\n|rowspan=4| ${formatNumber(vein.baseAbyssalExperience, 0)}`;
results += `\n|rowspan=4| ${formatNumber(vein.baseAbyssalExperience / 3, 0)}`;
}
});
});
results += '\n|}';console.log(results);
self.nw?.Clipboard.get().set ? self.nw?.Clipboard?.get().set(results, 'text') : copy(results);
Vein | Error creating thumbnail: File missing Level
|
Products | Intensity | Chance | AXP | AXP/s | |
---|---|---|---|---|---|---|---|
Error creating thumbnail: File missing
|
Abyssal Vein | 1 | Error creating thumbnail: File missing Abyssal Stone
|
0% | 600/1001 (59.94%) | 773 | 257 |
Error creating thumbnail: File missing Abyssal Bark
|
40% | 300/1001 (29.97%) | |||||
Error creating thumbnail: File missing Abyssal Quartz
|
80% | 100/1001 (9.99%) | |||||
Error creating thumbnail: File missing Abyssal Vein Seed
|
100% | 1/1001 (0.09%) | |||||
Error creating thumbnail: File missing
|
Twisted Vein | 11 | Error creating thumbnail: File missing Twisted Thorn
|
0% | 600/1001 (59.94%) | 896 | 298 |
Error creating thumbnail: File missing Twisted Tendril
|
40% | 300/1001 (29.97%) | |||||
Error creating thumbnail: File missing Twisted Root
|
80% | 100/1001 (9.99%) | |||||
Error creating thumbnail: File missing Twisted Vein Seed
|
100% | 1/1001 (0.09%) | |||||
Error creating thumbnail: File missing
|
Gloom Vein | 22 | Error creating thumbnail: File missing Gloom Resin
|
0% | 600/1001 (59.94%) | 1,695 | 565 |
Error creating thumbnail: File missing Gloom Amber
|
40% | 300/1001 (29.97%) | |||||
Error creating thumbnail: File missing Gloom Vine
|
80% | 100/1001 (9.99%) | |||||
Error creating thumbnail: File missing Gloom Vein Seed
|
100% | 1/1001 (0.09%) | |||||
Error creating thumbnail: File missing
|
Shadow Vein | 33 | Error creating thumbnail: File missing Shadow Quartz
|
0% | 600/1001 (59.94%) | 3,032 | 1,010 |
Error creating thumbnail: File missing Shadow Shard
|
40% | 300/1001 (29.97%) | |||||
Error creating thumbnail: File missing Shadow Scale
|
80% | 100/1001 (9.99%) | |||||
Error creating thumbnail: File missing Shadow Vein Seed
|
100% | 1/1001 (0.09%) | |||||
Error creating thumbnail: File missing
|
Obsidian Vein | 44 | Error creating thumbnail: File missing Obsidian Tendril
|
0% | 600/1001 (59.94%) | 6,443 | 2,147 |
Error creating thumbnail: File missing Obsidian Bark
|
40% | 300/1001 (29.97%) | |||||
Error creating thumbnail: File missing Obsidian Thorn
|
80% | 100/1001 (9.99%) | |||||
Error creating thumbnail: File missing Obsidian Vein Seed
|
100% | 1/1001 (0.09%) | |||||
Error creating thumbnail: File missing
|
Voidfire Vein | 55 | Error creating thumbnail: File missing Voidfire Ash
|
0% | 600/1001 (59.94%) | 9,502 | 3,167 |
Error creating thumbnail: File missing Voidfire Resin
|
40% | 300/1001 (29.97%) | |||||
Error creating thumbnail: File missing Voidfire Quartz
|
80% | 100/1001 (9.99%) | |||||
Error creating thumbnail: File missing Voidfire Vein Seed
|
100% | 1/1001 (0.09%) |