fix issue #1061 - dipping container into water

Issue reported by loggersviii:  dipping a container into an uncursed
potion of water mentions water getting into the container.  That
happens even when that type of potion hasn't been discovered yet.

Make POT_WATER become discovered if this occurs.  Doesn't apply when
hallucinating where a random liquid is mentioned instead of water.

Fixes #1061
This commit is contained in:
PatR
2023-06-15 02:29:51 -07:00
parent 7d052bafb0
commit 1bd966f826
5 changed files with 20 additions and 4 deletions

View File

@@ -551,6 +551,8 @@ const struct instance_globals_m g_init_m = {
UNDEFINED_VALUES, /* mapped_menu_op */
/* region.c */
0, /* max_regions */
/* trap.c */
FALSE, /* mentioned_water */
TRUE, /* havestate*/
IVMAGIC /* m_magic to validate that structure layout has been preserved */
};