polywarn (trunk only)

This patch increments editlevel making existing save and bones files useless.

Add polywarn() code to grant the ability to detect certain monster
types while polymorphed into other specific monster types.

If you polymorph into a vampire or vampire lord, you are able to
sense humans.

And just for fun, if you polymorph into a purple worm, you are able to
sense shriekers :-)
This commit is contained in:
nethack.allison
2004-06-03 04:20:13 +00:00
parent f327a370fd
commit 6644c4086f
8 changed files with 79 additions and 9 deletions

View File

@@ -101,8 +101,13 @@ NEARDATA extern coord bhitpos; /* place where throw or zap hits or stops */
#define FLASHED_LIGHT 3
#define INVIS_BEAM 4
#define MATCH_WARN_OF_MON(mon) (Warn_of_mon && context.warntype && \
(context.warntype & (mon)->data->mflags2))
#define MATCH_WARN_OF_MON(mon) (Warn_of_mon && \
((context.warntype.obj && \
(context.warntype.obj & (mon)->data->mflags2)) || \
(context.warntype.polyd && \
(context.warntype.polyd & (mon)->data->mflags2)) || \
(context.warntype.species && \
(context.warntype.species == (mon)->data))))
#include "trap.h"
#include "flag.h"