starlit  Diff

Differences From Artifact [f9e736d40a]:

To Artifact [963193f502]:


400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
...
437
438
439
440
441
442
443



444
445



446
447
448
449
450
451
452
	elseif act == 'move' then
		local item = inv:get_stack(p.to_list, p.to_index)
		slotChange(p.from_list, 'take', item)
		slotChange(p.to_list, 'put', item)
	end
end)

local suitInterval = 2.0
starlit.startJob('starlit:suit-software', suitInterval, function(delta)
	local runState = {
		pgmsRun = {};
		flags = {};
	}
	for id, u in pairs(starlit.activeUsers) do
		if not u:naked() then
................................................................................
						reconfSuit = true
					end
					function prop.pullConf()
						local stack = inv:get_stack('starlit_suit_chips', suitprog.chipSlot)
						prop.fd.chip=stack
						prop.file = prop.fd:read()
					end



					function prop.giveItem(st)
						u:thrustUpon(st)



					end
					
					if enabled and fn(u, prop, suitInterval, runState) then
						runState.pgmsRun[s] = true
					end
				end
			end







|







 







>
>
>


>
>
>







400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
...
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
	elseif act == 'move' then
		local item = inv:get_stack(p.to_list, p.to_index)
		slotChange(p.from_list, 'take', item)
		slotChange(p.to_list, 'put', item)
	end
end)

local suitInterval = 1.0
starlit.startJob('starlit:suit-software', suitInterval, function(delta)
	local runState = {
		pgmsRun = {};
		flags = {};
	}
	for id, u in pairs(starlit.activeUsers) do
		if not u:naked() then
................................................................................
						reconfSuit = true
					end
					function prop.pullConf()
						local stack = inv:get_stack('starlit_suit_chips', suitprog.chipSlot)
						prop.fd.chip=stack
						prop.file = prop.fd:read()
					end
					function prop.availableChips()
						return inv:get_list('starlit_suit_chips')
					end
					function prop.giveItem(st)
						u:thrustUpon(st)
					end
					function prop.drawCurrent(...)
						return u:suitDrawCurrent(...)
					end
					
					if enabled and fn(u, prop, suitInterval, runState) then
						runState.pgmsRun[s] = true
					end
				end
			end