Remove gendered mons indices from roles, races
There are no longer distinct gendered versions of monsters, so femalenum is unused (i.e. set to NON_PM) for all roles and races. Take a pass at removing all uses of/references to femalenum, and rename 'malenum' to 'mnum' since it no longer has any particular association with gender or sex.
This commit is contained in:
11
src/end.c
11
src/end.c
@@ -1404,15 +1404,10 @@ really_done(int how)
|
||||
this grave in the current level's features for #overview */
|
||||
if (bones_ok && u.ugrave_arise == NON_PM
|
||||
&& !(g.mvitals[u.umonnum].mvflags & G_NOCORPSE)) {
|
||||
int mnum = u.umonnum;
|
||||
/* Base corpse on race when not poly'd since original u.umonnum
|
||||
is based on role, and all role monsters are human. */
|
||||
int mnum = !Upolyd ? g.urace.mnum : u.umonnum;
|
||||
|
||||
if (!Upolyd) {
|
||||
/* Base corpse on race when not poly'd since original u.umonnum
|
||||
is based on role, and all role monsters are human. */
|
||||
mnum = (flags.female && g.urace.femalenum != NON_PM)
|
||||
? g.urace.femalenum
|
||||
: g.urace.malenum;
|
||||
}
|
||||
corpse = mk_named_object(CORPSE, &mons[mnum], u.ux, u.uy, g.plname);
|
||||
Sprintf(pbuf, "%s, ", g.plname);
|
||||
formatkiller(eos(pbuf), sizeof pbuf - strlen(pbuf), how, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user