sorcery  Diff

Differences From Artifact [266c01e80c]:

To Artifact [7d79adb54e]:


   133    133   				material = {
   134    134   					gem = true, id = name, data = gem;
   135    135   					value = (5 * shards_per_gem) + 4;
   136    136   				};
   137    137   				amulet = { base = name };
   138    138   			};
   139    139   		}) 
          140  +		sorcery.lathe.register {
          141  +			input = itemname;
          142  +			output = amuletname;
          143  +			tech = 'intaglio';
          144  +			cost = 1;
          145  +		}
   140    146   		sorcery.register.metals.foreach('sorcery:mk-amulet-frames-'..name,{'sorcery:generate'}, function(metalid,metal)
   141    147   			if not metal.amulet then return end
   142    148   			local framedid = string.format("%s_frame_%s", amuletname, metalid)
   143    149   			local img_frame = img(string.format('sorcery_amulet_frame_%s.png',metalid))
   144    150   			minetest.register_craftitem(framedid, {
   145    151   				description = string.format("%s-framed %s amulet",sorcery.lib.str.capitalize(metalid), name);
   146    152   				inventory_image = img_sparkle:blit(img_frame):blit(img_stone):render();
................................................................................
   147    153   				wield_scale = { x = 0.6, y = 0.6, z = 0.6 };
   148    154   				groups = { sorcery_amulet = 1 };
   149    155   				on_use = useamulet;
   150    156   				_sorcery = {
   151    157   					amulet = { base = name, frame = metalid };
   152    158   				};
   153    159   			})
   154         -			local frag = metal.parts.fragment
          160  +			--local frag = metal.parts.fragment
          161  +			local disc = metal.parts.disc
   155    162   			minetest.register_craft {
   156    163   				output = framedid;
   157    164   				recipe = {
   158         -					{'',  frag,''};
   159         -					{frag,amuletname,frag};
   160         -					{'',  frag,''};
          165  +					{amuletname};
          166  +					{disc};
          167  +					-- {'',  frag,''};
          168  +					-- {frag,amuletname,frag};
          169  +					-- {'',  frag,''};
   161    170   				};
   162    171   			}
   163    172   		end)
   164    173   	end
   165    174   	minetest.register_craft {
   166    175   		type = 'shapeless';
   167    176   		recipe = (minetest.get_modpath('xdecor') and {
................................................................................
   177    186   		recipe = {
   178    187   			shardname, shardname, shardname;
   179    188   			shardname, shardname, shardname;
   180    189   			shardname, shardname, shardname;
   181    190   		};
   182    191   		output = itemname;
   183    192   	};
   184         -	minetest.register_craft {
   185         -		recipe = {
   186         -			{shardname,itemname,shardname};
   187         -			{itemname,itemname,itemname};
   188         -			{shardname,itemname,shardname};
   189         -		};
   190         -		output = amuletname;
   191         -	};
          193  +-- 	minetest.register_craft {
          194  +-- 		recipe = {
          195  +-- 			{shardname,itemname,shardname};
          196  +-- 			{itemname,itemname,itemname};
          197  +-- 			{shardname,itemname,shardname};
          198  +-- 		};
          199  +-- 		output = amuletname;
          200  +-- 	};
   192    201   
   193    202   	-- generate lenses and crafting recipes
   194    203   	for _, kind in pairs { 'amplifier','rectifier','concave','convex' } do
   195    204   		local id = 'sorcery:lens_' .. kind .. '_' .. name
   196    205   		minetest.register_tool(id, {
   197    206   			inventory_image = sorcery.lib.image('sorcery_lens_overlay_gold.png'):
   198    207   				blit(sorcery.lib.image('sorcery_lens_' .. kind .. '.png'):