Files
nethack/include
copperwater 9d0df0c9f0 Invert the behavior of selection.gradient
selection.gradient has some pretty unintuitive behavior, in that it
selects points that are NOT close to the defined center. I've used
gradient selections several times and so far all of them have had to be
negated, because I wanted to select points close to the center with a
decreasing probability further out.

This implements that behavior, and also fixes a bug in which the x,y
coordinates of the gradient center(s) were not converted properly when
used within a des.room or des.map. Also updated the lua documentation
for gradient.

I removed the "limited" argument, as it was previously used to control
whether the rest of the map outside the max given distance would be
included in the selection; now that the area beyond maxdist is naturally
never in the selection, it doesn't have much use. (And I can't think of
a reasonable use case for the inverse: wanting to select points close to
the center, with decreasing chance towards maxdist, but then select the
entire map beyond maxdist.)

Currently this does not affect any special levels or themed rooms
because none of them use selection.gradient.
2023-02-14 09:13:59 +02:00
..
2022-02-04 11:01:20 -05:00
2022-03-13 13:58:56 -07:00
2022-11-29 21:53:21 -05:00
2022-07-19 21:23:26 +03:00
2022-07-19 21:23:26 +03:00
2022-11-29 21:53:21 -05:00
2022-10-30 16:08:14 -04:00
2023-01-19 18:51:42 -05:00
2023-02-05 11:32:58 -05:00
2022-06-30 23:48:18 -04:00
2023-02-06 19:23:42 +02:00
2022-10-26 14:21:23 -04:00
2023-01-15 11:04:35 -08:00
2021-01-26 21:06:16 -05:00
2022-11-29 21:53:21 -05:00
2022-08-23 23:27:21 +03:00
2022-07-01 08:36:03 -04:00
2022-03-11 07:33:28 -05:00
2022-06-19 02:30:45 -07:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2022-10-26 14:21:23 -04:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2023-01-29 18:07:03 +02:00
2022-11-29 21:53:21 -05:00
2023-01-12 14:54:05 -08:00
2023-02-07 16:47:42 -08:00
2023-02-06 19:23:42 +02:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2023-02-06 19:23:42 +02:00
2022-07-23 23:11:13 -07:00
2022-10-26 14:21:23 -04:00
2022-11-29 21:53:21 -05:00
2022-12-10 12:27:18 -05:00
2022-12-10 12:27:18 -05:00
2020-08-12 16:15:28 -07:00
2022-10-26 14:21:23 -04:00
2022-12-06 00:49:52 -08:00
2022-10-29 10:54:25 -04:00
2022-11-29 21:53:21 -05:00
2023-01-06 15:53:06 +02:00
2022-06-30 23:48:18 -04:00
2023-01-09 23:34:32 -08:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2023-01-24 17:02:13 +02:00
2022-11-29 21:53:21 -05:00