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

@@ -1002,7 +1002,8 @@ Example:
=== trap
Create a trap. The `launchfrom` is relative to the rolling boulder trap coord.
Create a trap. The `launchfrom` is relative to the rolling boulder trap coord,
but `teledest` is absolute.
Example:
@@ -1011,6 +1012,7 @@ Example:
des.trap({ type = "web", coord = {2, 2}, spider_on_web = false, seen = true });
des.trap({ type = "falling rock", victim = false });
des.trap({ type = "rolling boulder", coord = {7, 5}, launchfrom = {-2, -2} });
des.trap({ type = "teleport", coord = {7, 5}, teledest = {2, 2} });
des.trap("hole", 3, 4);
des.trap("level teleport", {5, 8});
des.trap("rust")