Files
nethack/include
PatR 49e93760a8 collect_coords() revisited
Make recently added collect_coords() global even though it is still
only being used in teleport.c.

Add CC_SKIP_INACCS flag to only collect accessible locations so that
there's no need for a custom filter callback or of collecting spots
that will always be rejected when put to use.  Caller needs to check
Passes_walls/passes_walls() to decide whether that is suitable.

Merge some of the old safe_teleds() with the new, making it try
randomly 40 times before collecting coordinates for an exhaustive
selection.  Prior to the recent change which added collect_coords()
it was trying 400 times and giving up if that didn't find a good spot.

Start using collect_coords() for rloc() as well as for safe_teleds().
Only try to pick a spot randomly 50 times now instead of 1000.  If
those all fail, it does an exhaustive search of a randomized list of
candidates instead of old left-to-right, top-to-bottom map traversal.
Has not had nearly as much testing as safe_teleds() underwent.

rloc() was explicilty ignoring map column 1 for some reason.  Unlike
reserved column 0, column 1 is part of every level and should be
considered for monster teleport destination even though most levels
don't utilize it.
2023-05-17 00:33:54 -07: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
2023-04-22 16:10:37 -07:00
2023-03-04 11:02:06 +02:00
2022-06-30 23:48:18 -04:00
2023-05-11 23:44:40 -04:00
2023-03-01 14:00:29 +02:00
2023-03-16 22:27:01 -04:00
2021-01-26 21:06:16 -05:00
2023-03-01 14:00:29 +02:00
2023-05-04 06:02:23 -07:00
2023-05-17 00:33:54 -07:00
2022-08-23 23:27:21 +03:00
2023-05-17 00:33:54 -07: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
2023-02-25 07:02:19 -08:00
2023-04-22 11:13:53 -04:00
2023-03-16 22:27:01 -04:00
2023-01-12 14:54:05 -08:00
2023-04-29 02:18:29 -07:00
2023-04-29 02:18:29 -07:00
2023-04-22 11:13:53 -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-05-14 03:03:04 -07:00
2023-02-28 16:15:56 -05:00
2022-07-23 23:11:13 -07:00
2023-02-25 18:05:09 +02:00
2022-11-29 21:53:21 -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-11-29 21:53:21 -05:00
2022-06-30 23:48:18 -04:00
2023-04-21 13:46:50 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2023-04-11 14:21:06 +03:00
2023-05-08 15:21:03 -07:00