if a grave is created with the corpse lying on top (bones), don't find a
corpse or release a zombie or mummy when digging it up
kicking a headstone might summon a ghoul
+eating garlic makes nearby monsters flee
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
static void start_tin(struct obj *);
static int eatcorpse(struct obj *);
static void start_eating(struct obj *, boolean);
+static void garlic_breath(struct monst *);
static void fprefx(struct obj *);
static void fpostfx(struct obj *);
static int bite(void);
return (go.occupation == eatfood && glob == gc.context.victual.piece);
}
+/* scare nearby monster when hero eats garlic */
+static void
+garlic_breath(struct monst *mtmp)
+{
+ if (olfaction(mtmp->data) && distu(mtmp->mx, mtmp->my) < 7)
+ monflee(mtmp, 0, FALSE, FALSE);
+}
+
/*
* Called on "first bite" of (non-corpse) food, after touchfood() has
* marked it 'partly eaten'. Used for non-rotten non-tin non-corpse food.
make_vomiting((long) rn1(gc.context.victual.reqtime, 5), FALSE);
break;
}
+ iter_mons(garlic_breath);
/*FALLTHRU*/
default:
if (otmp->otyp == SLIME_MOLD && !otmp->cursed