sorcery  Diff

Differences From Artifact [43593523a3]:

To Artifact [69d743e332]:


    35     35   		value = fragments_per_ingot;
    36     36   	};
    37     37   	['morelights_vintage:brass_block'] = {
    38     38   		id = 'brass'; data = sorcery.data.metals.brass;
    39     39   		value = fragments_per_ingot * 9;
    40     40   	};
    41     41   }
           42  +local fmt = string.format
    42     43   
    43     44   local tools, armors = sorcery.matreg.tools, sorcery.matreg.armors
    44     45   -- for name, metal in pairs(sorcery.data.metals) do
    45     46   sorcery.register.metals.foreach('sorcery:generate',{},function(name,metal)
    46     47   	local ingot = metal.ingot or 'sorcery:' .. name .. '_ingot'
    47     48   	local block = metal.block or 'sorcery:' .. name .. 'block'
    48     49   	local screw = 'sorcery:screw_' .. name
................................................................................
    94     95   				grindcost = 2, grindvalue = 1;
    95     96   				value = 0.5;
    96     97   			};
    97     98   		};
    98     99   	})
    99    100   	minetest.register_craftitem(disc, {
   100    101   		description = sorcery.lib.str.capitalize(name) .. ' Disc';
   101         -		inventory_image = sorcery.lib.image('sorcery_disc.png'):multiply(sorcery.lib.color(metal.tone)):render();
          102  +		inventory_image = fmt('sorcery_disc_%s.png', name);
   102    103   		groups = { metal = 1; sorcery_disc = 1; sorcery_tech_component = 1; };
   103    104   		_sorcery = {
   104    105   			material = {
   105    106   				id = name, data = metal;
   106    107   				powder = powder;
   107    108   				grindvalue = (3*4) / 2;
   108    109   				value = 4 * (2/3);