Improved auto move to item intention.
This commit is contained in:
parent
2f93d40d50
commit
17a7c9f60b
@ -90,9 +90,12 @@ public class AutoPlayTaskManager
|
||||
}
|
||||
|
||||
// Move to item.
|
||||
if (player.calculateDistance2D(droppedItem) > 50)
|
||||
if (player.calculateDistance2D(droppedItem) > 70)
|
||||
{
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, droppedItem);
|
||||
if (!player.isMoving())
|
||||
{
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, droppedItem);
|
||||
}
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
|
@ -90,9 +90,12 @@ public class AutoPlayTaskManager
|
||||
}
|
||||
|
||||
// Move to item.
|
||||
if (player.calculateDistance2D(droppedItem) > 50)
|
||||
if (player.calculateDistance2D(droppedItem) > 70)
|
||||
{
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, droppedItem);
|
||||
if (!player.isMoving())
|
||||
{
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, droppedItem);
|
||||
}
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user