14,469
edits
(Use printError function) |
(_getItemUseTable: Amend links for Agility uses to link to specific obstacle/pillar) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
Astrology = {'melvorF:Stardust', 'melvorF:Golden_Stardust'}, | Astrology = {'melvorF:Stardust', 'melvorF:Golden_Stardust'}, | ||
Attack = {}, | Attack = {}, | ||
Cartography = {'melvorD:Crown_of_Rhaelyx'}, | |||
Combat = {'melvorF:Gold_Emerald_Ring', 'melvorD:Obsidian_Cape', 'melvorF:Throwing_Power_Gloves'}, | Combat = {'melvorF:Gold_Emerald_Ring', 'melvorD:Obsidian_Cape', 'melvorF:Throwing_Power_Gloves'}, | ||
Cooking = {'melvorD:Cooking_Gloves', 'melvorD:Crown_of_Rhaelyx'}, | Cooking = {'melvorD:Cooking_Gloves', 'melvorD:Crown_of_Rhaelyx'}, | ||
Line 458: | Line 459: | ||
local product = Items.getItemByID(recipe.productId) | local product = Items.getItemByID(recipe.productId) | ||
local mat = {{id = recipe.seedCost.id, quantity = recipe.seedCost.quantity}} | local mat = {{id = recipe.seedCost.id, quantity = recipe.seedCost.quantity}} | ||
local rowReq = recipe.level | local rowReq = recipe.level | ||
local category = GameData.getEntityByID(SkillData.Farming.categories, recipe.categoryID) | local category = GameData.getEntityByID(SkillData.Farming.categories, recipe.categoryID) | ||
local qty = 5 * category.harvestMultiplier | local qty = 5 * category.harvestMultiplier | ||
local xp = recipe.baseExperience | |||
table.insert(useArray, {item = {id = product.id, name = product.name}, qty = qty, mats = mat, skill = 'Farming', req = rowReq, xp = xp}) | table.insert(useArray, {item = {id = product.id, name = product.name}, qty = qty, mats = mat, skill = 'Farming', req = rowReq, xp = xp}) | ||
end | end | ||
Line 563: | Line 564: | ||
local iconName = row.item.name | local iconName = row.item.name | ||
if row.skill == 'Agility' then | if row.skill == 'Agility' then | ||
iconType = 'agility' | |||
end | end | ||
local typeName = row.skill ~= nil and row.skill or '' | local typeName = row.skill ~= nil and row.skill or '' |