Index: altar.lua ================================================================== --- altar.lua +++ altar.lua @@ -62,11 +62,11 @@ end for _, g in ipairs(bad) do god.gifts[g] = nil end end end) -local god_interval = 1 +local std_god_interval = 70 for name, god in pairs(sorcery.data.gods) do local hitbox = { 0-(god.idol.width / 2.0), 0-(god.idol.height / 2.0), -0.15, god.idol.width / 2.0, god.idol.height / 2.0, 0.15 @@ -77,10 +77,11 @@ minetest.register_craft { output = 'sorcery:idol_' .. name; recipe = god.idol.craft; }; end + local god_interval = std_god_interval * (god.freq or 1) sorcery.lib.node.reg_autopreserve('sorcery:idol_' .. name, { description = god.idol.desc; drawtype = "mesh"; mesh = 'sorcery-idol-' .. name .. '.obj'; paramtype = 'light'; Index: data/gods.lua ================================================================== --- data/gods.lua +++ data/gods.lua @@ -9,10 +9,11 @@ Sulavri is the patron of elders, men, and Wand-Working. ]]; laziness = 7; generosity = 4; stinginess = 1; + freq = 1.2; color = {255,34,123}; idol = { desc = 'Mystic Idol'; width = 0.7; height = 1; @@ -42,22 +43,23 @@ local stack = ItemStack('sorcery:recipe') local mode = select(2,L.tbl.pick{'cook','craft','infuse','grind','enchant'}) sorcery.cookbook.setrecipe(stack, mode, nil, { pred = function(c) local me = ctx.god - if mode == 'enchant' or + if (mode == 'enchant' or minetest.get_item_group(c.item, 'sorcery_magical') ~= 0 or minetest.get_item_group(c.item, 'sorcery_magitech') ~= 0 or minetest.get_item_group(c.item, 'sorcery_ley_device') ~= 0 or minetest.get_item_group(c.item, 'sorcery_tech') ~= 0 or minetest.get_item_group(c.item, 'crafttool') ~= 0 or me.sacrifice [c.item] or - me.consecrate[c.item] + me.consecrate[c.item]) and + mod ~= 'farming' then return true end end; }) - return 1, stack + return 6, stack end; -- ["default:gold_ingot"] = {15, "sorcery:holy_token_magic"}; }; sacrifice = { ['sorcery:essence_frost'] = 25; @@ -138,10 +140,11 @@ Irix is the patron of maidens, mothers, and Alchemy. it is said that Irix Irimentari herself invented alchemy when she brewed the first mead. ]]; laziness = 5; stinginess = 3; generosity = 10; + freq = 1; color = {214, 255, 146}; idol = { desc = "Harvest Idol"; width = 0.7; height = 1;