more summon nasties
If the summon nasties spell creates a single monster, the feedback changes from "Monsters appear" to "A monster appears" but if you were invisible or displaced it still said "around". Avoid | A monster appears around a spot near you! or | A monster appears around your displaced image!
This commit is contained in:
+11
-7
@@ -409,22 +409,26 @@ cast_wizard_spell(struct monst *mtmp, int dmg, int spellnum)
|
|||||||
impossible("bad wizard cloning?");
|
impossible("bad wizard cloning?");
|
||||||
break;
|
break;
|
||||||
case MGC_SUMMON_MONS: {
|
case MGC_SUMMON_MONS: {
|
||||||
int count;
|
int count = nasty(mtmp);
|
||||||
|
|
||||||
count = nasty(mtmp); /* summon something nasty */
|
if (!count) {
|
||||||
if (mtmp->iswiz) {
|
; /* nothing was created? */
|
||||||
|
} else if (mtmp->iswiz) {
|
||||||
verbalize("Destroy the thief, my pet%s!", plur(count));
|
verbalize("Destroy the thief, my pet%s!", plur(count));
|
||||||
} else {
|
} else {
|
||||||
const char *mappear = (count == 1) ? "A monster appears"
|
boolean one = (count == 1);
|
||||||
: "Monsters appear";
|
const char *mappear = one ? "A monster appears"
|
||||||
|
: "Monsters appear";
|
||||||
|
|
||||||
/* messages not quite right if plural monsters created but
|
/* messages not quite right if plural monsters created but
|
||||||
only a single monster is seen */
|
only a single monster is seen */
|
||||||
if (Invis && !perceives(mtmp->data)
|
if (Invis && !perceives(mtmp->data)
|
||||||
&& (mtmp->mux != u.ux || mtmp->muy != u.uy))
|
&& (mtmp->mux != u.ux || mtmp->muy != u.uy))
|
||||||
pline("%s around a spot near you!", mappear);
|
pline("%s %s a spot near you!", mappear,
|
||||||
|
one ? "at" : "around");
|
||||||
else if (Displaced && (mtmp->mux != u.ux || mtmp->muy != u.uy))
|
else if (Displaced && (mtmp->mux != u.ux || mtmp->muy != u.uy))
|
||||||
pline("%s around your displaced image!", mappear);
|
pline("%s %s your displaced image!", mappear,
|
||||||
|
one ? "by" : "around");
|
||||||
else
|
else
|
||||||
pline("%s from nowhere!", mappear);
|
pline("%s from nowhere!", mappear);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user