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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user