Fixed up building enemies and items using componentsin the JSON.

This commit is contained in:
Zed A. Shaw 2025-01-09 14:01:40 -05:00
parent 9ce4fbd552
commit 222b39c403
13 changed files with 76 additions and 60 deletions

View file

@ -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));