From 738aa5c076ac370357576541fa7f37cd3ad9ada9 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Mon, 8 Jun 2026 04:39:46 +0100 Subject: [PATCH] Make monsters not scared of the Sokoban rolling boulder traps They aren't initially loaded with boulders, thus aren't dangerous. This is particularly relevant for pets, who would otherwise be very reluctant to follow their owners up to the level above. --- doc/fixes5-0-1.txt | 1 + src/trap.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/fixes5-0-1.txt b/doc/fixes5-0-1.txt index 96dba1c4d..80f9e20a3 100644 --- a/doc/fixes5-0-1.txt +++ b/doc/fixes5-0-1.txt @@ -56,6 +56,7 @@ if the hero has already been told that an engraving vanished, ensure that aklys path shouldn't be shown for locations that the hero cannot see keep the player better-informed about status of the tether on their weapon don't overflow svp.plname on restore (pr #1570 by chasonr) +monsters (including pets) aren't scared of the Sokoban rolling boulder traps Platform- and/or Interface-Specific Fixes diff --git a/src/trap.c b/src/trap.c index 1804f7fc8..c9ab97563 100644 --- a/src/trap.c +++ b/src/trap.c @@ -1129,6 +1129,9 @@ m_harmless_trap(struct monst *mtmp, struct trap *ttmp) case LANDMINE: break; case ROLLING_BOULDER_TRAP: + /* the Sokoban rolling boulder traps are not dangerous */ + if (In_sokoban(&u.uz)) + return TRUE; break; case SLP_GAS_TRAP: if (resists_sleep(mtmp) || defended(mtmp, AD_SLEE))