494 lines
30 KiB
C#
494 lines
30 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using Dalamud.Game.ClientState.Conditions;
|
|
using Dalamud.Game.ClientState.Objects.SubKinds;
|
|
using Dalamud.Game.ClientState.Objects.Types;
|
|
using Dalamud.Plugin.Services;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Controller.GameUi;
|
|
using Questionable.Functions;
|
|
using SmartNav;
|
|
|
|
namespace Questionable.Controller.Steps.Shared;
|
|
|
|
internal static class WarpInteract
|
|
{
|
|
internal sealed record Task(uint NpcDataId, uint WarpRowId, ushort SourceTerritoryId, ushort DestTerritoryId) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202B_206A_206A_202D_206C_206E_202A_202B_200F_206C_202E_206C_206F_206C_200E_206E_200B_202D_206E_202E_202A_202D_202A_202A_206D_202B_200E_202A_200B_200D_202A_206F_202C_202B_200C_200E_200B_206B_206B_200D_202E(typeof(Task).TypeHandle);
|
|
}
|
|
}
|
|
|
|
public bool ShouldRedoOnInterrupt()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool ITask.ShouldRedoOnInterrupt()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in ShouldRedoOnInterrupt
|
|
return this.ShouldRedoOnInterrupt();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(25, 4);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-1291326579));
|
|
defaultInterpolatedStringHandler.AppendFormatted(NpcDataId);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(1494383823));
|
|
defaultInterpolatedStringHandler.AppendFormatted(WarpRowId);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(1403263077));
|
|
defaultInterpolatedStringHandler.AppendFormatted(SourceTerritoryId);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-1089831099));
|
|
defaultInterpolatedStringHandler.AppendFormatted(DestTerritoryId);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(1735737295));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_202E_202B_202C_200C_200E_202D_202D_200E_206D_206A_206B_202A_206F_202A_200B_202C_206C_200D_200B_200D_206D_206F_206C_200B_206F_202C_202B_206B_206F_200E_206A_200B_206B_202D_202B_206C_206F_202D_200F_200E_202E();
|
|
_200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(builder, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(143765661));
|
|
_200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(builder, NpcDataId.ToString());
|
|
_200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(builder, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(388265329));
|
|
_200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(builder, WarpRowId.ToString());
|
|
_200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(builder, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-1265544613));
|
|
_200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(builder, SourceTerritoryId.ToString());
|
|
_200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(builder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-1798905925));
|
|
_200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(builder, DestTerritoryId.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(Task? other)
|
|
{
|
|
int num = (((object)this == other) ? (-962767338) : (-962767343));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -962767344;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
num = ((!EqualityComparer<ushort>.Default.Equals(SourceTerritoryId, other.SourceTerritoryId)) ? (-962767344) : (-962767337));
|
|
break;
|
|
case 1:
|
|
num = (((object)other == null) ? (-962767344) : (-962767340));
|
|
break;
|
|
case 3:
|
|
num = -962767343;
|
|
break;
|
|
case 5:
|
|
num = ((!EqualityComparer<uint>.Default.Equals(NpcDataId, other.NpcDataId)) ? (-962767344) : (-962767336));
|
|
break;
|
|
case 7:
|
|
return EqualityComparer<ushort>.Default.Equals(DestTerritoryId, other.DestTerritoryId);
|
|
case 6:
|
|
return true;
|
|
case 0:
|
|
return false;
|
|
case 4:
|
|
num = ((!_202C_202D_200E_200D_200E_202B_202E_202C_206A_200D_200E_206A_202D_202E_200D_206A_206F_206F_202A_206D_200F_206E_200C_202E_202E_202B_206B_200C_206A_200D_202C_206F_206F_206A_202D_202B_200C_202C_202E_206E_202E(EqualityContract, other.EqualityContract)) ? (-962767344) : (-962767339));
|
|
break;
|
|
case 8:
|
|
num = ((!EqualityComparer<uint>.Default.Equals(WarpRowId, other.WarpRowId)) ? (-962767344) : (-962767342));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<Task>.Equals(Task? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202B_206A_206A_202D_206C_206E_202A_202B_200F_206C_202E_206C_206F_206C_200E_206E_200B_202D_206E_202E_202A_202D_202A_202A_206D_202B_200E_202A_200B_200D_202A_206F_202C_202B_200C_200E_200B_206B_206B_200D_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _202E_202B_202C_200C_200E_202D_202D_200E_206D_206A_206B_202A_206F_202A_200B_202C_206C_200D_200B_200D_206D_206F_206C_200B_206F_202C_202B_206B_206F_200E_206A_200B_206B_202D_202B_206C_206F_202D_200F_200E_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _200F_202A_200D_206E_200F_206A_200E_206E_206B_202B_202D_206E_206B_202A_202E_202C_206D_206C_200C_202E_200C_206A_202E_206D_206A_206F_200B_206D_200C_202A_206A_200C_202B_202B_200E_206A_200B_202A_206D_200F_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _202C_202D_200E_200D_200E_202B_202E_202C_206A_200D_200E_206A_202D_202E_200D_206A_206F_206F_202A_206D_200F_206E_200C_202E_202E_202B_206B_200C_206A_200D_202C_206F_206F_206A_202D_202B_200C_202C_202E_206E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class DoWarpInteract(GameFunctions gameFunctions, InteractionUiController interactionUiController, ICondition condition, IClientState clientState, IObjectTable objectTable, WarpFailureTracker warpFailureTracker, ILogger<DoWarpInteract> logger) : TaskExecutor<Task>(), IConditionChangeAware, ITaskExecutor, IStoppableTaskExecutor
|
|
{
|
|
private enum EWarpPhase
|
|
{
|
|
None,
|
|
Unmounting,
|
|
Interacting,
|
|
WaitingForSettle
|
|
}
|
|
|
|
private EWarpPhase _phase;
|
|
|
|
private Vector3 _startPosition;
|
|
|
|
private long _interactingStartedAt;
|
|
|
|
private long _settleAt;
|
|
|
|
private bool _abortToReroute;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
_phase = EWarpPhase.None;
|
|
_abortToReroute = false;
|
|
IPlayerCharacter playerCharacter = _206A_206F_200C_200E_202B_200F_200D_206F_206A_206F_200F_202E_202E_206D_202C_206B_206C_200D_200E_206B_202C_200D_200D_202A_202A_206E_206C_200E_206B_206A_202A_206F_202A_206A_200E_206B_206C_200D_202E_202D_202E(objectTable);
|
|
_startPosition = ((playerCharacter != null) ? _202C_200F_202B_202E_202A_206C_206B_206C_202D_202B_206A_206E_200B_206B_202A_206E_206E_202D_202D_206D_200C_202B_200B_200F_200D_206A_202B_200C_206E_200B_202D_206C_206B_200E_206C_206E_206F_202D_202E_206A_202E((IGameObject)playerCharacter) : Vector3.Zero);
|
|
_200F_200F_206B_200C_202A_200C_200E_200D_200E_206C_206B_200E_206B_206B_206B_206E_206C_206F_206E_206C_200D_206E_206B_202B_206D_200F_202E_202B_200C_200E_206C_202E_200C_206F_200F_200E_202C_206A_206B_202A_202E(warpFailureTracker, base.Task.WarpRowId);
|
|
int num = ((!_200F_200B_200F_200F_200C_206B_200D_202C_206D_200D_206F_202D_200E_200D_206E_202E_202A_200F_200F_202E_202A_200E_200F_200C_206B_206B_202A_202E_200D_206E_202D_202E_206B_202C_206D_200E_202C_200C_200C_202C_202E(warpFailureTracker, base.Task.WarpRowId)) ? (-1825905291) : (-1825905296));
|
|
IGameObject gameObject = default(IGameObject);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1825905289;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = -1825905296;
|
|
break;
|
|
case 7:
|
|
_202C_202E_202D_202D_200B_200F_202B_202C_202D_200B_200E_206C_206F_206C_200F_206B_202D_206D_202E_200E_202B_200F_202D_202C_202B_200E_202B_206D_202B_200C_202E_206E_206F_200C_206E_200F_206F_202B_200C_202A_202E((ILogger)logger, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(1100961719), new object[1] { base.Task.WarpRowId });
|
|
_abortToReroute = true;
|
|
return true;
|
|
case 6:
|
|
num = ((!_206B_200F_200D_202A_206B_206E_206D_200D_206F_206D_202D_206E_206C_202A_200C_202D_206D_200B_200E_206E_202B_202A_202C_206E_200F_202C_200D_206B_202E_202C_200D_206B_206D_202C_202B_206C_200D_202D_202D_200E_202E(condition, ConditionFlag.Mounted)) ? (-1825905292) : (-1825905281));
|
|
break;
|
|
case 4:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(445312876), new object[1] { base.Task.NpcDataId });
|
|
_phase = EWarpPhase.Interacting;
|
|
_interactingStartedAt = _200E_200E_202E_202E_206C_206D_202D_206B_200C_206D_200C_200C_202D_206C_200F_202A_202D_206D_202D_200C_202A_206A_202D_202A_206A_206B_200C_206F_206A_206B_200B_200B_200D_202C_206C_206B_200E_200D_202A_200E_202E();
|
|
num = -1825905294;
|
|
break;
|
|
case 1:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-514363301), new object[1] { base.Task.NpcDataId });
|
|
return true;
|
|
case 2:
|
|
interactionUiController.SmartNavWarpRowId = base.Task.WarpRowId;
|
|
interactionUiController.SmartNavDestTerritoryId = base.Task.DestTerritoryId;
|
|
gameObject = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
|
num = ((gameObject != null) ? (-1825905295) : (-1825905290));
|
|
break;
|
|
case 3:
|
|
num = ((!gameFunctions.InteractWith(gameObject)) ? (-1825905294) : (-1825905293));
|
|
break;
|
|
case 5:
|
|
return true;
|
|
case 8:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-1872670698), Array.Empty<object>());
|
|
gameFunctions.Unmount();
|
|
_phase = EWarpPhase.Unmounting;
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
int num = ((!_abortToReroute) ? 1701566734 : 1701566735);
|
|
IGameObject gameObject = default(IGameObject);
|
|
IGameObject gameObject2 = default(IGameObject);
|
|
IPlayerCharacter playerCharacter2 = default(IPlayerCharacter);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1701566722;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 28:
|
|
num = 1701566735;
|
|
break;
|
|
case 15:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(262599977), new object[1] { base.Task.NpcDataId });
|
|
_phase = EWarpPhase.Interacting;
|
|
_interactingStartedAt = _200E_200E_202E_202E_206C_206D_202D_206B_200C_206D_200C_200C_202D_206C_200F_202A_202D_206D_202D_200C_202A_206A_202D_202A_206A_206B_200C_206F_206A_206B_200B_200B_200D_202C_206C_206B_200E_200D_202A_200E_202E();
|
|
num = 1701566725;
|
|
break;
|
|
case 11:
|
|
num = ((!_206B_200F_200D_202A_206B_206E_206D_200D_206F_206D_202D_206E_206C_202A_200C_202D_206D_200B_200E_206E_202B_202A_202C_206E_200F_202C_200D_206B_202E_202C_200D_206B_206D_202C_202B_206C_200D_202D_202D_200E_202E(condition, ConditionFlag.Mounted)) ? 1701566747 : 1701566739);
|
|
break;
|
|
case 25:
|
|
gameObject = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
|
num = ((gameObject != null) ? 1701566723 : 1701566728);
|
|
break;
|
|
case 12:
|
|
switch (_phase)
|
|
{
|
|
case EWarpPhase.Unmounting:
|
|
break;
|
|
default:
|
|
goto IL_019b;
|
|
case EWarpPhase.Interacting:
|
|
goto IL_02e4;
|
|
case EWarpPhase.None:
|
|
goto IL_03cd;
|
|
case EWarpPhase.WaitingForSettle:
|
|
goto IL_04bb;
|
|
}
|
|
goto case 11;
|
|
case 8:
|
|
num = ((!gameFunctions.InteractWith(gameObject2)) ? 1701566725 : 1701566733);
|
|
break;
|
|
case 0:
|
|
return ETaskResult.StillRunning;
|
|
case 26:
|
|
playerCharacter2 = _206A_206F_200C_200E_202B_200F_200D_206F_206A_206F_200F_202E_202E_206D_202C_206B_206C_200D_200E_206B_202C_200D_200D_202A_202A_206E_206C_200E_206B_206A_202A_206F_202A_206A_200E_206B_206C_200D_202E_202D_202E(objectTable);
|
|
num = ((playerCharacter2 == null) ? 1701566745 : 1701566746);
|
|
break;
|
|
case 3:
|
|
gameFunctions.Unmount();
|
|
_phase = EWarpPhase.Unmounting;
|
|
return ETaskResult.StillRunning;
|
|
case 14:
|
|
return ETaskResult.StillRunning;
|
|
case 24:
|
|
num = ((!(Vector3.Distance(_202C_200F_202B_202E_202A_206C_206B_206C_202D_202B_206A_206E_200B_206B_202A_206E_206E_202D_202D_206D_200C_202B_200B_200F_200D_206A_202B_200C_206E_200B_202D_206C_206B_200E_206C_206E_206F_202D_202E_206A_202E((IGameObject)playerCharacter2), _startPosition) > 2f)) ? 1701566745 : 1701566741);
|
|
break;
|
|
case 23:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(1392527076), Array.Empty<object>());
|
|
_206E_202C_202B_200B_206E_200D_200B_202B_206B_200C_206A_206B_200F_200B_202A_206C_202C_200B_206F_200F_202B_202A_202E_202E_202B_202D_206C_206B_200B_202C_200B_206D_206C_200F_206B_202A_200B_200D_206E_202E_202E(warpFailureTracker, base.Task.WarpRowId);
|
|
_phase = EWarpPhase.WaitingForSettle;
|
|
_settleAt = _200E_200E_202E_202E_206C_206D_202D_206B_200C_206D_200C_200C_202D_206C_200F_202A_202D_206D_202D_200C_202A_206A_202D_202A_206A_206B_200C_206F_206A_206B_200B_200B_200D_202C_206C_206B_200E_200D_202A_200E_202E() + 500;
|
|
return ETaskResult.StillRunning;
|
|
case 1:
|
|
num = ((!gameFunctions.InteractWith(gameObject)) ? 1701566751 : 1701566731);
|
|
break;
|
|
case 13:
|
|
ClearContext();
|
|
return ETaskResult.RetryStep;
|
|
case 19:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-276179636), Array.Empty<object>());
|
|
ClearContext();
|
|
return ETaskResult.TaskComplete;
|
|
case 16:
|
|
goto IL_02e4;
|
|
case 7:
|
|
return ETaskResult.StillRunning;
|
|
case 18:
|
|
return ETaskResult.StillRunning;
|
|
case 21:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-1718836678), new object[1] { _206D_200E_200D_202E_206F_206B_206C_206D_200C_206A_202A_200D_206B_206B_206C_206E_202A_206A_206E_200D_202D_206F_202B_206F_206B_202B_206F_200F_202B_206B_200D_200D_200F_206D_206F_202B_206D_202B_202E_200C_202E(clientState) });
|
|
_206E_202C_202B_200B_206E_200D_200B_202B_206B_200C_206A_206B_200F_200B_202A_206C_202C_200B_206F_200F_202B_202A_202E_202E_202B_202D_206C_206B_200B_202C_200B_206D_206C_200F_206B_202A_200B_200D_206E_202E_202E(warpFailureTracker, base.Task.WarpRowId);
|
|
_phase = EWarpPhase.WaitingForSettle;
|
|
_settleAt = _200E_200E_202E_202E_206C_206D_202D_206B_200C_206D_200C_200C_202D_206C_200F_202A_202D_206D_202D_200C_202A_206A_202D_202A_206A_206B_200C_206F_206A_206B_200B_200B_200D_202C_206C_206B_200E_200D_202A_200E_202E() + 500;
|
|
return ETaskResult.StillRunning;
|
|
case 29:
|
|
return ETaskResult.StillRunning;
|
|
case 4:
|
|
{
|
|
IPlayerCharacter playerCharacter = _206A_206F_200C_200E_202B_200F_200D_206F_206A_206F_200F_202E_202E_206D_202C_206B_206C_200D_200E_206B_202C_200D_200D_202A_202A_206E_206C_200E_206B_206A_202A_206F_202A_206A_200E_206B_206C_200D_202E_202D_202E(objectTable);
|
|
_startPosition = ((playerCharacter != null) ? _202C_200F_202B_202E_202A_206C_206B_206C_202D_202B_206A_206E_200B_206B_202A_206E_206E_202D_202D_206D_200C_202B_200B_200F_200D_206A_202B_200C_206E_200B_202D_206C_206B_200E_206C_206E_206F_202D_202E_206A_202E((IGameObject)playerCharacter) : _startPosition);
|
|
num = ((!_206B_200F_200D_202A_206B_206E_206D_200D_206F_206D_202D_206E_206C_202A_200C_202D_206D_200B_200E_206E_202B_202A_202C_206E_200F_202C_200D_206B_202E_202C_200D_206B_206D_202C_202B_206C_200D_202D_202D_200E_202E(condition, ConditionFlag.Mounted)) ? 1701566730 : 1701566721);
|
|
break;
|
|
}
|
|
case 2:
|
|
goto IL_03cd;
|
|
case 10:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-538242384), Array.Empty<object>());
|
|
_phase = EWarpPhase.None;
|
|
return ETaskResult.StillRunning;
|
|
case 9:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-606870985), new object[1] { base.Task.NpcDataId });
|
|
_phase = EWarpPhase.Interacting;
|
|
_interactingStartedAt = _200E_200E_202E_202E_206C_206D_202D_206B_200C_206D_200C_200C_202D_206C_200F_202A_202D_206D_202D_200C_202A_206A_202D_202A_206A_206B_200C_206F_206A_206B_200B_200B_200D_202C_206C_206B_200E_200D_202A_200E_202E();
|
|
num = 1701566751;
|
|
break;
|
|
case 5:
|
|
num = 1701566722;
|
|
break;
|
|
case 22:
|
|
return ETaskResult.StillRunning;
|
|
case 17:
|
|
return ETaskResult.StillRunning;
|
|
case 27:
|
|
num = ((_200E_200E_202E_202E_206C_206D_202D_206B_200C_206D_200C_200C_202D_206C_200F_202A_202D_206D_202D_200C_202A_206A_202D_202A_206A_206B_200C_206F_206A_206B_200B_200B_200D_202C_206C_206B_200E_200D_202A_200E_202E() - _interactingStartedAt <= 30000) ? 1701566740 : 1701566724);
|
|
break;
|
|
case 20:
|
|
goto IL_04bb;
|
|
case 6:
|
|
{
|
|
_202C_202E_202D_202D_200B_200F_202B_202C_202D_200B_200E_206C_206F_206C_200F_206B_202D_206D_202E_200E_202B_200F_202D_202C_202B_200E_202B_206D_202B_200C_202E_206E_206F_200C_206E_200F_206F_202B_200C_202A_202E((ILogger)logger, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(-417221394), Array.Empty<object>());
|
|
ClearContext();
|
|
return ETaskResult.RetryStep;
|
|
}
|
|
IL_02e4:
|
|
num = ((_206D_200E_200D_202E_206F_206B_206C_206D_200C_206A_202A_200D_206B_206B_206C_206E_202A_206A_206E_200D_202D_206F_202B_206F_206B_202B_206F_200F_202B_206B_200D_200D_200F_206D_206F_202B_206D_202B_202E_200C_202E(clientState) == base.Task.SourceTerritoryId) ? 1701566744 : 1701566743);
|
|
break;
|
|
IL_04bb:
|
|
num = ((_200E_200E_202E_202E_206C_206D_202D_206B_200C_206D_200C_200C_202D_206C_200F_202A_202D_206D_202D_200C_202A_206A_202D_202A_206A_206B_200C_206F_206A_206B_200B_200B_200D_202C_206C_206B_200E_200D_202A_200E_202E() < _settleAt) ? 1701566732 : 1701566737);
|
|
break;
|
|
IL_019b:
|
|
num = 1701566727;
|
|
break;
|
|
IL_03cd:
|
|
gameObject2 = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
|
num = ((gameObject2 != null) ? 1701566726 : 1701566736);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public void OnConditionChange(ConditionFlag flag, bool value)
|
|
{
|
|
bool flag2 = _phase == EWarpPhase.Interacting;
|
|
int num = ((!flag2) ? (-693146461) : (-693146462));
|
|
bool flag3 = default(bool);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -693146464;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 6:
|
|
flag3 = false;
|
|
num = -693146459;
|
|
break;
|
|
case 2:
|
|
num = (((uint)(flag - 31) > 1u) ? (-693146458) : (-693146460));
|
|
break;
|
|
case 7:
|
|
num = -693146462;
|
|
break;
|
|
case 3:
|
|
{
|
|
bool num7 = flag2;
|
|
num3 = (value ? 1 : 0);
|
|
num4 = (num7 ? 1 : 0);
|
|
num = (((num4 | num3) - (num4 ^ num3) == 0) ? (-693146464) : (-693146463));
|
|
break;
|
|
}
|
|
case 0:
|
|
return;
|
|
case 1:
|
|
_200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E((ILogger)logger, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-438663173), Array.Empty<object>());
|
|
num = -693146464;
|
|
break;
|
|
case 5:
|
|
flag2 = flag3;
|
|
num = -693146461;
|
|
break;
|
|
case 4:
|
|
flag3 = true;
|
|
num = -693146459;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
void IConditionChangeAware.OnConditionChange(ConditionFlag flag, bool value)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in OnConditionChange
|
|
this.OnConditionChange(flag, value);
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public void StopNow()
|
|
{
|
|
ClearContext();
|
|
}
|
|
|
|
void IStoppableTaskExecutor.StopNow()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
|
this.StopNow();
|
|
}
|
|
|
|
private void ClearContext()
|
|
{
|
|
interactionUiController.SmartNavWarpRowId = null;
|
|
interactionUiController.SmartNavDestTerritoryId = null;
|
|
}
|
|
|
|
static IPlayerCharacter _206A_206F_200C_200E_202B_200F_200D_206F_206A_206F_200F_202E_202E_206D_202C_206B_206C_200D_200E_206B_202C_200D_200D_202A_202A_206E_206C_200E_206B_206A_202A_206F_202A_206A_200E_206B_206C_200D_202E_202D_202E(IObjectTable P_0)
|
|
{
|
|
return P_0.LocalPlayer;
|
|
}
|
|
|
|
static Vector3 _202C_200F_202B_202E_202A_206C_206B_206C_202D_202B_206A_206E_200B_206B_202A_206E_206E_202D_202D_206D_200C_202B_200B_200F_200D_206A_202B_200C_206E_200B_202D_206C_206B_200E_206C_206E_206F_202D_202E_206A_202E(IGameObject P_0)
|
|
{
|
|
return P_0.Position;
|
|
}
|
|
|
|
static bool _200F_200F_206B_200C_202A_200C_200E_200D_200E_206C_206B_200E_206B_206B_206B_206E_206C_206F_206E_206C_200D_206E_206B_202B_206D_200F_202E_202B_200C_200E_206C_202E_200C_206F_200F_200E_202C_206A_206B_202A_202E(WarpFailureTracker P_0, uint P_1)
|
|
{
|
|
return P_0.RecordAttempt(P_1);
|
|
}
|
|
|
|
static bool _200F_200B_200F_200F_200C_206B_200D_202C_206D_200D_206F_202D_200E_200D_206E_202E_202A_200F_200F_202E_202A_200E_200F_200C_206B_206B_202A_202E_200D_206E_202D_202E_206B_202C_206D_200E_202C_200C_200C_202C_202E(WarpFailureTracker P_0, uint P_1)
|
|
{
|
|
return P_0.IsBlacklisted(P_1);
|
|
}
|
|
|
|
static void _202C_202E_202D_202D_200B_200F_202B_202C_202D_200B_200E_206C_206F_206C_200F_206B_202D_206D_202E_200E_202B_200F_202D_202C_202B_200E_202B_206D_202B_200C_202E_206E_206F_200C_206E_200F_206F_202B_200C_202A_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogWarning(P_1, P_2);
|
|
}
|
|
|
|
static void _200C_206C_206F_206D_200F_206B_200E_202E_200B_200B_206E_202E_206C_206C_200B_202D_202E_200F_202D_206C_202B_200C_202A_206B_202C_202D_206D_206D_202A_202B_206A_206B_200B_206B_200F_202C_206C_206F_202C_200C_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static bool _206B_200F_200D_202A_206B_206E_206D_200D_206F_206D_202D_206E_206C_202A_200C_202D_206D_200B_200E_206E_202B_202A_202C_206E_200F_202C_200D_206B_202E_202C_200D_206B_206D_202C_202B_206C_200D_202D_202D_200E_202E(ICondition P_0, ConditionFlag P_1)
|
|
{
|
|
return P_0[P_1];
|
|
}
|
|
|
|
static long _200E_200E_202E_202E_206C_206D_202D_206B_200C_206D_200C_200C_202D_206C_200F_202A_202D_206D_202D_200C_202A_206A_202D_202A_206A_206B_200C_206F_206A_206B_200B_200B_200D_202C_206C_206B_200E_200D_202A_200E_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static uint _206D_200E_200D_202E_206F_206B_206C_206D_200C_206A_202A_200D_206B_206B_206C_206E_202A_206A_206E_200D_202D_206F_202B_206F_206B_202B_206F_200F_202B_206B_200D_200D_200F_206D_206F_202B_206D_202B_202E_200C_202E(IClientState P_0)
|
|
{
|
|
return P_0.TerritoryType;
|
|
}
|
|
|
|
static void _206E_202C_202B_200B_206E_200D_200B_202B_206B_200C_206A_206B_200F_200B_202A_206C_202C_200B_206F_200F_202B_202A_202E_202E_202B_202D_206C_206B_200B_202C_200B_206D_206C_200F_206B_202A_200B_200D_206E_202E_202E(WarpFailureTracker P_0, uint P_1)
|
|
{
|
|
P_0.RecordSuccess(P_1);
|
|
}
|
|
}
|
|
}
|