sorcery  Diff

Differences From Artifact [a383f4a3c9]:

To Artifact [0e41979f02]:


    60     60   		'sorcery_conduit_copper_side.png';
    61     61   	};
    62     62   	groups = {
    63     63   		sorcery_ley_device = 1;
    64     64   		cracky = 3;
    65     65   	};
    66     66   	_sorcery = {
    67         -		ley = { mode = 'signal'; power = 10 };
           67  +		ley = { mode = 'signal'; power = 100 };
    68     68   	};
    69     69   })
    70     70   minetest.register_craft {
    71     71   	output = 'sorcery:conduit 4';
    72     72   	recipe = {
    73     73   		{'default:copper_ingot', 'default:copper_ingot',  'default:copper_ingot'};
    74     74   		{'default:copper_ingot', 'sorcery:electrumblock', 'default:copper_ingot'};
................................................................................
   160    160   		paramtype2 = 'facedir';
   161    161   		groups = {
   162    162   			cracky = 2;
   163    163   			choppy = 1;
   164    164   			sorcery_ley_device = 1;
   165    165   		};
   166    166   		_sorcery = {
   167         -			ley = { mode = 'signal'; power = 5; }
          167  +			ley = { mode = 'signal'; power = 50; }
   168    168   		};
   169    169   		tiles = tiles;
   170    170   	})
   171    171   	minetest.register_craft {
   172    172   		output = id .. ' 4';
   173    173   		recipe = {
   174    174   			{item, 'sorcery:conduit'};
................................................................................
   265    265   		if props and props.on_leychange then
   266    266   			props.on_leychange(pos)
   267    267   		end
   268    268   	end
   269    269   end
   270    270   sorcery.ley.notify = function(pos)
   271    271   	local n = sorcery.ley.mapnet(pos)
   272         -	sorcery.ley.notifymap(n.map)
          272  +	if n then sorcery.ley.notifymap(n.map) end
   273    273   end
   274    274   
   275    275   sorcery.ley.field_to_current = function(strength,time)
   276    276   	local ley_factor = 0.25
   277    277   	-- a ley harvester will produce this much current with
   278    278   	-- access to a full-strength leyline
   279    279   	
................................................................................
   311    311   			sorcery_ley_device = 1;
   312    312   			sorcery_magitech = 1;
   313    313   		};
   314    314   		on_construct = function(pos)
   315    315   			local meta = minetest.get_meta(pos)
   316    316   			meta:set_string('infotext','Condenser')
   317    317   		end;
   318         -		on_rightclick = function(pos)
   319         -			local c = sorcery.ley.netcaps(pos,1)
   320         -			c.net.devices.signal = nil
   321         -			print('LEYNET', dump(c))
   322         -		end;
   323    318   		_sorcery = {
   324    319   			ley = { mode = 'produce';
   325    320   				power = function(pos,time)
   326    321   					return sorcery.ley.field_to_current(sorcery.ley.estimate(pos).force, time);
   327    322   				end;
   328    323   				affinity = function(pos)
   329    324   					return sorcery.ley.estimate(pos).aff
................................................................................
   699    694   	]], math.floor(burnprog * 100)) .. lamps)
   700    695   end
   701    696   for _,active in pairs{true,false} do
   702    697   	local id = 'sorcery:generator' .. (active and '_active' or '')
   703    698   	minetest.register_node(id, {
   704    699   		description = 'Generator';
   705    700   		paramtype2 = 'facedir';
   706         -		groups = { cracky = 2; sorcery_ley_device = 1; };
          701  +		groups = { cracky = 2; sorcery_ley_device = 1; sorcery_device_generator = active and 1 or 2};
   707    702   		drop = 'sorcery:generator';
   708    703   		tiles = {
   709    704   			'sorcery_ley_generator_top.png';
   710    705   			'sorcery_ley_generator_bottom.png';
   711    706   			'sorcery_ley_generator_side.png';
   712    707   			'sorcery_ley_generator_side.png';
   713    708   			'sorcery_ley_generator_back.png';