4,980
edits
m (Fix special requirements being outside the table) |
m (Fix specialReq not being set per skill causing it to carry over to other entries) |
||
Line 73: | Line 73: | ||
local skillData = SkillData[localSkillID] | local skillData = SkillData[localSkillID] | ||
local skill = skillData.name | local skill = skillData.name | ||
local lvl, isAbyssal, xp, qty, source, costs, time, maxTime, chance = 0, false, 0, 1, nil, nil, 0, nil, nil | local lvl, isAbyssal, xp, qty, source, costs, time, maxTime, chance, specialReq = 0, false, 0, 1, nil, nil, 0, nil, nil, nil | ||
for i, recipe in ipairs(skillData[dataProp.recipeKey]) do | for i, recipe in ipairs(skillData[dataProp.recipeKey]) do | ||
local hasProduct = doesRecipeHaveItemID(recipe, itemID) | local hasProduct = doesRecipeHaveItemID(recipe, itemID) | ||
Line 167: | Line 167: | ||
local skillData = SkillData[localSkillID] | local skillData = SkillData[localSkillID] | ||
local skill = skillData.name | local skill = skillData.name | ||
local lvl, isAbyssal, xp, qty, source, costs, time, maxTime = 0, false, 0, 1, | local lvl, isAbyssal, xp, qty, source, costs, time, maxTime, chance, specialReq = 0, false, 0, 1, nil, nil, 0, nil, nil, nil | ||
for i, recipe in ipairs(skillData.recipes) do | for i, recipe in ipairs(skillData.recipes) do | ||
if recipe.productID == itemID or | if recipe.productID == itemID or |