Index: data/runes.lua ================================================================== --- data/runes.lua +++ data/runes.lua @@ -653,11 +653,10 @@ local maxima = vector.new(radius, radius, radius) local potential_targets = minetest.find_nodes_in_area(epicenter - maxima, epicenter + maxima, {'group:sorcery_magical', 'group:sorcery_magitech'}) local wreck = {} for _, pos in pairs(potential_targets) do if sorcery.lib.math.vdcomp(radius,epicenter,pos) then - print('got wreckable at',pos) wreck[#wreck+1] = pos end end sorcery.spell.cast { name = 'sorcery:spellshatter'; @@ -1506,11 +1505,10 @@ local p = vector.add(w,ofs) if not sorcery.lib.node.is_clear(p) then return end spark(s, p) minetest.sound_play('sorcery_put', {pos = p, gain = 0.4}, true) local lamp = mpick 'lamp_ext' - print('installing lamp',lamp,p,vector.new(ofs)) put_align(p, lamp, vector.multiply(ofs,-1)) end i=i+1 end put{x=o.x, y=0, z=0} Index: runeforge.lua ================================================================== --- runeforge.lua +++ runeforge.lua @@ -275,31 +275,23 @@ local int, powerfac = calc_phial_props(phial) 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 end