'Called regularly when in hunting mode. In hunting mode the mob
scans adjacent rooms for enemies and moves towards them to
attack if possible.'

def do_hunting(self, *args, **kwargs):

    if ((random.random() < 0.01) and self.db.irregular_msgs):
        self.location.msg_contents(random.choice(self.db.irregular_msgs))
    if self.db.aggressive:
        target = self._find_target(self.location)
        if target:
            self.start_attacking()
            return
    exits = [exi for exi in self.location.exits if exi.access(self, 'traverse')]
    if exits:
        for exit in exits:
            target = self._find_target(exit.destination)
            if target:
                self.move_to(exit.destination)
                return
        self.start_patrolling()
    else:
        self.move_to(self.home)
