10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
...
367
368
369
370
371
372
373
374
375
376
377
378
379
380
|
sorcery.ley.estimate = function(pos)
local affs = {
'praxic'; 'counterpraxic'; 'cognic';
'mandatic'; 'occlutic'; 'imperic';
'syncretic'; 'entropic';
};
local forcemap = minetest.get_perlin(0xe9a01d, 3, 2, 150)
local aff1map = minetest.get_perlin(0x10eb03, 3, 2, 300)
local aff2map = minetest.get_perlin(0x491e12, 3, 2, 240)
local txpos = { --- :( :( :( :(
x = pos.x;
y = pos.z;
z = pos.y;
}
local normalize = function(map)
local v = map:get_2d(txpos)
return (v + 6) / 12 -- seriously??
end
................................................................................
end;
};
recipe = {
note = 'Captures radiant force and suffuses it through distribution net. Energy production varies with local leyline strength.';
};
};
})
end
minetest.register_craft {
output = 'sorcery:condenser';
recipe = {
{'sorcery:accumulator'};
{'sorcery:conduit'};
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
...
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
|
sorcery.ley.estimate = function(pos)
local affs = {
'praxic'; 'counterpraxic'; 'cognic';
'mandatic'; 'occlutic'; 'imperic';
'syncretic'; 'entropic';
};
local forcemap = minetest.get_perlin(0xe9a01d, 3, 2, 150)
local aff1map = minetest.get_perlin(0x10eb03, 3, 2, 300)
local aff2map = minetest.get_perlin(0x491e12, 3, 2, 240)
local txpos = {
x = pos.x;
y = pos.z; --- :( :( :( :(
z = pos.y;
}
local normalize = function(map)
local v = map:get_2d(txpos)
return (v + 6) / 12 -- seriously??
end
................................................................................
end;
};
recipe = {
note = 'Captures radiant force and suffuses it through distribution net. Energy production varies with local leyline strength.';
};
};
})
minetest.register_abm {
name = 'Condenser sound effects';
nodenames = {'sorcery:condenser'};
neighbors = {'group:sorcery_ley_device'};
interval = 5.6, chance = 1, catch_up = false;
action = function(pos)
local force = sorcery.ley.estimate(pos).force
minetest.sound_play('sorcery_condenser_bg', {
pos = pos, max_hear_distance = 5 + 8*force, gain = force*0.3;
})
end;
}
end
minetest.register_craft {
output = 'sorcery:condenser';
recipe = {
{'sorcery:accumulator'};
{'sorcery:conduit'};
|