intrinsics revamp (trunk only)
Simplify many of the intrinsics macros from
#define xxx_resistance (Hxxx || Exxx || resists_xxx(&youmonst))
down to
#define xxx_resistance (Hxxx || Exxx)
by setting or clearing an extra bit in Hxxx during polymorph so that the
resists_xxx() check becomes implicit.
Unfornately there were lots of places in the code that treat Hxxx
as a timeout number--primarily for Stunned, Confused, and Hallucination;
Stunned happens to be one of the revised macros--rather than as a bit
mask, so this patch needed a lot more changes than originally antipated.
This commit is contained in:
@@ -132,7 +132,8 @@ struct prop {
|
||||
# define FROMOUTSIDE 0x04000000L /* By corpses, prayer, thrones, etc. */
|
||||
# define INTRINSIC (FROMOUTSIDE|FROMRACE|FROMEXPER)
|
||||
/* Control flags */
|
||||
# define I_SPECIAL 0x10000000L /* Property is controllable */
|
||||
# define FROMFORM 0x10000000L /* Polyd; conferred by monster form */
|
||||
# define I_SPECIAL 0x20000000L /* Property is controllable */
|
||||
};
|
||||
|
||||
/*** Definitions for backwards compatibility ***/
|
||||
|
||||
Reference in New Issue
Block a user