Skip to content

Commit

Permalink
Wielded quarterstaff gives a small spellcasting bonus
Browse files Browse the repository at this point in the history
From NetHack Fourk.
  • Loading branch information
paxed committed Dec 31, 2023
1 parent 42a6a5d commit 780d30e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/fixes3-7-0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,7 @@ wishing for a "lit candle" provided one, but the feedback as it was added into
invent was "partly used candle (lit)" because of how 'lit' timer works
don't fall off steed because of Fumbling if saddle is cursed
cursed welded quarterstaff doesn't prevent spellcasting
wielded quarterstaff gives a small spellcasting bonus


Fixes to 3.7.0-x General Problems Exposed Via git Repository
Expand Down
3 changes: 3 additions & 0 deletions src/spell.c
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,9 @@ percent_success(int spell)
if (uarms)
splcaster += gu.urole.spelshld;

if (uwep && uwep->otyp == QUARTERSTAFF)
splcaster -= 3; /* Small bonus */

if (!paladin_bonus) {
if (uarmh && is_metallic(uarmh)) /* && otyp != HELM_OF_BRILLIANCE */
splcaster += uarmhbon;
Expand Down

0 comments on commit 780d30e

Please sign in to comment.