… | |
… | |
1352 | else if (inv |
1352 | else if (inv |
1353 | && inv->msg |
1353 | && inv->msg |
1354 | && inv->type == SPELL |
1354 | && inv->type == SPELL |
1355 | && flag [FLAG_IDENTIFIED] |
1355 | && flag [FLAG_IDENTIFIED] |
1356 | && (type == SPELLBOOK || type == ROD || type == WAND |
1356 | && (type == SPELLBOOK || type == ROD || type == WAND |
1357 | || type == ROD || type == POTION || type == SCROLL)) |
1357 | || type == POTION || type == SCROLL)) |
1358 | // for spellbooks and other stuff that contains spells, print the spell message, |
1358 | // for spellbooks and other stuff that contains spells, print the spell message, |
1359 | // unless the object has a custom message handled above. |
1359 | // unless the object has a custom message handled above. |
1360 | buf << '\r' << inv->msg << '\n'; |
1360 | buf << '\r' << inv->msg << '\n'; |
1361 | |
1361 | |
1362 | // try to display the duration for some potions and scrolls |
1362 | // try to display the duration for some potions and scrolls |