User:Slash: Difference between revisions

From Melvor Idle
No edit summary
No edit summary
Tag: Manual revert
 
(12 intermediate revisions by the same user not shown)
Line 3: Line 3:
|-
|-
! style="text-align:center;"rowspan=2| Standard
! style="text-align:center;"rowspan=2| Standard
|| {{Melvor}}
| style="text-align:center; | {{Melvor}}
|style="text-align:center;"| {{PrayerIcon|Thick Skin|size=16}} • {{PrayerIcon|Burst of Strength|size=16}} • {{PrayerIcon|Clarity of Thought|size=16}} • {{PrayerIcon|Sharp Eye|size=16}} • {{PrayerIcon|Mystic Will|size=16}} • {{PrayerIcon|Rock Skin|size=16}} • {{PrayerIcon|Superhuman Strength|size=16}} • {{PrayerIcon|Improved Reflexes|size=16}} • {{PrayerIcon|Rapid Heal|size=16}} • {{PrayerIcon|Protect Item|size=16}} • {{PrayerIcon|Hawk Eye|size=16}} • {{PrayerIcon|Mystic Lore|size=16}} • {{PrayerIcon|Steel Skin|size=16}} • {{PrayerIcon|Ultimate Strength|size=16}} • {{PrayerIcon|Incredible Reflexes|size=16}} • {{PrayerIcon|Protect from Magic|size=16}} • {{PrayerIcon|Protect from Ranged|size=16}} • {{PrayerIcon|Protect from Melee|size=16}} • {{PrayerIcon|Eagle Eye|size=16}} • {{PrayerIcon|Mystic Might|size=16}} • {{PrayerIcon|Redemption|size=16}} • {{PrayerIcon|Chivalry|size=16}} • {{PrayerIcon|Piety|size=16}} • {{PrayerIcon|Rigour|size=16}} • {{PrayerIcon|Augury|size=16}} • {{PrayerIcon|Stone Skin|size=16}} • {{PrayerIcon|Safeguard|size=16}} • {{PrayerIcon|Rejuvenation|size=16}} • {{PrayerIcon|Sharp Vision|size=16}} • {{PrayerIcon|Mystic Mastery|size=16}} • {{PrayerIcon|Battleheart|size=16}}
| style="text-align:center;" | {{PrayerIcon|Thick Skin|size=16}} • {{PrayerIcon|Burst of Strength|size=16}} • {{PrayerIcon|Clarity of Thought|size=16}} • {{PrayerIcon|Sharp Eye|size=16}} • {{PrayerIcon|Mystic Will|size=16}} • {{PrayerIcon|Rock Skin|size=16}} • {{PrayerIcon|Superhuman Strength|size=16}} • {{PrayerIcon|Improved Reflexes|size=16}} • {{PrayerIcon|Rapid Heal|size=16}} • {{PrayerIcon|Protect Item|size=16}} • {{PrayerIcon|Hawk Eye|size=16}} • {{PrayerIcon|Mystic Lore|size=16}} • {{PrayerIcon|Steel Skin|size=16}} • {{PrayerIcon|Ultimate Strength|size=16}} • {{PrayerIcon|Incredible Reflexes|size=16}} • {{PrayerIcon|Protect from Magic|size=16}} • {{PrayerIcon|Protect from Ranged|size=16}} • {{PrayerIcon|Protect from Melee|size=16}} • {{PrayerIcon|Eagle Eye|size=16}} • {{PrayerIcon|Mystic Might|size=16}} • {{PrayerIcon|Redemption|size=16}} • {{PrayerIcon|Chivalry|size=16}} • {{PrayerIcon|Piety|size=16}} • {{PrayerIcon|Rigour|size=16}} • {{PrayerIcon|Augury|size=16}} • {{PrayerIcon|Stone Skin|size=16}} • {{PrayerIcon|Safeguard|size=16}} • {{PrayerIcon|Rejuvenation|size=16}} • {{PrayerIcon|Sharp Vision|size=16}} • {{PrayerIcon|Mystic Mastery|size=16}} • {{PrayerIcon|Battleheart|size=16}}
|-
|-
|| {{TotH}}
| style="text-align:center; | {{TotH}}
|style="text-align:center;"| {{PrayerIcon|Valor|size=16}} • {{PrayerIcon|Avidity|size=16}} • {{PrayerIcon|Divination|size=16}} • {{PrayerIcon|Grace|size=16}} • {{PrayerIcon|Holy Aegis|size=16}} • {{PrayerIcon|Divine Precision|size=16}} • {{PrayerIcon|Elusivity|size=16}} • {{PrayerIcon|Battleborn|size=16}}
| style="text-align:center;" | {{PrayerIcon|Valor|size=16}} • {{PrayerIcon|Avidity|size=16}} • {{PrayerIcon|Divination|size=16}} • {{PrayerIcon|Grace|size=16}} • {{PrayerIcon|Holy Aegis|size=16}} • {{PrayerIcon|Divine Precision|size=16}} • {{PrayerIcon|Elusivity|size=16}} • {{PrayerIcon|Battleborn|size=16}}
|-
|-
! style="text-align:center;"| Unholy
! style="text-align:center;"| Unholy
|| {{AoD}}
| style="text-align:center; | {{AoD}}
|style="text-align:center;"| {{PrayerIcon|Maim|size=16}} • {{PrayerIcon|Grudge|size=16}} • {{PrayerIcon|Profane|size=16}} • {{PrayerIcon|Consumption|size=16}} • {{PrayerIcon|Malice|size=16}} • {{PrayerIcon|Martyr|size=16}} • {{PrayerIcon|Shatter|size=16}} • {{PrayerIcon|Spite|size=16}} • {{PrayerIcon|Destruction|size=16}} • {{PrayerIcon|Punishment|size=16}} • {{PrayerIcon|Corruption|size=16}} • {{PrayerIcon|Defile|size=16}} • {{PrayerIcon|Retribution|size=16}} • {{PrayerIcon|Malevolence|size=16}} • {{PrayerIcon|Reckoning|size=16}} • {{PrayerIcon|Sacrilege|size=16}} • {{PrayerIcon|Eradicate|size=16}}
| style="text-align:center;" | {{PrayerIcon|Maim|size=16}} • {{PrayerIcon|Grudge|size=16}} • {{PrayerIcon|Profane|size=16}} • {{PrayerIcon|Consumption|size=16}} • {{PrayerIcon|Malice|size=16}} • {{PrayerIcon|Martyr|size=16}} • {{PrayerIcon|Shatter|size=16}} • {{PrayerIcon|Spite|size=16}} • {{PrayerIcon|Destruction|size=16}} • {{PrayerIcon|Punishment|size=16}} • {{PrayerIcon|Corruption|size=16}} • {{PrayerIcon|Defile|size=16}} • {{PrayerIcon|Retribution|size=16}} • {{PrayerIcon|Malevolence|size=16}} • {{PrayerIcon|Reckoning|size=16}} • {{PrayerIcon|Sacrilege|size=16}} • {{PrayerIcon|Eradicate|size=16}}
|-
|-
! style="text-align:center;"| Abyssal
! style="text-align:center;"| Abyssal
|| {{ItA}}
| style="text-align:center; | {{ItA}}
|style="text-align:center;"| {{PrayerIcon|Savagery|size=16}} • {{PrayerIcon|Menace|size=16}} • {{PrayerIcon|Volatility|size=16}} • {{PrayerIcon|Endure|size=16}} • {{PrayerIcon|Focused|size=16}} • {{PrayerIcon|Elusion|size=16}} • {{PrayerIcon|Ravage|size=16}} • {{PrayerIcon|Ferocity|size=16}} • {{PrayerIcon|Terrorize|size=16}} • {{PrayerIcon|Instability|size=16}} • {{PrayerIcon|Piercer|size=16}} • {{PrayerIcon|Drain|size=16}} • {{PrayerIcon|Vanish|size=16}} • {{PrayerIcon|Renewal|size=16}} • {{PrayerIcon|Cruelty|size=16}} • {{PrayerIcon|Opress|size=16}} • {{PrayerIcon|Devastation|size=16}} • {{PrayerIcon|Melee Shroud|size=16}} • {{PrayerIcon|Ranged Shroud|size=16}} • {{PrayerIcon|Magic Shroud|size=16}} • {{PrayerIcon|Evisceration|size=16}} • {{PrayerIcon|Deadshot|size=16}} • {{PrayerIcon|Brutality|size=16}} • {{PrayerIcon|Tyranny|size=16}} • {{PrayerIcon|Obliteration|size=16}} • {{PrayerIcon|Dissipation|size=16}} • {{PrayerIcon|Meticulous|size=16}} • {{PrayerIcon|Siphon|size=16}} • {{PrayerIcon|Dispersion|size=16}} • {{PrayerIcon|Unrelenting|size=16}} • {{PrayerIcon|Annihilation|size=16}}
| style="text-align:center;" | {{PrayerIcon|Savagery|size=16}} • {{PrayerIcon|Menace|size=16}} • {{PrayerIcon|Volatility|size=16}} • {{PrayerIcon|Endure|size=16}} • {{PrayerIcon|Focused|size=16}} • {{PrayerIcon|Elusion|size=16}} • {{PrayerIcon|Ravage|size=16}} • {{PrayerIcon|Ferocity|size=16}} • {{PrayerIcon|Terrorize|size=16}} • {{PrayerIcon|Instability|size=16}} • {{PrayerIcon|Piercer|size=16}} • {{PrayerIcon|Drain|size=16}} • {{PrayerIcon|Vanish|size=16}} • {{PrayerIcon|Renewal|size=16}} • {{PrayerIcon|Cruelty|size=16}} • {{PrayerIcon|Opress|size=16}} • {{PrayerIcon|Devastation|size=16}} • {{PrayerIcon|Melee Shroud|size=16}} • {{PrayerIcon|Ranged Shroud|size=16}} • {{PrayerIcon|Magic Shroud|size=16}} • {{PrayerIcon|Evisceration|size=16}} • {{PrayerIcon|Deadshot|size=16}} • {{PrayerIcon|Brutality|size=16}} • {{PrayerIcon|Tyranny|size=16}} • {{PrayerIcon|Obliteration|size=16}} • {{PrayerIcon|Dissipation|size=16}} • {{PrayerIcon|Meticulous|size=16}} • {{PrayerIcon|Siphon|size=16}} • {{PrayerIcon|Dispersion|size=16}} • {{PrayerIcon|Unrelenting|size=16}} • {{PrayerIcon|Annihilation|size=16}}
|}
|}
<syntaxhighlight lang="javascript" line>
<syntaxhighlight lang="javascript" line>
Line 24: Line 24:
nsValues = nsMap.get(ns),
nsValues = nsMap.get(ns),
rowSpan = ns === 'melvorF' ? 'rowspan=2' : '',
rowSpan = ns === 'melvorF' ? 'rowspan=2' : '',
style = ns === 'melvorTotH' ? `|| ${nsValues[1]}` : `! style="text-align:center;"${rowSpan}| ${nsValues[0]}\n|| ${nsValues[1]}`
style = ns === 'melvorTotH' ? `| style="text-align:center; | ${nsValues[1]}` : `! style="text-align:center;"${rowSpan}| ${nsValues[0]}\n| style="text-align:center; | ${nsValues[1]}`
results.push(`\n|-\n${style}\n|style="text-align:center;"|`);
results.push(`\n|-\n${style}\n| style="text-align:center;" |`);
prayers.forEach(prayer => {
prayers.forEach(prayer => {
bookResults += ` {{PrayerIcon|${prayer.name}|size=16}} •`;
bookResults += ` {{PrayerIcon|${prayer.name}|size=16}} •`;

Latest revision as of 22:08, 28 July 2024

let results = [`{| class="wikitable navigation-not-searchable" style="margin:auto; clear:both; width: 100%"\n! Prayers !! DLC !! {{Skill|Prayer|Prayers}}`],
	nsMap = new Map([['melvorF', ['Standard', '{{Melvor}}']], ['melvorTotH', ['', '{{TotH}}']], ['melvorAoD', ['Unholy', '{{AoD}}']], ['melvorItA', ['Abyssal', '{{ItA}}']]]);
game.prayers.namespaceMaps.forEach((prayers, ns) => {
	let bookResults = '',
		nsValues = nsMap.get(ns),
		rowSpan = ns === 'melvorF' ? 'rowspan=2' : '',
		style = ns === 'melvorTotH' ? `| style="text-align:center; | ${nsValues[1]}` : `! style="text-align:center;"${rowSpan}| ${nsValues[0]}\n| style="text-align:center; | ${nsValues[1]}`
	results.push(`\n|-\n${style}\n| style="text-align:center;" |`);
	prayers.forEach(prayer => {
		bookResults += ` {{PrayerIcon|${prayer.name}|size=16}} •`;
	});
	bookResults = bookResults.slice(0, bookResults.length - 2); results.push(bookResults);
});
let outputString = ``;
results.forEach(str => outputString += str);
outputString += '\n|}';
self.nw?.Clipboard.get().set ? self.nw?.Clipboard?.get().set(outputString, 'text') : copy(outputString);
console.log(outputString);