silver vs lycanthropy (trunk only)

Monster werecritters are vulnerable to silver when in human form as
well as when in beast form, but hero inflicted with lycanthropy was only
vulnerable while in beast form.  Add pseudo-property Hate_silver to handle
that correctly.  Also, add silver vulnerability to enlightenment feedback.
Lastly, hero vulnerable to silver had Con abused if hit by silver missile
but not when hit hand-to-hand; add an exercise() call to the latter.
This commit is contained in:
nethack.rankin
2007-03-18 03:26:43 +00:00
parent 7a70ec2a02
commit 25527a6315
6 changed files with 18 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)youprop.h 3.5 2006/09/01 */
/* SCCS Id: @(#)youprop.h 3.5 2007/03/16 */
/* Copyright (c) 1989 Mike Threepoint */
/* NetHack may be freely redistributed. See license for details. */
@@ -359,8 +359,14 @@
#define Lifesaved u.uprops[LIFESAVED].extrinsic
/*
* Some pseudo-properties.
*/
/* unconscious() includes u.usleep but not is_fainted(); the multi test is
redundant but allows the function calls to be skipped most of the time */
#define Unaware (multi < 0 && (unconscious() || is_fainted()))
#define Hate_silver (u.ulycn >= LOW_PM || hates_silver(youmonst.data))
#endif /* YOUPROP_H */