4,662
edits
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
|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> | |||
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' ? `|| ${nsValues[1]}` : `! style="text-align:center;"${rowSpan}| ${nsValues[0]}\n|| ${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); | |||
</syntaxhighlight> |