2,875
edits
m (Reduce icon size) |
(getPrayerTable only returns regular prayers.) |
||
Line 133: | Line 133: | ||
end | end | ||
-- Returns only the regular prayers. | |||
function p.getPrayerTable(frame) | function p.getPrayerTable(frame) | ||
return p.getPrayerTableFiltered(frame, | local func = function(prayer) | ||
return not prayer.isUnholy and not prayer.isAbyssal | |||
end | |||
return p.getPrayerTableFiltered(frame, func) | |||
end | end | ||
Line 141: | Line 146: | ||
end | end | ||
function p.getPrayerTableFiltered(frame, prayerPredicate) | function p.getAbyssalPrayerTable(frame) | ||
return p.getPrayerTableFiltered(frame, function(prayer) return prayer.isAbyssal end) | |||
end | |||
-- Realm is defined "manually" here to define custom styling | |||
function p.getPrayerTableFiltered(frame, prayerPredicate, realm) | |||
local skillID = 'Prayer' | local skillID = 'Prayer' | ||
local realm = realm or 'Melvor Realm' | |||
local result = '{| class="wikitable sortable stickyHeader"' | local result = '{| class="wikitable sortable stickyHeader"' | ||
result = result..'\r\n|-class=headerRow-0' | result = result..'\r\n|-class=headerRow-0' |
edits