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.
This commit is contained in:
@@ -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)))) {
|
||||
|
||||
Reference in New Issue
Block a user