Skip to content

Commit

Permalink
stop displaying not identified on white items
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel committed Sep 23, 2024
1 parent dc9f94d commit dedf3b3
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4108,20 +4108,22 @@ void PrintItemDetails(const Item &item)
if (item._iMiscId == IMISC_STAFF && item._iMaxCharges != 0) {
AddInfoBoxString(fmt::format(fmt::runtime(_("Charges: {:d}/{:d}")), item._iCharges, item._iMaxCharges));
}
if (item._iIdentified) {
if (item._iPrePower != -1) {
AddInfoBoxString(PrintItemPower(item._iPrePower, item));
}
if (item._iSufPower != -1) {
AddInfoBoxString(PrintItemPower(item._iSufPower, item));
}
if (item._iMagical == ITEM_QUALITY_UNIQUE) {
AddInfoBoxString(_("unique item"));
ShowUniqueItemInfoBox = true;
curruitem = item;
if (item._iMagical != ITEM_QUALITY_NORMAL) {
if (item._iIdentified) {
if (item._iPrePower != -1) {
AddInfoBoxString(PrintItemPower(item._iPrePower, item));
}
if (item._iSufPower != -1) {
AddInfoBoxString(PrintItemPower(item._iSufPower, item));
}
if (item._iMagical == ITEM_QUALITY_UNIQUE) {
AddInfoBoxString(_("unique item"));
ShowUniqueItemInfoBox = true;
curruitem = item;
}
} else {
AddInfoBoxString(_("Not Identified"));
}
} else {
AddInfoBoxString(_("Not Identified"));
}

PrintItemInfo(item);
Expand Down

0 comments on commit dedf3b3

Please sign in to comment.