castle drawbridge tune tweak

After the drawbridge was destroyed, playing an instrument on the castle
level while knowing the tune continued to offer a chance to play it.
Then nothing interesting happened even if you were close enough to the
former bridge for it to have been useful prior to the destruction.

I think the hero could also be given the tune as a divine prayer boon
after bridge destruction but I didn't verify that.  The player might
not know that the tune is no good anymore, but the hero's patron deity
should.
This commit is contained in:
PatR
2023-12-11 18:44:29 -08:00
parent 8e99df14ae
commit e9e444d109
4 changed files with 22 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.7 dbridge.c $NHDT-Date: 1596498153 2020/08/03 23:42:33 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.47 $ */
/* NetHack 3.7 dbridge.c $NHDT-Date: 1702349063 2023/12/12 02:44:23 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.62 $ */
/* Copyright (c) 1989 by Jean-Christophe Collet */
/* NetHack may be freely redistributed. See license for details. */
@@ -988,6 +988,7 @@ destroy_drawbridge(coordxy x, coordxy y)
}
}
nokiller();
u.uevent.uheard_tune = 3; /* bridge is gone so tune is useless */
}
/*dbridge.c*/