Files
nethack/src
PatR 36e4d80547 Cleaver update
I worked on this a while back but didn't commit it because I couldn't
figure out the dead monster which wouldn't die.  Pasi beat me to that.

Clean up the Cleaver code some and make the three-target swing alternate
between counter-clockwise and clockwise to simulate normal right-to-left
swing followed by left-to-right backswing.  (Alternation happens on each
swing regardless of whether it is consecutive with the most recent one.
That's suboptimal but easy....)  Also, stop three-target attack early if
hero is life-saved after being killed by a passive counter-attack from
the first or second target.

Prevent rogue backstab and two-hander breaking foes' weapons when using
Cleaver hand-to-hand because getting more than one of either of those
bonuses at a time would be excessive.  I think allowing those for the
primary target but not for the two adjacent ones would be better, but I
just thought of that and am not going back for another round of revising.

This doesn't incorporate the two pull requests:  one to avoid hitting
tame or peaceful adjacent targets unless the primary was also tame or
peaceful, the other to avoid hitting unseen adjacent targets.  I'm not
sure if that includes remembered-unseen 'I' on the spot or no monster
shown at all.  (There's a third one about updating the map but it isn't
needed for the existing Cleaver code either before or after this patch.)
I'm in favor of the first one and am not sure about the second.  My
original concern was that someone could use Cleaver to find/hit three
unknown monsters at a time via 'F' prefix, but forcefight aimed at
thin air doesn't reach the Cleaver code so that can't happen, nor can
attacking two known close monsters at once by targetting an empty spot
between them.
2018-03-02 18:19:23 -08:00
..
2016-02-01 17:28:52 -08:00
2018-02-25 17:42:31 -05:00
2018-02-17 01:58:14 -08:00
2017-09-26 10:04:25 +03:00
2018-02-21 22:44:15 -08:00
2018-02-06 02:41:31 -08:00
2015-11-08 01:37:55 -08:00
2018-02-23 13:07:49 -08:00
2018-02-28 09:17:06 +02:00
2018-02-06 02:20:26 -08:00
2017-11-14 15:31:26 -08:00
2016-12-28 22:52:08 +02:00
2015-11-08 01:37:55 -08:00
2018-02-24 23:26:25 -05:00
2018-02-17 01:58:14 -08:00
2018-02-17 18:54:52 -08:00
2018-02-26 11:18:29 -08:00
2016-04-16 15:37:35 -07:00
2017-10-08 03:29:16 -07:00
2018-02-19 11:59:14 -08:00
2017-05-19 16:51:05 -07:00
2016-07-09 15:03:03 -07:00
2016-05-20 17:01:40 -07:00
2018-02-15 10:13:42 -08:00
2018-02-07 17:31:44 -08:00
2017-11-12 16:06:28 -08:00
2017-09-11 18:58:48 -07:00
2015-12-16 18:16:39 -08:00
2016-11-13 15:25:43 +02:00
2017-09-25 17:17:06 -07:00
2018-01-21 16:30:58 -08:00
2018-02-20 19:32:47 -08:00
2017-12-14 16:39:21 -08:00
2017-08-02 18:56:54 -07:00
2017-09-11 16:22:14 -07:00
2018-01-12 16:13:14 -08:00
2016-05-20 17:01:40 -07:00
2017-05-29 12:47:40 -07:00
2017-10-08 03:04:52 +03:00
2017-10-31 21:18:24 +02:00
2017-09-26 10:04:25 +03:00
2016-05-19 18:05:54 +03:00
2016-01-17 15:05:34 -08:00
2018-02-23 07:25:37 -08:00
2017-10-19 23:08:46 -07:00
2017-06-04 15:22:00 -07:00
2017-11-14 15:31:26 -08:00
2015-05-25 09:21:31 +09:00
2017-08-28 15:56:16 -07:00
2018-03-02 18:19:23 -08:00
2017-06-08 15:05:24 -07:00
2017-09-26 10:04:25 +03:00
2017-06-16 18:27:25 +03:00
2017-06-08 15:05:24 -07:00
2016-03-25 17:26:37 -07:00