cursed destroy armor
Fix the bug From a bug report. Subsequently removing the item caused those attributes to be returned to an incorrect value which was higher than the character started out with.
This commit is contained in:
@@ -23,6 +23,7 @@ if your blindfold glows and you're not otherwise blinded, you can see it
|
|||||||
added strsubst() to hacklib
|
added strsubst() to hacklib
|
||||||
be consistent with use of "removing" rather than "lifting" for encumber
|
be consistent with use of "removing" rather than "lifting" for encumber
|
||||||
messages associated with taking things out of a bag of holding
|
messages associated with taking things out of a bag of holding
|
||||||
|
cursed scroll of destroy armor damaging cursed armor didn't adjust attributes
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+5
-6
@@ -1,13 +1,9 @@
|
|||||||
/* SCCS Id: @(#)read.c 3.4 2003/11/29 */
|
/* SCCS Id: @(#)read.c 3.4 2004/05/07 */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#include "hack.h"
|
#include "hack.h"
|
||||||
|
|
||||||
/* KMH -- Copied from pray.c; this really belongs in a header file */
|
|
||||||
#define DEVOUT 14
|
|
||||||
#define STRIDENT 4
|
|
||||||
|
|
||||||
#define Your_Own_Role(mndx) \
|
#define Your_Own_Role(mndx) \
|
||||||
((mndx) == urole.malenum || \
|
((mndx) == urole.malenum || \
|
||||||
(urole.femalenum != NON_PM && (mndx) == urole.femalenum))
|
(urole.femalenum != NON_PM && (mndx) == urole.femalenum))
|
||||||
@@ -799,7 +795,10 @@ register struct obj *sobj;
|
|||||||
known = TRUE;
|
known = TRUE;
|
||||||
} else { /* armor and scroll both cursed */
|
} else { /* armor and scroll both cursed */
|
||||||
pline("%s.", Yobjnam2(otmp, "vibrate"));
|
pline("%s.", Yobjnam2(otmp, "vibrate"));
|
||||||
if (otmp->spe >= -6) otmp->spe--;
|
if (otmp->spe >= -6) {
|
||||||
|
otmp->spe += -1;
|
||||||
|
adj_abon(otmp, -1);
|
||||||
|
}
|
||||||
make_stunned(HStun + rn1(10, 10), TRUE);
|
make_stunned(HStun + rn1(10, 10), TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user