statue patch (trunk only)

Pat wrote:
> <Someone> has a patch (we've added a couple of
> his earlier ones) which changes the statue display from a single
> one size fits all "`" to a gray monster symbol instead.
> But I think the idea is a good one, and along with the
> bouldersym option could make the fairly hard to
> distinguish back-tick character go away.

Sources tagged before applying NETHACK_PRE_STATUE,
and afterwards with NETHACK_POST_STATUE for easy
rollback.
This commit is contained in:
nethack.allison
2006-10-01 21:17:38 +00:00
parent 374e9fbbb4
commit a0986b1e30
11 changed files with 136 additions and 8 deletions

View File

@@ -256,8 +256,18 @@ map_object(obj, show)
register int x = obj->ox, y = obj->oy;
register int glyph = obj_to_glyph(obj);
if (level.flags.hero_memory)
if (level.flags.hero_memory) {
/* MRKR: While hallucinating, statues are seen as random monsters */
/* but remembered as random objects. */
if (Hallucination && obj->otyp == STATUE) {
levl[x][y].glyph = random_obj_to_glyph();
}
else {
levl[x][y].glyph = glyph;
}
}
if (show) show_glyph(x, y, glyph);
}
@@ -1250,7 +1260,8 @@ show_glyph(x,y,glyph)
* the definition.
*/
if (glyph >= GLYPH_WARNING_OFF) { /* a warning */
if (glyph >= GLYPH_WARNING_OFF
&& glyph < GLYPH_STATUE_OFF) { /* a warning */
text = "warning"; offset = glyph - GLYPH_WARNING_OFF;
} else if (glyph >= GLYPH_SWALLOW_OFF) { /* swallow border */
text = "swallow border"; offset = glyph - GLYPH_SWALLOW_OFF;