pets getting "stuck" trying to reach inaccessible objects

Incorporate a slightly modified version of a patch submitted by <Someone> back in June.  The basic problem, which I noticed again this past
weekend, is that pets with a high apport value can still try to get to
objects when there's no path to the object.  The patch extends the
can_reach_food function to be used for any object, renaming it to
can_reach_location, and adds a could_reach_item function for doing point
checks.  This also removes any chance of a pet dragon, for example, eating
something underwater.
This commit is contained in:
cohrs
2003-10-21 17:16:50 +00:00
parent 47e1a6873a
commit 32234b1da4
2 changed files with 32 additions and 17 deletions

View File

@@ -65,6 +65,7 @@ traveling while standing on a trap would sometime step in the wrong direction
avoid traveling into water/lava, using usual running rules
unchanging iron golem would still rehumanize in a rust trap
fix an impossible rndmonst: bad `mndx' bug
pets should not try to go after objects that they can't reach
Platform- and/or Interface-Specific Fixes