From 2b7b2af9eb1f5dcefa601e6813fe5fd308b1067b Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Sat, 6 Jan 2018 00:12:49 +0000 Subject: [PATCH] Give feedback when oilskin sacks get wet We can identify them by elimination in this case (they're the only bag-like container that doesn't produce a message, the others all do), so it's probably best to be more explicit as to what's going on (for user interfaces and TDTTOE purposes). --- src/trap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/trap.c b/src/trap.c index 401d5a7fc..27914fba6 100644 --- a/src/trap.c +++ b/src/trap.c @@ -3431,6 +3431,11 @@ boolean force; water_damage_chain(obj->cobj, FALSE); return ER_NOTHING; + } else if (obj->otyp == OILSKIN_SACK) { + if (carried(obj)) + pline("Some water slides right off your %s.", ostr); + makeknown(OILSKIN_SACK); + return ER_NOTHING; } else if (!force && (Luck + 5) > rn2(20)) { /* chance per item of sustaining damage: * max luck: 10%