Files
nethack/include
Michael Meyer 742216540c Check bones data directly for deja vu messages
After modifications to amnesia, `deja vu' messages are now displayed
upon entering a level containing bones of a previous character of the
current player. This test is done simply by checking for a ghost on the
level that shares a name with the current character.

However, since ghosts generated in other circumstances (such as in the
Valley of the Dead and other special levels) can have names pulled
randomly from the high score list, etc, this message can be displayed on
non-bones levels where a ghost has been generated with the character's
name. Additionally, when a bones pile doesn't include a ghost (such as
when the character in question was slimed, killed by a wraith, etc), the
`deja vu' message will not be displayed when it should be. This is all
described in in NetHack/NetHack#322.

This commit changes the method of testing for `familiarity' by adding a
function to iterate through any bones data for the current level,
searching for a match to the hero's name.

Should fix NetHack/NetHack#322.
2020-07-13 01:06:48 -04:00
..
2018-11-11 10:29:52 -05:00
2019-11-27 09:53:40 -08:00
2019-11-06 18:43:20 +02:00
2015-05-25 09:21:15 +09:00
2020-02-26 00:24:37 -05:00
2015-10-17 13:15:46 +03:00
2020-02-12 14:35:37 -08:00
2018-04-25 15:00:13 -04:00
2020-07-05 08:50:13 -04:00
2020-05-03 21:52:41 -04:00
2019-05-12 14:51:26 -04:00
2020-07-05 08:50:13 -04:00
2018-04-25 15:00:13 -04:00
2020-07-05 08:50:13 -04:00
2020-01-29 10:29:37 -05:00
2018-12-15 19:31:42 -05:00
2015-05-25 09:21:15 +09:00
2019-03-06 11:37:52 -08:00
2019-01-28 10:02:08 +01:00
2018-04-25 16:54:50 -04:00
2015-05-25 09:21:15 +09:00
2018-04-25 15:00:13 -04:00
2015-10-17 13:15:46 +03:00
2019-05-11 11:10:00 +03:00
2018-04-25 16:54:50 -04:00
2019-11-27 01:27:11 -05:00
2018-04-25 15:00:13 -04:00
2020-04-18 19:55:09 +03:00
2020-05-03 14:13:08 -07:00
2020-04-06 06:12:25 -07:00
2019-01-13 17:19:39 -08:00
2015-05-25 09:21:31 +09:00
2020-01-12 22:02:36 -08:00
2020-07-06 09:37:26 -04:00
2020-07-05 08:50:13 -04:00
2018-10-21 08:45:55 -04:00
2019-10-08 13:26:39 -07:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-10-17 18:47:31 +03:00
2020-05-09 15:51:38 -07:00
2019-01-11 17:18:48 -08:00
2019-12-18 07:38:59 -05:00
2019-11-29 17:40:58 -05:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2019-07-27 16:12:24 -07:00
2019-04-15 13:48:27 -07:00
2019-01-12 01:09:17 -05:00
2020-05-09 13:07:35 -07:00
2015-05-25 09:21:31 +09:00
2020-02-25 16:18:58 -08:00
2015-05-25 09:21:31 +09:00
2020-04-24 02:40:22 -07:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2020-05-04 09:50:11 -07:00