Anonymous

Module:Prayer: Difference between revisions

From Melvor Idle
Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling
(_getPrayerEffect: Amend prayer XP values for 0.19.x)
(Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling)
Line 168: Line 168:
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n|'..Icons.Icon({prayer.name, type='prayer', notext=true, size='50'})
     result = result..'\r\n|'..Icons.Icon({prayer.name, type='prayer', notext=true, size='50'})
     result = result..'||[['..prayer.name..']]||'..prayer.prayerLevel
     result = result..'||'..Icons.Icon({prayer.name, type='prayer', noicon=true})..'||'..prayer.prayerLevel
     result = result..'||'..p._getPrayerEffect(prayer)
     result = result..'||'..p._getPrayerEffect(prayer)
     result = result..'||'..p.getPrayerCost(prayer)
     result = result..'||'..p.getPrayerCost(prayer)
Line 188: Line 188:
   for i, item in Shared.skpairs(itemArray) do
   for i, item in Shared.skpairs(itemArray) do
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n|'..Icons.Icon({item.name, type='item', notext='true', size='50'})..'||[['..item.name..']]'
     result = result..'\r\n|'..Icons.Icon({item.name, type='item', notext=true, size='50'})
    result = result..'||'..Icons.Icon({item.name, type='item', noicon=true})
     result = result..'||style="text-align:right;"|'..item.prayerPoints
     result = result..'||style="text-align:right;"|'..item.prayerPoints
     result = result..'||'..ItemSources._getItemSources(item, false, false)
     result = result..'||'..ItemSources._getItemSources(item, false, false)