From: arromdee Date: Sat, 2 Mar 2002 16:18:39 +0000 (+0000) Subject: french fried food (B7010) X-Git-Tag: MOVE2GIT~3095 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4f694986cafc68fe854a3bfcab6759e314d331d;p=nethack french fried food (B7010) This implements the suggestion in beta bug 7010. --- diff --git a/src/eat.c b/src/eat.c index e8acf1125..dde7fab23 100644 --- a/src/eat.c +++ b/src/eat.c @@ -141,6 +141,7 @@ static const struct { const char *txt; int nut; } tintxts[] = { {"boiled", 50}, {"dried", 55}, {"szechuan", 70}, +#define FRENCH_FRIED_TIN 11 {"french fried", 40}, {"sauteed", 95}, {"broiled", 80}, @@ -1027,7 +1028,7 @@ opentin() /* called during each move whilst opening a tin */ if(tintxts[r].nut < 0) make_vomiting((long)rn1(15,10), FALSE); else lesshungry(tintxts[r].nut); - if(r == 0) { /* Deep Fried */ + if(r == 0 || r == FRENCH_FRIED_TIN) { /* Assume !Glib, because you can't open tins when Glib. */ incr_itimeout(&Glib, rnd(15)); pline("Eating deep fried food made your %s very slippery.",