17,101
edits
(Further fixes) |
(_getSpellTemplateData: Resolve error with fixedItemCosts data) |
||
Line 217: | Line 217: | ||
["specialCostQty"] = spell.specialCost.quantity | ["specialCostQty"] = spell.specialCost.quantity | ||
} | } | ||
if type(spell.fixedItemCosts) == 'table' then | |||
for i, fixedCost in ipairs(spell.fixedItemCosts) do | |||
local item = Items.getItemByID(fixedCost.id) | |||
if item ~= nil then | |||
templateData['fixedItemName' .. (i - 1)] = item.name | |||
templateData['fixedItemQty' .. (i - 1)] = fixedCost.quantity | |||
end | |||
end | |||
end | |||
end | end | ||
end | end |