sorcery  Diff

Differences From Artifact [1310436767]:

To Artifact [f27b9cba36]:


            1  +-- the math basically needs to be rewritten from scratch by someone who isn't
            2  +-- dyscalculic but 
     1      3   sorcery.lathe = {
     2      4   	techs = {
     3      5   		cut = {dmg = true};
     4      6   		intaglio = {consume = true};
     5      7   	};
     6      8   	tools = {
     7      9   		sword = 'cut', knife = 'cut', blade = 'cut';
................................................................................
    37     39   	local rec = R[wkpc:get_name()][tech][idx]
    38     40   	local outn = ItemStack(rec.output):get_count()
    39     41   	local ntimes = math.floor(howmany / (rec.mass or 1))
    40     42   	return {
    41     43   		tool = tool, wkpc = wkpc;
    42     44   		cost = rec.cost * ntimes;
    43     45   		ntimes = ntimes;
    44         -		tqty = math.floor(howmany / outn), outn = outn;
           46  +		tqty = math.floor(howmany / outn) * (rec.mass or 1), outn = outn;
    45     47   		gqty = ntimes * outn;
    46     48   		tech = tech;
    47     49   		rec = rec;
    48     50   		inv = inv;
    49     51   	}
    50     52   end
    51     53