Anonymous

Module:Items/UseTables: Difference between revisions

From Melvor Idle
Fixed summoning reqs not scaling properly
(Added Summoning to itemUseTables)
(Fixed summoning reqs not scaling properly)
Line 405: Line 405:
         for k, req in pairs(reqSet) do
         for k, req in pairs(reqSet) do
           if req.id == item.id then
           if req.id == item.id then
             local mat = reqSet
             local mat = Shared.clone(reqSet)
            mat[k].qty = math.max(math.floor(1000 / math.max(item.sellsFor, 20)), 1)
             local xp = 5 + 2 * math.floor(item2.summoningLevel * 0.2)
             local xp = 5 + 2 * math.floor(item2.summoningLevel * 0.2)
             local rowReq = Icons._SkillReq('Summoning', item2.summoningLevel)
             local rowReq = Icons._SkillReq('Summoning', item2.summoningLevel)