Sting vs level teleport revisted

This reverses all of c67f1dd710
except for the fixes37.0 entry and does a better job in a cleaner
fashion.  If Sting is going to start glowing and "you materialize
on a different level" is pending, give the materialize message
before the glowing message.  Otherwise handle both stop-glowing
and/or you-materialize in the normal fashion.
This commit is contained in:
PatR
2020-04-27 10:49:34 -07:00
parent c67f1dd710
commit c17301a75c
5 changed files with 32 additions and 28 deletions

View File

@@ -1907,6 +1907,11 @@ int orc_count; /* new count (warn_obj_cnt is old count); -1 is a flag value */
pline("%s is %s.", bare_artifactname(uwep),
glow_verb(Blind ? 0 : g.warn_obj_cnt, TRUE));
} else if (newstr > 0 && newstr != oldstr) {
/* goto_level() -> docrt() -> see_monsters() -> Sting_effects();
if "you materialize on another level" is pending, give it
now so that start-glowing message comes after it */
maybe_lvltport_feedback(); /* usually called by goto_level() */
/* 'start' message */
if (!Blind)
pline("%s %s %s%c", bare_artifactname(uwep),