From 1dd43be26687e7735f8ff44069a1ce71eee65a36 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 13 Apr 2015 19:50:54 +0300 Subject: [PATCH] Inaccessible niches occasionally have iron bars --- doc/fixes35.0 | 1 + src/mklev.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/doc/fixes35.0 b/doc/fixes35.0 index c18e548ae..9744a0a4c 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -900,6 +900,7 @@ mithril armor should have silver color lichen corpse is an acid indicator camera may contain a picture-painting demon some monsters can eat through iron bars +inaccessible niches occasionally have iron bars in front Platform- and/or Interface-Specific Fixes diff --git a/src/mklev.c b/src/mklev.c index 744eb31f2..858a61664 100644 --- a/src/mklev.c +++ b/src/mklev.c @@ -493,6 +493,15 @@ int trap_type; if(rn2(7)) dosdoor(xx, yy, aroom, rn2(5) ? SDOOR : DOOR); else { + /* inaccessible niches occasionally have iron bars */ + if (!rn2(5) && IS_WALL(levl[xx][yy].typ)) { + levl[xx][yy].typ = IRONBARS; + if (rn2(3)) + (void) mkcorpstat(CORPSE, + (struct monst *)0, + mkclass(S_HUMAN, 0), + xx, yy+dy, TRUE); + } if (!level.flags.noteleport) (void) mksobj_at(SCR_TELEPORTATION, xx, yy+dy, TRUE, FALSE);