Differences From
Artifact [a2443e45a4]:
- File
mods/starlit/fab.lua
— part of check-in
[953151446f]
at
2024-05-05 19:31:39
on branch trunk
— better alarm LEDs, continue work on matter compiler UI, hack around gravitational horrorscape (i.e. stop shitting all over the server's `minetest.conf`), better stat interface, tweak some compute stats, be more generous with starting battery loadout, mercilessly squash numberless bugs beneath my jackbooted heel
(user:
lexi,
size: 11288)
[annotate]
[blame]
[check-ins using]
102 102 end;
103 103 image = function(x, n)
104 104 return string.format('starlit-element-%s.png', x)
105 105 end;
106 106 inventory = fRawMat 'element';
107 107 op = fQuant;
108 108 };
109 - metal ={
109 + metal = {
110 110 name = {"metal", "metals"};
111 111 string = function(x, n)
112 112 local met = starlit.world.material.metal.db[x]
113 113 return lib.math.siUI('g', n) .. ' ' .. met.name
114 114 end;
115 115 image = function(x, n)
116 116 local met = starlit.world.material.metal.db[x]
................................................................................
333 333 if not alreadyGot(ii,oi) then
334 334 local sv = {
335 335 inv=ii, slot=oi;
336 336 consume=deduct, remain=st;
337 337 satisfy=fab{[cat]={[substance]=avail}}
338 338 }
339 339 table.insert(stacks, sv)
340 + table.insert(consumed, sv)
340 341 end
341 342 if amtFound >= amt then goto suffice end
342 343 end
343 344 end
344 345 end
345 346 end
346 347