french fried food (B7010)
authorarromdee <arromdee>
Sat, 2 Mar 2002 16:18:39 +0000 (16:18 +0000)
committerarromdee <arromdee>
Sat, 2 Mar 2002 16:18:39 +0000 (16:18 +0000)
This implements the suggestion in beta bug 7010.

src/eat.c

index e8acf1125da42fc9c53f228edeb375f4b7196533..dde7fab238247b469fec5e04fcc373041a0f8f62 100644 (file)
--- 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.",