35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
return {
force = force;
aff = { aff1, aff2 };
}
end
minetest.register_chatcommand('leyline', {
description = 'See details about local ley force';
privs = { server = true };
func = function(caller,params)
local pos = minetest.get_player_by_name(caller):get_pos()
local ley = sorcery.ley.estimate(pos)
minetest.chat_send_player(caller, 'Leyline force ' .. tostring(ley.force) .. ' with affinities ' .. table.concat(ley.aff, ','))
end;
})
sorcery.ley.chargetype = function(stack)
if minetest.get_item_group(stack:get_name(),'sorcery_wand') ~= 0 then
return 'wear'
else
local e = sorcery.enchant.get(stack)
if e and #e.spells > 0 then
return 'enchant'
|
|
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
return {
force = force;
aff = { aff1, aff2 };
}
end
sorcery.ley.chargetype = function(stack)
if minetest.get_item_group(stack:get_name(),'sorcery_wand') ~= 0 then
return 'wear'
else
local e = sorcery.enchant.get(stack)
if e and #e.spells > 0 then
return 'enchant'
|