Fixed up building enemies and items using componentsin the JSON.
This commit is contained in:
parent
9ce4fbd552
commit
222b39c403
13 changed files with 76 additions and 60 deletions
3
gui.cpp
3
gui.cpp
|
@ -72,8 +72,7 @@ void InventoryUI::update_menu_list(Inventory& inventory) {
|
|||
$menu_list.clear();
|
||||
for(size_t i = 0; i < inventory.count(); i++) {
|
||||
auto& item = inventory.get(i);
|
||||
$menu_list.push_back(fmt::format("{} {} ({})",
|
||||
string(item.data["display"]),
|
||||
$menu_list.push_back(fmt::format("{} ({})",
|
||||
string(item.data["name"]),
|
||||
item.count));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue