diff --git a/src/apply.c b/src/apply.c index 5d381f490..41482b4e0 100644 --- a/src/apply.c +++ b/src/apply.c @@ -2629,7 +2629,7 @@ use_stone(struct obj *tstone) && obj->oclass == GEM_CLASS && !is_graystone(obj) && !obj_resists(obj, 80, 100)) { if (Blind) - pline("You feel something shatter."); + You_feel("something shatter."); else if (Hallucination) pline("Oh, wow, look at the pretty shards."); else @@ -3430,7 +3430,7 @@ use_cream_pie(struct obj *obj) if (Hallucination) You("give yourself a facial."); else - pline("You immerse your %s in %s%s.", body_part(FACE), + You("immerse your %s in %s%s.", body_part(FACE), several ? "one of " : "", several ? makeplural(the(xname(obj))) : the(xname(obj))); if (can_blnd((struct monst *) 0, &gy.youmonst, AT_WEAP, obj)) { @@ -4235,7 +4235,7 @@ static int flip_through_book(struct obj *obj) { if (Underwater) { - pline("You don't want to get the pages even more soggy, do you?"); + You("don't want to get the pages even more soggy, do you?"); return ECMD_OK; } diff --git a/src/cmd.c b/src/cmd.c index 1ab61e580..1cb3757af 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1576,7 +1576,7 @@ wiz_fuzzer(void) { if (flags.suppress_alert < FEATURE_NOTICE_VER(3,7,0)) { pline("The fuzz tester will make NetHack execute random keypresses."); - pline("There is no conventional way out of this mode."); + There("is no conventional way out of this mode."); } if (paranoid_query(TRUE, "Do you want to start fuzz testing?")) iflags.debug_fuzzer = TRUE; /* Thoth, take the reins */ @@ -1943,7 +1943,7 @@ wiz_smell(void) return ECMD_OK; } - pline("You can move the cursor to a monster that you want to smell."); + You("can move the cursor to a monster that you want to smell."); do { pline("Pick a monster to smell."); ans = getpos(&cc, TRUE, "a monster"); diff --git a/src/detect.c b/src/detect.c index 064d739a3..2d442afa1 100644 --- a/src/detect.c +++ b/src/detect.c @@ -528,7 +528,7 @@ food_detect(struct obj *sobj) You("%s %s nearby.", sobj ? "smell" : "sense", what); if (sobj && sobj->blessed) { if (!u.uedibility) - pline("Your %s starts to tingle.", body_part(NOSE)); + Your("%s starts to tingle.", body_part(NOSE)); u.uedibility = 1; } } else { @@ -1081,7 +1081,7 @@ furniture_detect(void) } if (!found) - pline("There seems to be nothing of interest on this level."); + There("seems to be nothing of interest on this level."); else if (!revealed) /* [what about clipped map with points of interest outside of the currently shown area?] */ diff --git a/src/dig.c b/src/dig.c index ef9ca03c9..de6abc46a 100644 --- a/src/dig.c +++ b/src/dig.c @@ -1132,7 +1132,7 @@ use_pick_axe2(struct obj *obj) trap_with_u->conjoined |= (1 << idx); trap->conjoined |= (1 << adjidx); - pline("You clear some debris from between the pits."); + You("clear some debris from between the pits."); } } else if (u.utrap && u.utraptype == TT_PIT && (trap_with_u = t_at(u.ux, u.uy)) != 0) { diff --git a/src/do.c b/src/do.c index 316abe3ce..12062af71 100644 --- a/src/do.c +++ b/src/do.c @@ -1891,7 +1891,7 @@ hellish_smoke_mesg(void) gl.level.flags.temperature > 0 ? "hot" : "cold"); if (In_hell(&u.uz) && gl.level.flags.temperature > 0) - pline("You %s smoke...", + You("%s smoke...", olfaction(gy.youmonst.data) ? "smell" : "sense"); } diff --git a/src/do_name.c b/src/do_name.c index 9e52945ea..b93ce25df 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -1807,7 +1807,7 @@ namefloorobj(void) } if (!obj) { /* "under you" is safe here since there's no object to hide under */ - pline("There doesn't seem to be any object %s.", + There("doesn't seem to be any object %s.", u_at(cc.x, cc.y) ? "under you" : "there"); return; } diff --git a/src/do_wear.c b/src/do_wear.c index 5a9c4a237..f95f99b2d 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -739,12 +739,12 @@ dragon_armor_handling( case BLUE_DRAGON_SCALE_MAIL: if (puton) { if (!Very_fast) - pline("You speed up%s.", Fast ? " a bit more" : ""); + You("speed up%s.", Fast ? " a bit more" : ""); EFast |= W_ARM; } else { EFast &= ~W_ARM; if (!Very_fast && !gc.context.takeoff.cancelled_don) - pline("You slow down."); + You("slow down."); } break; case GREEN_DRAGON_SCALES: @@ -1948,7 +1948,7 @@ canwearobj(struct obj *otmp, long *mask, boolean noisy) /* break_armor() pushes boots off for centaurs, so don't let dowear() put them back on... */ if (noisy) - pline("You have too many hooves to wear %s.", + You("have too many hooves to wear %s.", c_boots); /* makeplural(body_part(FOOT)) yields "rear hooves" which sounds odd */ err++; diff --git a/src/engrave.c b/src/engrave.c index cb3641cfe..eac177b28 100644 --- a/src/engrave.c +++ b/src/engrave.c @@ -1183,7 +1183,7 @@ engrave(void) if (gc.context.engraving.pos.x != u.ux || gc.context.engraving.pos.y != u.uy) { /* teleported? */ - pline("You are unable to continue engraving."); + You("are unable to continue engraving."); return 0; } /* Stylus might have been taken out of inventory and destroyed somehow. @@ -1197,7 +1197,7 @@ engrave(void) } } if (!stylus) { - pline("You are unable to continue engraving."); + You("are unable to continue engraving."); return 0; } } diff --git a/src/files.c b/src/files.c index b9e864900..9ce1bbfa1 100644 --- a/src/files.c +++ b/src/files.c @@ -4392,7 +4392,7 @@ read_tribute(const char *tribsection, const char *tribtitle, if (!fp) { /* this is actually an error - cannot open tribute file! */ if (!nowin_buf) - pline("You feel too overwhelmed to continue!"); + You_feel("too overwhelmed to continue!"); return grasped; } diff --git a/src/hack.c b/src/hack.c index f96a41424..bf5e6acc5 100644 --- a/src/hack.c +++ b/src/hack.c @@ -921,7 +921,7 @@ test_move( so we won't get here, hence don't need to worry about "there" being somewhere the player isn't sure of */ if (mode == DO_MOVE) - pline("There is an obstacle there."); + There("is an obstacle there."); return FALSE; } else if (tmpr->typ == IRONBARS) { if (mode == DO_MOVE diff --git a/src/mail.c b/src/mail.c index 09daa427b..ab89e29d4 100644 --- a/src/mail.c +++ b/src/mail.c @@ -603,7 +603,7 @@ read_simplemail(const char *mbox, boolean adminmsg) fl.l_type = F_UNLCK; fcntl(fileno(mb), F_UNLCK, &fl); #endif - pline("There is a%s message on this scroll.", + There("is a%s message on this scroll.", seen_one_already ? "nother" : ""); } msg = strchr(curline, ':'); diff --git a/src/polyself.c b/src/polyself.c index 87a1dfcbb..091629ef7 100644 --- a/src/polyself.c +++ b/src/polyself.c @@ -449,7 +449,7 @@ polyself(int psflags) controllable_poly = Polymorph_control && !(Stunned || Unaware); if (Unchanging) { - pline("You fail to transform!"); + You("fail to transform!"); return; } /* being Stunned|Unaware doesn't negate this aspect of Poly_control */ diff --git a/src/symbols.c b/src/symbols.c index dde3f9e01..726ef2701 100644 --- a/src/symbols.c +++ b/src/symbols.c @@ -924,7 +924,7 @@ do_symset(boolean rogueflag) big_desc = thissize; } if (!setcount) { - pline("There are no appropriate %s symbol sets available.", + There("are no appropriate %s symbol sets available.", rogueflag ? "rogue level" : "primary"); return TRUE; } @@ -1010,7 +1010,7 @@ do_symset(boolean rogueflag) return TRUE; } else if (!gs.symset_list) { /* The symbols file was empty */ - pline("There were no symbol sets found in \"%s\".", SYMBOLS); + There("were no symbol sets found in \"%s\".", SYMBOLS); return TRUE; } diff --git a/src/trap.c b/src/trap.c index 648e498b8..1fccad303 100644 --- a/src/trap.c +++ b/src/trap.c @@ -4144,7 +4144,7 @@ acid_damage(struct obj* obj) ) { if (!Blind) { if (victim == &gy.youmonst) - pline("Your %s.", aobjnam(obj, "fade")); + Your("%s.", aobjnam(obj, "fade")); else if (vismon) pline("%s %s.", s_suffix(Monnam(victim)), aobjnam(obj, "fade")); @@ -4232,7 +4232,7 @@ water_damage( #endif ) return 0; if (in_invent) - pline("Your %s %s.", ostr, vtense(ostr, "fade")); + Your("%s %s.", ostr, vtense(ostr, "fade")); obj->otyp = SCR_BLANK_PAPER; obj->dknown = 0; @@ -4254,7 +4254,7 @@ water_damage( return 0; } if (in_invent) - pline("Your %s %s.", ostr, vtense(ostr, "fade")); + Your("%s %s.", ostr, vtense(ostr, "fade")); if (obj->otyp == SPE_NOVEL) { obj->novelidx = 0; @@ -4322,7 +4322,7 @@ water_damage( return ER_DESTROYED; } else if (obj->odiluted) { if (in_invent) - pline("Your %s %s further.", ostr, vtense(ostr, "dilute")); + Your("%s %s further.", ostr, vtense(ostr, "dilute")); obj->otyp = POT_WATER; obj->dknown = 0; @@ -4333,7 +4333,7 @@ water_damage( return ER_DAMAGED; } else if (obj->otyp != POT_WATER) { if (in_invent) - pline("Your %s %s.", ostr, vtense(ostr, "dilute")); + Your("%s %s.", ostr, vtense(ostr, "dilute")); obj->odiluted++; if (in_invent)