sorcery  Diff

Differences From Artifact [b5f23ba87a]:

  • File recipes.lua — part of check-in [72eebac4bc] at 2020-09-26 18:49:51 on branch trunk — add writing stand for editing codexes; add scissors, ink, erasure fluid, pens; touch up codex UI; add many recipe notes; add craft divination type for crafttools; defuckulate fucktarded crafttool impl; enhance table library with missing features like lua's table.unpack; many bug fixes and enhancements; blood for the blood god (user: lexi, size: 20907) [annotate] [blame] [check-ins using]

To Artifact [41529558e5]:

  • File recipes.lua — part of check-in [3f6a913e4e] at 2020-09-29 12:40:28 on branch trunk — * remove former hacky registration system, replace with consistent and flexible API; rewrite metal/gem generation to take advantage of this new API; tweaks to init system to enable world-local tweaks to lore and sorcery behavior * initial documentation commit * initial steps towards calendar - add default date format, astrolabe; prepare infra for division/melding/transmutation spells, various tweaks and fixes (user: lexi, size: 20879) [annotate] [blame] [check-ins using]

   648    648   		{'group:wood','default:stick','group:wood'};
   649    649   	};
   650    650   	replacements = {
   651    651   		{'screwdriver:screwdriver','screwdriver:screwdriver'};
   652    652   	};
   653    653   };
   654    654   
   655         -sorcery.data.register.infusion_leftover('sorcery:ink','vessels:glass_bottle')
   656         -sorcery.data.register.infusion_leftover('sorcery:erasure_fluid','vessels:glass_bottle')
          655  +sorcery.register.residue.link('sorcery:ink','vessels:glass_bottle')
          656  +sorcery.register.residue.link('sorcery:erasure_fluid','vessels:glass_bottle')
   657    657   
   658    658   ---- altar
   659    659   minetest.register_craftitem('sorcery:candle', {
   660    660   	-- TODO make candle node
   661    661   	inventory_image = 'sorcery_candle.png';
   662    662   	description = 'Votive Candle';
   663    663   	groups = {
................................................................................
   708    708   		recipe = sorcery.lib.tbl.append(recipe, substance.core)
   709    709   	elseif container then
   710    710   		recipe[#recipe + 1] = container
   711    711   	end
   712    712   	if substance.mix and #substance.mix > 0 then
   713    713   		recipe = sorcery.lib.tbl.append(recipe, substance.mix)
   714    714   		for _,r in pairs(substance.mix) do
   715         -			if sorcery.data.infusion_leftovers[r] then
          715  +			if sorcery.register.residue.db[r] then
   716    716   				replace[#replace + 1] = {
   717         -					r, sorcery.data.infusion_leftovers[r]
          717  +					r, sorcery.register.residue.db[r]
   718    718   				}
   719    719   			end
   720    720   		end
   721    721   	end
   722    722   
   723    723   	minetest.register_craft {
   724    724   		type = 'shapeless';