more and mprf() rather than strcats.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@547 c06c8d41-db1a-0410-9941-cceddc491573
RYT42Z6CED4KV5CCJ45CHZ3DQGLFMDCVH6CSQZNXOILULDG4MXVQC
strcpy( info, "A beautiful fountain of clear blue water grows "
"from the floor " );
strcat( info, (you.species == SP_NAGA || you.species == SP_CENTAUR)
? "before you!" : "at your feet!" );
mpr(info);
mprf("A beautiful fountain of clear blue water grows from the "
"floor %s!",
(you.species == SP_NAGA || you.species == SP_CENTAUR) ?
"before you!" : "at your feet!" );
{
strcpy(info, ptr_monam(monster, DESC_CAP_THE));
strcat(info, " falls into the ");
strcat(info, (grd[monster->x][monster->y] == DNGN_LAVA)
? "lava" : "water");
strcat(info, "!");
mpr(info);
}
mprf("%s falls into the %s!",
ptr_monam(monster, DESC_CAP_THE),
(grd[monster->x][monster->y] == DNGN_LAVA) ? "lava" :
"water");