<Someone> reported that a tame dwarf wouldn't eat food tossed at it.
He also reported that it wouldn't eat off the ground, which I couldn't
reproduce nor see in a problem in the code. The code in thitmonst didn't
allow for sharing food with non-domestic, already tame monsters.
charge correctly when breaking multiple objects with the same zap, avoids
a dopay: not to shopkeeper impossible
clean up funny lighting on the healer locate level
+allow all tame monsters that eat to consider food thrown to them
Platform- and/or Interface-Specific Fixes
/* Contains code for 't' (throw) */
#include "hack.h"
+#include "edog.h"
STATIC_DCL int FDECL(throw_obj, (struct obj *,int));
STATIC_DCL void NDECL(autoquiver);
potionhit(mon, obj, TRUE);
return 1;
- } else if (befriend_with_obj(mon->data, obj)) {
+ } else if (befriend_with_obj(mon->data, obj) ||
+ (mon->mtame && dogfood(mon, obj) <= ACCFOOD)) {
if (tamedog(mon, obj))
return 1; /* obj is gone */
else {