Allow fixed-destination teleport traps

Add a theme room with multiple visible teleportation traps
which will always teleport to specific locations in the same level.

Teleport trap change from xNetHack by copperwater <aosdict@gmail.com>.
This commit is contained in:
Pasi Kallinen
2024-06-14 19:47:29 +03:00
parent a8099edca6
commit 951401e52a
6 changed files with 76 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ struct trap {
coordxy tx, ty;
d_level dst; /* destination for portals/holes/trapdoors */
coord launch;
#define teledest launch /* x,y destination for teleport traps, if > 0 */
Bitfield(ttyp, 5);
Bitfield(tseen, 1);
Bitfield(once, 1);