48
edits
(Overload p.getPrayerTable to allow for passing in a predicate) |
Tag: Undo |
||
Line 131: | Line 131: | ||
function p.getPrayerTable(frame) | function p.getPrayerTable(frame) | ||
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' | ||
Line 140: | Line 136: | ||
result = result..'!!Effects!!Point Cost' | result = result..'!!Effects!!Point Cost' | ||
local prayerList = p.getPrayers( | local prayerList = p.getPrayers(function(prayer) return true end) | ||
table.sort(prayerList, function(a, b) | table.sort(prayerList, function(a, b) | ||
if a.level == b.level then | if a.level == b.level then |
edits