final Tile randTile = new Tile(loc.getX(), loc.getY(), loc.getPlane());
randTile.derive(Random.nextInt(-1, 2), Random.nextInt(-1, 2));
final LocalPath localPath = Walking.findPath(randTile.canReach() ? randTile : loc);
localPath.getNext();
final Tile[] tilePath = truncatePath(localPath.getTilePath().toArray(), 3);
(new TilePath(tilePath)).traverse();
}
Camera.turnTo(loc.derive(Random.nextInt(-2, 5), Random.nextInt(-2, 5)));
} else {
synchronized (mouseLock) {
if (!entity.interact(action, option)) {
final LocalPath localPath = Walking.findPath(loc);
localPath.getNext();
final Tile[] tilePath = truncatePath(localPath.getTilePath().toArray(), 3);
(new TilePath(tilePath)).traverse();
}
}
wiggleMouse();
Time.sleep(Random.nextInt(1000, 1500));