Differences From
Artifact [8324bad06e]:
- File
mods/starlit/suit.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: 12377)
[annotate]
[blame]
[check-ins using]
427 427 break
428 428 end
429 429 end
430 430 local fn if s.powerKind == 'passive'
431 431 then fn = s.run
432 432 else fn = s.bgProc
433 433 end
434 - function prop.saveConf(cfg) cfg = cfg or conf
434 + function prop.saveConf(cfg) cfg = cfg or prop.file
435 435 prop.fd:write(cfg)
436 436 inv:set_stack('starlit_suit_chips', prop.chipSlot, prop.fd.chip)
437 437 reconfSuit = true
438 438 end
439 + function prop.pullConf()
440 + local stack = inv:get_stack('starlit_suit_chips', suitprog.chipSlot)
441 + prop.fd.chip=stack
442 + prop.file = prop.fd:read()
443 + end
439 444 function prop.giveItem(st)
440 445 u:thrustUpon(st)
441 446 end
442 447
443 448 if enabled and fn(u, prop, suitInterval, runState) then
444 449 runState.pgmsRun[s] = true
445 450 end