2,875
edits
(getPrayerTable only returns regular prayers.) |
No edit summary |
||
Line 147: | Line 147: | ||
function p.getAbyssalPrayerTable(frame) | function p.getAbyssalPrayerTable(frame) | ||
return p.getPrayerTableFiltered(frame, function(prayer) return prayer.isAbyssal end) | return p.getPrayerTableFiltered(frame, function(prayer) return prayer.isAbyssal end, 'Abyssal Realm') | ||
end | end | ||
Line 154: | Line 154: | ||
local skillID = 'Prayer' | local skillID = 'Prayer' | ||
local realm = realm or 'Melvor Realm' | local realm = realm or 'Melvor Realm' | ||
local | |||
local html = mw.html.create('table') | |||
:addClass('wikitable sortable stickyHeader') | |||
html:tag('tr'):addClass('headerRow-0') | |||
:tag('th'):attr('colspan', 2) | |||
:wikitext('Prayer') | |||
:tag('th'):wikitext('DLC') | |||
:tag('th'):wikitext(Icons.Icon({'Prayer', type='skill', notext=true}) .. '<br>Level') | |||
:tag('th'):wikitext('Effects') | |||
:tag('th'):wikitext('Point Cost') | |||
local prayerList = p.getPrayers(prayerPredicate) | local prayerList = p.getPrayers(prayerPredicate) | ||
Line 165: | Line 172: | ||
local level = Skills.getRecipeLevel(skillID, prayer) | local level = Skills.getRecipeLevel(skillID, prayer) | ||
local reqText = Skills.getRecipeRequirementText(skillID, prayer) | local reqText = Skills.getRecipeRequirementText(skillID, prayer) | ||
html:tag('tr') | |||
:tag('td'):wikitext(Icons.Icon({prayer.name, type='prayer', notext=true})) | |||
:tag('td'):wikitext('[[' .. prayer.name .. ']]') | |||
:tag('td'):wikitext(Icons.getExpansionIcon(prayer.id)) | |||
:attr('data-sort-value', Icons.getExpansionID(prayer.id)) | |||
:tag('td'):wikitext(level) | |||
:tag('td'):wikitext(p._getPrayerEffect(prayer)) | |||
:tag('td'):wikitext(p.getPrayerCost(prayer)) | |||
end | end | ||
return tostring(html) | |||
return | |||
end | end | ||
edits