U1231 - messages ordering when displacing a pet into a trap

move the message so it's before the mintrap test.  newsym's are needed
to ensure the display is correct if a --More-- prompt results.  I left the
"frighten" message alone, except for tense.  As per Pat's suggestion, I
changed the wording to future-proof the message.
This commit is contained in:
cohrs
2005-01-18 15:23:47 +00:00
parent d0a1a6e5b6
commit c9b11cf989
2 changed files with 7 additions and 2 deletions
+2
View File
@@ -73,6 +73,8 @@ reviving invisible troll could appear visible until it moves
adjust some of the shop repair messages adjust some of the shop repair messages
charge for reviving a shop owned corpse or reanimating a shop owned statue charge for reviving a shop owned corpse or reanimating a shop owned statue
filled trap doors on castle can be re-dug filled trap doors on castle can be re-dug
message order when swapping places with a pet (e.g. into a trap), also use
different term instead of "displace"
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+5 -2
View File
@@ -1380,12 +1380,15 @@ domove()
mtmp->mtrapped = 0; mtmp->mtrapped = 0;
remove_monster(x, y); remove_monster(x, y);
place_monster(mtmp, u.ux0, u.uy0); place_monster(mtmp, u.ux0, u.uy0);
newsym(x, y);
newsym(u.ux0, u.uy0);
You("%s %s.", mtmp->mtame ? "swap places with" : "frighten",
pnambuf);
/* check for displacing it into pools and traps */ /* check for displacing it into pools and traps */
switch (minliquid(mtmp) ? 2 : mintrap(mtmp)) { switch (minliquid(mtmp) ? 2 : mintrap(mtmp)) {
case 0: case 0:
You("%s %s.", mtmp->mtame ? "displaced" : "frightened",
pnambuf);
break; break;
case 1: /* trapped */ case 1: /* trapped */
case 3: /* changed levels */ case 3: /* changed levels */