sorcery  Diff

Differences From Artifact [1310436767]:

To Artifact [f27b9cba36]:




1
2
3
4
5
6
7
..
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51


sorcery.lathe = {
	techs = {
		cut = {dmg = true};
		intaglio = {consume = true};
	};
	tools = {
		sword = 'cut', knife = 'cut', blade = 'cut';
................................................................................
	local rec = R[wkpc:get_name()][tech][idx]
	local outn = ItemStack(rec.output):get_count()
	local ntimes = math.floor(howmany / (rec.mass or 1))
	return {
		tool = tool, wkpc = wkpc;
		cost = rec.cost * ntimes;
		ntimes = ntimes;
		tqty = math.floor(howmany / outn), outn = outn;
		gqty = ntimes * outn;
		tech = tech;
		rec = rec;
		inv = inv;
	}
end

>
>







 







|







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