sorcery  Diff

Differences From Artifact [fc9658990d]:

To Artifact [a732e194a1]:


1
2

































































































































3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25





26
27
28
29
30
31
32
..
48
49
50
51
52
53
54




55
56
57
58
59
60
61
62
63
64
65
66
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, {
................................................................................
					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 = {


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


|



<
|







|







>
>
>
>
>







 







>
>
>
>

|
<
|
<







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137

138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
...
181
182
183
184
185
186
187
188
189
190
191
192
193

194

195
196
197
198
199
200
201
local L = sorcery.lib
return {
	magic = {
		name = "Sulavri Tefrusir" --[[
			Sulavri the Blind is the husband of Irix Irimentari. Elerian legend tells that he fell in love with Irix when she invented alchemy, and they wed, giving birth to the human race. Sulavri is Lord of the Leylines, Father of Man and Magic, and his domain is that of sorcery, physics, the aether, and all the hidden arts besides.

			legend tells that a foolish mortal king once conspired to steal away Sulavri's staff, knowing it to be the apex of the sorcerer's art and desirous of its might. wise Sulavri however saw the warnings on the wind and in the dances of the birds, and so on the fateful day he fashioned an imitation staff that held no power at all, his wife concealing his true staff by turning into a shawl and casting it about her shoulders. sure enough, when Sulavri laid down to rest at his favored mountain stream, a master thief in the employ of the king stole away the false staff, bringing it to his master. at first delighted, the king found the staff would not answer his will, and soon went mad seeking to unlock the secrets of its power.

			Sulavri is the patron of elders, men, and Wand-Working.
		]];
		laziness = 7;
		generosity = 4;
		stinginess = 1;
		color = {255,34,123};
		idol = {
			desc = 'Mystic Idol';
			width = 0.7;
			height = 1;
			tex = {
				"default_obsidian.png";
				"default_gold_block.png";
				"default_copper_block.png";
				"default_tin_block.png^[brighten";
				"default_bronze_block.png";
			};
			craft = {
				{'default:bronze_ingot','default:gold_ingot','default:obsidian_shard'};
				{'sorcery:fragment_copper','sorcery:silver_ingot','sorcery:fragment_copper'};
				{'default:obsidian_shard','stairs:slab_goldblock','default:bronze_ingot'};
			};
		};
		bless = {
			potions = {};
			tools = {};
		};
		gifts = {};
		consecrate = {
			["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','enchant'})
				sorcery.cookbook.setrecipe(stack, mode, nil, {
					pred = function(c)
						local me = ctx.god
						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]
								then return true end
					end;
				})
				return 1, stack
			end;
			-- ["default:gold_ingot"] = {15, "sorcery:holy_token_magic"};
		};
		sacrifice = {
			['sorcery:essence_frost'] = 25;
			['sorcery:essence_flame'] = 25;
			['sorcery:essence_force'] = 30;

			['sorcery:gem_luxite'] = 6;
			['sorcery:gem_ruby'] = 10;
			['sorcery:gem_amethyst'] = 16;
			['sorcery:gem_sapphire'] = 25;
			['sorcery:gem_emerald'] = 34;
			['default:mese_crystal'] = 42;
			['default:diamond'] = 50;

			['sorcery:gem_luxite_amulet'] = 20;
			['sorcery:gem_ruby_amulet'] = 35;
			['sorcery:gem_amethyst_amulet'] = 48;
			['sorcery:gem_sapphire_amulet'] = 56;
			['sorcery:gem_emerald_amulet'] = 63;
			['sorcery:gem_mese_amulet'] = 78;
			['sorcery:gem_diamond_amulet'] = 91;

			['sorcery:oil_mystic'] = 2;
			['sorcery:oil_berry'] = 4;
			['sorcery:oil_wind'] = 6;
			['sorcery:oil_bleak'] = 6;
			['sorcery:oil_stone'] = 7;
			['sorcery:oil_mushroom'] = 8;
			['sorcery:oil_flame'] = 8;
			['sorcery:oil_dawn'] = 11;
			['sorcery:oil_luscious'] = 12;
			['sorcery:oil_luck'] = 16;
			['sorcery:oil_sagnuine'] = -15;

			['sorcery:grease_fog'] = 17;
			['sorcery:grease_pine'] = 18;
			['sorcery:grease_storm'] = 20;
			['sorcery:grease_whisper'] = 21;
			['sorcery:grease_thunder'] = 22;
			['sorcery:grease_enchanting'] = 24;
			['sorcery:grease_lift'] = 32;
			['sorcery:grease_war'] = -5;

			['sorcery:warding_plate'] = 6;
			['sorcery:ley_puncture'] = 8;
			['sorcery:pulse_rectifier'] = 8;
			['sorcery:current_felicitator'] = 12;
			['sorcery:infuser_concentrator'] = 15;
			['sorcery:infuser_tube'] = 23;
			['sorcery:inverter_coil'] = 31;
			['sorcery:inversion_matrix'] = 70;
			['sorcery:inferno_crystal'] = 75;
			['sorcery:beam_generator'] = 83;
			['sorcery:field_emitter'] = 92;
			['sorcery:catalytic_converter'] = 95;
			['sorcery:gravity_manipulator'] = 97;

			['sorcery:core_syncretic'] = 64;
			['sorcery:core_mandatic'] = 53;
			['sorcery:core_praxic'] = 72;
			['sorcery:core_counterpraxic'] = 31;

			['sorcery:sap'] = 1;
			['sorcery:sap_apple'] = 2;
			['sorcery:sap_aspen'] = 3;
			['sorcery:sap_pine'] = 3;
			['sorcery:sap_jungle'] = 4;
			['sorcery:sap_acacia'] = 5;
			['sorcery:blood'] = -5;
		};
	};
	harvest = {
		name = "Irix Irimentari" --[[
			an old Elerian harvest goddess, Irix the Bountiful 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.


			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;
		color = {214, 255, 146};
		idol = {
			desc = "Harvest Idol";
			width = 0.7;
			height = 1;
			tex = {
				"default_grass.png",
				"default_gold_block.png",
				"default_copper_block.png",
				"default_tin_block.png"
			};
			craft = {
				{'sorcery:fragment_tin','default:fern_1','sorcery:fragment_tin'};
				{'sorcery:fragment_copper','default:gold_ingot','sorcery:fragment_copper'};
				{'','stairs:slab_goldblock',''};
			};
		};
		bless = {
			potions = {};
			tools = {};
		};
		consecrate = {
			["flowerpot:empty"] = {2, {
................................................................................
					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
							minetest.get_item_group(c.item, 'sorcery_container') ~= 0 or
							minetest.get_item_group(c.item, 'plant') ~= 0 or
							minetest.get_item_group(c.item, 'flora') ~= 0 or
							minetest.get_item_group(c.item, 'flowerpot') ~= 0 or
							me.sacrifice [c.item] or
							me.consecrate[c.item]

								then return true end

					end;
				})
				return 1, stack
			end;
			-- ["default:steel_ingot"] = {15, "sorcery:holy_token_harvest"};
		};
		sacrifice = {