sorcery  Artifact [fc9658990d]

Artifact fc9658990dc9908cd0903af0fb78d8f08a363f676a14712e209b5aa5269bccda:


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;
		color = {214, 255, 146};
		idol = {
			desc = "Harvest Idol";
			width = 0.5;
			height = 1;
			tex = {
				"default_grass.png",
				"default_gold_block.png",
				"default_copper_block.png",
				"default_tin_block.png"
			};
		};
		bless = {
			potions = {};
			tools = {};
		};
		consecrate = {
			["flowerpot:empty"] = {2, {
				"flowerpot:flowers_rose";
				"flowerpot:flowers_tulip";
				"flowerpot:flowers_viola";
				"flowerpot:flowers_geranium";
				"flowerpot:flowers_chrysanthemum_green";
				"flowerpot:flowers_dandelion_white";
				"flowerpot:flowers_dandelion_yellow";
			}};
			["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
			["farming:straw"           ] = 1;
			["farming:bread_slice"     ] = 1;
			["farming:bread"           ] = 2;
			["farming:cookie"          ] = 2;
			["farming:rice_bread"      ] = 2;
			["farming:donut"           ] = 2;
			["farming:donut_apple"     ] = 3;
			["farming:apple_pie"       ] = 3;
			["farming:rhubarb_pie"     ] = 4;
			["farming:muffin_blueberry"] = 4;
			["farming:garlic_bread"    ] = 4;
			["farming:bread_multigrain"] = 5;
			["farming:pumpkin_bread"   ] = 5;
			["farming:donut_chocolate" ] = 5;
			["farming:porridge"        ] = 5;
			["farming:turkish_delight" ] = 6;
			["farming:jaffa_cake"      ] = 7;

			["wine:glass_wheat_beer"] = 2;
			["wine:glass_beer"      ] = 2;
			["wine:glass_rum"       ] = 2;
			["wine:glass_wine"      ] = 3;
			["wine:glass_cider"     ] = 3;
			["wine:glass_sake"      ] = 3;
			["wine:glass_bourbon"   ] = 4;
			["wine:glass_vodka"     ] = 4;
			["wine:glass_mint"      ] = 5;
			["wine:glass_mead"      ] = 6;
			["wine:glass_tequila"   ] = 7;

			["wine:bottle_wheat_beer"] = 6;
			["wine:bottle_beer"      ] = 6;
			["wine:bottle_rum"       ] = 7;
			["wine:bottle_wine"      ] = 8;
			["wine:bottle_cider"     ] = 8;
			["wine:bottle_sake"      ] = 5;
			["wine:bottle_bourbon"   ] = 5;
			["wine:bottle_vodka"     ] = 8;
			["wine:bottle_mint"      ] = 9;
			["wine:bottle_mead"      ] = 12;
			["wine:bottle_tequila"   ] = 20;

			-- abominations
			["default:iron_lump"] = -1;
			["default:tin_lump"] = -1;
			["default:copper_lump"] = -1;
			["default:coal_lump"] = -2;
			["default:cactus"] = -2;
			["default:dirt"] = -5;
			["moreblocks:tar"] = -9;
			["default:bucket_lava"] = -12;
			["sorcery:blood"] = -15;
			["bonemeal:bone"] = -20;
			["default:bones"] = -35;
		};
		gifts = {
			-- gift specs = {favor, chance} where chance is the likelihood of a god bestowing the gift
			["default:blueberry_bush_sapling"] = {120,15};
			["default:blueberries"] = {60, 4};
			["farming:coffee_beans"] = {58, 9};
			["farming:seed_hemp"] = {55, 8};
			["bonemeal:fertiliser"] = {53, 3};
			["farming:garlic_clove"] = {50, 7};
			["farming:seed_mint"] = {50, 7};
			["flowers:mushroom_red"] = {45, 2};
			["farming:grapes"] = {43, 6};
			["farming:seed_barley"] = {40, 6};
			["farming:rhubarb"] = {38, 8};
			["farming:beans"] = {35, 6};
			["farming:raspberries"] = {30, 5};
			["bonemeal:mulch"] = {32, 3};
			["farming:corn"] = {27, 2};
			["farming:sugar"] = {24, 4};
			["farming:salt"]  = {24, 3};
			["farming:onion"] = {20, 7};
			["farming:carrot"] = {20, 7};
			["default:apple"] = {18, 2};
			["farming:wheat"] = {14, 2};
			["bonemeal:mulch"] = {7, 7};
		};
	};

	blood = {
		name = 'Faramesti Surax';
		bless = {
			potions = {
				Force = {favor=50, cost=5, chance=7};
				Longevity = {favor=65, cost=7, chance=3};
			};
			tools = {
				rend = {favor=80, cost=15, chance=20};
			};
		};
		laziness = 2;
		generosity = 4;
		stinginess = 9;
		idol = {
			desc = "Blood Idol";
			width = 0.7;
			height = 1.3;
			tex = {
				"default_obsidian.png";
				"default_gold_block.png";
				"default_copper_block.png";
				-- "default_bronze_block.png^[multiply:#C32F2F";
				"default_bronze_block.png";
				"default_tin_block.png";
			};
		};
		sacrifice = {
			["sorcery:blood"] = 3;
			["bonemeal:bone"] = 9;
			["default:bones"] = 17;
			["sorcery:oil_sanguine"] = 26;

			-- abominations
			["default:apple"] = -10;
			["farming:wheat"] = -20;
			["farming:bread"] = -30;
		};
		gifts = {
			["tnt:gunpowder"] = {40, 2};
			["bonemeal:bonemeal"] = {25, 4};
			["sorcery:grease_war"] = {98, 6};
		};
		consecrate = {
			["sorcery:dagger"] = {4, "sorcery:dagger_consecrated"};
		};
	};
}