sorcery  Diff

Differences From Artifact [3f1f974e2b]:

To Artifact [a10175fdaa]:


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