From 263e48c6f70fad9b75c90d6834ba7cb6e50ee086 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Mon, 28 Nov 2022 15:42:19 -0500 Subject: [PATCH] Tell player when water damage removes grease This was totally silent, which -- at least for me -- has led to quite a few cases of believing my bag or cloak is still greased when it actually wore off the last time I took a dip. I think telling the player that the grease has worn off would be helpful, and is consistent with other types of water damage. The message is printed even if you are blind, since that seems to be true of all the other messages in water_damage(). I am not sure if that makes complete sense (especially for ones like a scroll fading -- some like water getting into a bag could be sensed by touch) but I didn't change anything there. --- src/trap.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/trap.c b/src/trap.c index b75b2a3d8..22ccb2af2 100644 --- a/src/trap.c +++ b/src/trap.c @@ -4146,10 +4146,13 @@ water_damage( wet_a_towel(obj, -rnd(7 - obj->spe), TRUE); return ER_NOTHING; } else if (obj->greased) { - if (!rn2(2)) + if (!rn2(2)) { obj->greased = 0; - if (carried(obj)) - update_inventory(); + if (carried(obj)) { + pline_The("grease on %s washes off.", yname(obj)); + update_inventory(); + } + } return ER_GREASED; } else if (Is_container(obj) && (!Waterproof_container(obj) || (obj->cursed && !rn2(3)))) {