B01002 - tame dwarf won't eat
<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.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
/* 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);
|
||||
@@ -1346,7 +1347,8 @@ register struct obj *obj;
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user