Improved auto move to item intention.
This commit is contained in:
@ -90,9 +90,12 @@ public class AutoPlayTaskManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Move to item.
|
// 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;
|
continue PLAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,9 +90,12 @@ public class AutoPlayTaskManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Move to item.
|
// 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;
|
continue PLAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user