Lua: Traps without victims

Traps may get corpses generated on them on early dungeon levels,
to warn off fragile starting heroes. Allow creating traps in lua
without the corpse.
This commit is contained in:
Pasi Kallinen
2023-02-25 17:56:44 +02:00
parent 4fd7d51cb2
commit 00c756ba75
5 changed files with 9 additions and 1 deletions

View File

@@ -929,6 +929,7 @@ Example:
des.trap({ type = "hole", x = 1, y = 1 });
des.trap({ type = "hole", coord = {2, 2} });
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("hole", 3, 4);
des.trap("level teleport", {5, 8});