Starbound
Repeater (Wiring)
Not Mr Flıbble  [developer] 5 ago. 2016 às 11:17
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…
< >
A mostrar 1-1 de 1 comentários
bk3000 15 ago. 2016 às 10:17 
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
Última alteração por bk3000; 15 ago. 2016 às 10:18
< >
A mostrar 1-1 de 1 comentários
Por página: 1530 50