]> granicus.if.org Git - nethack/commitdiff
Sometimes put rings dropped into sinks in the pipes
authorPasi Kallinen <paxed@alt.org>
Wed, 25 Oct 2017 11:21:07 +0000 (14:21 +0300)
committerPasi Kallinen <paxed@alt.org>
Wed, 25 Oct 2017 11:21:10 +0000 (14:21 +0300)
aka bury the ring under the sink. Idea from Fredrik Ljungdahl.

doc/fixes36.1
src/do.c

index ccde572fd66ced9aac6f6cd06dd6b3d3721d4213..863bd0798a6b25d5a30b92fa79ed5bbd81a7be4b 100644 (file)
@@ -462,6 +462,7 @@ when poly'd into a giant and moving onto a boulder's spot, you could get "you
        it up", "you are carrying too much stuff to pick up another boulder"
 improve #adjust command's handling of the '$' and '#' inventory slots
 prevent #adjust from allowing anything to be moved into the special '-' slot
+sometimes rings dropped into sinks can be found in the pipes
 
 
 Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
index 28d74508217c116fe41b325c6a4fe1f4c7e4032c..352d26e997b6d6285d32d6a625c16633153544db 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -501,6 +501,12 @@ register struct obj *obj;
         pline_The("sink backs up, leaving %s.", doname(obj));
         obj->in_use = FALSE;
         dropx(obj);
+    } else if (!rn2(5)) {
+        freeinv(obj);
+        obj->in_use = FALSE;
+        obj->ox = u.ux;
+        obj->oy = u.uy;
+        add_to_buried(obj);
     } else
         useup(obj);
 }