sorcery  Diff

Differences From Artifact [15ff8624ed]:

To Artifact [cca22cad27]:


   201    201   			props[#props+1] = {
   202    202   				title = e.name;
   203    203   				desc = e.desc;
   204    204   				color = sorcery.lib.color(e.tone);
   205    205   			}
   206    206   			local inf = mat.data.slots[s.slot].interference
   207    207   			if inf then for k,v in pairs(inf) do
   208         -				interference[k] = interference[k] + v
          208  +				interference[k] = (interference[k] or 0) + v
   209    209   			end end
   210    210   		::skip::end
   211    211   		if #interference > 0 then
   212    212   			if interference.speed then stack = sorcery.data.enchants.pierce.apply(stack,-interference.speed,basecaps) end
   213    213   			if interference.durability then stack = sorcery.data.enchants.endure.apply(stack,-interference.durability,basecaps) end
   214    214   		end
   215    215   		meta = stack:get_meta() -- necessary? unclear
................................................................................
   227    227   
   228    228   minetest.register_node('sorcery:enchanter', {
   229    229   	description = 'Enchanter';
   230    230   	drawtype = 'mesh';
   231    231   	mesh = 'sorcery-enchanter.obj';
   232    232   	paramtype = 'light';
   233    233   	paramtype2 = 'facedir';
   234         -	groups = { cracky = 2, oddly_breakable_by_hand = 2 };
          234  +	groups = { cracky = 2, oddly_breakable_by_hand = 2, sorcery_magitech = 1 };
   235    235   	sunlight_propagates = true;
   236    236   	selection_box = hitbox;
   237    237   	collision_box = hitbox;
   238    238   	after_dig_node = sorcery.lib.node.purge_container;
   239    239   	tiles = {
   240    240   		"default_obsidian.png";
   241    241   		"default_steel_block.png";