Differences From
Artifact [c6bfabb8a9]:
216 216 node_box = {
217 217 type = 'connected';
218 218 disconnected = { -0.05, -0.35, -0.40; 0.05, -0.25, 0.40 };
219 219 connect_front = { -0.05, -0.35, -0.50; 0.05, -0.25, 0.05 };
220 220 connect_back = { -0.05, -0.35, -0.05; 0.05, -0.25, 0.50 };
221 221 connect_right = { -0.05, -0.35, -0.05; 0.50, -0.25, 0.05 };
222 222 connect_left = { -0.50, -0.35, -0.05; 0.05, -0.25, 0.05 };
223 - connect_top = { -0.05, -0.25, -0.05; 0.05, 0.50, 0.05 };
223 + connect_top = { -0.05, -0.35, -0.05; 0.05, 0.50, 0.05 };
224 224 connect_bottom = { -0.05, -0.50, -0.05; 0.05, -0.35, 0.05 };
225 225 };
226 226 connects_to = { 'group:sorcery_ley_device', 'default:mese' };
227 227 -- harcoding mese is kind of cheating -- figure out a
228 228 -- better way to do this for the longterm
229 229 paramtype = 'light';
230 230 -- paramtype2 = 'facedir';
................................................................................
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;
318 323 _sorcery = {
319 324 ley = { mode = 'produce';
320 325 power = function(pos,time)
321 326 return sorcery.ley.field_to_current(sorcery.ley.estimate(pos).force, time);
322 327 end;
323 328 affinity = function(pos)
324 329 return sorcery.ley.estimate(pos).aff
................................................................................
375 380 local sum = vector.add(pos,p)
376 381 if not foundp(sum) then
377 382 checked[#checked + 1] = sum
378 383 local nodename = minetest.get_node(sum).name
379 384 if nodename == 'ignore' then
380 385 minetest.load_area(sum)
381 386 nodename = minetest.get_node(sum).name
382 - print('**** ignorenode, loaded',nodename)
383 387 end
384 388 if minetest.get_item_group(nodename,'sorcery_ley_device') ~= 0
385 389 or sorcery.data.compat.ley[nodename] then
386 390 local d = sorcery.ley.sample(pos,1,nodename,{query={mode=true}})
387 391 assert(d.mode == 'signal'
388 392 or d.mode == 'consume'
389 393 or d.mode == 'produce')