@@ -1,10 +1,14 @@ +local L = sorcery.lib return { harvest = { name = "Irix Irimentari" --[[ an old Elerian harvest goddess, Irix Irimentari has watched vigilantly over the fields of her worshippers since before the Second Age. she favors alcoholic beverages as tribute, and has been known to perform blessings for sorcerers when sufficiently inebriated. she harbors a particular hatred of daemons and those who spill the blood of farmers. legend says that a barbarian lord high on opium once wandered into a temple of Irix and left the severed head of a local shepherd on the her altar. this desecration so enraged the goddess that the barbarian's entire tribe soon starved horribly to death, their crops refusing to take root, and their stolen breads turning to ash in their mouths. + + in the mystic arts, she is the patron of Alchemy. it is said that Irix + Irimentari herself invented alchemy when she brewed the first mead. ]]; laziness = 5; stinginess = 3; generosity = 10; @@ -36,8 +40,28 @@ }}; ["sorcery:dagger"] = {17, "sorcery:dagger_consecrated"}; ["sorcery:oil_mystic"] = {9, "sorcery:oil_purifying"}; ["sorcery:potion_water"] = {4, "sorcery:holy_water"}; + ["default:paper"] = function(ctx) + local stack = ItemStack('sorcery:recipe') + local mode = select(2,L.tbl.pick{'cook','craft','infuse','grind'}) + sorcery.cookbook.setrecipe(stack, mode, nil, { + pred = function(c) + local me = ctx.god + if c.mod == 'farming' or + minetest.get_item_group(c.item, 'sorcery_potion') ~= 0 or + minetest.get_item_group(c.item, 'sorcery_oil') ~= 0 or + minetest.get_item_group(c.item, 'sorcery_grease') ~= 0 or + minetest.get_item_group(c.item, 'sorcery_extract') ~= 0 or + me.sacrifice [c.item] or + me.consecrate[c.item] then + print(' !! accepted') + return true end + print(' -- rejected') + end; + }) + return 1, stack + end; -- ["default:steel_ingot"] = {15, "sorcery:holy_token_harvest"}; }; sacrifice = { -- beattitudes @@ -133,8 +157,9 @@ tools = { rend = {favor=80, cost=15, chance=20}; }; }; + laziness = 2; generosity = 4; stinginess = 9; idol = { desc = "Blood Idol";