Anonymous

Module:Items/UseTables: Difference between revisions

From Melvor Idle
getItemUseTable: Fix quantity for non-shard Summoning recipe costs
(Add Township Tasks to _getItemUses)
(getItemUseTable: Fix quantity for non-shard Summoning recipe costs)
Line 504: Line 504:
table.insert(recipeCosts, {id = itemCost.id, quantity = itemCost.quantity})
table.insert(recipeCosts, {id = itemCost.id, quantity = itemCost.quantity})
end
end
table.insert(recipeCosts, {id = nonShardItemID, qty = nonShardQty})
table.insert(recipeCosts, {id = nonShardItemID, quantity = nonShardQty})
table.insert(useArray, {item = {id = recipeItem.id, name = recipeItem.name}, qty = recipe.baseQuantity, mats = recipeCosts, gp = recipe.gpCost, sc = recipe.scCost, skill = 'Summoning', req = recipe.level, xp = recipe.baseExperience})
table.insert(useArray, {item = {id = recipeItem.id, name = recipeItem.name}, qty = recipe.baseQuantity, mats = recipeCosts, gp = recipe.gpCost, sc = recipe.scCost, skill = 'Summoning', req = recipe.level, xp = recipe.baseExperience})
end
end