don't show charges if max is 1

This commit is contained in:
2025-05-12 10:47:23 -05:00
parent 1589c59300
commit 010fc018d0

View File

@@ -343,7 +343,7 @@ void put_item_screen(eItemWinMode screen_num) {
sout << item.name << " ";
// Charges:
bool show_charges = item.max_charges > 0;
bool show_charges = item.max_charges > 1;
// Show charges for unidentified ammunition and lockpicks, but not other unidentified items
if(item.missile < 0 && item.ability != eItemAbil::LOCKPICKS)
show_charges &= item.ident;