From 1b08077c93902a3f8de57244db498143edc2c104 Mon Sep 17 00:00:00 2001 From: arromdee Date: Mon, 28 Jan 2002 02:24:02 +0000 Subject: [PATCH] egg breaking This fixes beta bug 2012. --- src/dokick.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dokick.c b/src/dokick.c index 6e76f7777..43673f33e 100644 --- a/src/dokick.c +++ b/src/dokick.c @@ -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);