This commit is contained in:
Leijurv 2018-08-13 16:56:09 -07:00
parent bc9f76d1c7
commit 25b0348916
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
4 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ public class PathingBehavior extends Behavior {
// and this path dosen't get us all the way there // and this path dosen't get us all the way there
return; return;
} }
if (current.getPath().ticksRemainingFrom(current.getPosition()) < 200) { if (current.getPath().ticksRemainingFrom(current.getPosition()) < 150) {
// and this path has 5 seconds or less left // and this path has 5 seconds or less left
displayChatMessageRaw("Path almost over. Planning ahead..."); displayChatMessageRaw("Path almost over. Planning ahead...");
findPathInNewThread(current.getPath().getDest(), false); findPathInNewThread(current.getPath().getDest(), false);

View File

@ -57,7 +57,7 @@ public abstract class AbstractNodeCostSearch implements IPathFinder {
* *
* @see <a href="https://docs.google.com/document/d/1WVHHXKXFdCR1Oz__KtK8sFqyvSwJN_H4lftkHFgmzlc/edit"></a> * @see <a href="https://docs.google.com/document/d/1WVHHXKXFdCR1Oz__KtK8sFqyvSwJN_H4lftkHFgmzlc/edit"></a>
*/ */
protected static final double[] COEFFICIENTS = {1, 1.5, 2, 2.5, 3, 4, 5, 10}; protected static final double[] COEFFICIENTS = {1.25, 1.5, 2, 2.5, 3, 4, 5, 10}; // big TODO tune
/** /**
* If a path goes less than 5 blocks and doesn't make it to its goal, it's not worth considering. * If a path goes less than 5 blocks and doesn't make it to its goal, it's not worth considering.
*/ */

View File

@ -98,7 +98,7 @@ public class GoalXZ implements Goal {
diagonal = z; diagonal = z;
} }
diagonal *= SQRT_2; diagonal *= SQRT_2;
return (diagonal + straight) * 4; return (diagonal + straight) * 4; // big TODO tune
} }
public static GoalXZ fromDirection(Vec3d origin, float yaw, double distance) { public static GoalXZ fromDirection(Vec3d origin, float yaw, double distance) {

View File

@ -22,7 +22,7 @@ public interface ActionCosts extends ActionCostsButOnlyTheOnesThatMakeMickeyDieI
/** /**
* These costs are measured roughly in ticks btw * These costs are measured roughly in ticks btw
*/ */
double WALK_ONE_BLOCK_COST = 20 / 4.317; // // 4.633 double WALK_ONE_BLOCK_COST = 20 / 4.317; // 4.633
double WALK_ONE_IN_WATER_COST = 20 / 2.2; double WALK_ONE_IN_WATER_COST = 20 / 2.2;
double JUMP_ONE_BLOCK_COST = 5.72854;//see below calculation for fall. 1.25 blocks double JUMP_ONE_BLOCK_COST = 5.72854;//see below calculation for fall. 1.25 blocks
double LADDER_UP_ONE_COST = 20 / 2.35; double LADDER_UP_ONE_COST = 20 / 2.35;