From: Pasi Kallinen Date: Wed, 25 Oct 2017 11:21:07 +0000 (+0300) Subject: Sometimes put rings dropped into sinks in the pipes X-Git-Tag: NetHack-3.6.1_RC01~236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=279050ba84b46ce3df70cb371191a9b5eec2c86a;p=nethack Sometimes put rings dropped into sinks in the pipes aka bury the ring under the sink. Idea from Fredrik Ljungdahl. --- diff --git a/doc/fixes36.1 b/doc/fixes36.1 index ccde572fd..863bd0798 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -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 diff --git a/src/do.c b/src/do.c index 28d745082..352d26e99 100644 --- 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); }