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

@@ -1633,9 +1633,23 @@ struct obj *obj, *otmp;
(the sound could be implicit) */
maybelearnit = cansee(obj->ox, obj->oy) || !Deaf;
if (obj->otyp == BOULDER) {
fracture_rock(obj);
} else if (obj->otyp == STATUE) {
(void) break_statue(obj);
if (cansee(obj->ox, obj->oy))
pline_The("boulder falls apart.");
else if (!Deaf)
You_hear("a crumbling sound.");
fracture_rock(obj);
}
else if (obj->otyp == STATUE) {
if (break_statue(obj)) {
if (cansee(obj->ox, obj->oy)) {
if (Hallucination)
pline_The("%s shatters.", rndmonnam());
else
pline_The("statue shatters.");
} else if (!Deaf) {
You_hear("a crumbling sound.");
}
}
} else {
if (context.mon_moving ?
!breaks(obj, obj->ox, obj->oy) :