Starbound
Repeater (Wiring)
Considering splitting the repeater into two devices (logic, power)
This would mean that the basic repeater would be back to being as simple as it originally was, and would reduce load (less code to run) where power usage isn't needed.

I may split it into two mods at the same time…
< >
Показані коментарі 11 із 1
I haven't looked at your code but consider this option.
Don't do this
function someFunction()
local stuff = otherstuff[1]
return stuff
end
just declare it and later assign it like this
someFunction = function()
local stuff = otherstuff[1]
return stuff
end

Point being you define the function depending on what it needs to do. If it is getting complex and maybe too big, you might consider making an external package containing tables of code. Then you reference like
if someCondition then
someFunction = codeblocks.powerTransmit[1]
end
Автор останньої редакції: bk3000; 15 серп. 2016 о 10:18
< >
Показані коментарі 11 із 1
На сторінку: 1530 50