17,097
edits
(_getItemuseTable: Fix item upgrade quantities) |
(Update for v1.3) |
||
Line 99: | Line 99: | ||
-- Mastery tokens | -- Mastery tokens | ||
addUse('Mastery') | addUse('Mastery') | ||
else | --[=[else | ||
local globalMods = { | local globalMods = { | ||
'increasedChanceToDoubleItemsGlobal', | 'increasedChanceToDoubleItemsGlobal', | ||
Line 119: | Line 119: | ||
addUse(skillName) | addUse(skillName) | ||
end | end | ||
end | end--]=] | ||
end | end | ||
end | end | ||
Line 340: | Line 340: | ||
-- Township Tasks | -- Township Tasks | ||
for _, task in ipairs(SkillData.Township.tasks) do | for _, task in ipairs(SkillData.Township.tasks) do | ||
if task.goals.items | if task.goals.items ~= nil then -- Skip tasks with no items | ||
if GameData.getEntityByID(task.goals.items, item.id) then | if GameData.getEntityByID(task.goals.items, item.id) then | ||
addUse('TownshipTask') | addUse('TownshipTask') | ||
Line 695: | Line 695: | ||
for i, spell in pairs(spellList) do | for i, spell in pairs(spellList) do | ||
local spellBook = Magic.getSpellBookFromSpell(spell) | |||
local rowPart = {} | local rowPart = {} | ||
table.insert(rowPart, '\r\n|-\r\n|data-sort-value="'..spell.name..'"|') | table.insert(rowPart, '\r\n|-\r\n|data-sort-value="'..spell.name..'"|') | ||
Line 701: | Line 702: | ||
table.insert(rowPart, '||'..Icons.Icon({spell.name, type=iconType, noicon=true})) | table.insert(rowPart, '||'..Icons.Icon({spell.name, type=iconType, noicon=true})) | ||
table.insert(rowPart, '||data-sort-value="'..spell.level..'"|'..Magic._getSpellRequirements(spell)) | table.insert(rowPart, '||data-sort-value="'..spell.level..'"|'..Magic._getSpellRequirements(spell)) | ||
table.insert(rowPart, '||data-sort-value="'.. | table.insert(rowPart, '||data-sort-value="'.. spellBook.id ..'"|') | ||
table.insert(rowPart, Magic.getSpellTypeLink( | table.insert(rowPart, Magic.getSpellTypeLink(spellBook.id)) | ||
table.insert(rowPart, '||'..Magic._getSpellStat(spell, 'description')) | table.insert(rowPart, '||'..Magic._getSpellStat(spell, 'description')) | ||
table.insert(rowPart, '||style="text-align:center"|') | table.insert(rowPart, '||style="text-align:center"|') |