bures-monitor fix
This commit is contained in:
parent
23082f1cbb
commit
e327e902c2
@ -10,10 +10,10 @@ local buildings = colony.getBuildings()
|
|||||||
local buRes = {}
|
local buRes = {}
|
||||||
|
|
||||||
local function clearMonitor()
|
local function clearMonitor()
|
||||||
term.setCursorBlink(false)
|
monitor.setCursorBlink(false)
|
||||||
term.setTextScale(1.0)
|
monitor.setTextScale(1.0)
|
||||||
term.clear()
|
monitor.clear()
|
||||||
term.setCursorPos(1, 1)
|
monitor.setCursorPos(1, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function tFilter(t, func)
|
local function tFilter(t, func)
|
||||||
@ -40,10 +40,12 @@ local function printBuRes()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function bures()
|
local function bures()
|
||||||
|
local count = 0
|
||||||
for key, value in pairs(buildings) do
|
for key, value in pairs(buildings) do
|
||||||
|
count = count + 1
|
||||||
local name = value.name
|
local name = value.name
|
||||||
if name == "" then
|
if name == "" then
|
||||||
name = "Builder " .. tostring(value.level)
|
name = "Builder " .. tostring(count)
|
||||||
end
|
end
|
||||||
buRes[name] = colony.getBuilderResources(value.location)
|
buRes[name] = colony.getBuilderResources(value.location)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user