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: |
18f3f28aa2cc38a484c44fbd14aa527a |
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 113 ['sorcery:grease_storm'] = 18; 114 114 ['sorcery:grease_whisper'] = 19; 115 115 ['sorcery:grease_thunder'] = 20; 116 116 ['sorcery:grease_enchanting'] = 22; 117 117 ['sorcery:grease_lift'] = 28; 118 118 ['sorcery:grease_war'] = -5; 119 119 120 + ['farming:hemp_leaf'] = 3; -- 420 blaze it 121 + 120 122 ['sorcery:warding_plate'] = 5; 121 123 ['sorcery:ley_puncture'] = 8; 122 124 ['sorcery:pulse_rectifier'] = 8; 123 125 ['sorcery:current_felicitator'] = 12; 124 126 ['sorcery:infuser_concentrator'] = 7; 125 127 ['sorcery:infuser_tube'] = 9; 126 128 ['sorcery:inverter_coil'] = 10; ................................................................................ 193 195 ["sorcery:potion_water"] = {4, "sorcery:holy_water"}; 194 196 ["default:paper"] = function(ctx) 195 197 local stack = ItemStack('sorcery:recipe') 196 198 local mode = select(2,L.tbl.pick{'cook','craft','infuse','grind'}) 197 199 sorcery.cookbook.setrecipe(stack, mode, nil, { 198 200 pred = function(c) 199 201 local me = ctx.god 200 - if c.mod == 'farming' or 201 - minetest.get_item_group(c.item, 'sorcery_potion') ~= 0 or 202 - minetest.get_item_group(c.item, 'sorcery_oil') ~= 0 or 203 - minetest.get_item_group(c.item, 'sorcery_grease') ~= 0 or 204 - minetest.get_item_group(c.item, 'sorcery_extract') ~= 0 or 205 - minetest.get_item_group(c.item, 'sorcery_container') ~= 0 or 206 - minetest.get_item_group(c.item, 'plant') ~= 0 or 207 - minetest.get_item_group(c.item, 'flora') ~= 0 or 208 - minetest.get_item_group(c.item, 'flowerpot') ~= 0 or 209 - me.sacrifice [c.item] or 210 - me.consecrate[c.item] 202 + local g = function(n) 203 + return minetest.get_item_group(c.item, n) ~= 0 204 + end 205 + if c.mod == 'farming' 206 + or g 'sorcery_potion' 207 + or g 'sorcery_oil' 208 + or g 'sorcery_grease' 209 + or g 'sorcery_extract' 210 + or g 'sorcery_container' 211 + or g 'plant' 212 + or g 'flora' 213 + or g 'flowerpot' 214 + or me.sacrifice [c.item] 215 + or me.consecrate[c.item] 211 216 then return true end 212 217 end; 213 218 }) 214 219 return 1, stack 215 220 end; 216 221 -- ["default:steel_ingot"] = {15, "sorcery:holy_token_harvest"}; 217 222 }; ................................................................................ 271 276 ["sorcery:blood"] = -15; 272 277 ["bonemeal:bone"] = -20; 273 278 ["default:bones"] = -35; 274 279 }; 275 280 gifts = { 276 281 -- gift specs = {favor, chance} where chance is the likelihood of a god bestowing the gift 277 282 ["default:blueberry_bush_sapling"] = {120,15}; 283 + ["farming:melon_slice"] = {80,12}; 284 + ["farming:pumpkin_slice"] = {80,14}; 278 285 ["default:blueberries"] = {60, 4}; 279 286 ["farming:coffee_beans"] = {58, 9}; 280 287 ["farming:seed_hemp"] = {55, 8}; 281 288 ["bonemeal:fertiliser"] = {53, 3}; 282 289 ["farming:garlic_clove"] = {50, 7}; 283 290 ["farming:seed_mint"] = {50, 7}; 291 + ["farming:blackberry"] = {48, 6}; 284 292 ["flowers:mushroom_red"] = {45, 2}; 285 293 ["farming:grapes"] = {43, 6}; 286 294 ["farming:seed_barley"] = {40, 6}; 287 295 ["farming:rhubarb"] = {38, 8}; 288 296 ["farming:beans"] = {35, 6}; 297 + ["farming:strawberry"] = {33, 5}; 289 298 ["farming:raspberries"] = {30, 5}; 290 299 ["bonemeal:mulch"] = {32, 3}; 300 + ["farming:vanilla"] = {29, 7}; 301 + ["farming:soy_pod"] = {28, 6}; 291 302 ["farming:corn"] = {27, 2}; 292 303 ["farming:sugar"] = {24, 4}; 293 304 ["farming:salt"] = {24, 3}; 305 + ["farming:parsley"] = {22, 4}; 306 + ["farming:green_pepper"] = {21, 8}; 307 + ["farming:yellow_pepper"] = {21, 8}; 308 + ["farming:red_pepper"] = {21, 8}; 294 309 ["farming:onion"] = {20, 7}; 295 310 ["farming:carrot"] = {20, 7}; 311 + ["farming:cucumber"] = {20, 9}; 312 + ["farming:banana"] = {19, 7}; 296 313 ["default:apple"] = {18, 2}; 297 314 ["farming:wheat"] = {14, 2}; 298 315 ["bonemeal:mulch"] = {7, 7}; 299 316 }; 300 317 }; 301 318 302 319 blood = {