Browse Source

Clean up store inferface

pull/7080/head
KPhoenix 2 years ago committed by Anders Jenbo
parent
commit
889d07b355
  1. 10
      Source/stores.cpp

10
Source/stores.cpp

@ -310,18 +310,18 @@ void PrintStoreItem(const Item &item, int l, UiFlags flags, bool cursIndent = fa
else if (item._iClass == ICLASS_ARMOR)
productLine = fmt::format(fmt::runtime(_("Armor: {:d} ")), item._iAC);
if (item._iMaxDur != DUR_INDESTRUCTIBLE && item._iMaxDur != 0)
productLine += fmt::format(fmt::runtime(_("Dur: {:d}/{:d}, ")), item._iDurability, item._iMaxDur);
productLine += fmt::format(fmt::runtime(_("Dur: {:d}/{:d}")), item._iDurability, item._iMaxDur);
else
productLine.append(_("Indestructible, "));
productLine.append(_("Indestructible"));
}
int8_t str = item._iMinStr;
uint8_t mag = item._iMinMag;
int8_t dex = item._iMinDex;
if (str == 0 && mag == 0 && dex == 0) {
productLine.append(_("No required attributes"));
} else {
if (str != 0 || mag != 0 || dex != 0) {
if (!productLine.empty())
productLine.append(_(", "));
productLine.append(_("Required:"));
if (str != 0)
productLine.append(fmt::format(fmt::runtime(_(" {:d} Str")), str));

Loading…
Cancel
Save