muffin v7.38.8
This commit is contained in:
parent
5e2d8f648b
commit
3e10cbbbf2
51 changed files with 2585 additions and 1972 deletions
|
|
@ -17,7 +17,7 @@ namespace Questionable.Controller.Steps.Shared;
|
|||
|
||||
internal static class WaitAtEnd
|
||||
{
|
||||
internal sealed class Factory(IClientState clientState, ICondition condition, TerritoryData territoryData, AutoDutyIpc autoDutyIpc, BossModIpc bossModIpc) : ITaskFactory
|
||||
internal sealed class Factory(IClientState clientState, IObjectTable objectTable, ICondition condition, TerritoryData territoryData, AutoDutyIpc autoDutyIpc, BossModIpc bossModIpc) : ITaskFactory
|
||||
{
|
||||
public IEnumerable<ITask> CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
|
|
@ -129,10 +129,10 @@ internal static class WaitAtEnd
|
|||
}
|
||||
else
|
||||
{
|
||||
Vector3 lastPosition = step.Position ?? clientState.LocalPlayer?.Position ?? Vector3.Zero;
|
||||
Vector3 lastPosition = step.Position ?? objectTable[0]?.Position ?? Vector3.Zero;
|
||||
task = new WaitCondition.Task(delegate
|
||||
{
|
||||
Vector3? vector = clientState.LocalPlayer?.Position;
|
||||
Vector3? vector = objectTable[0]?.Position;
|
||||
return vector.HasValue && (lastPosition - vector.Value).Length() > 2f;
|
||||
}, "Wait(tp away from " + lastPosition.ToString("G", CultureInfo.InvariantCulture) + ")");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue