use colors for extra information with $what

This commit is contained in:
Martin Michelsen
2022-05-01 00:19:38 -07:00
parent b359bc0cce
commit 3572c53dd4
4 changed files with 323 additions and 312 deletions
+1 -1
View File
@@ -667,7 +667,7 @@ void Player::print_inventory(FILE* stream) const {
fprintf(stream, "[PlayerInventory] %hhu items\n", this->inventory.num_items);
for (size_t x = 0; x < this->inventory.num_items; x++) {
const auto& item = this->inventory.items[x];
string name = name_for_item(item.data);
auto name = name_for_item(item.data, false);
fprintf(stream, "[PlayerInventory] %zu (%08" PRIX32 "): %08" PRIX32 " (%s)\n",
x, item.data.item_id.load(), item.data.primary_identifier(), name.c_str());
}