inappropriate very difficult reading message
add missing set of parentheses around lense test in read_ability calculation
This commit is contained in:
+3
-2
@@ -382,14 +382,15 @@ register struct obj *spellbook;
|
|||||||
|
|
||||||
/* Books are often wiser than their readers (Rus.) */
|
/* Books are often wiser than their readers (Rus.) */
|
||||||
spellbook->in_use = TRUE;
|
spellbook->in_use = TRUE;
|
||||||
if (!spellbook->blessed && spellbook->otyp != SPE_BOOK_OF_THE_DEAD) {
|
if (!spellbook->blessed &&
|
||||||
|
spellbook->otyp != SPE_BOOK_OF_THE_DEAD) {
|
||||||
if (spellbook->cursed) {
|
if (spellbook->cursed) {
|
||||||
too_hard = TRUE;
|
too_hard = TRUE;
|
||||||
} else {
|
} else {
|
||||||
/* uncursed - chance to fail */
|
/* uncursed - chance to fail */
|
||||||
int read_ability = ACURR(A_INT) + 4 + u.ulevel/2
|
int read_ability = ACURR(A_INT) + 4 + u.ulevel/2
|
||||||
- 2*objects[booktype].oc_level
|
- 2*objects[booktype].oc_level
|
||||||
+ (ublindf && ublindf->otyp == LENSES) ? 2 : 0;
|
+ ((ublindf && ublindf->otyp == LENSES) ? 2 : 0);
|
||||||
/* only wizards know if a spell is too difficult */
|
/* only wizards know if a spell is too difficult */
|
||||||
if (Role_if(PM_WIZARD) && read_ability < 20) {
|
if (Role_if(PM_WIZARD) && read_ability < 20) {
|
||||||
char qbuf[QBUFSZ];
|
char qbuf[QBUFSZ];
|
||||||
|
|||||||
Reference in New Issue
Block a user