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:
@@ -327,7 +327,7 @@ rank_of(int lev, short monnum, boolean female)
|
||||
|
||||
/* Find the role */
|
||||
for (role = roles; role->name.m; role++)
|
||||
if (monnum == role->malenum || monnum == role->femalenum)
|
||||
if (monnum == role->mnum)
|
||||
break;
|
||||
if (!role->name.m)
|
||||
role = &g.urole;
|
||||
@@ -370,7 +370,7 @@ title_to_mon(const char *str, int *rank_indx, int *title_length)
|
||||
*rank_indx = j;
|
||||
if (title_length)
|
||||
*title_length = strlen(roles[i].rank[j].m);
|
||||
return roles[i].malenum;
|
||||
return roles[i].mnum;
|
||||
}
|
||||
if (roles[i].rank[j].f
|
||||
&& !strncmpi(str, roles[i].rank[j].f,
|
||||
@@ -379,8 +379,7 @@ title_to_mon(const char *str, int *rank_indx, int *title_length)
|
||||
*rank_indx = j;
|
||||
if (title_length)
|
||||
*title_length = strlen(roles[i].rank[j].f);
|
||||
return (roles[i].femalenum != NON_PM) ? roles[i].femalenum
|
||||
: roles[i].malenum;
|
||||
return roles[i].mnum;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user