]> granicus.if.org Git - nethack/commit
wielded leash, monster bullwhip use
authornethack.rankin <nethack.rankin>
Tue, 13 Feb 2007 04:54:35 +0000 (04:54 +0000)
committernethack.rankin <nethack.rankin>
Tue, 13 Feb 2007 04:54:35 +0000 (04:54 +0000)
commit658c931aad65c2729768de49a5f1597e9608ccf0
tree43ae19d62b7917b24047b199e13c8c6109910ed2
parent2fde3bce8e4fe796ca4152ed33b3c90d9f5addde
wielded leash, monster bullwhip use

     Simplify <Someone>'s patch (the part for the secondary weapon wasn't and
still isn't needed since dual-wielding can only occur when both primary
and alternate weapon slots contain weapons or weapon-tools, but we might
as well keep it).  There was at least one other case where wielded in-use
leash could be removed from inventory without becoming unleashed first:
a bullwhip-wielding monster could snatch it away.

     That lead to some other whip issues:  monsters who select disarming
via bullwhip as miscellaneous strategy had 80% chance of not using it on
any given turn, but had no chance to select another misc strategy on such
turns--they always resorted to ordinary nonMUSE behavior and usually just
attacked.  The adjacency check missed diagonal locations, also would aim
the disarm attempt accurately even when displacement or invisibility made
the hero's precise location unknown.  [I took the easy way out here and
only let them try to disarm when they know the hero's location.  It's
tempting to aim at the guessed location and sometimes accidentally disarm
a nearby monster, but disarming is an action which targets a particular
weapon rather than just a location.]  Lastly, disarming always targetted
hero's primary weapon, never a dual-wielder's secondary one.
doc/fixes34.4
src/muse.c
src/polyself.c