fix github issue #531 - genderless corpses
Dead monsters that had traits saved with the corpse would revive as the same gender, but ordinary corpses revived with random gender so could be different from before they got killed. Since corpses of monsters lacked gender, those for monsters with gender-specific names were described by the neuter name. This is a fairly big change for a fairly minor problem and needs a lot more testing. Fixes #531
This commit is contained in:
@@ -285,10 +285,19 @@ typedef struct sortloot_item Loot;
|
||||
* to make an extra call to goodpos()] */
|
||||
#define GP_ALLOW_U 0x080000L /* don't reject hero's location */
|
||||
|
||||
/* flags for make_corpse() and mkcorpstat() */
|
||||
#define CORPSTAT_NONE 0x00
|
||||
#define CORPSTAT_INIT 0x01 /* pass init flag to mkcorpstat */
|
||||
#define CORPSTAT_BURIED 0x02 /* bury the corpse or statue */
|
||||
/* flags for make_corpse() and mkcorpstat(); 0..7 are recorded in obj->spe */
|
||||
#define CORPSTAT_NONE 0x00
|
||||
#define CORPSTAT_GENDER 0x03 /* 0x01 | 0x02 */
|
||||
#define CORPSTAT_HISTORIC 0x04 /* historic statue; not used for corpse */
|
||||
#define CORPSTAT_SPE_VAL 0x07 /* 0x03 | 0x04 */
|
||||
#define CORPSTAT_INIT 0x08 /* pass init flag to mkcorpstat */
|
||||
#define CORPSTAT_BURIED 0x10 /* bury the corpse or statue */
|
||||
/* note: gender flags have different values from those used for monsters
|
||||
so that 0 can be unspecified/random instead of male */
|
||||
#define CORPSTAT_RANDOM 0
|
||||
#define CORPSTAT_FEMALE 1
|
||||
#define CORPSTAT_MALE 2
|
||||
#define CORPSTAT_NEUTER 3
|
||||
|
||||
/* flags for decide_to_shift() */
|
||||
#define SHIFT_SEENMSG 0x01 /* put out a message if in sight */
|
||||
|
||||
Reference in New Issue
Block a user