From 05f9950c998e8e0f162d1f84ba8f59fd6a0b4430 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Mon, 4 Dec 2023 13:07:43 -0500 Subject: [PATCH] Fix: fumbling vs losing footing in earthquake Fumbling was apparently meant to make it harder to keep your footing when an earthquake created a pit under you, requiring a 1/5 roll to stay upright, but because it was added as an additional OR it actually just gave the hero an additional (albeit unlikely) chance to retain her footing. Make it actually have a negative impact on the hero's ability to retain his footing rather than a minor boost. --- src/music.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/music.c b/src/music.c index ff667e03c..045e6e839 100644 --- a/src/music.c +++ b/src/music.c @@ -415,9 +415,9 @@ do_earthquake(int force) selftouch("Falling, you"); } else if (u.utrap && u.utraptype == TT_PIT) { boolean keepfooting = - ((Fumbling && !rn2(5)) - || (!rnl(Role_if(PM_ARCHEOLOGIST) ? 3 : 9)) - || ((ACURR(A_DEX) > 7) && rn2(5))); + (!(Fumbling && rn2(5)) + && (!(rnl(Role_if(PM_ARCHEOLOGIST) ? 3 : 9)) + || ((ACURR(A_DEX) > 7) && rn2(5)))); You("are jostled around violently!"); set_utrap(rn1(6, 2), TT_PIT);