@@ -276,29 +276,21 @@ local pf = phial:get_meta():get_int('force') local rolls = math.floor(time/int) local newrunes = {} for _=1,rolls do - print('--- rune roll',_,'pf',pf) local choices = {} for name,rune in pairs(sorcery.data.runes) do local powreq = (rune.minpower*powerfac)*time - print('- rune', name) - print('powreq',powreq) - print('power draw',l.self.powerdraw) if powreq <= l.self.powerdraw then - print(' ! sufficient power for rune') choices[#choices + 1] = rune end end for k,v in pairs(choices) do print(' * choice',k,v.item) end if #choices > 0 then for try = 1,#choices do - print(' -- try',try) local _, choice = sorcery.lib.tbl.pick(choices) local adjrare = math.max(2, choice.rarity - pf) - print(choice.item,'rarity',choice.rarity, 'adjusted', adjrare) if math.random(adjrare) == 1 then - print(' ! picking ', choice.item) newrunes[#newrunes + 1] = ItemStack(choice.item) break end end