Module:Items/SourceTables: Difference between revisions

_getItemSources: Link specifically to Alt. Magic for general rares
(Added handling for Earth Golem (AoD) being a different thing)
(_getItemSources: Link specifically to Alt. Magic for general rares)
Line 661: Line 661:
for i, skillDataAll in ipairs(GameData.rawData.skillData) do
for i, skillDataAll in ipairs(GameData.rawData.skillData) do
local skillData = skillDataAll.data
local skillData = skillDataAll.data
local skillName, displaySkillName = skillData.name, false
-- All general rare drops within the Magic are for Alt. Magic
if skillDataAll.skillID == 'melvorD:Magic' then
skillName, displaySkillName = 'Alt. Magic', true
end
if type(skillData.rareDrops) == 'table' then
if type(skillData.rareDrops) == 'table' then
for j, rareDrop in ipairs(skillData.rareDrops) do
for j, rareDrop in ipairs(skillData.rareDrops) do
Line 691: Line 696:
end
end
end
end
table.insert(skillIconList, Icons.Icon({skillData.name, type='skill', notext=true}))
local skillText = Icons.Icon({skillName, type='skill', notext=true})
if displaySkillName then
skillText = skillText .. ' (' .. Icons.Icon({skillName, type='skill', noicon=true}) .. ')'
end
table.insert(skillIconList, skillText)
end
end
end
end