simplify issuing urgent messages

Change
 custompline(URGENT_MESSAGE, mesg, ...);
calls to new
 urgent_pline(mesg, ...);
This commit is contained in:
PatR
2021-12-20 08:30:48 -08:00
parent aaed434d46
commit 2278434228
8 changed files with 51 additions and 36 deletions

View File

@@ -2634,8 +2634,10 @@ zapyourself(struct obj *obj, boolean ordinary)
learn_it = TRUE;
Sprintf(g.killer.name, "shot %sself with a death ray", uhim());
g.killer.format = NO_KILLER_PREFIX;
You("irradiate yourself with pure energy!");
custompline(URGENT_MESSAGE, "You die.");
/* probably don't need these to be urgent; player just gave input
without subsequent opportunity to dismiss --More-- with ESC */
urgent_pline("You irradiate yourself with pure energy!");
urgent_pline("You die.");
/* They might survive with an amulet of life saving */
done(DIED);
break;