sorcery  Diff

Differences From Artifact [235fbb7fc6]:

To Artifact [e0cdcfa7d5]:


    60     60   			-- can't mutate table while we're iterating it
    61     61   			if not minetest.registered_nodes[g] then bad[#bad+1] = g end
    62     62   		end
    63     63   		for _, g in ipairs(bad) do god.gifts[g] = nil end
    64     64   	end
    65     65   end)
    66     66   
    67         -local god_interval = 1
           67  +local std_god_interval = 70
    68     68   
    69     69   for name, god in pairs(sorcery.data.gods) do
    70     70   	local hitbox = {
    71     71   		0-(god.idol.width / 2.0), 0-(god.idol.height / 2.0), -0.15,
    72     72   		   god.idol.width / 2.0,     god.idol.height / 2.0,   0.15
    73     73   	} -- {xmin, ymin, zmin,
    74     74   	  -- xmax, ymax, zmax} in nodes from node center.
................................................................................
    75     75   	paramtype = "light";
    76     76   	if god.idol.craft then
    77     77   		minetest.register_craft {
    78     78   			output = 'sorcery:idol_' .. name;
    79     79   			recipe = god.idol.craft;
    80     80   		};
    81     81   	end
           82  +	local god_interval = std_god_interval * (god.freq or 1)
    82     83   	sorcery.lib.node.reg_autopreserve('sorcery:idol_' .. name, {
    83     84   		description = god.idol.desc;
    84     85   		drawtype = "mesh";
    85     86   		mesh = 'sorcery-idol-' .. name .. '.obj';
    86     87   		paramtype = 'light';
    87     88   		paramtype2 = 'facedir';
    88     89   		sunlight_propagates = true;