egg breaking

This fixes beta bug 2012.
This commit is contained in:
arromdee
2002-01-28 02:24:02 +00:00
parent 00cfa4a9f8
commit 1b08077c93

View 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);