worn gear after polymorph alignment change [1 of 2] (trunk only)

Make polymorphing or changing alignment perform a touch check (as is
done when catching lycanthropy) on wielded weapon(s) to see whether the
hero can still use them in his new form.  Part [2 of 2] will update
retouch_equipment() to check all items in use rather than just weapon(s).
(A comment or two in part 1 already refers to expected behavior of part 2.)
This commit is contained in:
nethack.rankin
2007-03-20 03:58:27 +00:00
parent b410a0e514
commit c86f9ff008
9 changed files with 86 additions and 34 deletions

View File

@@ -85,6 +85,7 @@ E long FDECL(arti_cost, (struct obj *));
E struct obj *FDECL(what_gives, (long *));
E void FDECL(Sting_effects, (int));
E int FDECL(retouch_object, (struct obj **,BOOLEAN_P));
E void FDECL(retouch_equipment, (int));
/* ### attrib.c ### */
@@ -108,6 +109,7 @@ E schar NDECL(acurrstr);
E void FDECL(adjalign, (int));
E int FDECL(is_innate, (int));
E char *FDECL(from_what, (int));
E void FDECL(uchangealign, (int,int));
/* ### ball.c ### */