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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user