sorcery  Check-in [18f3f28aa2]

Overview
Comment:update harvest god gifts
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 18f3f28aa2cc38a484c44fbd14aa527ac927a0367c2946a090aa670822649423
User & Date: lexi on 2021-07-07 12:05:44
Other Links: manifest | tags
Context
2021-07-07
12:57
moretrees compat check-in: 641c891754 user: lexi tags: trunk
12:05
update harvest god gifts check-in: 18f3f28aa2 user: lexi tags: trunk
11:39
fix multiply bug check-in: 119981d2d8 user: lexi tags: trunk
Changes

Modified data/gods.lua from [d4c4fca81d] to [045baf0d77].

113
114
115
116
117
118
119


120
121
122
123
124
125
126
...
193
194
195
196
197
198
199



200
201
202
203
204
205
206
207
208



209
210
211
212
213
214
215
216
217
...
271
272
273
274
275
276
277


278
279
280
281
282
283

284
285
286
287
288

289
290


291
292
293




294
295


296
297
298
299
300
301
302
			['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: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
							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"};
		};
................................................................................
			["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 = {







>
>







 







>
>
>
|
|
|
|
|
|
<
<
<
>
>
>
|
|







 







>
>






>





>


>
>



>
>
>
>


>
>







113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
...
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210



211
212
213
214
215
216
217
218
219
220
221
222
...
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
			['sorcery:grease_storm'] = 18;
			['sorcery:grease_whisper'] = 19;
			['sorcery:grease_thunder'] = 20;
			['sorcery:grease_enchanting'] = 22;
			['sorcery:grease_lift'] = 28;
			['sorcery:grease_war'] = -5;

			['farming:hemp_leaf'] = 3; -- 420 blaze it

			['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: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
						local g = function(n)
							return minetest.get_item_group(c.item, n) ~= 0
						end
						if c.mod == 'farming'
							or g 'sorcery_potion'
							or g 'sorcery_oil'
							or g 'sorcery_grease'
							or g 'sorcery_extract'
							or g 'sorcery_container'



							or g 'plant'
							or g 'flora'
							or g 'flowerpot'
							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"};
		};
................................................................................
			["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};
			["farming:melon_slice"] = {80,12};
			["farming:pumpkin_slice"] = {80,14};
			["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};
			["farming:blackberry"] = {48, 6};
			["flowers:mushroom_red"] = {45, 2};
			["farming:grapes"] = {43, 6};
			["farming:seed_barley"] = {40, 6};
			["farming:rhubarb"] = {38, 8};
			["farming:beans"] = {35, 6};
			["farming:strawberry"] = {33, 5};
			["farming:raspberries"] = {30, 5};
			["bonemeal:mulch"] = {32, 3};
			["farming:vanilla"] = {29, 7};
			["farming:soy_pod"] = {28, 6};
			["farming:corn"] = {27, 2};
			["farming:sugar"] = {24, 4};
			["farming:salt"]  = {24, 3};
			["farming:parsley"] = {22, 4};
			["farming:green_pepper"] = {21, 8};
			["farming:yellow_pepper"] = {21, 8};
			["farming:red_pepper"] = {21, 8};
			["farming:onion"] = {20, 7};
			["farming:carrot"] = {20, 7};
			["farming:cucumber"] = {20, 9};
			["farming:banana"] = {19, 7};
			["default:apple"] = {18, 2};
			["farming:wheat"] = {14, 2};
			["bonemeal:mulch"] = {7, 7};
		};
	};

	blood = {