sorcery  Diff

Differences From Artifact [25dadd17e3]:

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

To Artifact [56d754e26c]:

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

   108    108   			end;
   109    109   		};
   110    110   	};
   111    111   	get = function(name,class)
   112    112   		local c = sorcery.itemclass.classes[class]
   113    113   		local o
   114    114   		if not c then return false end
          115  +		if type(name) ~= 'string' then name = name:get_name() end
   115    116   
   116    117   		if c.predicate then 
   117    118   			o = c.predicate(name)
   118    119   			if o then return o end
   119    120   		end
   120    121   
   121    122   		if c.compat then