Files
nethack/include
nhmall 2a48859de2 include the PM_ index in mons (permonst)
This is useful for debugging and it allows the index
to be used directly instead of calculated in a
monsndx() function, which has been removed.

I left monsndx() in as a simple short-hand macro for the value
and didn't change the use cases, the reasoning being that this:
    monsndx(mon->data)
is arguably a little easier on the eyes than:
    mon->data->pmidx

LOW_PM, NON_PM, SPECIAL_PM have been included in the 'enum monnums'
now, instead of as individual macro definitions.

I chose to add the pmidx field as an instance of the enum declaration,
because that has very advantageous results in some debuggers, where it is
then shown as:
    pmidx PM_GRAND_MASTER (349) monnums
instead of the less-informative:
    pmidx 349 int

Adding the element count to the extern declaration for mons from:
    'extern struct permonst *mons[];'
to the more specific declaration to that in src/monst.c:
    'extern struct permonst *mons[NUMMONS + 1];'
then allows navigation through the mons array in one of the debuggers.
2023-11-23 12:22:47 -05: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-09-16 20:16:51 -04:00
2023-04-22 16:10:37 -07:00
2023-05-22 20:50:35 -04:00
2023-03-04 11:02:06 +02:00
2022-06-30 23:48:18 -04:00
2023-11-21 14:59:08 -08:00
2023-11-22 23:58:13 -08:00
2023-03-01 14:00:29 +02:00
2023-11-22 16:01:58 -05:00
2021-01-26 21:06:16 -05:00
2023-05-04 06:02:23 -07:00
2023-05-22 14:43:01 -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-11-22 23:58:13 -08:00
2023-06-14 15:54:04 -07:00
2023-06-14 15:54:04 -07:00
2023-11-22 23:58:13 -08:00
2023-11-14 21:33:09 -08:00
2023-11-22 16:01:58 -05: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-10-16 09:11:05 -04:00
2022-07-23 23:11:13 -07:00
2023-08-28 16:17:41 -04:00
2023-02-25 18:05:09 +02:00
2022-11-29 21:53:21 -05:00
2023-11-22 16:01:58 -05:00
2023-11-22 16:01:58 -05:00
2020-08-12 16:15:28 -07:00
2022-10-26 14:21:23 -04:00
2023-11-22 16:01:58 -05:00
2022-11-29 21:53:21 -05:00
2023-11-22 16:01:58 -05:00
2022-06-30 23:48:18 -04:00
2023-11-22 16:01:58 -05:00
2023-11-22 16:01:58 -05:00
2023-11-22 16:01:58 -05:00
2023-11-20 00:47:12 -08:00
2023-11-22 16:01:58 -05:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2023-07-30 14:08:30 -07:00
2023-05-08 15:21:03 -07:00