From 76c23a06f080bb1349533a1b3b831d6cfff97c44 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Thu, 5 Nov 2026 21:36:00 +0100 Subject: [PATCH] Bridge tear test without imps (they would mend the bridge) Co-Authored-By: Claude Opus 5.5 --- src/game.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.rs b/src/game.rs index fd606d0..dee77a4 100644 --- a/src/game.rs +++ b/src/game.rs @@ -6018,6 +6018,8 @@ mod tests { } g.map.t[idx(bx, by)].kind = Kind::Bridge; g.map.t[idx(bx, by)].owner = Owner::Player; + // no imps around to mend it (and to be attacked instead) + g.ents.retain(|e| e.hero); let mut torn = false; for _ in 0..(90 * 20) { g.update(0.05);