From 4e29c9b2823347b6dcd92cfa15c57481575881be Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 3 Jun 2024 17:40:50 +0300 Subject: [PATCH] Fix eating non-pyrolisk egg effect --- src/eat.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/eat.c b/src/eat.c index 67a8ae698..8868f89d9 100644 --- a/src/eat.c +++ b/src/eat.c @@ -2031,7 +2031,14 @@ fprefx(struct obj *otmp) useup(otmp); explode(u.ux, u.uy, -11, d(3, 6), 0, EXPL_FIERY); return FALSE; - } + } else if (stale_egg(otmp)) { + pline("Ugh. Rotten egg."); /* perhaps others like it */ + /* increasing existing nausea means that it will take longer + before eventual vomit, but also means that constitution + will be abused more times before illness completes */ + make_vomiting((Vomiting & TIMEOUT) + (long) d(10, 4), TRUE); + } else + goto give_feedback; break; case FOOD_RATION: /* nutrition 800 */ /* 200+800 remains below 1000+1, the satiation threshold */ @@ -2116,12 +2123,6 @@ fprefx(struct obj *otmp) : "Yo' mama"); } #endif - } else if (otmp->otyp == EGG && stale_egg(otmp)) { - pline("Ugh. Rotten egg."); /* perhaps others like it */ - /* increasing existing nausea means that it will take longer - before eventual vomit, but also means that constitution - will be abused more times before illness completes */ - make_vomiting((Vomiting & TIMEOUT) + (long) d(10, 4), TRUE); } else { give_feedback: pline("This %s is %s", singular(otmp, xname),