Module:Skills/Summoning: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 103: Line 103:
for _, shardCost in ipairs(shopItem.cost.currencies) do
for _, shardCost in ipairs(shopItem.cost.currencies) do
if shardCosts[shardCost.currency] then
if shardCosts[shardCost.currency] then
shardCosts[shardCost.currency] = shardCosts[shardCost.currency] + shardCost.cost
shardCosts[shardCost.currency] = shardCosts[shardCost.currency] + (shardCost.cost * shard.quantity)
else
else
shardCosts[shardCost.currency] = shardCost.cost
shardCosts[shardCost.currency] = (shardCost.cost * shard.quantity)
end
end
end
end
2,647

edits