Merge pull request #3918 from myk002/myk_buildingplan_available

[buildingplan] display how many items are available on the planner panel
develop
Myk 2023-10-26 19:16:42 -07:00 committed by GitHub
commit cac4b8da75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

@ -58,6 +58,7 @@ Template for new versions:
## Fixes
## Misc Improvements
- `buildingplan`: display how many items are available on the planner panel
## Documentation

@ -294,7 +294,7 @@ function ItemLine:get_item_line_text()
uibs.building_type, uibs.building_subtype, uibs.custom_type, idx - 1)
if self.available >= quantity then
self.note_pen = COLOR_GREEN
self.note = ' Available now'
self.note = (' %d available now'):format(self.available)
elseif self.available >= 0 then
self.note_pen = COLOR_BROWN
self.note = (' Will link next (need to make %d)'):format(quantity - self.available)