milo crafting updates

This commit is contained in:
kepler155c@gmail.com
2019-06-27 16:29:37 -04:00
parent bbd36ec96a
commit 03643bcd34
6 changed files with 81 additions and 27 deletions

View File

@@ -156,8 +156,12 @@ local function createPage(node)
end
if row.requested then
row.remaining = math.max(0, row.requested - row.crafted)
--_syslog('%d %d %d %d', row.remaining, row.requested, row.total, row.crafted)
row.status = (row.status or '') ..
string.format(' %d of %d', row.crafted + row.total, row.total + row.requested)
else
row.displayName = ' ' .. row.displayName
row.status = (row.status or '') .. string.format(' %d of %d', row.count, row.total)
end
--row.progress = string.format('%d/%d', row.crafted, row.count)
return row