pull request #850 - level teleporter feedback

Pull request from copperwater:  don't give "flash of light" feedback
when activating a level teleporter because it's too much like one of
the outcomes of a magic trap.

This doesn't use the suggested commit.  Getting the "you feel
disoriented" feedback before being asked for destination level (when
having teleport control) seemed contradictory.  This gives different
feedback and does so after the actual teleport.

Supersedes #850
and since nhcopier doesn't seem to understand "supersede"
Closes #850
This commit is contained in:
PatR
2022-09-24 15:27:13 -07:00
parent 4885653014
commit 65b8cf7981

View File

@@ -1172,7 +1172,7 @@ tele_trap(struct trap *trap)
}
void
level_tele_trap(struct trap* trap, unsigned int trflags)
level_tele_trap(struct trap *trap, unsigned int trflags)
{
char verbbuf[BUFSZ];
boolean intentional = FALSE;
@@ -1191,13 +1191,14 @@ level_tele_trap(struct trap* trap, unsigned int trflags)
You_feel("a wrenching sensation.");
return;
}
if (!Blind)
You("are momentarily blinded by a flash of light.");
else
You("are momentarily disoriented.");
deltrap(trap);
newsym(u.ux, u.uy); /* get rid of trap symbol */
level_tele();
if (Hallucination || Teleport_control)
You("briefly feel %s.", Hallucination ? "oriented" : "centered");
else
You_feel("%sdisoriented.", Confusion ? "even more " : "");
/* magic portal traversal causes brief Stun; for level teleport, use
confusion instead, and only when hero lacks control; do this after
processing the level teleportation attempt because being confused