Anonymous

Module:Prayer: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 8: Line 8:
local Items = require('Module:Items')
local Items = require('Module:Items')
local ItemSources = require('Module:Items/SourceTables')
local ItemSources = require('Module:Items/SourceTables')
local Num = require('Module:Number')


function p.getPrayerByID(id)
function p.getPrayerByID(id)
Line 199: Line 200:
result = result..'\r\n|'..Icons.Icon({item.name, type='item', notext=true})
result = result..'\r\n|'..Icons.Icon({item.name, type='item', notext=true})
result = result..'||' .. Icons.getExpansionIcon(item.id) .. Icons.Icon({item.name, type='item', noicon=true})
result = result..'||' .. Icons.getExpansionIcon(item.id) .. Icons.Icon({item.name, type='item', noicon=true})
result = result..'||style="text-align:right;"|'..Shared.formatnum(item.prayerPoints)
result = result..'||style="text-align:right;"|'..Num.formatnum(item.prayerPoints)
result = result..'||'..ItemSources._getItemSources(item, false, false)
result = result..'||'..ItemSources._getItemSources(item, false, false)
end
end
Line 219: Line 220:
result = result..'\r\n|'..Icons.Icon({item.name, type='item', notext=true})
result = result..'\r\n|'..Icons.Icon({item.name, type='item', notext=true})
result = result..'||' .. Icons.getExpansionIcon(item.id) .. Icons.Icon({item.name, type='item', noicon=true})
result = result..'||' .. Icons.getExpansionIcon(item.id) .. Icons.Icon({item.name, type='item', noicon=true})
result = result..'||style="text-align:right;"|'..Shared.formatnum(item.soulPoints)
result = result..'||style="text-align:right;"|'..Num.formatnum(item.soulPoints)
result = result..'||'..ItemSources._getItemSources(item, false, false)
result = result..'||'..ItemSources._getItemSources(item, false, false)
end
end
2,875

edits