From e20dd2e760113665e859457c3ab3df601da45c67 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 6 Jun 2021 13:38:49 -0700 Subject: [PATCH] fix github issue #530 - weapon skill enlightenment ^X feedback and end of game disclosure reported Your two weapon skill {is,was} [also] limited by being with with . when the skill rating for the secondary weapon is/was less than the skill rating for two-weapon combat. The corresponding message for primary weapon did not duplicate the word "with". Fixes #530 --- doc/fixes37.0 | 2 ++ src/insight.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/fixes37.0 b/doc/fixes37.0 index c550b2e30..fb02de618 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -708,6 +708,8 @@ when using 'O' to set menu color patterns, the reminder message that the was sometimes given even when already True stair revamp unintentionally resulted in cursed potion of levitation no longer causing hero to hit head on ceiling +enlightenment/disclosure when wielding two weapons with two-weap skill higher + than secondary weapon's skill had "with" duplicated in the feedback curses: 'msg_window' option wasn't functional for curses unless the binary also included tty support diff --git a/src/insight.c b/src/insight.c index 44981364f..c57496c77 100644 --- a/src/insight.c +++ b/src/insight.c @@ -1207,7 +1207,7 @@ weapon_insight(int final) Strcpy(pfx, "Your two weapon skill "); Sprintf(sfx, " %slimited by ", also2); if (sklvl2 > P_ISRESTRICTED) - Sprintf(eos(sfx), "being %s with", sklvlbuf2); + Sprintf(eos(sfx), "being %s", sklvlbuf2); else Strcat(eos(sfx), "having no skill"); Sprintf(eos(sfx), " with %s", sknambuf2);