new achievement: drawbridge tune

Use up the last available bit for achievements:
"You learned the tune to open and close the castle's drawbridge."
(More can still be added but xlogfile will need another field to
track a second set of 31 in order to keep its achievement bitmask(s)
within portable size.)

As achievements go, it's not very exciting, but players who normally
destroy the drawbridge have to choose whether to earn an achievement
first since once it's gone, there's no way to find out the tune
(either via prayer reward or successful Mastermind).  I'm guessing
that most will probably decide to ignore this achievement since it
has no effect on the outcome of the game.  However, that might not
be true for future tournament play.

There's no need to bump EDITLEVEL for this; room for recording one
additional achievement is already allocated.
This commit is contained in:
PatR
2022-02-27 01:55:25 -08:00
parent 6a65b41270
commit a3b52bf6a3
5 changed files with 37 additions and 25 deletions

View File

@@ -1068,7 +1068,7 @@ pleased(aligntyp g_align)
if (!u.uevent.uopened_dbridge && !u.uevent.gehennom_entered) {
if (u.uevent.uheard_tune < 1) {
godvoice(g_align, (char *) 0);
verbalize("Hark, %s!", g.youmonst.data->mlet == S_HUMAN
verbalize("Hark, %s!", (g.youmonst.data->mlet == S_HUMAN)
? "mortal"
: "creature");
verbalize(
@@ -1079,6 +1079,7 @@ pleased(aligntyp g_align)
You_hear("a divine music...");
pline("It sounds like: \"%s\".", g.tune);
u.uevent.uheard_tune++;
record_achievement(ACH_TUNE);
break;
}
}