From 97cbbaa0ac7cfaea95b40e5bcf58f9a907dc7404 Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 20 Jul 2020 15:04:25 -0700 Subject: [PATCH] more feedback for monk suit penalty Refine the enlightenment feedback when a monk has both a suit penalty and an increase accuracy bonus. --- src/insight.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/insight.c b/src/insight.c index a110c1cea..021d06753 100644 --- a/src/insight.c +++ b/src/insight.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 insight.c $NHDT-Date: 1593771616 2020/07/03 10:20:16 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.18 $ */ +/* NetHack 3.7 insight.c $NHDT-Date: 1595282650 2020/07/20 22:04:10 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.20 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1479,8 +1479,12 @@ int final; if (u.uhitinc) { (void) enlght_combatinc("to hit", u.uhitinc, final, buf); if (iflags.tux_penalty && !Upolyd) - Sprintf(eos(buf), " %s your suit penalty", - (u.uhitinc < 0) ? "increasing" : "offsetting"); + Sprintf(eos(buf), " %s your suit's penalty", + (u.uhitinc < 0) ? "increasing" + : (u.uhitinc < 4 * g.urole.spelarmr / 5) + ? "partly offsetting" + : (u.uhitinc < g.urole.spelarmr) ? "nearly offseting" + : "overcoming"); you_have(buf, ""); } if (u.udaminc)