'urgent' messages
Follow up on some old groundwork. For tty, if the core has designated
a message as 'urgent', override any message suppression taking place
because of ESC typed at the --More-- prompt. Right now, "You die"
messages, feedback about having something stolen, feedback for
"amorous demon" interaction (mainly in case of armor removal), and
exploding a bag of holding are treated as urgent.
The "You die" case is already handled by a hack in top-line handling;
I left that in place so the conversion of 3 or 4 pline("You die.*")
to custompline(URGENT_MESSAGE, "You die.*") was redundant. There
are probably various non-You_die messages which precede done() which
should be marked urgent too.
Other interfaces might want to do something similar. And we ought to
implement MSGTYPE=force or MSGTYPE=urgent to allow players to indicate
other messages that they want have to override suppression. But I'm
not intending to work on either of those. I mainly wanted to force
the magic bag explosion message to be shown since a sequence of "You
put <foo> into <bag>." messages is a likely candidate for --More--ESC.
This commit is contained in:
@@ -2467,7 +2467,7 @@ do_class_genocide(void)
|
||||
u.mh = -1;
|
||||
if (Unchanging) {
|
||||
if (!feel_dead++)
|
||||
You("die.");
|
||||
custompline(URGENT_MESSAGE, "You die.");
|
||||
/* finish genociding this class of
|
||||
monsters before ultimately dying */
|
||||
gameover = TRUE;
|
||||
@@ -2484,7 +2484,7 @@ do_class_genocide(void)
|
||||
You_feel("%s inside.", udeadinside());
|
||||
} else {
|
||||
if (!feel_dead++)
|
||||
You("die.");
|
||||
custompline(URGENT_MESSAGE, "You die.");
|
||||
gameover = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user