Module:Skills/Summoning: Difference between revisions
From Melvor Idle
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 |