starlit  Diff

Differences From Artifact [f9e736d40a]:

To Artifact [963193f502]:


   400    400   	elseif act == 'move' then
   401    401   		local item = inv:get_stack(p.to_list, p.to_index)
   402    402   		slotChange(p.from_list, 'take', item)
   403    403   		slotChange(p.to_list, 'put', item)
   404    404   	end
   405    405   end)
   406    406   
   407         -local suitInterval = 2.0
          407  +local suitInterval = 1.0
   408    408   starlit.startJob('starlit:suit-software', suitInterval, function(delta)
   409    409   	local runState = {
   410    410   		pgmsRun = {};
   411    411   		flags = {};
   412    412   	}
   413    413   	for id, u in pairs(starlit.activeUsers) do
   414    414   		if not u:naked() then
................................................................................
   437    437   						reconfSuit = true
   438    438   					end
   439    439   					function prop.pullConf()
   440    440   						local stack = inv:get_stack('starlit_suit_chips', suitprog.chipSlot)
   441    441   						prop.fd.chip=stack
   442    442   						prop.file = prop.fd:read()
   443    443   					end
          444  +					function prop.availableChips()
          445  +						return inv:get_list('starlit_suit_chips')
          446  +					end
   444    447   					function prop.giveItem(st)
   445    448   						u:thrustUpon(st)
          449  +					end
          450  +					function prop.drawCurrent(...)
          451  +						return u:suitDrawCurrent(...)
   446    452   					end
   447    453   					
   448    454   					if enabled and fn(u, prop, suitInterval, runState) then
   449    455   						runState.pgmsRun[s] = true
   450    456   					end
   451    457   				end
   452    458   			end