Blessed scroll of destroy armor asks which armor to destroy
via xNetHack with some slight modifications.
This commit is contained in:
15
src/read.c
15
src/read.c
@@ -1279,6 +1279,21 @@ seffect_destroy_armor(struct obj **sobjp)
|
||||
return;
|
||||
}
|
||||
if (!scursed || !otmp || !otmp->cursed) {
|
||||
boolean gets_choice = (otmp && sobj && sobj->blessed
|
||||
&& count_worn_armor() > 1);
|
||||
|
||||
if (gets_choice) {
|
||||
struct obj *atmp;
|
||||
|
||||
if (!objects[sobj->otyp].oc_name_known)
|
||||
pline("This is %s!", an(actualoname(sobj)));
|
||||
gk.known = TRUE;
|
||||
atmp = getobj("destroy", any_worn_armor_ok, GETOBJ_PROMPT);
|
||||
/* check the return value, if user picked non-valid obj */
|
||||
if (any_worn_armor_ok(atmp) == GETOBJ_SUGGEST)
|
||||
otmp = atmp;
|
||||
}
|
||||
|
||||
if (!destroy_arm(otmp)) {
|
||||
strange_feeling(sobj, "Your skin itches.");
|
||||
*sobjp = 0; /* useup() in strange_feeling() */
|
||||
|
||||
Reference in New Issue
Block a user