From 845e813e8618cf17cf926c9cc7bc8f1d55cffc14 Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 9 May 2023 22:38:53 -0700 Subject: [PATCH] fuzzer vs repeat deaths, take IV A limit of 20 deaths on the same move before having the fuzzer give up was not enough. Bump that to 100. No effect at all on normal play. --- src/end.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/end.c b/src/end.c index 53a4dc077..f511bdfb8 100644 --- a/src/end.c +++ b/src/end.c @@ -1158,11 +1158,10 @@ fuzzer_savelife(int how) * the few ways where life-saving isn't effective (cited case * was burning in lava when the level was too full to allow * teleporting to safety). Skip the life-save attempt if we've - * died on the same move more than 20 times; give up instead. - * (Note: theoretically we could get killed more than that in - * one move if there are multiple fast monsters with multiple - * attacks against a wimply hero, or a ton of ranged attacks.) */ - && (gd.done_seq++ < gh.hero_seq + 20L)) { + * died on the same move more than 100 times; give up instead. + * [Note: 100 deaths on the same move may seem excessive but it + * has been demonstrated that a limit of 20 was not enough.] */ + && (gd.done_seq++ < gh.hero_seq + 100L)) { savelife(how); /* periodically restore characteristics plus lost experience