diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 3ff27b35a..0a34d1ec1 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1566,7 +1566,9 @@ extend farlook's ", asleep" to ", can't move (paralyzed or sleeping that is waiting for hero to approach add body part terminology for spiders; enhance it for cockatrices context sensitive item usage menu from inventory, aka "item actions" - +pets are more likely to follow you closely if you are carrying something they + really like to eat; behave as if you are carrying such whenever you + are standing on stairs so that pets will try harder to come to you Platform- and/or Interface-Specific New Features ------------------------------------------------ diff --git a/src/dogmove.c b/src/dogmove.c index 4a783c95e..f09b006a1 100644 --- a/src/dogmove.c +++ b/src/dogmove.c @@ -593,13 +593,19 @@ dog_goal(register struct monst *mtmp, struct edog *edog, || (dog_has_minvent && rn2(edog->apport))) appr = 1; } - /* if you have dog food it'll follow you more closely */ - if (appr == 0) - for (obj = g.invent; obj; obj = obj->nobj) - if (dogfood(mtmp, obj) == DOGFOOD) { - appr = 1; - break; - } + /* if you have dog food it'll follow you more closely; if you are + on stairs (or ladder), it will behave as if you have dog food */ + if (appr == 0) { + if (On_stairs(u.ux, u.uy)) { + appr = 1; + } else { + for (obj = g.invent; obj; obj = obj->nobj) + if (dogfood(mtmp, obj) == DOGFOOD) { + appr = 1; + break; + } + } + } } else appr = 1; /* gtyp != UNDEF */ if (mtmp->mconf)