sorcery  Diff

Differences From Artifact [d98f045dad]:

  • File registration.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: 3785) [annotate] [blame] [check-ins using]

To Artifact [8bf4e2559c]:


    64     64   		end
    65     65   		db[key] = value
    66     66   		for id in pairs(dat.iters) do 
    67     67   			reg.invoke(id,key)
    68     68   		end
    69     69   	end
    70     70   	reg.meld = function(tbl)
    71         -		for k,v in pairs(tbl) do reg.add(k,v) end
           71  +		for k,v in pairs(tbl) do reg.link(k,v) end
    72     72   	end
    73     73   	sorcery.register[name] = reg
    74     74   
    75     75   	local nextfn = sorcery.registry.defercheck
    76     76   	sorcery.registry.defercheck = function()
    77     77   		if #dat.defer ~= 0 then
    78     78   			print('WARNING: ' .. tostring(#dat.defer) .. ' deferred iterator(s) have not yet been discharged for registry “' .. name .. '”')