sorcery  Diff

Differences From Artifact [0b5549f5e7]:

To Artifact [a284aef5fe]:


57
58
59
60
61
62
63

64








65
66










67










68
69
70
71
72
73
74
...
210
211
212
213
214
215
216

217

218
219



















220
221
222
223
224
225
226
	extra.description = label;
	extra.inventory_image = image;
	if not extra.groups then extra.groups = {} end
	minetest.register_craftitem('sorcery:' .. name, extra)
end

sorcery.register_potion('blood', 'Blood', 'A bottle of sacrificial blood, imbued with stolen (or perhaps donated) life force', u.color(219,19,14), nil, nil, {

	sorcery_life_store = 4;








})
sorcery.register_potion('potion_water', 'Water Bottle', 'A bottle of plain water', u.color(43,90,162))










sorcery.register_potion('holy_water', 'Holy Water','A bottle of consecrated water',u.color(94,138,206),'sparkle',6)











local create_infusion_recipe = function(id,potion,default_basis,proto)
	if potion.infusion then
		sorcery.register.infusions.link {
			infuse = potion.infusion;
			into = potion.basis or default_basis;
			output = 'sorcery:' .. id;
................................................................................
end)

-- for n,v in pairs(sorcery.data.extracts) do
sorcery.register.extracts.foreach('sorcery:mknodes',{},function(n,v)
	local item = v[1]
	local color = u.color(v[2])
	local name = 'extract_' .. n

	sorcery.register_potion(name, u.str.capitalize(n) .. ' Extract', nil, color, 'sparkle', false, {

		groups = {
			sorcery_extract = 1;



















		};
	})

	local add_alcohol = function(booze)
		minetest.register_craft {
			type = "shapeless";
			recipe = {







>
|
>
>
>
>
>
>
>
>

|
>
>
>
>
>
>
>
>
>
>
|
>
>
>
>
>
>
>
>
>
>







 







>
|
>


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







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
...
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
	extra.description = label;
	extra.inventory_image = image;
	if not extra.groups then extra.groups = {} end
	minetest.register_craftitem('sorcery:' .. name, extra)
end

sorcery.register_potion('blood', 'Blood', 'A bottle of sacrificial blood, imbued with stolen (or perhaps donated) life force', u.color(219,19,14), nil, nil, {
	_sorcery = {
		life_store = 4;
		container = {
			type = 'vessel';
			hold = 'liquid';
			has = 'sorcery:blood';
			empty = 'vessels:glass_bottle';
			charge = 3;
		};
	};
})
sorcery.register_potion('potion_water', 'Water Bottle', 'A bottle of plain water', u.color(43,90,162),nil,nil,{
	_sorcery = {
		container = {
			type = 'vessel';
			hold = 'liquid';
			has = 'default:water';
			empty = 'vessels:glass_bottle';
			charge = 3;
		};
	};
})
sorcery.register_potion('holy_water', 'Holy Water','A bottle of consecrated water',u.color(94,138,206),'sparkle',6,{
	_sorcery = {
		container = {
			type = 'vessel';
			hold = 'liquid';
			has = 'sorcery:water_holy';
			empty = 'vessels:glass_bottle';
			charge = 3;
		};
	};
})

local create_infusion_recipe = function(id,potion,default_basis,proto)
	if potion.infusion then
		sorcery.register.infusions.link {
			infuse = potion.infusion;
			into = potion.basis or default_basis;
			output = 'sorcery:' .. id;
................................................................................
end)

-- for n,v in pairs(sorcery.data.extracts) do
sorcery.register.extracts.foreach('sorcery:mknodes',{},function(n,v)
	local item = v[1]
	local color = u.color(v[2])
	local name = 'extract_' .. n
	local liqid = 'sorcery:' .. name
	local desc = u.str.capitalize(n) .. ' Extract'
	sorcery.register_potion(name, desc, nil, color, 'sparkle', false, {
		groups = {
			sorcery_extract = 1;
			sorcery_container = 2;
		};
		_sorcery = {
			container = {
				type = 'vessel';
				hold = 'liquid';
				charge = 3;
				has = liqid;
				empty = 'vessels:glass_bottle';
			};
		};
	})

	sorcery.register.liquid.link(liqid, {
		name = desc;
		kind = 'sorcery:extract';
		proto = v;
		containers = {
			['vessels:glass_bottle'] = name;
		};
	})

	local add_alcohol = function(booze)
		minetest.register_craft {
			type = "shapeless";
			recipe = {