sorcery  Diff

Differences From Artifact [5df312f3fb]:

To Artifact [2e8a1de5b1]:


    19     19   		-- gem/crystalline and metal/metallic differentiate
    20     20   		-- between crafting materials (i.e. gems or ingots
    21     21   		-- themselves) and items crafted from those materials.
    22     22   		-- the former includes only crafting materials, the
    23     23   		-- latter includes both.
    24     24   		gem = {
    25     25   			compat = 'gems';
           26  +			finagle = function(g) return {data = sorcery.data.gems[g.id]} end;
    26     27   			groups = { 'gem', 'crystal'; };
    27     28   			predicate = function(name)
    28     29   				if minetest.get_item_group(name, 'sorcery_gem') ~= 0 
    29     30   				or minetest.get_item_group(name, 'sorcery_shard') ~= 0 then
    30     31   					return minetest.registered_items[name]._sorcery.material;
    31     32   				end
    32     33   			end;