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 <skill rating>
 with with <secondary weapon>.
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
This commit is contained in:
PatR
2021-06-06 13:38:49 -07:00
parent 97e58a4fdc
commit e20dd2e760
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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);