4,683
edits
(Use Abyssal level req where applicable) |
(Ceil Summoning recipes and fixed max abyssal recipe costs) |
||
Line 484: | Line 484: | ||
-- Summoning | -- Summoning | ||
for i, recipe in ipairs(SkillData.Summoning.recipes) do | for i, recipe in ipairs(SkillData.Summoning.recipes) do | ||
local | local recipeCost = 0 | ||
if recipe.abyssalLevel ~= nil then | |||
recipeCost = SkillData.Summoning.recipeAPCost | |||
else | |||
recipeCost = SkillData.Summoning.recipeGPCost | |||
end | |||
local useShards = false | local useShards = false | ||
local recipeItem = nil | local recipeItem = nil | ||
Line 515: | Line 520: | ||
-- Item ID can be nil for recipes such as Leprechaun or Cyclops | -- Item ID can be nil for recipes such as Leprechaun or Cyclops | ||
local itemValue = math.max(nonShardItem.sellsFor, 20) | local itemValue = math.max(nonShardItem.sellsFor, 20) | ||
local nonShardQty = math.max(1, math. | local nonShardQty = math.max(1, math.ceil(recipeCost / itemValue)) | ||
table.insert(recipeCosts, {id = nonShardItemID, quantity = nonShardQty}) | table.insert(recipeCosts, {id = nonShardItemID, quantity = nonShardQty}) | ||
end | end |