@@ -77,9 +77,9 @@ inventory_image = sorcery.lib.image('sorcery_lens_overlay_gold.png'): blit(sorcery.lib.image('sorcery_lens_' .. kind .. '.png'): multiply(sorcery.lib.color(gem.tone):brighten(1.1))): render(); - description = sorcery.lib.str.capitalize(name) .. ' ' .. kind .. ' lens'; + description = sorcery.lib.str.capitalize(name) .. ' ' .. sorcery.lib.str.capitalize(kind) .. ' Lens'; groups = { sorcery_enchanting_lens = 1 }; _proto = { gem = name; kind = kind; @@ -178,34 +178,8 @@ -- to chance it; god knows what's going on under the hood end end -if minetest.get_modpath('xdecor') then - local og = minetest.registered_tools['xdecor:hammer'].groups - og.crafttool = 1 - minetest.override_item('xdecor:hammer', {groups = og}) -end - -minetest.register_on_craft(function(stack,crafter,recipe,grid) - local ctoolclass = { - [1] = 200; - [2] = 100; - [3] = 50; - [4] = 10; - [5] = 5; - } - for i=1,grid:get_size('craft') do - local s = grid:get_stack('craft',i) - local v = minetest.get_item_group(s:get_name(),'crafttool') - if v ~= 0 then - local dmg = 65536 / ctoolclass[v] - local tool = recipe[i] - tool:add_wear(dmg) - grid:set_stack('craft',i,tool) - end - end - return nil -end) for g,v in pairs(sorcery.data.gems) do sorcery.register_gem(g,v) end sorcery.gem = { getdrops = function(fac)