Template:HarvestingVeinsTable: Difference between revisions

From Melvor Idle
m (Remove the duplicate type= property in the Icon template)
(Split Chance into 2 rows)
 
Line 6: Line 6:
! Products
! Products
! Intensity
! Intensity
! Chance
!colspan=2| Chance
! AXP
! AXP
! AXP/s
! AXP/s
Line 15: Line 15:
| {{ItemIcon|Abyssal Stone}}
| {{ItemIcon|Abyssal Stone}}
| 0%
| 0%
| 600/1001 (59.94%)
| 600/1001
|rowspan=4| 773
| 59.94%
|rowspan=4| 257
|rowspan=4| 1,546
|rowspan=4| 515
|-
|-
| {{ItemIcon|Abyssal Bark}}
| {{ItemIcon|Abyssal Bark}}
| 40%
| 40%
| 300/1001 (29.97%)
| 300/1001
| 29.97%
|-
|-
| {{ItemIcon|Abyssal Quartz}}
| {{ItemIcon|Abyssal Quartz}}
| 80%
| 80%
| 100/1001 (9.99%)
| 100/1001
| 9.99%
|-
|-
| {{ItemIcon|Abyssal Vein Seed}}
| {{ItemIcon|Abyssal Vein Seed}}
| 100%
| 100%
| 1/1001 (0.09%)
| 1/1001
| 0.09%
|-
|-
|rowspan=4| {{Icon|Twisted Vein|type=vein|notext=true}}
|rowspan=4| {{Icon|Twisted Vein|type=vein|notext=true}}
Line 36: Line 40:
| {{ItemIcon|Twisted Thorn}}
| {{ItemIcon|Twisted Thorn}}
| 0%
| 0%
| 600/1001 (59.94%)
| 600/1001
|rowspan=4| 896
| 59.94%
|rowspan=4| 298
|rowspan=4| 1,568
|rowspan=4| 522
|-
|-
| {{ItemIcon|Twisted Tendril}}
| {{ItemIcon|Twisted Tendril}}
| 40%
| 40%
| 300/1001 (29.97%)
| 300/1001
| 29.97%
|-
|-
| {{ItemIcon|Twisted Root}}
| {{ItemIcon|Twisted Root}}
| 80%
| 80%
| 100/1001 (9.99%)
| 100/1001
| 9.99%
|-
|-
| {{ItemIcon|Twisted Vein Seed}}
| {{ItemIcon|Twisted Vein Seed}}
| 100%
| 100%
| 1/1001 (0.09%)
| 1/1001
| 0.09%
|-
|-
|rowspan=4| {{Icon|Gloom Vein|type=vein|notext=true}}
|rowspan=4| {{Icon|Gloom Vein|type=vein|notext=true}}
Line 57: Line 65:
| {{ItemIcon|Gloom Resin}}
| {{ItemIcon|Gloom Resin}}
| 0%
| 0%
| 600/1001 (59.94%)
| 600/1001
|rowspan=4| 1,695
| 59.94%
|rowspan=4| 565
|rowspan=4| 2,203
|rowspan=4| 734
|-
|-
| {{ItemIcon|Gloom Amber}}
| {{ItemIcon|Gloom Amber}}
| 40%
| 40%
| 300/1001 (29.97%)
| 300/1001
| 29.97%
|-
|-
| {{ItemIcon|Gloom Vine}}
| {{ItemIcon|Gloom Vine}}
| 80%
| 80%
| 100/1001 (9.99%)
| 100/1001
| 9.99%
|-
|-
| {{ItemIcon|Gloom Vein Seed}}
| {{ItemIcon|Gloom Vein Seed}}
| 100%
| 100%
| 1/1001 (0.09%)
| 1/1001
| 0.09%
|-
|-
|rowspan=4| {{Icon|Shadow Vein|type=vein|notext=true}}
|rowspan=4| {{Icon|Shadow Vein|type=vein|notext=true}}
Line 78: Line 90:
| {{ItemIcon|Shadow Quartz}}
| {{ItemIcon|Shadow Quartz}}
| 0%
| 0%
| 600/1001 (59.94%)
| 600/1001
|rowspan=4| 3,032
| 59.94%
|rowspan=4| 1,010
|rowspan=4| 3,638
|rowspan=4| 1,212
|-
|-
| {{ItemIcon|Shadow Shard}}
| {{ItemIcon|Shadow Shard}}
| 40%
| 40%
| 300/1001 (29.97%)
| 300/1001
| 29.97%
|-
|-
| {{ItemIcon|Shadow Scale}}
| {{ItemIcon|Shadow Scale}}
| 80%
| 80%
| 100/1001 (9.99%)
| 100/1001
| 9.99%
|-
|-
| {{ItemIcon|Shadow Vein Seed}}
| {{ItemIcon|Shadow Vein Seed}}
| 100%
| 100%
| 1/1001 (0.09%)
| 1/1001
| 0.09%
|-
|-
|rowspan=4| {{Icon|Obsidian Vein|type=vein|notext=true}}
|rowspan=4| {{Icon|Obsidian Vein|type=vein|notext=true}}
Line 99: Line 115:
| {{ItemIcon|Obsidian Tendril}}
| {{ItemIcon|Obsidian Tendril}}
| 0%
| 0%
| 600/1001 (59.94%)
| 600/1001
|rowspan=4| 6,443
| 59.94%
|rowspan=4| 2,147
|rowspan=4| 6,765
|rowspan=4| 2,255
|-
|-
| {{ItemIcon|Obsidian Bark}}
| {{ItemIcon|Obsidian Bark}}
| 40%
| 40%
| 300/1001 (29.97%)
| 300/1001
| 29.97%
|-
|-
| {{ItemIcon|Obsidian Thorn}}
| {{ItemIcon|Obsidian Thorn}}
| 80%
| 80%
| 100/1001 (9.99%)
| 100/1001
| 9.99%
|-
|-
| {{ItemIcon|Obsidian Vein Seed}}
| {{ItemIcon|Obsidian Vein Seed}}
| 100%
| 100%
| 1/1001 (0.09%)
| 1/1001
| 0.09%
|-
|-
|rowspan=4| {{Icon|Voidfire Vein|type=vein|notext=true}}
|rowspan=4| {{Icon|Voidfire Vein|type=vein|notext=true}}
Line 120: Line 140:
| {{ItemIcon|Voidfire Ash}}
| {{ItemIcon|Voidfire Ash}}
| 0%
| 0%
| 600/1001 (59.94%)
| 600/1001
| 59.94%
|rowspan=4| 9,502
|rowspan=4| 9,502
|rowspan=4| 3,167
|rowspan=4| 3,167
Line 126: Line 147:
| {{ItemIcon|Voidfire Resin}}
| {{ItemIcon|Voidfire Resin}}
| 40%
| 40%
| 300/1001 (29.97%)
| 300/1001
| 29.97%
|-
|-
| {{ItemIcon|Voidfire Quartz}}
| {{ItemIcon|Voidfire Quartz}}
| 80%
| 80%
| 100/1001 (9.99%)
| 100/1001
| 9.99%
|-
|-
| {{ItemIcon|Voidfire Vein Seed}}
| {{ItemIcon|Voidfire Vein Seed}}
| 100%
| 100%
| 1/1001 (0.09%)
| 1/1001
| 0.09%
|}
|}

Latest revision as of 08:44, 9 December 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!colspan=2| 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}`;
		results += `\n| ${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);