sorcery  Diff

Differences From Artifact [6a04c7ee36]:

To Artifact [39659f8d92]:


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
				{'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]) and
							mod ~= 'farming'
								then return true end
					end;
				})
				return 6, 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;







|
>
>
>
>
>
>
>
>
>






|



>
>
>

<
>
|
|
|
<
>
|
|
|



|




|
|
|

|
|
|
|
|
|
|

|
|
|
|
|
|
|


|
|
|
|
|
|
|
|
|


|
|
|
|
|
|
|


|



|
|
|
|
|
|
|
|
|

|
|
|
|







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
				{'default:obsidian_shard','stairs:slab_goldblock','default:bronze_ingot'};
			};
		};
		bless = {
			potions = {};
			tools = {};
		};
		gifts = {
			['sorcery:screw_steel'] = {7,1};
			['sorcery:pipe'] = {16,2};
			['sorcery:valve'] = {18,3};
			['sorcery:fragment_vidrium'] = {20,4};
			['sorcery:fragment_lithium'] = {23,5};
			['sorcery:screw_platinum'] = {31,5};
			['sorcery:screw_tungsten'] = {33,5};
			['sorcery:powder_firestorm'] = {48,7};
		};
		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','grind','enchant'})
				sorcery.cookbook.setrecipe(stack, mode, nil, {
					pred = function(c)
						local me = ctx.god
						local g = function(n)
							return minetest.get_item_group(c.item, n) ~= 0
						end
						if (mode == 'enchant' or

							(ctx.favor > 35 and (g 'sorcery_magical'
											or g 'sorcery_magitech'
											or g 'sorcery_ley_device'))
							or g 'sorcery_tech'

							or g 'crafttool'
							or me.sacrifice [c.item]
							or me.consecrate[c.item])
							and mod ~= 'farming'
								then return true end
					end;
				})
				return 3, stack
			end;
			-- ["default:gold_ingot"] = {15, "sorcery:holy_token_magic"};
		};
		sacrifice = {
			['sorcery:essence_frost'] = 15;
			['sorcery:essence_flame'] = 15;
			['sorcery:essence_force'] = 20;

			['sorcery:gem_luxite'] = 4;
			['sorcery:gem_ruby'] = 7;
			['sorcery:gem_amethyst'] = 9;
			['sorcery:gem_sapphire'] = 12;
			['sorcery:gem_emerald'] = 14;
			['default:mese_crystal'] = 18;
			['default:diamond'] = 25;

			['sorcery:gem_luxite_amulet'] = 8;
			['sorcery:gem_ruby_amulet'] = 14;
			['sorcery:gem_amethyst_amulet'] = 18;
			['sorcery:gem_sapphire_amulet'] = 23;
			['sorcery:gem_emerald_amulet'] = 14;
			['sorcery:gem_mese_amulet'] = 36;
			['sorcery:gem_diamond_amulet'] = 50;

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

			['sorcery:grease_fog'] = 15;
			['sorcery:grease_pine'] = 16;
			['sorcery:grease_storm'] = 18;
			['sorcery:grease_whisper'] = 19;
			['sorcery:grease_thunder'] = 20;
			['sorcery:grease_enchanting'] = 22;
			['sorcery:grease_lift'] = 28;
			['sorcery:grease_war'] = -5;

			['sorcery:warding_plate'] = 5;
			['sorcery:ley_puncture'] = 8;
			['sorcery:pulse_rectifier'] = 8;
			['sorcery:current_felicitator'] = 12;
			['sorcery:infuser_concentrator'] = 7;
			['sorcery:infuser_tube'] = 9;
			['sorcery:inverter_coil'] = 10;
			['sorcery:inversion_matrix'] = 22;
			['sorcery:inferno_crystal'] = 24;
			['sorcery:beam_generator'] = 27;
			['sorcery:field_emitter'] = 30;
			['sorcery:catalytic_converter'] = 30;
			['sorcery:gravity_manipulator'] = 50;

			['sorcery:core_syncretic'] = 25;
			['sorcery:core_mandatic'] = 27;
			['sorcery:core_praxic'] = 29;
			['sorcery:core_counterpraxic'] = 17;

			['sorcery:sap'] = 1;
			['sorcery:sap_apple'] = 2;
			['sorcery:sap_aspen'] = 3;
			['sorcery:sap_pine'] = 3;
			['sorcery:sap_jungle'] = 4;
			['sorcery:sap_acacia'] = 5;