pull request #807 - 'wizmgender'
Pull request from entrez: changes in symbol handling rendered the 'wizmgender' debugging option non-functional. Get it working again, and when it's enabled have doname() list the corpse or statue gender formatting those types of items for inventory or other display. Closes #807
This commit is contained in:
@@ -1339,6 +1339,17 @@ doname_base(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((obj->otyp == STATUE || obj->otyp == CORPSE || obj->otyp == FIGURINE)
|
||||||
|
&& iflags.wizmgender) {
|
||||||
|
int cgend = (obj->spe & CORPSTAT_GENDER),
|
||||||
|
mgend = ((cgend == CORPSTAT_MALE) ? MALE
|
||||||
|
: (cgend == CORPSTAT_FEMALE) ? FEMALE
|
||||||
|
: NEUTRAL);
|
||||||
|
Sprintf(eos(bp), " (%s)",
|
||||||
|
cgend != CORPSTAT_RANDOM ? genders[mgend].adj
|
||||||
|
: "unspecified gender");
|
||||||
|
}
|
||||||
|
|
||||||
if ((obj->owornmask & W_WEP) && !g.mrg_to_wielded) {
|
if ((obj->owornmask & W_WEP) && !g.mrg_to_wielded) {
|
||||||
boolean twoweap_primary = (obj == uwep && u.twoweap),
|
boolean twoweap_primary = (obj == uwep && u.twoweap),
|
||||||
tethered = (obj->otyp == AKLYS);
|
tethered = (obj->otyp == AKLYS);
|
||||||
|
|||||||
@@ -806,7 +806,12 @@ curses_print_glyph(winid wid, coordxy x, coordxy y,
|
|||||||
/* water and lava look the same except for color; when color is off,
|
/* water and lava look the same except for color; when color is off,
|
||||||
render lava in inverse video so that they look different */
|
render lava in inverse video so that they look different */
|
||||||
if ((special & (MG_BW_LAVA | MG_BW_ICE)) != 0 && iflags.use_inverse) {
|
if ((special & (MG_BW_LAVA | MG_BW_ICE)) != 0 && iflags.use_inverse) {
|
||||||
attr = A_REVERSE; /* map_glyphinfo() only sets this if color is off */
|
/* reset_glyphmap() only sets MG_BW_foo if color is off */
|
||||||
|
attr = A_REVERSE;
|
||||||
|
}
|
||||||
|
/* highlight female monsters (wizard mode option) */
|
||||||
|
if ((special & MG_FEMALE) && iflags.wizmgender) {
|
||||||
|
attr = A_REVERSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4257,6 +4257,7 @@ tty_print_glyph(
|
|||||||
to see although the Valkyrie quest ends up being hard on the eyes) */
|
to see although the Valkyrie quest ends up being hard on the eyes) */
|
||||||
if (((special & MG_PET) != 0 && iflags.hilite_pet)
|
if (((special & MG_PET) != 0 && iflags.hilite_pet)
|
||||||
|| ((special & MG_OBJPILE) != 0 && iflags.hilite_pile)
|
|| ((special & MG_OBJPILE) != 0 && iflags.hilite_pile)
|
||||||
|
|| ((special & MG_FEMALE) != 0 && iflags.wizmgender)
|
||||||
|| ((special & (MG_DETECT | MG_BW_LAVA | MG_BW_ICE)) != 0
|
|| ((special & (MG_DETECT | MG_BW_LAVA | MG_BW_ICE)) != 0
|
||||||
&& iflags.use_inverse)) {
|
&& iflags.use_inverse)) {
|
||||||
term_start_attr(ATR_INVERSE);
|
term_start_attr(ATR_INVERSE);
|
||||||
|
|||||||
Reference in New Issue
Block a user