]> granicus.if.org Git - nethack/commitdiff
Give feedback when oilskin sacks get wet
authorAlex Smith <ais523@nethack4.org>
Sat, 6 Jan 2018 00:12:49 +0000 (00:12 +0000)
committerAlex Smith <ais523@nethack4.org>
Sat, 6 Jan 2018 00:38:05 +0000 (00:38 +0000)
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

index 401d5a7fcdead70c0a82396d0b989b622ddf7b68..27914fba6a6836ce1637f8511e78c2d6aff0c83b 100644 (file)
@@ -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%