]> granicus.if.org Git - nethack/commitdiff
dipping acid in a fountain
authorcohrs <cohrs>
Wed, 28 Jan 2004 17:49:21 +0000 (17:49 +0000)
committercohrs <cohrs>
Wed, 28 Jan 2004 17:49:21 +0000 (17:49 +0000)
<Someone> reported that dipping acid in a fountain did not always destroy
the acid.  It might be best to have get_wet call useup in this case, but
that would require more work.

doc/fixes34.4
src/fountain.c

index 6cec3d4119c4c1bbc2e5f7d8d74cb20488d25fba..d63b4567ab1a29ae7c7b12b177aeaa24c1258421 100644 (file)
@@ -18,6 +18,7 @@ grammar of messages regarding eating artifacts
 avoid a message about an invisible monster looking much better
 player polymorphed as a xorn could not pick up items in pits
 don't display "turns to flee" message for a mimicing mimic
+dipping acid in a fountain could cause an explosion but not destroy the potion
 
 
 Platform- and/or Interface-Specific Fixes
index 6cc8c1a5dd2ffd62b2ab104672d32e38f0ee1bc4..e585a3450f739534615d44cb58969ab610b0c11f 100644 (file)
@@ -391,13 +391,12 @@ register struct obj *obj;
                if(in_town(u.ux, u.uy))
                    (void) angry_guards(FALSE);
                return;
-       } else if (get_wet(obj) && !rn2(2))
+       } else if (get_wet(obj)) {
+           if (obj->otyp == POT_ACID) { /* Acid and water don't mix */
+               useup(obj);
+               return;
+           } else if (!rn2(2))         /* no further effect */
                return;
-
-       /* Acid and water don't mix */
-       if (obj->otyp == POT_ACID) {
-           useup(obj);
-           return;
        }
 
        switch (rnd(30)) {