Improve messages for oilskin sack protection versus water
The existing messages made sense for brief dips into water, but didn't make sense when using an oilskin sack for an extended period underwater (and also assumed that the player was able to see the sack). This commit changes the message to make sense (and to be less spamy) if the hero enters water and remains there, and prevents oilskin sacks self-IDing if the hero is blind and thus can't see the water.
This commit is contained in:
@@ -4663,8 +4663,8 @@ water_damage(
|
||||
water_damage_chain(obj->cobj, FALSE);
|
||||
return ER_DAMAGED; /* contents were damaged */
|
||||
} else if (Waterproof_container(obj)) {
|
||||
if (in_invent) {
|
||||
pline_The("%s slides right off your %s.", hliquid("water"), ostr);
|
||||
if (in_invent && !Blind && !Underwater) {
|
||||
pline_The("%s cannot get into your %s.", hliquid("water"), ostr);
|
||||
gm.mentioned_water = !Hallucination;
|
||||
makeknown(obj->otyp); /* if an oilskin sack, discover it; doesn't
|
||||
* matter for chest, large box, ice box */
|
||||
|
||||
Reference in New Issue
Block a user