Module:Items/SourceTables: Difference between revisions
From Melvor Idle
Falterfire (talk | contribs) (Tweaked some things that were resulting in Wandering Bard drops not appearing) |
(_getItemSources: Rework Rhaelyx special treatment, adds Summoning for jewel & mysterious stone) |
||
Line 535: | Line 535: | ||
--Rhaelyx pieces are also special | --Rhaelyx pieces are also special | ||
if | if Shared.contains({'Circlet of Rhaelyx', 'Jewel of Rhaelyx', 'Mysterious Stone'}, item.name) then | ||
local | local rhaSkills = { | ||
Circlet = {'Woodcutting', 'Fishing', 'Mining', 'Thieving', 'Farming', 'Agility'}, | |||
Jewel = {'Firemaking', 'Cooking', 'Smithing', 'Fletching', 'Crafting', 'Runecrafting', 'Herblore', 'Summoning'} | |||
} | |||
local rhaSkList = {} | |||
if item.name == 'Circlet of Rhaelyx' then | |||
rhaSkList = rhaSkills.Circlet | |||
elseif item.name == 'Jewel of Rhaelyx' then | |||
rhaSkList = rhaSkills.Jewel | |||
elseif item.name == 'Mysterious Stone' then | |||
rhaSkList = rhaSkills.Jewel | |||
for i, v in ipairs(rhaSkills.Circlet) do | |||
table.insert(rhaSkList, v) | |||
end | |||
rhaStr = | end | ||
local rhaStrPart = {} | |||
for i, skillName in ipairs(rhaSkList) do | |||
table.insert(rhaStrPart, Icons.Icon({skillName, type='skill', notext=true})) | |||
end | |||
local rhaStr = 'Any action in: ' .. table.concat(rhaStrPart, ', ') | |||
if item.name == 'Mysterious Stone' then rhaStr = rhaStr .. '<br/>after finding ' .. Icons.Icon({'Crown of Rhaelyx', type='item'}) end | |||
table.insert(lineArray, rhaStr) | table.insert(lineArray, rhaStr) | ||
end | end | ||
--Tokens are from the appropriate skill | --Tokens are from the appropriate skill | ||
if item.isToken then | if item.isToken then |