fix U242 - bug with monks

Monks get a big penalty to hit when wearing a suit; otherwise they
get a bonus when not wielding a weapon.  But as reported, that lets them
have their martial arts bonus even while wearing a shield which does seem
rather unexpected.  This change makes them only get their to-hit bonus
while shieldless as well as weaponless.  Impact on play balance is likely
to be quite small; late game characters hardly ever miss due to high luck
bonus and very early game ones won't have found a shield yet.

     Shouldn't the "your armor is cumbersome" message be ``if (verbose)''?
This commit is contained in:
nethack.rankin
2003-01-31 06:41:56 +00:00
parent 029ca9f294
commit 02d784f039
2 changed files with 3 additions and 1 deletions

View File

@@ -368,6 +368,7 @@ include rocks as likely candidates for quivering if alternate weapon is a sling
Asmodeus fails an is_armed() check, so code in m_initweap() to give him wands
of fire and cold never got called; move the code to m_initinv()
#rub would wield the target tool even when already being worn as eyewear
monks lose their to-hit bonus for bare-handed attacking if wearing a shield
Platform- and/or Interface-Specific Fixes

View File

@@ -268,8 +268,9 @@ register struct monst *mtmp;
if (uarm) {
Your("armor is rather cumbersome...");
tmp -= urole.spelarmr;
} else if (!uwep)
} else if (!uwep && !uarms) {
tmp += (u.ulevel / 3) + 2;
}
}
/* with a lot of luggage, your agility diminishes */