Anonymous

Module:Navboxes: Difference between revisions

From Melvor Idle
Abyssal runes and prayers
(getSkillcapeNavbox: Fix AoD capes unintentionally being excluded)
(Abyssal runes and prayers)
Line 262: Line 262:
function p.getPrayerNavbox(frame)
function p.getPrayerNavbox(frame)
local prayerList = {
local prayerList = {
["Prayers"] = Prayer.getPrayers(function(prayer) return prayer.isUnholy == nil end),
["Prayers"] = Prayer.getPrayers(function(prayer) return prayer.isUnholy == nil and prayer.isAbyssal == nil end),
["Unholy Prayers"] = Prayer.getPrayers(function(prayer) return prayer.isUnholy end)
["Unholy Prayers"] = Prayer.getPrayers(function(prayer) return prayer.isUnholy end),
["Abyssal Prayers"] = Prayer.getPrayers(function(prayer) return prayer.isAbyssal end)
}
}


Line 291: Line 292:
function p.getRuneNavbox(frame)
function p.getRuneNavbox(frame)
-- Assumes all runes are from Runecrafting, which may need revising in future updates
-- Assumes all runes are from Runecrafting, which may need revising in future updates
local categoryIDs = { 'melvorF:StandardRunes', 'melvorF:CombinationRunes' }
local categoryIDs = {
'melvorF:StandardRunes',
'melvorF:CombinationRunes',
'melvorItA:AbyssalRunes',
'melvorItA:AbyssalComboRunes'
}
local runeList = {}
local runeList = {}
for i, recipe in ipairs(SkillData.Runecrafting.recipes) do
for i, recipe in ipairs(SkillData.Runecrafting.recipes) do
203

edits