]> granicus.if.org Git - nethack/commitdiff
egg breaking
authorarromdee <arromdee>
Mon, 28 Jan 2002 02:24:02 +0000 (02:24 +0000)
committerarromdee <arromdee>
Mon, 28 Jan 2002 02:24:02 +0000 (02:24 +0000)
This fixes beta bug 2012.

src/dokick.c

index 6e76f7777a4db927f50963c719384af972bf23bf..43673f33ef3433953d9214e9bf8e4696598f4cc8 100644 (file)
@@ -434,8 +434,10 @@ xchar x, y;
                                if (otmp->otyp == MIRROR)
                                    change_luck(-2);
                                /* eggs laid by you */
+                               /* penalty is -1 per egg, max 5, but it's always
+                                  exactly 1 that breaks */
                                if (otmp->otyp == EGG && otmp->spe && otmp->corpsenm >= LOW_PM)
-                                   change_luck(-5);
+                                   change_luck(-1);
                                You_hear("a muffled %s.",result);
                                if(costly) loss += stolen_value(otmp, x, y,
                                            (boolean)shkp->mpeaceful, TRUE);