Holes and trapdoors have predetermined exit level

Same hole/trapdoor will always take you to the same level.
This commit is contained in:
Pasi Kallinen
2022-07-27 22:51:13 +03:00
parent 543a3c1b9a
commit 05761bada6
4 changed files with 49 additions and 17 deletions

View File

@@ -1133,6 +1133,8 @@ dodown(void)
}
if (trap && Is_stronghold(&u.uz)) {
goto_hell(FALSE, TRUE);
} else if (trap) {
goto_level(&(trap->dst), FALSE, FALSE, FALSE);
} else {
g.at_ladder = (boolean) (levl[u.ux][u.uy].typ == LADDER);
next_level(!trap);