Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getEUStored(cell)
- local count = 0
- for i = 1, #cell do
- count = count + cell[i].getEUStored()
- end
- return(count)
- end
- function getEUCapacity(cell)
- local count = 0
- for i = 1, #cell do
- count = count + cell[i].getEUCapacity()
- end
- return(count)
- end
- function getEUOutputPerTick(cell)
- local count = 0
- for i = 1, #cell do
- count = count + cell[i].getEUOutputPerTick()
- end
- return(count)
- end
- function comma(amount)
- local formatted = amount
- while true do
- formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
- if (k==0) then
- break
- end
- end
- return formatted
- end
Add Comment
Please, Sign In to add comment