Files
nethack/include
PatR 8ce81a27ef fix #H7397 - pronoun for unseen shopkeeper
Most shop messages accurately identify the shopkeeper even when he
or she can't be seen, but some also include a pronoun reference that
ended up as "it" or "its" when not seen.  Extend pronoun selection
so that visibility can be ignored:  noit_mhe(mon), noit_mhim(mon),
and noit_mhis(mon).  Note that despite being called noit_foo(),
those will still return "it" if mon is neuter.

"Accurately identify shopkeeper" is misleading if the hero is
hallucinating; a random shopkeeper name is used then.  noit_foo()
yields the pronoun applicable to the actual shopkeeper and might
not match the gender of a hallucinatory name.  That could be fixed
in a couple of ways (add shk_mhe()/shk_mhim()/shk_mhis() and either
pass them the randomly chosen name so that they can figure out the
appropriate gender, or just have them use a random gender whenever
hallucinating) but I don't think that's worth bothering with.

A bunch of shop messages needed noit_foo(); only a couple of those
have actually been tested.  A bunch more were using shkname() at
the beginning of a sentence where Shknam() should be used instead.
(All the existing shk names are already capitalized so there's no
noticeable difference.)

The three places outside shk.c and vault.c which directly use
pronoun_gender() have been successfully tested.
2018-09-24 15:15:04 -07:00
..
2018-09-10 21:13:10 +03:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2016-10-10 16:18:20 +03:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:15 +09:00
2015-10-17 13:15:46 +03:00
2018-04-25 15:00:13 -04:00
2018-05-16 23:06:44 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2018-04-25 15:00:13 -04:00
2018-09-14 17:34:33 -07:00
2015-05-25 09:21:15 +09:00
2018-04-25 16:54:50 -04:00
2018-04-25 15:00:13 -04: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
2018-04-25 15:00:13 -04:00
2015-10-17 13:15:46 +03:00
2015-11-17 02:26:17 -08:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2018-04-25 15:00:13 -04:00
2015-05-25 09:21:31 +09:00
2018-09-22 14:08:28 -04:00
2015-05-25 09:21:31 +09:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2015-05-25 09:21:31 +09:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2017-11-02 13:37:53 +02:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-11-17 02:26:17 -08:00
2017-10-10 21:47:35 +03: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
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2015-05-25 09:21:31 +09:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2018-04-25 15:00:13 -04:00
2015-05-25 09:21:31 +09:00
2018-04-25 15:00:13 -04:00
2015-10-17 18:47:31 +03:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2018-05-12 14:10:52 -04:00
2017-10-10 15:56:18 -07:00
2017-10-13 22:41:43 +03:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00