milo shop example

This commit is contained in:
kepler155c@gmail.com
2019-01-19 22:04:02 -05:00
parent 2e898a32b4
commit 15943bc191
3 changed files with 96 additions and 4 deletions

View File

@@ -141,6 +141,7 @@ local function run(member, point)
movementStrategy = 'goto',
point = point,
})
turtle.select(1)
repeat
local pt = getNextPoint(turtle)
@@ -158,6 +159,7 @@ local function run(member, point)
end
end
end
turtle.select(1)
else
turtle.digAt(pt, pt.name)
end
@@ -175,6 +177,7 @@ local function run(member, point)
dropOff()
end
end
turtle.select(1)
end
else
member.status = 'waiting'
@@ -229,9 +232,9 @@ local turtlesTab = UI.Window {
y = 1,
values = pool,
columns = {
{ heading = 'ID', key = 'id', width = 4, },
{ heading = ' Fuel', key = 'fuel', width = 5, justify = 'right' },
{ heading = ' Dist', key = 'distance', width = 5, justify = 'right' },
{ heading = 'ID', key = 'id', width = 4, },
{ heading = ' Fuel', key = 'fuel', width = 5, justify = 'right' },
{ heading = ' Dist', key = 'distance', width = 5, justify = 'right' },
{ heading = 'Status', key = 'status' },
},
sortColumn = 'label',