newsym(u.ux, u.uy);
- You(fmt, arg);
+ urgent_pline(fmt, arg);
/* check whether player foolishly genocided self while poly'd */
if (ugenocided()) {
/* intervening activity might have clobbered genocide info */
u.uhp = 1;
} else {
dead: /* we come directly here if experience level went to 0 or less */
- Your("new form doesn't seem healthy enough to survive.");
+ urgent_pline(
+ "Your new form doesn't seem healthy enough to survive.");
g.killer.format = KILLED_BY_AN;
Strcpy(g.killer.name, "unsuccessful polymorph");
done(DIED);
}
}
newuhs(FALSE);
- polyman("feel like a new %s!",
+ polyman("You feel like a new %s!",
/* use saved gender we're about to revert to, not current */
((Upolyd ? u.mfemale : flags.female) && g.urace.individual.f)
? g.urace.individual.f
if (emits_light(g.youmonst.data))
del_light_source(LS_MONSTER, monst_to_any(&g.youmonst));
- polyman("return to %s form!", g.urace.adj);
+ polyman("You return to %s form!", g.urace.adj);
if (u.uhp < 1) {
/* can only happen if some bit of code reduces u.uhp
pline("Gazing at the awake %s is not a very good idea.",
l_monnam(mtmp));
/* as if gazing at a sleeping anything is fruitful... */
- You("turn to stone...");
+ urgent_pline("You turn to stone...");
g.killer.format = KILLED_BY;
Strcpy(g.killer.name,
"deliberately meeting Medusa's gaze");
static void
stoned_dialogue(void)
{
- register long i = (Stoned & TIMEOUT);
+ long i = (Stoned & TIMEOUT);
if (i > 0L && i <= SIZE(stoned_texts)) {
char buf[BUFSZ];
Strcpy(buf, stoned_texts[SIZE(stoned_texts) - i]);
if (nolimbs(g.youmonst.data) && strstri(buf, "limbs"))
(void) strsubst(buf, "limbs", "extremities");
- pline1(buf);
+ urgent_pline("%s", buf);
}
switch ((int) i) {
case 5: /* slowing down */
static void
choke_dialogue(void)
{
- register long i = (Strangled & TIMEOUT);
+ long i = (Strangled & TIMEOUT);
if (i > 0 && i <= SIZE(choke_texts)) {
if (Breathless || !rn2(50)) {
- pline(choke_texts2[SIZE(choke_texts2) - i], body_part(NECK));
+ urgent_pline(choke_texts2[SIZE(choke_texts2) - i],
+ body_part(NECK));
} else {
const char *str = choke_texts[SIZE(choke_texts) - i];
if (index(str, '%'))
- pline(str, hcolor(NH_BLUE));
+ urgent_pline(str, hcolor(NH_BLUE));
else
- pline1(str);
+ urgent_pline("%s", str);
}
}
exercise(A_STR, FALSE);
boolean danger = (is_pool_or_lava(u.ux, u.uy)
&& !Is_waterlevel(&u.uz));
- pline(s, danger ? "over" : "in",
- danger ? surface(u.ux, u.uy) : "air");
+ urgent_pline(s, danger ? "over" : "in",
+ danger ? surface(u.ux, u.uy) : "air");
} else
pline1(s);
}
if (index(buf, '%')) {
if (i == 4L) { /* "you are turning green" */
if (!Blind) /* [what if you're already green?] */
- pline(buf, hcolor(NH_GREEN));
+ urgent_pline(buf, hcolor(NH_GREEN));
} else {
- pline(buf,
- an(Hallucination ? rndmonnam(NULL) : "green slime"));
+ urgent_pline(buf, an(Hallucination ? rndmonnam(NULL)
+ : "green slime"));
}
} else {
- pline1(buf);
+ urgent_pline("%s", buf);
}
}
return;
if (poly_when_stoned(g.youmonst.data) && polymon(PM_STONE_GOLEM))
return;
- You("turn to stone...");
+ urgent_pline("You turn to stone...");
g.killer.format = KILLED_BY;
if (str != g.killer.name)
Strcpy(g.killer.name, str ? str : "");
pline("But in vain.");
}
set_uinwater(1); /* u.uinwater = 1 */
- You("drown.");
+ urgent_pline("You drown.");
for (i = 0; i < 5; i++) { /* arbitrary number of loops */
/* killer format and name are reconstructed every iteration
because lifesaving resets them */
because lifesaving resets them */
g.killer.format = KILLED_BY;
Strcpy(g.killer.name, lava_killer);
- You("%s...", boil_away ? "boil away" : "burn to a crisp");
+ urgent_pline("You %s...", boil_away ? "boil away"
+ : "burn to a crisp");
done(BURNING);
if (safe_teleds(TELEDS_ALLOW_DRAG | TELEDS_TELEPORT))
break; /* successful life-save */
if (u.utrap < (1 << 8)) {
g.killer.format = KILLED_BY;
Strcpy(g.killer.name, "molten lava");
- You("sink below the surface and die.");
+ urgent_pline("You sink below the surface and die.");
burn_away_slime(); /* add insult to injury? */
done(DISSOLVED);
/* can only get here via life-saving; try to get away from lava */
}
void
-mhitm_ad_were(struct monst *magr, struct attack *mattk, struct monst *mdef,
- struct mhitm_data *mhm)
+mhitm_ad_were(
+ struct monst *magr, struct attack *mattk,
+ struct monst *mdef, struct mhitm_data *mhm)
{
struct permonst *pa = magr->data;
hitmsg(magr, mattk);
if (uncancelled && !rn2(4) && u.ulycn == NON_PM
&& !Protection_from_shape_changers && !defends(AD_WERE, uwep)) {
- You_feel("feverish.");
+ urgent_pline("You feel feverish.");
exercise(A_CON, FALSE);
set_ulycn(monsndx(pa));
retouch_equipment(2);
void
new_were(struct monst *mon)
{
- register int pm;
+ int pm;
pm = counter_were(monsndx(mon->data));
if (pm < LOW_PM) {
/* were-creature (even you) summons a horde */
int
-were_summon(struct permonst *ptr,
- boolean yours,
- int *visible, /* number of visible helpers created */
- char *genbuf)
+were_summon(
+ struct permonst *ptr,
+ boolean yours,
+ int *visible, /* number of visible helpers created */
+ char *genbuf)
{
int i, typ, pm = monsndx(ptr);
struct monst *mtmp;