sorcery  Diff

Differences From Artifact [533039aa40]:

To Artifact [8e18232927]:


     1      1   --- gemstones
     2      2   local shards_per_gem = 9
     3      3   
     4      4   sorcery.register_gem = function(name,gem)
     5      5   	local itemname = gem.foreign or 'sorcery:gem_' .. name
     6      6   	local shardname = gem.foreign_shard or 'sorcery:gem_' .. name .. '_shard'
     7      7   	local amuletname = gem.foreign_amulet or 'sorcery:gem_' .. name .. '_amulet'
            8  +
            9  +	sorcery.data.gems[name].parts = {
           10  +		item = itemname;
           11  +		shard = shardname;
           12  +		amulet = amuletname;
           13  +	}
     8     14   
     9     15   	local tools, armors = sorcery.matreg.tools, sorcery.matreg.armors
    10     16   	if gem.tools then for t,c in pairs(tools) do
    11     17   		sorcery.matreg.lookup[(gem.items and gem.items[t]) or ('sorcery:' .. t .. '_' .. name)] = {
    12     18   			gem = true;
    13     19   			id = name; data = gem;
    14     20   			value = c.cost*shards_per_gem;