Allow creating unhidden traps in special levels

des.trap({ type = "rust", seen = true });
This commit is contained in:
Pasi Kallinen
2022-02-19 12:38:24 +02:00
parent a1d5464fa7
commit c434236f1e
6 changed files with 11 additions and 0 deletions

View File

@@ -1468,6 +1468,8 @@ mktrap(int num, int mktrapflags, struct mkroom *croom, coord *tm)
if (kind == WEB && !(mktrapflags & MKTRAP_NOSPIDERONWEB))
(void) makemon(&mons[PM_GIANT_SPIDER], m.x, m.y, NO_MM_FLAGS);
if ((mktrapflags & MKTRAP_SEEN))
t->tseen = TRUE;
/* The hero isn't the only person who's entered the dungeon in
search of treasure. On the very shallowest levels, there's a