forked from aly/qstbak
muffin v7.5.11
This commit is contained in:
parent
addf2d530f
commit
3102923ce2
522 changed files with 41082 additions and 211592 deletions
|
|
@ -1,11 +1,8 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.ClientState.Conditions;
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
|
|
@ -24,97 +21,9 @@ internal static class AethernetRide
|
|||
{
|
||||
internal sealed record Task(EAetheryteLocation From, EAetheryteLocation To) : ISkippableTask, ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202A_202A_206E_202C_206D_206A_200C_200E_206E_200C_200D_200F_200B_200C_200F_200D_200F_200E_206B_200B_202A_200C_202B_202B_200F_200F_206F_206C_206B_206D_202A_200B_206E_202E_202B_202E_202C_202A_202D_206D_202E(typeof(Task).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(18, 2);
|
||||
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>(1464179176));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(From);
|
||||
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>(-1415797485));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(To);
|
||||
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>(555647321));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_200C_202A_202E_206F_206D_202C_200E_206B_206F_200B_202A_200B_200D_206C_202C_200E_200F_206F_206E_200D_206E_202A_200E_202E_206F_200C_202A_206A_206D_200C_200C_202B_202A_200B_200C_206E_202B_206F_206A_202D_202E();
|
||||
_200D_200E_202D_200C_202B_206E_202C_200C_202E_206F_200E_206C_206A_200F_202B_206B_200F_206B_206C_206E_200B_202E_202C_206E_206E_206B_206C_200E_206F_206D_206E_202D_202C_202E_206F_206C_202E_202E_202B_202C_202E(builder, 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>(1869557730));
|
||||
_200D_200E_202D_200C_202B_206E_202C_200C_202E_206F_200E_206C_206A_200F_202B_206B_200F_206B_206C_206E_200B_202E_202C_206E_206E_206B_206C_200E_206F_206D_206E_202D_202C_202E_206F_206C_202E_202E_202B_202C_202E(builder, From.ToString());
|
||||
_200D_200E_202D_200C_202B_206E_202C_200C_202E_206F_200E_206C_206A_200F_202B_206B_200F_206B_206C_206E_200B_202E_202C_206E_206E_206B_206C_200E_206F_206D_206E_202D_202C_202E_206F_206C_202E_202E_202B_202C_202E(builder, 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>(-1257560035));
|
||||
_200D_200E_202D_200C_202B_206E_202C_200C_202E_206F_200E_206C_206A_200F_202B_206B_200F_206B_206C_206E_200B_202E_202C_206E_206E_206B_206C_200E_206F_206D_206E_202D_202C_202E_206F_206C_202E_202E_202B_202C_202E(builder, To.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Task? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 921628929 : 921628935);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 921628932;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 1:
|
||||
num = ((!_200B_200D_202B_202B_200B_206D_200B_206A_206D_206A_202D_200B_202B_202E_202C_202A_200D_202B_202E_202C_200F_206F_200B_200F_200B_200F_200F_200F_202D_200B_200E_202E_206E_202A_206E_206B_200C_206A_202D_206B_202E(EqualityContract, other.EqualityContract)) ? 921628928 : 921628930);
|
||||
break;
|
||||
case 5:
|
||||
return true;
|
||||
case 4:
|
||||
return false;
|
||||
case 3:
|
||||
num = (((object)other == null) ? 921628928 : 921628933);
|
||||
break;
|
||||
case 6:
|
||||
num = ((!EqualityComparer<EAetheryteLocation>.Default.Equals(From, other.From)) ? 921628928 : 921628934);
|
||||
break;
|
||||
case 0:
|
||||
num = 921628935;
|
||||
break;
|
||||
case 2:
|
||||
return EqualityComparer<EAetheryteLocation>.Default.Equals(To, other.To);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Task>.Equals(Task? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202A_202A_206E_202C_206D_206A_200C_200E_206E_200C_200D_200F_200B_200C_200F_200D_200F_200E_206B_200B_202A_200C_202B_202B_200F_200F_206F_206C_206B_206D_202A_200B_206E_202E_202B_202E_202C_202A_202D_206D_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _200C_202A_202E_206F_206D_202C_200E_206B_206F_200B_202A_200B_200D_206C_202C_200E_200F_206F_206E_200D_206E_202A_200E_202E_206F_200C_202A_206A_206D_200C_200C_202B_202A_200B_200C_206E_202B_206F_206A_202D_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _200D_200E_202D_200C_202B_206E_202C_200C_202E_206F_200E_206C_206A_200F_202B_206B_200F_206B_206C_206E_200B_202E_202C_206E_206E_206B_206C_200E_206F_206D_206E_202D_202C_202E_206F_206C_202E_202E_202B_202C_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _200B_200D_202B_202B_200B_206D_200B_206A_206D_206A_202D_200B_202B_202E_202C_202A_200D_202B_202E_202C_200F_206F_200B_200F_200B_200F_200F_200F_202D_200B_200E_202E_206E_202A_206E_206B_200C_206A_202D_206B_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"UseAethernet({From} -> {To})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -131,17 +40,6 @@ internal static class AethernetRide
|
|||
WaitingForArrival
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
private sealed class _003C_003Ec__DisplayClass20_0
|
||||
{
|
||||
public Vector3 playerPosition;
|
||||
|
||||
internal float _003CStart_003Eb__0(Vector3 x)
|
||||
{
|
||||
return Vector3.Distance(playerPosition, x);
|
||||
}
|
||||
}
|
||||
|
||||
private EAethernetPhase _phase;
|
||||
|
||||
private long _continueAt;
|
||||
|
|
@ -157,7 +55,7 @@ internal static class AethernetRide
|
|||
private void SetPhase(EAethernetPhase phase)
|
||||
{
|
||||
_phase = phase;
|
||||
_phaseStartedAt = _200E_206E_200C_200F_206F_202A_206D_200C_202A_202D_206E_200D_206B_206E_200B_202E_200F_206B_202E_200C_206A_206F_202D_206D_206A_200D_200B_206D_200C_206E_202E_202B_206B_206C_202C_206D_206E_202C_200E_206A_202E();
|
||||
_phaseStartedAt = Environment.TickCount64;
|
||||
}
|
||||
|
||||
public void StopNow()
|
||||
|
|
@ -165,474 +63,194 @@ internal static class AethernetRide
|
|||
aethernetTeleportService.Reset();
|
||||
}
|
||||
|
||||
void IStoppableTaskExecutor.StopNow()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
||||
this.StopNow();
|
||||
}
|
||||
|
||||
public override bool HasTimedOut(float timeoutSeconds)
|
||||
{
|
||||
int num = ((_phase != EAethernetPhase.None) ? 466261811 : 466261810);
|
||||
while (true)
|
||||
if (_phase == EAethernetPhase.None)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 466261811;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
return _200E_206E_200C_200F_206F_202A_206D_200C_202A_202D_206E_200D_206B_206E_200B_202E_200F_206B_202E_200C_206A_206F_202D_206D_206A_200D_200B_206D_200C_206E_202E_202B_206B_206C_202C_206D_206E_202C_200E_206A_202E() - _phaseStartedAt > (long)(timeoutSeconds * 1000f);
|
||||
case 1:
|
||||
return false;
|
||||
case 2:
|
||||
goto IL_005f;
|
||||
}
|
||||
continue;
|
||||
IL_005f:
|
||||
num = 466261810;
|
||||
return false;
|
||||
}
|
||||
return Environment.TickCount64 - _phaseStartedAt > (long)(timeoutSeconds * 1000f);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
protected override bool Start()
|
||||
{
|
||||
SetPhase(EAethernetPhase.None);
|
||||
_interactionAttempts = 0;
|
||||
aethernetTeleportService.Reset();
|
||||
int num = ((!aetheryteFunctions.IsAetheryteUnlocked(base.Task.From)) ? (-1371830101) : (-1371830111));
|
||||
_003C_003Ec__DisplayClass20_0 _003C_003Ec__DisplayClass20_ = default(_003C_003Ec__DisplayClass20_0);
|
||||
uint num7 = default(uint);
|
||||
IPlayerCharacter playerCharacter = default(IPlayerCharacter);
|
||||
while (true)
|
||||
if (aetheryteFunctions.IsAetheryteUnlocked(base.Task.From) && aetheryteFunctions.IsAetheryteUnlocked(base.Task.To))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1371830100;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
float num8;
|
||||
float num10;
|
||||
switch (num5 - (num6 + num6))
|
||||
uint territoryType = clientState.TerritoryType;
|
||||
IPlayerCharacter localPlayer = objectTable.LocalPlayer;
|
||||
if (localPlayer == null)
|
||||
{
|
||||
case 2:
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(42, 2);
|
||||
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>(1136097432));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(base.Task.From);
|
||||
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>(-732790977));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(base.Task.To);
|
||||
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>(444206578));
|
||||
throw new TaskException(defaultInterpolatedStringHandler.ToStringAndClear());
|
||||
return false;
|
||||
}
|
||||
case 11:
|
||||
Vector3 playerPosition = localPlayer.Position;
|
||||
if (aetheryteData.CalculateDistance(playerPosition, territoryType, base.Task.From) < aetheryteData.CalculateDistance(playerPosition, territoryType, base.Task.To))
|
||||
{
|
||||
float num = (base.Task.From.IsFirmamentAetheryte() ? 11f : (AetheryteConverter.IsLargeAetheryte(base.Task.From) ? 11f : 4f));
|
||||
if (aetheryteData.CalculateDistance(playerPosition, territoryType, base.Task.From) < num)
|
||||
{
|
||||
BeginTeleport();
|
||||
return true;
|
||||
}
|
||||
if (base.Task.From == EAetheryteLocation.SolutionNine)
|
||||
{
|
||||
logger.LogDebug("Moving to S9 aetheryte");
|
||||
int num2 = 4;
|
||||
List<Vector3> list = new List<Vector3>(num2);
|
||||
CollectionsMarshal.SetCount(list, num2);
|
||||
Span<Vector3> span = CollectionsMarshal.AsSpan(list);
|
||||
span[0] = new Vector3(0f, 8.442986f, 9f);
|
||||
span[1] = new Vector3(9f, 8.442986f, 0f);
|
||||
span[2] = new Vector3(-9f, 8.442986f, 0f);
|
||||
span[3] = new Vector3(0f, 8.442986f, -9f);
|
||||
Vector3 to = list.MinBy((Vector3 x) => Vector3.Distance(playerPosition, x));
|
||||
SetPhase(EAethernetPhase.Moving);
|
||||
movementController.NavigateTo(EMovementType.Quest, (uint)base.Task.From, to, fly: false, sprint: true, 0.25f);
|
||||
return true;
|
||||
}
|
||||
if (territoryData.CanUseMount(territoryType) && aetheryteData.CalculateDistance(playerPosition, territoryType, base.Task.From) > 30f && !gameFunctions.HasStatusPreventingMount() && gameFunctions.Mount())
|
||||
{
|
||||
SetPhase(EAethernetPhase.Mounting);
|
||||
_continueAt = Environment.TickCount64 + 500;
|
||||
return true;
|
||||
}
|
||||
StartMoving();
|
||||
return true;
|
||||
case 6:
|
||||
num8 = 11f;
|
||||
goto IL_0145;
|
||||
case 15:
|
||||
num = ((!(_206C_206A_206C_202B_200C_200F_200D_200D_202D_202E_200B_206F_206C_200D_200D_200E_202E_206B_206E_206A_202A_200D_206B_202E_202D_202C_202C_206C_206E_200B_206C_202D_206D_206D_200D_200D_206A_202C_206C_206F_202E(aetheryteData, _003C_003Ec__DisplayClass20_.playerPosition, num7, base.Task.From) > 30f)) ? (-1371830105) : (-1371830104));
|
||||
break;
|
||||
case 10:
|
||||
return false;
|
||||
case 5:
|
||||
SetPhase(EAethernetPhase.Mounting);
|
||||
_continueAt = _200E_206E_200C_200F_206F_202A_206D_200C_202A_202D_206E_200D_206B_206E_200B_202E_200F_206B_202E_200C_206A_206F_202D_206D_206A_200D_200B_206D_200C_206E_202E_202B_206B_206C_202C_206D_206E_202C_200E_206A_202E() + 500;
|
||||
return true;
|
||||
case 20:
|
||||
num = ((base.Task.From != EAetheryteLocation.SolutionNine) ? (-1371830082) : (-1371830087));
|
||||
break;
|
||||
case 19:
|
||||
num = (_200D_200D_202D_200F_202B_200C_200B_206E_206D_206E_202A_202D_200F_206A_202E_206C_202A_202A_200C_202D_206A_202C_206C_202B_206C_200D_206F_206C_200F_202D_200B_200B_200D_202D_206D_206A_202B_206E_206E_202B_202E(base.Task.From) ? (-1371830099) : (-1371830083));
|
||||
break;
|
||||
case 0:
|
||||
BeginTeleport();
|
||||
return true;
|
||||
case 13:
|
||||
num = ((!aetheryteFunctions.IsAetheryteUnlocked(base.Task.To)) ? (-1371830101) : (-1371830097));
|
||||
break;
|
||||
case 16:
|
||||
num = -1371830111;
|
||||
break;
|
||||
case 22:
|
||||
return false;
|
||||
case 18:
|
||||
num = ((!territoryData.CanUseMount(num7)) ? (-1371830105) : (-1371830109));
|
||||
break;
|
||||
case 8:
|
||||
_206F_206D_200D_200C_200F_200F_202A_206C_206D_206E_200E_202E_206C_206A_206E_206F_206F_200F_200B_206E_200F_200C_200F_206E_206E_202C_202E_200E_200E_202A_202A_200D_206A_202E_202E_202C_206A_200C_206F_202E_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>(-1241997546), new object[2]
|
||||
{
|
||||
base.Task.From,
|
||||
base.Task.To
|
||||
});
|
||||
num = -1371830106;
|
||||
break;
|
||||
case 1:
|
||||
num8 = 11f;
|
||||
goto IL_0145;
|
||||
case 21:
|
||||
{
|
||||
_202E_206A_206A_206B_206B_202B_202B_202B_206B_202D_200E_202C_200F_202E_206F_200D_202B_200E_206C_202D_202D_200D_202B_202E_200F_200C_206F_202B_206D_200E_202A_202B_206C_200E_206F_202D_202E_206E_206C_202D_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>(-1883356497), Array.Empty<object>());
|
||||
int num9 = 4;
|
||||
List<Vector3> list = new List<Vector3>(num9);
|
||||
CollectionsMarshal.SetCount(list, num9);
|
||||
Span<Vector3> span = CollectionsMarshal.AsSpan(list);
|
||||
span[0] = new Vector3(0f, 8.442986f, 9f);
|
||||
span[1] = new Vector3(9f, 8.442986f, 0f);
|
||||
span[2] = new Vector3(-9f, 8.442986f, 0f);
|
||||
span[3] = new Vector3(0f, 8.442986f, -9f);
|
||||
Vector3 to = list.MinBy(_003C_003Ec__DisplayClass20_._003CStart_003Eb__0);
|
||||
SetPhase(EAethernetPhase.Moving);
|
||||
movementController.NavigateTo(EMovementType.Quest, (uint)base.Task.From, to, fly: false, sprint: true, 0.25f);
|
||||
return true;
|
||||
}
|
||||
case 17:
|
||||
num8 = 4f;
|
||||
goto IL_0145;
|
||||
case 14:
|
||||
num = (_206D_200D_206F_206B_202D_200F_202B_202A_200E_202A_206B_202C_202D_200C_206B_206C_206B_200C_206A_202E_202A_206D_206D_206E_200B_200E_202A_202A_200E_206A_206C_206E_202E_202B_200B_206B_206F_202C_202B_202C_202E(base.Task.From) ? (-1371830102) : (-1371830081));
|
||||
break;
|
||||
case 12:
|
||||
_003C_003Ec__DisplayClass20_.playerPosition = _202C_200B_202C_206B_200E_200C_200E_200C_202E_200C_202D_202A_206C_202A_202D_202D_200D_200E_200F_202B_206E_202D_206E_200F_206D_206E_206B_200C_206A_202A_202D_202E_200D_206A_206A_206E_200E_206D_206D_206B_202E((IGameObject)playerCharacter);
|
||||
num = ((!(_206C_206A_206C_202B_200C_200F_200D_200D_202D_202E_200B_206F_206C_200D_200D_200E_202E_206B_206E_206A_202A_200D_206B_202E_202D_202C_202C_206C_206E_200B_206C_202D_206D_206D_200D_200D_206A_202C_206C_206F_202E(aetheryteData, _003C_003Ec__DisplayClass20_.playerPosition, num7, base.Task.From) < _206C_206A_206C_202B_200C_200F_200D_200D_202D_202E_200B_206F_206C_200D_200D_200E_202E_206B_206E_206A_202A_200D_206B_202E_202D_202C_202C_206C_206E_200B_206C_202D_206D_206D_200D_200D_206A_202C_206C_206F_202E(aetheryteData, _003C_003Ec__DisplayClass20_.playerPosition, num7, base.Task.To))) ? (-1371830106) : (-1371830110));
|
||||
break;
|
||||
case 3:
|
||||
_003C_003Ec__DisplayClass20_ = new _003C_003Ec__DisplayClass20_0();
|
||||
num7 = _206B_206B_202C_202B_200F_202C_206C_202B_206C_202D_206E_200E_202D_206F_202A_200B_202B_200D_200F_202E_206B_206C_206E_200B_200C_206A_206C_206C_202B_200B_206E_202C_200B_202B_200D_206E_206D_200B_206B_206A_202E(clientState);
|
||||
playerCharacter = _200E_206A_206E_206A_206F_206D_202D_200E_206A_200B_206F_200B_202E_202D_206E_206F_206D_202A_200E_200C_200C_200E_200D_206C_206E_206B_206F_202E_200D_200E_206A_202C_200B_202D_206F_206C_200B_200C_202C_202D_202E(objectTable);
|
||||
num = ((playerCharacter != null) ? (-1371830112) : (-1371830086));
|
||||
break;
|
||||
case 7:
|
||||
num = ((_206B_206B_202C_202B_200F_202C_206C_202B_206C_202D_206E_200E_202D_206F_202A_200B_202B_200D_200F_202E_206B_206C_206E_200B_200C_206A_206C_206C_202B_200B_206E_202C_200B_202B_200D_206E_206D_200B_206B_206A_202E(clientState) != _206A_206D_202C_202C_202B_206E_202A_206D_200D_200B_206E_200C_200B_200F_206E_200E_200F_200B_200D_202C_200E_206E_202A_200B_200B_200B_206C_206D_206F_206D_200D_206B_206C_202A_200C_206C_200B_200C_206B_206D_202E(aetheryteData)[base.Task.To]) ? (-1371830098) : (-1371830108));
|
||||
break;
|
||||
case 9:
|
||||
num = ((!gameFunctions.Mount()) ? (-1371830105) : (-1371830103));
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
num = (gameFunctions.HasStatusPreventingMount() ? (-1371830105) : (-1371830107));
|
||||
break;
|
||||
}
|
||||
IL_0145:
|
||||
num10 = num8;
|
||||
num = ((!(_206C_206A_206C_202B_200C_200F_200D_200D_202D_202E_200B_206F_206C_200D_200D_200E_202E_206B_206E_206A_202A_200D_206B_202E_202D_202C_202C_206C_206E_200B_206C_202D_206D_206D_200D_200D_206A_202C_206C_206F_202E(aetheryteData, _003C_003Ec__DisplayClass20_.playerPosition, num7, base.Task.From) < num10)) ? (-1371830088) : (-1371830100));
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (clientState.TerritoryType != aetheryteData.TerritoryIds[base.Task.To])
|
||||
{
|
||||
throw new TaskException($"Aethernet ride not unlocked (from: {base.Task.From}, to: {base.Task.To})");
|
||||
}
|
||||
logger.LogWarning("Aethernet ride not unlocked (from: {FromAetheryte}, to: {ToAetheryte}), skipping as we are already in the destination territory", base.Task.From, base.Task.To);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private void StartMoving()
|
||||
{
|
||||
_202E_206A_206A_206B_206B_202B_202B_202B_206B_202D_200E_202C_200F_202E_206F_200D_202B_200E_206C_202D_202D_200D_202B_202E_200F_200C_206F_202B_206D_200E_202A_202B_206C_200E_206F_202D_202E_206E_206C_202D_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>(-1021163770), Array.Empty<object>());
|
||||
logger.LogDebug("Moving to aethernet shard");
|
||||
SetPhase(EAethernetPhase.Moving);
|
||||
EAetheryteLocation eAetheryteLocation = base.Task.From;
|
||||
int num = -280840246;
|
||||
float value = default(float);
|
||||
float num7 = default(float);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -280840247;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
int num8;
|
||||
bool flag;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 3:
|
||||
num = ((!_206D_200D_206F_206B_202D_200F_202B_202A_200E_202A_206B_202C_202D_200C_206B_206C_206B_200C_206A_202E_202A_206D_206D_206E_200B_200E_202A_202A_200E_206A_206C_206E_202E_202B_200B_206B_206F_202C_202B_202C_202E(base.Task.From)) ? (-280840254) : (-280840248));
|
||||
break;
|
||||
case 6:
|
||||
num = -280840253;
|
||||
break;
|
||||
case 8:
|
||||
num8 = ((!_200D_200D_202D_200F_202B_200C_200B_206E_206D_206E_202A_202D_200F_206A_202E_206C_202A_202A_200C_202D_206A_202C_206C_202B_206C_200D_206F_206C_200F_202D_200B_200B_200D_202D_206D_206A_202B_206E_206E_202B_202E(base.Task.From)) ? 1 : 0);
|
||||
goto IL_00e9;
|
||||
case 7:
|
||||
num8 = 0;
|
||||
goto IL_00e9;
|
||||
case 10:
|
||||
num = ((!_200D_200D_202D_200F_202B_200C_200B_206E_206D_206E_202A_202D_200F_206A_202E_206C_202A_202A_200C_202D_206A_202C_206C_202B_206C_200D_206F_206C_200F_202D_200B_200B_200D_202D_206D_206A_202B_206E_206E_202B_202E(base.Task.From)) ? (-280840247) : (-280840243));
|
||||
break;
|
||||
case 2:
|
||||
num = -280840246;
|
||||
break;
|
||||
case 5:
|
||||
value = num7;
|
||||
num = ((!_202E_202E_202B_206A_200F_200D_202C_200B_206C_206B_206D_206E_200D_202C_200E_202B_200B_200B_206B_206F_202E_200B_202C_206D_200B_200B_200B_206B_200B_206E_202E_200E_202B_200B_200D_200D_206C_206D_202C_206E_202E(aetheryteData, base.Task.From)) ? (-280840242) : (-280840255));
|
||||
break;
|
||||
case 0:
|
||||
num7 = 6.9f;
|
||||
num = -280840244;
|
||||
break;
|
||||
case 11:
|
||||
num = ((eAetheryteLocation == EAetheryteLocation.UldahChamberOfRule) ? (-280840256) : (-280840241));
|
||||
break;
|
||||
case 1:
|
||||
num7 = 4.4f;
|
||||
num = -280840244;
|
||||
break;
|
||||
case 4:
|
||||
num7 = 10.9f;
|
||||
num = -280840244;
|
||||
break;
|
||||
case 9:
|
||||
{
|
||||
num7 = 5f;
|
||||
num = -280840244;
|
||||
break;
|
||||
}
|
||||
IL_00e9:
|
||||
flag = (byte)num8 != 0;
|
||||
movementController.NavigateTo(EMovementType.Quest, (uint)base.Task.From, _202C_202C_202D_200C_202C_206C_200C_206F_202C_200C_206C_200C_202B_202A_200E_200C_202A_202C_202C_202E_200F_200B_206E_206E_206C_206C_202A_200C_206D_202D_202B_200F_206B_206E_202D_206B_206F_200D_202B_206E_202E(aetheryteData)[base.Task.From], fly: false, sprint: true, value, flag ? new float?(5f) : ((float?)null));
|
||||
return;
|
||||
}
|
||||
}
|
||||
float num = (base.Task.From.IsFirmamentAetheryte() ? 4.4f : ((eAetheryteLocation != EAetheryteLocation.UldahChamberOfRule) ? ((!AetheryteConverter.IsLargeAetheryte(base.Task.From)) ? 6.9f : 10.9f) : 5f));
|
||||
float value = num;
|
||||
bool flag = aetheryteData.IsGoldSaucerAetheryte(base.Task.From) && !AetheryteConverter.IsLargeAetheryte(base.Task.From);
|
||||
movementController.NavigateTo(EMovementType.Quest, (uint)base.Task.From, aetheryteData.Locations[base.Task.From], fly: false, sprint: true, value, flag ? new float?(5f) : ((float?)null));
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private void BeginTeleport()
|
||||
{
|
||||
_206F_202A_200D_200D_202C_202D_202A_200D_202C_206E_200F_206B_202C_200D_206A_200D_206D_206B_200B_202E_206D_206A_206A_206C_202C_202E_200C_200E_202B_206C_206F_200E_200D_202E_202A_206E_200B_206D_202A_200F_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>(668413368), new object[2]
|
||||
logger.LogInformation("Initiating aethernet teleport to {Destination} via {From}", base.Task.To, base.Task.From);
|
||||
if (condition[ConditionFlag.Mounted])
|
||||
{
|
||||
base.Task.To,
|
||||
base.Task.From
|
||||
});
|
||||
int num = ((!_202A_200F_202B_202E_202C_206C_206F_206D_206B_202E_202C_202B_206C_202C_200D_206A_200F_200F_202C_206E_206E_202D_206C_202A_200C_200B_200C_200C_206C_206F_202B_202E_200B_206C_202C_206E_202E_202B_202B_202E_202E(condition, ConditionFlag.Mounted)) ? 1024812396 : 1024812397);
|
||||
while (true)
|
||||
gameFunctions.Unmount();
|
||||
SetPhase(EAethernetPhase.Unmounting);
|
||||
}
|
||||
else
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1024812396;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
goto IL_008d;
|
||||
case 0:
|
||||
SetPhase(EAethernetPhase.WaitingForTargetable);
|
||||
return;
|
||||
case 1:
|
||||
gameFunctions.Unmount();
|
||||
SetPhase(EAethernetPhase.Unmounting);
|
||||
return;
|
||||
}
|
||||
continue;
|
||||
IL_008d:
|
||||
num = 1024812397;
|
||||
SetPhase(EAethernetPhase.WaitingForTargetable);
|
||||
}
|
||||
}
|
||||
|
||||
private bool TryInteractWithShard()
|
||||
{
|
||||
IGameObject gameObject = gameFunctions.FindObjectByDataId((uint)base.Task.From, null, warnIfMissing: false);
|
||||
int num = ((gameObject == null) ? 2057094986 : 2057094985);
|
||||
while (true)
|
||||
if (gameObject == null || !gameObject.IsTargetable)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 2057094987;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 3:
|
||||
num = 2057094985;
|
||||
break;
|
||||
case 2:
|
||||
num = (_206D_200D_206E_200F_202D_206A_200B_200C_200D_200D_202D_206E_202B_206F_202C_202C_202C_200C_202A_206A_200F_202C_206E_200B_206F_206F_206F_200E_200F_200D_200B_206C_206A_206C_206A_200E_202D_202D_200B_200D_202E(gameObject) ? 2057094987 : 2057094986);
|
||||
break;
|
||||
case 1:
|
||||
return false;
|
||||
case 0:
|
||||
{
|
||||
aethernetTeleportService.RequestTeleport(base.Task.To);
|
||||
gameFunctions.InteractWith(gameObject);
|
||||
int interactionAttempts = _interactionAttempts;
|
||||
num3 = 1;
|
||||
num4 = interactionAttempts;
|
||||
int num7 = num4 ^ num3;
|
||||
int num8 = num4 & num3;
|
||||
_interactionAttempts = num7 + (num8 + num8);
|
||||
SetPhase(EAethernetPhase.Interacting);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
aethernetTeleportService.RequestTeleport(base.Task.To);
|
||||
gameFunctions.InteractWith(gameObject);
|
||||
_interactionAttempts++;
|
||||
SetPhase(EAethernetPhase.Interacting);
|
||||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
int num = ((_200E_206E_200C_200F_206F_202A_206D_200C_202A_202D_206E_200D_206B_206E_200B_202E_200F_206B_202E_200C_206A_206F_202D_206D_206A_200D_200B_206D_200C_206E_202E_202B_206B_206C_202C_206D_206E_202C_200E_206A_202E() >= _continueAt) ? 1692805605 : 1692805604);
|
||||
Vector3? vector = default(Vector3?);
|
||||
while (true)
|
||||
if (Environment.TickCount64 < _continueAt)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1692805622;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
IPlayerCharacter playerCharacter;
|
||||
switch (num5 - (num6 + num6))
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
switch (_phase)
|
||||
{
|
||||
case EAethernetPhase.Mounting:
|
||||
if (condition[ConditionFlag.Mounted])
|
||||
{
|
||||
case 37:
|
||||
return ETaskResult.StillRunning;
|
||||
case 21:
|
||||
num = ((aethernetTeleportService.State != AethernetTeleportService.ETeleportState.WaitingForAddon) ? 1692805588 : 1692805624);
|
||||
break;
|
||||
case 26:
|
||||
return ETaskResult.StillRunning;
|
||||
case 35:
|
||||
goto IL_010a;
|
||||
case 25:
|
||||
SetPhase(EAethernetPhase.WaitingForArrival);
|
||||
return ETaskResult.StillRunning;
|
||||
case 30:
|
||||
aethernetTeleportService.Reset();
|
||||
return ETaskResult.TaskComplete;
|
||||
case 14:
|
||||
num = ((_interactionAttempts >= 3) ? 1692805627 : 1692805611);
|
||||
break;
|
||||
case 1:
|
||||
return ETaskResult.StillRunning;
|
||||
case 6:
|
||||
goto IL_016b;
|
||||
case 15:
|
||||
num = (movementController.IsPathRunning ? 1692805600 : 1692805609);
|
||||
break;
|
||||
case 24:
|
||||
return ETaskResult.StillRunning;
|
||||
case 36:
|
||||
num = 1692805604;
|
||||
break;
|
||||
case 34:
|
||||
num = ((aethernetTeleportService.State != AethernetTeleportService.ETeleportState.Failed) ? 1692805615 : 1692805620);
|
||||
break;
|
||||
case 4:
|
||||
return ETaskResult.StillRunning;
|
||||
case 16:
|
||||
goto IL_0214;
|
||||
case 3:
|
||||
num = ((!(_206C_206A_206C_202B_200C_200F_200D_200D_202D_202E_200B_206F_206C_200D_200D_200E_202E_206B_206E_206A_202A_200D_206B_202E_202D_202C_202C_206C_206E_200B_206C_202D_206D_206D_200D_200D_206A_202C_206C_206F_202E(aetheryteData, vector.Value, _206B_206B_202C_202B_200F_202C_206C_202B_206C_202D_206E_200E_202D_206F_202A_200B_202B_200D_200F_202E_206B_206C_206E_200B_200C_206A_206C_206C_202B_200B_206E_202C_200B_202B_200D_206E_206D_200B_206B_206A_202E(clientState), base.Task.To) > 20f)) ? 1692805608 : 1692805590);
|
||||
break;
|
||||
case 28:
|
||||
StartMoving();
|
||||
num = 1692805623;
|
||||
break;
|
||||
case 29:
|
||||
num = ((_200E_206E_200C_200F_206F_202A_206D_200C_202A_202D_206E_200D_206B_206E_200B_202E_200F_206B_202E_200C_206A_206F_202D_206D_206A_200D_200B_206D_200C_206E_202E_202B_206B_206C_202C_206D_206E_202C_200E_206A_202E() - _phaseStartedAt < 3000) ? 1692805627 : 1692805630);
|
||||
break;
|
||||
case 10:
|
||||
num = ((_206B_206B_202C_202B_200F_202C_206C_202B_206C_202D_206E_200E_202D_206F_202A_200B_202B_200D_200F_202E_206B_206C_206E_200B_200C_206A_206C_206C_202B_200B_206E_202C_200B_202B_200D_206E_206D_200B_206B_206A_202E(clientState) == _206A_206D_202C_202C_202B_206E_202A_206D_200D_200B_206E_200C_200B_200F_206E_200E_200F_200B_200D_202C_200E_206E_202A_200B_200B_200B_206C_206D_206F_206D_200D_206B_206C_202A_200C_206C_200B_200C_206B_206D_202E(aetheryteData)[base.Task.To]) ? 1692805608 : 1692805614);
|
||||
break;
|
||||
case 7:
|
||||
num = ((!_206A_202E_202A_206C_202D_202D_206A_206F_206E_200C_200F_200B_206C_200D_206C_202D_200D_206B_202E_202C_202E_202D_206B_206F_206D_200D_202B_206F_200E_202A_206D_202A_202E_200E_206C_206C_202A_206E_206F_206E_202E(aetheryteData, base.Task.To)) ? 1692805622 : 1692805626);
|
||||
break;
|
||||
case 17:
|
||||
return ETaskResult.StillRunning;
|
||||
case 0:
|
||||
num = (_206D_200F_200C_202E_206C_202A_206D_206C_206D_200F_200D_206D_202B_200E_206A_200D_200C_200F_202B_206C_200E_200C_206D_202E_202C_202A_206B_200F_206B_200D_200D_206B_200D_200E_202C_202D_202B_200B_206B_206C_202E(aetheryteData, base.Task.To) ? 1692805621 : 1692805601);
|
||||
break;
|
||||
case 9:
|
||||
SetPhase(EAethernetPhase.WaitingForTargetable);
|
||||
num = 1692805607;
|
||||
break;
|
||||
case 11:
|
||||
num = (movementController.IsPathfinding ? 1692805600 : 1692805625);
|
||||
break;
|
||||
case 31:
|
||||
BeginTeleport();
|
||||
num = 1692805600;
|
||||
break;
|
||||
case 13:
|
||||
return ETaskResult.StillRunning;
|
||||
case 12:
|
||||
num = ((!(_202C_200D_200F_206F_206D_206D_200C_200D_206D_200D_206A_200E_200F_206C_200D_202D_200D_202C_202B_200F_206F_206D_200C_200D_202B_200F_202C_200B_200E_206A_206E_206B_206F_200C_206A_200D_202B_206A_202D_200F_202E(aetheryteData, vector.Value, _206B_206B_202C_202B_200F_202C_206C_202B_206C_202D_206E_200E_202D_206F_202A_200B_202B_200D_200F_202E_206B_206C_206E_200B_200C_206A_206C_206C_202B_200B_206E_202C_200B_202B_200D_206E_206D_200B_206B_206A_202E(clientState), base.Task.To) > 5f)) ? 1692805608 : 1692805591);
|
||||
break;
|
||||
case 20:
|
||||
num = 1692805618;
|
||||
break;
|
||||
case 22:
|
||||
return ETaskResult.StillRunning;
|
||||
case 18:
|
||||
return ETaskResult.StillRunning;
|
||||
case 27:
|
||||
goto IL_03ea;
|
||||
case 8:
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
case EAethernetPhase.Moving:
|
||||
if (!movementController.HasBeenMovingForAtLeast(2000))
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (!movementController.IsPathfinding && !movementController.IsPathRunning)
|
||||
{
|
||||
BeginTeleport();
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
case EAethernetPhase.Unmounting:
|
||||
if (!condition[ConditionFlag.Mounted])
|
||||
{
|
||||
ILogger<AethernetRideExecutor> logger = logger;
|
||||
string text = 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>(1660386919);
|
||||
object[] array = new object[2];
|
||||
int interactionAttempts = _interactionAttempts;
|
||||
num3 = 1;
|
||||
num4 = interactionAttempts;
|
||||
int num7 = num4 ^ num3;
|
||||
int num8 = num4 & num3;
|
||||
array[0] = num7 + (num8 + num8);
|
||||
array[1] = 3;
|
||||
_206F_206D_200D_200C_200F_200F_202A_206C_206D_206E_200E_202E_206C_206A_206E_206F_206F_200F_200B_206E_200F_200C_200F_206E_206E_202C_202E_200E_200E_202A_202A_200D_206A_202E_202E_202C_206A_200C_206F_202E_202E((ILogger)logger, text, array);
|
||||
aethernetTeleportService.Reset();
|
||||
SetPhase(EAethernetPhase.WaitingForTargetable);
|
||||
num = 1692805627;
|
||||
break;
|
||||
}
|
||||
case 32:
|
||||
return ETaskResult.StillRunning;
|
||||
case 5:
|
||||
goto IL_0474;
|
||||
case 19:
|
||||
switch (_phase)
|
||||
{
|
||||
case EAethernetPhase.Interacting:
|
||||
break;
|
||||
case EAethernetPhase.Unmounting:
|
||||
goto IL_010a;
|
||||
case EAethernetPhase.WaitingForArrival:
|
||||
goto IL_016b;
|
||||
case EAethernetPhase.WaitingForTargetable:
|
||||
goto IL_0214;
|
||||
case EAethernetPhase.Mounting:
|
||||
goto IL_03ea;
|
||||
case EAethernetPhase.Moving:
|
||||
goto IL_0474;
|
||||
default:
|
||||
goto IL_04c6;
|
||||
}
|
||||
goto case 21;
|
||||
case 23:
|
||||
num = ((!_202E_202E_202B_206A_200F_200D_202C_200B_206C_206B_206D_206E_200D_202C_200E_202B_200B_200B_206B_206F_202E_200B_202C_206D_200B_200B_200B_206B_200B_206E_202E_200E_202B_200B_200D_200D_206C_206D_202C_206E_202E(aetheryteData, base.Task.To)) ? 1692805628 : 1692805621);
|
||||
break;
|
||||
case 33:
|
||||
return ETaskResult.StillRunning;
|
||||
case 2:
|
||||
return ETaskResult.StillRunning;
|
||||
case EAethernetPhase.WaitingForTargetable:
|
||||
TryInteractWithShard();
|
||||
return ETaskResult.StillRunning;
|
||||
case EAethernetPhase.Interacting:
|
||||
if (aethernetTeleportService.State == AethernetTeleportService.ETeleportState.WaitingForAddon)
|
||||
{
|
||||
if (_interactionAttempts < 3 && Environment.TickCount64 - _phaseStartedAt >= 3000)
|
||||
{
|
||||
logger.LogWarning("Aethernet menu did not open; retrying interaction ({Attempt}/{Limit})", _interactionAttempts + 1, 3);
|
||||
aethernetTeleportService.Reset();
|
||||
throw new TaskException(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>(-1110721623));
|
||||
SetPhase(EAethernetPhase.WaitingForTargetable);
|
||||
}
|
||||
IL_04c6:
|
||||
num = 1692805602;
|
||||
break;
|
||||
IL_0474:
|
||||
num = (movementController.HasBeenMovingForAtLeast(2000) ? 1692805629 : 1692805587);
|
||||
break;
|
||||
IL_03ea:
|
||||
num = ((!_202A_200F_202B_202E_202C_206C_206F_206D_206B_202E_202C_202B_206C_202C_200D_206A_200F_200F_202C_206E_206E_202D_206C_202A_200C_200B_200C_200C_206C_206F_202B_202E_200B_206C_202C_206E_202E_202B_202B_202E_202E(condition, ConditionFlag.Mounted)) ? 1692805623 : 1692805610);
|
||||
break;
|
||||
IL_010a:
|
||||
num = (_202A_200F_202B_202E_202C_206C_206F_206D_206B_202E_202C_202B_206C_202C_200D_206A_200F_200F_202C_206E_206E_202D_206C_202A_200C_200B_200C_200C_206C_206F_202B_202E_200B_206C_202C_206E_202E_202B_202B_202E_202E(condition, ConditionFlag.Mounted) ? 1692805607 : 1692805631);
|
||||
break;
|
||||
IL_0214:
|
||||
TryInteractWithShard();
|
||||
return ETaskResult.StillRunning;
|
||||
IL_016b:
|
||||
playerCharacter = _200E_206A_206E_206A_206F_206D_202D_200E_206A_200B_206F_200B_202E_202D_206E_206F_206D_202A_200E_200C_200C_200E_200D_206C_206E_206B_206F_202E_200D_200E_206A_202C_200B_202D_206F_206C_200B_200C_202C_202D_202E(objectTable);
|
||||
vector = ((playerCharacter != null) ? new Vector3?(_202C_200B_202C_206B_200E_200C_200E_200C_202E_200C_202D_202A_206C_202A_202D_202D_200D_200E_200F_202B_206E_202D_206E_200F_206D_206E_206B_200C_206A_202A_202D_202E_200D_206A_206A_206E_200E_206D_206D_206B_202E((IGameObject)playerCharacter)) : ((Vector3?)null));
|
||||
num = (vector.HasValue ? 1692805617 : 1692805612);
|
||||
break;
|
||||
}
|
||||
if (aethernetTeleportService.State == AethernetTeleportService.ETeleportState.Failed)
|
||||
{
|
||||
aethernetTeleportService.Reset();
|
||||
throw new TaskException("Aethernet teleport failed");
|
||||
}
|
||||
SetPhase(EAethernetPhase.WaitingForArrival);
|
||||
return ETaskResult.StillRunning;
|
||||
case EAethernetPhase.WaitingForArrival:
|
||||
{
|
||||
Vector3? vector = objectTable.LocalPlayer?.Position;
|
||||
if (!vector.HasValue)
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (aetheryteData.IsAirshipLanding(base.Task.To))
|
||||
{
|
||||
if (aetheryteData.CalculateAirshipLandingDistance(vector.Value, clientState.TerritoryType, base.Task.To) > 5f)
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
}
|
||||
else if (aetheryteData.IsCityAetheryte(base.Task.To) || aetheryteData.IsGoldSaucerAetheryte(base.Task.To))
|
||||
{
|
||||
if (aetheryteData.CalculateDistance(vector.Value, clientState.TerritoryType, base.Task.To) > 20f)
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
}
|
||||
else if (clientState.TerritoryType != aetheryteData.TerritoryIds[base.Task.To])
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
aethernetTeleportService.Reset();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
default:
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -640,95 +258,5 @@ internal static class AethernetRide
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static long _200E_206E_200C_200F_206F_202A_206D_200C_202A_202D_206E_200D_206B_206E_200B_202E_200F_206B_202E_200C_206A_206F_202D_206D_206A_200D_200B_206D_200C_206E_202E_202B_206B_206C_202C_206D_206E_202C_200E_206A_202E()
|
||||
{
|
||||
return Environment.TickCount64;
|
||||
}
|
||||
|
||||
static uint _206B_206B_202C_202B_200F_202C_206C_202B_206C_202D_206E_200E_202D_206F_202A_200B_202B_200D_200F_202E_206B_206C_206E_200B_200C_206A_206C_206C_202B_200B_206E_202C_200B_202B_200D_206E_206D_200B_206B_206A_202E(IClientState P_0)
|
||||
{
|
||||
return P_0.TerritoryType;
|
||||
}
|
||||
|
||||
static IPlayerCharacter _200E_206A_206E_206A_206F_206D_202D_200E_206A_200B_206F_200B_202E_202D_206E_206F_206D_202A_200E_200C_200C_200E_200D_206C_206E_206B_206F_202E_200D_200E_206A_202C_200B_202D_206F_206C_200B_200C_202C_202D_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static Vector3 _202C_200B_202C_206B_200E_200C_200E_200C_202E_200C_202D_202A_206C_202A_202D_202D_200D_200E_200F_202B_206E_202D_206E_200F_206D_206E_206B_200C_206A_202A_202D_202E_200D_206A_206A_206E_200E_206D_206D_206B_202E(IGameObject P_0)
|
||||
{
|
||||
return P_0.Position;
|
||||
}
|
||||
|
||||
static float _206C_206A_206C_202B_200C_200F_200D_200D_202D_202E_200B_206F_206C_200D_200D_200E_202E_206B_206E_206A_202A_200D_206B_202E_202D_202C_202C_206C_206E_200B_206C_202D_206D_206D_200D_200D_206A_202C_206C_206F_202E(AetheryteData P_0, Vector3 P_1, uint P_2, EAetheryteLocation P_3)
|
||||
{
|
||||
return P_0.CalculateDistance(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static bool _206D_200D_206F_206B_202D_200F_202B_202A_200E_202A_206B_202C_202D_200C_206B_206C_206B_200C_206A_202E_202A_206D_206D_206E_200B_200E_202A_202A_200E_206A_206C_206E_202E_202B_200B_206B_206F_202C_202B_202C_202E(EAetheryteLocation P_0)
|
||||
{
|
||||
return P_0.IsFirmamentAetheryte();
|
||||
}
|
||||
|
||||
static bool _200D_200D_202D_200F_202B_200C_200B_206E_206D_206E_202A_202D_200F_206A_202E_206C_202A_202A_200C_202D_206A_202C_206C_202B_206C_200D_206F_206C_200F_202D_200B_200B_200D_202D_206D_206A_202B_206E_206E_202B_202E(EAetheryteLocation P_0)
|
||||
{
|
||||
return AetheryteConverter.IsLargeAetheryte(P_0);
|
||||
}
|
||||
|
||||
static void _202E_206A_206A_206B_206B_202B_202B_202B_206B_202D_200E_202C_200F_202E_206F_200D_202B_200E_206C_202D_202D_200D_202B_202E_200F_200C_206F_202B_206D_200E_202A_202B_206C_200E_206F_202D_202E_206E_206C_202D_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
|
||||
static ReadOnlyDictionary<EAetheryteLocation, ushort> _206A_206D_202C_202C_202B_206E_202A_206D_200D_200B_206E_200C_200B_200F_206E_200E_200F_200B_200D_202C_200E_206E_202A_200B_200B_200B_206C_206D_206F_206D_200D_206B_206C_202A_200C_206C_200B_200C_206B_206D_202E(AetheryteData P_0)
|
||||
{
|
||||
return P_0.TerritoryIds;
|
||||
}
|
||||
|
||||
static void _206F_206D_200D_200C_200F_200F_202A_206C_206D_206E_200E_202E_206C_206A_206E_206F_206F_200F_200B_206E_200F_200C_200F_206E_206E_202C_202E_200E_200E_202A_202A_200D_206A_202E_202E_202C_206A_200C_206F_202E_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogWarning(P_1, P_2);
|
||||
}
|
||||
|
||||
static bool _202E_202E_202B_206A_200F_200D_202C_200B_206C_206B_206D_206E_200D_202C_200E_202B_200B_200B_206B_206F_202E_200B_202C_206D_200B_200B_200B_206B_200B_206E_202E_200E_202B_200B_200D_200D_206C_206D_202C_206E_202E(AetheryteData P_0, EAetheryteLocation P_1)
|
||||
{
|
||||
return P_0.IsGoldSaucerAetheryte(P_1);
|
||||
}
|
||||
|
||||
static ReadOnlyDictionary<EAetheryteLocation, Vector3> _202C_202C_202D_200C_202C_206C_200C_206F_202C_200C_206C_200C_202B_202A_200E_200C_202A_202C_202C_202E_200F_200B_206E_206E_206C_206C_202A_200C_206D_202D_202B_200F_206B_206E_202D_206B_206F_200D_202B_206E_202E(AetheryteData P_0)
|
||||
{
|
||||
return P_0.Locations;
|
||||
}
|
||||
|
||||
static void _206F_202A_200D_200D_202C_202D_202A_200D_202C_206E_200F_206B_202C_200D_206A_200D_206D_206B_200B_202E_206D_206A_206A_206C_202C_202E_200C_200E_202B_206C_206F_200E_200D_202E_202A_206E_200B_206D_202A_200F_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogInformation(P_1, P_2);
|
||||
}
|
||||
|
||||
static bool _202A_200F_202B_202E_202C_206C_206F_206D_206B_202E_202C_202B_206C_202C_200D_206A_200F_200F_202C_206E_206E_202D_206C_202A_200C_200B_200C_200C_206C_206F_202B_202E_200B_206C_202C_206E_202E_202B_202B_202E_202E(ICondition P_0, ConditionFlag P_1)
|
||||
{
|
||||
return P_0[P_1];
|
||||
}
|
||||
|
||||
static bool _206D_200D_206E_200F_202D_206A_200B_200C_200D_200D_202D_206E_202B_206F_202C_202C_202C_200C_202A_206A_200F_202C_206E_200B_206F_206F_206F_200E_200F_200D_200B_206C_206A_206C_206A_200E_202D_202D_200B_200D_202E(IGameObject P_0)
|
||||
{
|
||||
return P_0.IsTargetable;
|
||||
}
|
||||
|
||||
static bool _206A_202E_202A_206C_202D_202D_206A_206F_206E_200C_200F_200B_206C_200D_206C_202D_200D_206B_202E_202C_202E_202D_206B_206F_206D_200D_202B_206F_200E_202A_206D_202A_202E_200E_206C_206C_202A_206E_206F_206E_202E(AetheryteData P_0, EAetheryteLocation P_1)
|
||||
{
|
||||
return P_0.IsAirshipLanding(P_1);
|
||||
}
|
||||
|
||||
static float _202C_200D_200F_206F_206D_206D_200C_200D_206D_200D_206A_200E_200F_206C_200D_202D_200D_202C_202B_200F_206F_206D_200C_200D_202B_200F_202C_200B_200E_206A_206E_206B_206F_200C_206A_200D_202B_206A_202D_200F_202E(AetheryteData P_0, Vector3 P_1, uint P_2, EAetheryteLocation P_3)
|
||||
{
|
||||
return P_0.CalculateAirshipLandingDistance(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static bool _206D_200F_200C_202E_206C_202A_206D_206C_206D_200F_200D_206D_202B_200E_206A_200D_200C_200F_202B_206C_200E_200C_206D_202E_202C_202A_206B_200F_206B_200D_200D_206B_200D_200E_202C_202D_202B_200B_206B_206C_202E(AetheryteData P_0, EAetheryteLocation P_1)
|
||||
{
|
||||
return P_0.IsCityAetheryte(P_1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
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.Steps.Movement;
|
||||
|
|
@ -22,95 +18,9 @@ internal static class AetheryteTeleport
|
|||
{
|
||||
internal sealed record Task(EAetheryteLocation TargetAetheryte, ushort ExpectedTerritoryId) : ISkippableTask, ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202E_202E_206D_200B_200C_200E_206A_202B_206D_200E_206B_202A_202D_206C_206B_200F_200B_202E_202C_202D_202B_206B_200F_206F_202A_202D_206B_202D_200C_200D_206B_202C_206D_200D_200C_202B_200D_200E_202E_206D_202E(typeof(Task).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(14, 1);
|
||||
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>(-749085387));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(TargetAetheryte);
|
||||
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>(444206578));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_202E_200C_206B_202D_202C_200D_206C_202D_200E_206F_202C_206E_200C_200B_206E_206F_200B_202D_206F_202E_200F_206E_206F_206C_200E_202D_202D_206D_202D_202B_206D_200E_206C_206A_202E_202C_206D_206D_206C_202B_202E();
|
||||
_206B_202E_202E_206E_206A_200C_206D_200E_202C_200F_200D_206A_206A_200C_200E_200B_200B_206F_206F_202E_206B_206A_202E_206C_202E_202E_206C_206C_206E_200E_202E_202C_200C_202B_206A_206E_202E_206A_206A_206A_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>(-1084557892));
|
||||
_206B_202E_202E_206E_206A_200C_206D_200E_202C_200F_200D_206A_206A_200C_200E_200B_200B_206F_206F_202E_206B_206A_202E_206C_202E_202E_206C_206C_206E_200E_202E_202C_200C_202B_206A_206E_202E_206A_206A_206A_202E(builder, TargetAetheryte.ToString());
|
||||
_206B_202E_202E_206E_206A_200C_206D_200E_202C_200F_200D_206A_206A_200C_200E_200B_200B_206F_206F_202E_206B_206A_202E_206C_202E_202E_206C_206C_206E_200E_202E_202C_200C_202B_206A_206E_202E_206A_206A_206A_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>(1768197240));
|
||||
_206B_202E_202E_206E_206A_200C_206D_200E_202C_200F_200D_206A_206A_200C_200E_200B_200B_206F_206F_202E_206B_206A_202E_206C_202E_202E_206C_206C_206E_200E_202E_202C_200C_202B_206A_206E_202E_206A_206A_206A_202E(builder, ExpectedTerritoryId.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Task? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 712329357 : 712329359);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 712329358;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 6:
|
||||
return false;
|
||||
case 2:
|
||||
num = ((!EqualityComparer<EAetheryteLocation>.Default.Equals(TargetAetheryte, other.TargetAetheryte)) ? 712329352 : 712329355);
|
||||
break;
|
||||
case 3:
|
||||
return true;
|
||||
case 1:
|
||||
num = (((object)other == null) ? 712329352 : 712329358);
|
||||
break;
|
||||
case 0:
|
||||
num = ((!_200C_206F_206D_202A_202D_206F_206E_202E_202E_202D_202D_202A_202C_202C_202E_202E_200E_200E_200D_200B_202C_206F_200B_206A_206B_202A_200E_202A_202E_202D_200E_206A_202B_206C_206F_206A_206E_200C_202E_202D_202E(EqualityContract, other.EqualityContract)) ? 712329352 : 712329356);
|
||||
break;
|
||||
case 4:
|
||||
num = 712329359;
|
||||
break;
|
||||
case 5:
|
||||
return EqualityComparer<ushort>.Default.Equals(ExpectedTerritoryId, other.ExpectedTerritoryId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Task>.Equals(Task? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202E_202E_206D_200B_200C_200E_206A_202B_206D_200E_206B_202A_202D_206C_206B_200F_200B_202E_202C_202D_202B_206B_200F_206F_202A_202D_206B_202D_200C_200D_206B_202C_206D_200D_200C_202B_200D_200E_202E_206D_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _202E_200C_206B_202D_202C_200D_206C_202D_200E_206F_202C_206E_200C_200B_206E_206F_200B_202D_206F_202E_200F_206E_206F_206C_200E_202D_202D_206D_202D_202B_206D_200E_206C_206A_202E_202C_206D_206D_206C_202B_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _206B_202E_202E_206E_206A_200C_206D_200E_202C_200F_200D_206A_206A_200C_200E_200B_200B_206F_206F_202E_206B_206A_202E_206C_202E_202E_206C_206C_206E_200E_202E_202C_200C_202B_206A_206E_202E_206A_206A_206A_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _200C_206F_206D_202A_202D_206F_206E_202E_202E_202D_202D_202A_202C_202C_202E_202E_200E_200E_200D_200B_202C_206F_200B_206A_206B_202A_200E_202A_202E_202D_200E_206A_202B_206C_206F_206A_206E_200C_202E_202D_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"UseAetheryte({TargetAetheryte})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -129,305 +39,94 @@ internal static class AetheryteTeleport
|
|||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
int num = (_teleported ? 1711369376 : 1711369377);
|
||||
IPlayerCharacter playerCharacter = default(IPlayerCharacter);
|
||||
while (true)
|
||||
if (!_teleported)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1711369383;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
if (Environment.TickCount64 < _retryTeleportAt)
|
||||
{
|
||||
case 9:
|
||||
return ETaskResult.StillRunning;
|
||||
case 7:
|
||||
num = ((_202E_200E_206B_200B_200F_202E_206E_206B_202B_206E_202B_206D_200D_206F_206E_200B_202D_206A_202A_200E_206E_206B_206A_206B_200B_200D_202C_200C_206F_206E_200E_206C_200B_200B_206E_200E_206B_202C_200B_200E_202E(clientState) != base.Task.ExpectedTerritoryId) ? 1711369378 : 1711369382);
|
||||
break;
|
||||
case 1:
|
||||
playerCharacter = _200E_202E_200D_206B_206C_206D_202D_200D_200E_200C_202B_200E_206B_202C_202B_206F_200F_206A_200E_200B_206A_202D_202A_200E_200C_200E_202C_202E_202D_206A_206F_202E_202B_202E_206F_200C_202C_200F_200B_202B_202E(objectTable);
|
||||
num = ((playerCharacter == null) ? 1711369386 : 1711369379);
|
||||
break;
|
||||
case 0:
|
||||
return ETaskResult.StillRunning;
|
||||
case 3:
|
||||
_teleported = DoTeleport();
|
||||
return ETaskResult.StillRunning;
|
||||
case 10:
|
||||
ResetProgressTimer();
|
||||
num = 1711369390;
|
||||
break;
|
||||
case 11:
|
||||
num = ((!base.ProgressContext.WasSuccessful()) ? 1711369390 : 1711369389);
|
||||
break;
|
||||
case 2:
|
||||
num = 1711369377;
|
||||
break;
|
||||
case 12:
|
||||
_206A_206E_206D_200B_200E_206F_202D_202C_200F_206A_200F_200F_200F_200E_202A_200C_202E_200E_206E_202E_202E_206E_200E_202E_200F_206F_206F_200D_200B_206D_206E_206F_200C_206F_200C_206B_200D_200B_200E_206F_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>(460204205), new object[1] { base.Task.TargetAetheryte });
|
||||
return ETaskResult.StillRunning;
|
||||
case 8:
|
||||
num = ((!base.ProgressContext.WasInterrupted()) ? 1711369388 : 1711369387);
|
||||
break;
|
||||
case 5:
|
||||
num = ((base.ProgressContext == null) ? 1711369390 : 1711369391);
|
||||
break;
|
||||
case 4:
|
||||
num = ((!(_202E_200B_206C_206D_206A_206A_200D_200B_206E_202A_202A_206C_200E_202B_202A_202D_202E_206F_202C_206A_200C_200E_202B_206F_202C_202A_202A_206E_200F_200C_202D_202E_200B_206B_206D_206D_200D_200E_200B_202D_202E(aetheryteData, _206F_206C_202C_200C_200B_202D_202A_200C_206F_206B_206C_200F_206B_206A_206D_200C_202D_206F_206B_206E_202E_200C_206F_206F_200D_200D_202C_202D_206A_202B_202D_206A_206F_200F_206D_206B_202E_206E_200D_202E((IGameObject)playerCharacter), _202E_200E_206B_200B_200F_202E_206E_206B_202B_206E_202B_206D_200D_206F_206E_200B_202D_206A_202A_200E_206E_206B_206A_206B_200B_200D_202C_200C_206F_206E_200E_206C_200B_200B_206E_200E_206B_202C_200B_200E_202E(clientState), base.Task.TargetAetheryte) <= 50f)) ? 1711369378 : 1711369386);
|
||||
break;
|
||||
case 6:
|
||||
num = ((_206A_202C_202B_206A_202C_202B_206B_202C_206F_206F_202B_206F_202D_206C_202D_202D_200C_200B_202B_206B_202E_202D_200F_202B_200E_206A_206A_206F_202B_200B_206B_202E_202D_200C_206C_200B_206A_206F_200D_202D_202E() >= _retryTeleportAt) ? 1711369380 : 1711369383);
|
||||
break;
|
||||
case 13:
|
||||
}
|
||||
_teleported = DoTeleport();
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (clientState.TerritoryType == base.Task.ExpectedTerritoryId)
|
||||
{
|
||||
IPlayerCharacter localPlayer = objectTable.LocalPlayer;
|
||||
if (localPlayer == null || aetheryteData.CalculateDistance(localPlayer.Position, clientState.TerritoryType, base.Task.TargetAetheryte) <= 50f)
|
||||
{
|
||||
ResetProgressTimer();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private bool DoTeleport()
|
||||
{
|
||||
int num = (aetheryteFunctions.CanTeleport(base.Task.TargetAetheryte) ? (-1816428016) : (-1816428003));
|
||||
while (true)
|
||||
if (base.ProgressContext != null)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1816428007;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
if (base.ProgressContext.WasInterrupted())
|
||||
{
|
||||
case 3:
|
||||
{
|
||||
IChatGui chatGui = chatGui;
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(27, 1);
|
||||
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>(599001678));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(base.Task.TargetAetheryte);
|
||||
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>(-1014635520));
|
||||
_202B_206D_206A_200C_202B_206E_206D_202A_200C_200E_200B_202C_202A_202C_202C_206F_206B_200B_200F_206B_200F_206A_202E_206F_206C_206B_206A_206B_206F_202A_200B_200C_202D_206A_206C_200C_200C_202C_202A_202E(chatGui, defaultInterpolatedStringHandler.ToStringAndClear(), 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>(1231541163), (ushort?)(ushort)576);
|
||||
throw new TaskException(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>(-1295664094));
|
||||
logger.LogDebug("Teleport to {Aetheryte} was interrupted", base.Task.TargetAetheryte);
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
case 10:
|
||||
_206B_200D_202E_202D_202A_202D_202B_206E_200D_202E_206B_206E_200C_206F_206E_202A_206C_206A_200C_200C_200C_200B_206E_200B_206E_206A_202E_200F_206B_200B_206E_202A_206A_206F_200E_202E_206F_206E_202A_202A_202E(chatGui, 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>(1266800824), 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>(1231541163), (ushort?)(ushort)576);
|
||||
throw new TaskException(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>(1604023920));
|
||||
case 4:
|
||||
num = (aetheryteFunctions.IsTeleportUnlocked() ? (-1816428008) : (-1816428002));
|
||||
break;
|
||||
case 6:
|
||||
num = -1816428003;
|
||||
break;
|
||||
case 8:
|
||||
_retryTeleportAt = _206A_202C_202B_206A_202C_202B_206B_202C_206F_206F_202B_206F_202D_206C_202D_202D_200C_200B_202B_206B_202E_202D_200F_202B_200E_206A_206A_206F_202B_200B_206B_202E_202D_200C_206C_200B_206A_206F_200D_202D_202E() + 1000;
|
||||
_200C_200B_202D_200E_200B_200E_202C_206D_202C_206D_200F_200D_200F_202E_202D_202D_200C_206B_200B_200B_202B_206C_202B_206E_202A_206E_200C_202B_206B_202E_206E_206F_202E_206E_200C_200E_202D_200E_206B_206A_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>(-424744046), new object[2] { _teleportAttempts, 3 });
|
||||
return false;
|
||||
case 1:
|
||||
_retryTeleportAt = _206A_202C_202B_206A_202C_202B_206B_202C_206F_206F_202B_206F_202D_206C_202D_202D_200C_200B_202B_206B_202E_202D_200F_202B_200E_206A_206A_206F_202B_200B_206B_202E_202D_200C_206C_200B_206A_206F_200D_202D_202E() + 1000;
|
||||
_206F_202C_206F_202A_200D_206E_206D_206B_206C_206F_200C_206D_200C_206E_200B_200D_206F_206F_202C_202A_202C_200B_200D_202D_206F_206A_206D_200D_202B_206B_206E_206E_202D_206F_202E_200C_202B_202E_200F_206D_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>(-501538903), Array.Empty<object>());
|
||||
return false;
|
||||
case 5:
|
||||
_206E_202D_206F_202B_206B_200F_200D_202C_202D_200D_202C_202A_202C_206C_202A_206B_206E_200E_206C_202A_202E_206C_200B_206A_206D_200C_200F_202D_200D_206A_206D_200B_202E_200C_206D_206E_200B_202C_202C_200F_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>(-1089359613), Array.Empty<object>());
|
||||
return true;
|
||||
case 0:
|
||||
base.ProgressContext = InteractionProgressContext.FromActionUseOrDefault(() => aetheryteFunctions.TeleportAetheryte(base.Task.TargetAetheryte));
|
||||
num = ((base.ProgressContext == null) ? (-1816428005) : (-1816428004));
|
||||
break;
|
||||
case 7:
|
||||
throw new TaskException(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>(451905220));
|
||||
case 2:
|
||||
if (base.ProgressContext.WasSuccessful())
|
||||
{
|
||||
int teleportAttempts = _teleportAttempts;
|
||||
num3 = 1;
|
||||
num4 = teleportAttempts;
|
||||
num = (((_teleportAttempts = (num4 | num3) + (num4 & num3)) >= 3) ? (-1816428013) : (-1816428015));
|
||||
break;
|
||||
}
|
||||
case 9:
|
||||
num = (aetheryteFunctions.IsAetheryteUnlocked(base.Task.TargetAetheryte) ? (-1816428007) : (-1816428006));
|
||||
break;
|
||||
ResetProgressTimer();
|
||||
}
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
|
||||
private bool DoTeleport()
|
||||
{
|
||||
if (!aetheryteFunctions.CanTeleport(base.Task.TargetAetheryte))
|
||||
{
|
||||
if (!aetheryteFunctions.IsTeleportUnlocked())
|
||||
{
|
||||
throw new TaskException("Teleport is not unlocked, attune to any aetheryte first.");
|
||||
}
|
||||
_retryTeleportAt = Environment.TickCount64 + 1000;
|
||||
logger.LogTrace("Waiting for teleport cooldown...");
|
||||
return false;
|
||||
}
|
||||
if (!aetheryteFunctions.IsAetheryteUnlocked(base.Task.TargetAetheryte))
|
||||
{
|
||||
chatGui.PrintError($"Aetheryte {base.Task.TargetAetheryte} is not unlocked.", "Questionable", 576);
|
||||
throw new TaskException("Aetheryte is not unlocked");
|
||||
}
|
||||
base.ProgressContext = InteractionProgressContext.FromActionUseOrDefault(() => aetheryteFunctions.TeleportAetheryte(base.Task.TargetAetheryte));
|
||||
if (base.ProgressContext != null)
|
||||
{
|
||||
logger.LogInformation("Travelling via aetheryte...");
|
||||
return true;
|
||||
}
|
||||
if (++_teleportAttempts < 3)
|
||||
{
|
||||
_retryTeleportAt = Environment.TickCount64 + 1000;
|
||||
logger.LogWarning("Teleport did not start (attempt {Attempt}/{Max}), retrying...", _teleportAttempts, 3);
|
||||
return false;
|
||||
}
|
||||
chatGui.Print("Unable to teleport to aetheryte.", "Questionable", 576);
|
||||
throw new TaskException("Unable to teleport to aetheryte");
|
||||
}
|
||||
|
||||
public override bool WasInterrupted()
|
||||
{
|
||||
int num = (_200E_202C_206A_202E_202C_200E_206C_206A_200B_200D_200D_202B_202C_200C_200F_200C_206A_206D_200C_200F_206C_206A_200E_206B_202A_206B_206C_206E_206D_202A_206E_206E_206C_202C_206B_200C_200D_206D_200C_202B_202E(condition, ConditionFlag.InCombat) ? (-1702092527) : (-1702092528));
|
||||
while (true)
|
||||
if (!condition[ConditionFlag.InCombat])
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1702092527;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
goto IL_004d;
|
||||
case 1:
|
||||
return base.WasInterrupted();
|
||||
case 0:
|
||||
return true;
|
||||
}
|
||||
continue;
|
||||
IL_004d:
|
||||
num = -1702092528;
|
||||
return base.WasInterrupted();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool ShouldInterruptOnDamage()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static long _206A_202C_202B_206A_202C_202B_206B_202C_206F_206F_202B_206F_202D_206C_202D_202D_200C_200B_202B_206B_202E_202D_200F_202B_200E_206A_206A_206F_202B_200B_206B_202E_202D_200C_206C_200B_206A_206F_200D_202D_202E()
|
||||
{
|
||||
return Environment.TickCount64;
|
||||
}
|
||||
|
||||
static uint _202E_200E_206B_200B_200F_202E_206E_206B_202B_206E_202B_206D_200D_206F_206E_200B_202D_206A_202A_200E_206E_206B_206A_206B_200B_200D_202C_200C_206F_206E_200E_206C_200B_200B_206E_200E_206B_202C_200B_200E_202E(IClientState P_0)
|
||||
{
|
||||
return P_0.TerritoryType;
|
||||
}
|
||||
|
||||
static IPlayerCharacter _200E_202E_200D_206B_206C_206D_202D_200D_200E_200C_202B_200E_206B_202C_202B_206F_200F_206A_200E_200B_206A_202D_202A_200E_200C_200E_202C_202E_202D_206A_206F_202E_202B_202E_206F_200C_202C_200F_200B_202B_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static Vector3 _206F_206C_202C_200C_200B_202D_202A_200C_206F_206B_206C_200F_206B_206A_206D_200C_202D_206F_206B_206E_202E_200C_206F_206F_200D_200D_202C_202D_206A_202B_202D_206A_206F_200F_206D_206B_202E_206E_200D_202E(IGameObject P_0)
|
||||
{
|
||||
return P_0.Position;
|
||||
}
|
||||
|
||||
static float _202E_200B_206C_206D_206A_206A_200D_200B_206E_202A_202A_206C_200E_202B_202A_202D_202E_206F_202C_206A_200C_200E_202B_206F_202C_202A_202A_206E_200F_200C_202D_202E_200B_206B_206D_206D_200D_200E_200B_202D_202E(AetheryteData P_0, Vector3 P_1, uint P_2, EAetheryteLocation P_3)
|
||||
{
|
||||
return P_0.CalculateDistance(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static void _206A_206E_206D_200B_200E_206F_202D_202C_200F_206A_200F_200F_200F_200E_202A_200C_202E_200E_206E_202E_202E_206E_200E_202E_200F_206F_206F_200D_200B_206D_206E_206F_200C_206F_200C_206B_200D_200B_200E_206F_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _206F_202C_206F_202A_200D_206E_206D_206B_206C_206F_200C_206D_200C_206E_200B_200D_206F_206F_202C_202A_202C_200B_200D_202D_206F_206A_206D_200D_202B_206B_206E_206E_202D_206F_202E_200C_202B_202E_200F_206D_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogTrace(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _202B_206D_206A_200C_202B_206E_206D_202A_200C_200E_200B_202C_202A_202C_202C_206F_206B_200B_200F_206B_200F_206A_202E_206F_206C_206B_206A_206B_206F_202A_200B_200C_202D_206A_206C_200C_200C_202C_202A_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
||||
{
|
||||
P_0.PrintError(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static void _206E_202D_206F_202B_206B_200F_200D_202C_202D_200D_202C_202A_202C_206C_202A_206B_206E_200E_206C_202A_202E_206C_200B_206A_206D_200C_200F_202D_200D_206A_206D_200B_202E_200C_206D_206E_200B_202C_202C_200F_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogInformation(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _200C_200B_202D_200E_200B_200E_202C_206D_202C_206D_200F_200D_200F_202E_202D_202D_200C_206B_200B_200B_202B_206C_202B_206E_202A_206E_200C_202B_206B_202E_206E_206F_202E_206E_200C_200E_202D_200E_206B_206A_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogWarning(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _206B_200D_202E_202D_202A_202D_202B_206E_200D_202E_206B_206E_200C_206F_206E_202A_206C_206A_200C_200C_200C_200B_206E_200B_206E_206A_202E_200F_206B_200B_206E_202A_206A_206F_200E_202E_206F_206E_202A_202A_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
||||
{
|
||||
P_0.Print(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static bool _200E_202C_206A_202E_202C_200E_206C_206A_200B_200D_200D_202B_202C_200C_200F_200C_206A_206D_200C_200F_206C_206A_200E_206B_202A_206B_206C_206E_206D_202A_206E_206E_206C_202C_206B_200C_200D_206D_200C_202B_202E(ICondition P_0, ConditionFlag P_1)
|
||||
{
|
||||
return P_0[P_1];
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed record MoveAwayFromAetheryte(EAetheryteLocation TargetAetheryte) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202B_206F_206F_200D_200E_200E_206E_200B_200B_200F_202B_202B_206D_202E_206A_206F_200D_200E_202A_206C_206C_200C_202A_206D_200F_206E_206B_200C_200F_202B_202D_206D_202A_202B_200C_200E_200C_200B_206F_202E_202E(typeof(MoveAwayFromAetheryte).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(10, 1);
|
||||
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>(578312142));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(TargetAetheryte);
|
||||
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>(444206578));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_202D_206B_202D_200B_202C_206F_206D_206B_202B_206B_206A_200F_200D_206D_202B_202D_202C_206A_206E_202E_202C_200D_206A_206A_200F_206E_206F_206E_202C_202C_206F_202A_200D_206D_200D_202A_202E_202A_206D_202E();
|
||||
_206F_200D_202B_202B_200E_200C_202D_200E_200E_206F_200D_206E_202C_206A_200B_206C_206C_200B_200F_202C_202D_202E_202C_206D_206F_206F_202D_202A_206D_202E_206F_202D_206F_202C_206B_202C_206D_200B_206B_200C_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>(-1402978722));
|
||||
_206F_200D_202B_202B_200E_200C_202D_200E_200E_206F_200D_206E_202C_206A_200B_206C_206C_200B_200F_202C_202D_202E_202C_206D_206F_206F_202D_202A_206D_202E_206F_202D_206F_202C_206B_202C_206D_200B_206B_200C_202E(builder, TargetAetheryte.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(MoveAwayFromAetheryte? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 278211642 : 278211645);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 278211641;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = 278211645;
|
||||
break;
|
||||
case 5:
|
||||
return false;
|
||||
case 4:
|
||||
num = (((object)other == null) ? 278211644 : 278211640);
|
||||
break;
|
||||
case 3:
|
||||
return true;
|
||||
case 2:
|
||||
return EqualityComparer<EAetheryteLocation>.Default.Equals(TargetAetheryte, other.TargetAetheryte);
|
||||
case 1:
|
||||
num = ((!_200E_206C_202E_200E_200F_202B_202E_200F_202D_200B_206A_200C_206B_206B_206C_200F_200F_206A_200E_202D_200D_200B_200E_202C_206C_206A_200E_206B_200F_202D_200D_206C_200F_206D_200B_200D_200C_202D_200F_206F_202E(EqualityContract, other.EqualityContract)) ? 278211644 : 278211643);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<MoveAwayFromAetheryte>.Equals(MoveAwayFromAetheryte? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202B_206F_206F_200D_200E_200E_206E_200B_200B_200F_202B_202B_206D_202E_206A_206F_200D_200E_202A_206C_206C_200C_202A_206D_200F_206E_206B_200C_200F_202B_202D_206D_202A_202B_200C_200E_200C_200B_206F_202E_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _202D_206B_202D_200B_202C_206F_206D_206B_202B_206B_206A_200F_200D_206D_202B_202D_202C_206A_206E_202E_202C_200D_206A_206A_200F_206E_206F_206E_202C_202C_206F_202A_200D_206D_200D_202A_202E_202A_206D_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _206F_200D_202B_202B_200E_200C_202D_200E_200E_206F_200D_206E_202C_206A_200B_206C_206C_200B_200F_202C_202D_202E_202C_206D_206F_206F_202D_202A_206D_202E_206F_202D_206F_202C_206B_202C_206D_200B_206B_200C_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _200E_206C_202E_200E_200F_202B_202E_200F_202D_200B_206A_200C_206B_206B_206C_200F_200F_206A_200E_202D_200D_200B_200E_202C_206C_206A_200E_206B_200F_202D_200D_206C_200F_206D_200B_200D_200C_202D_200F_206F_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"MoveAway({TargetAetheryte})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -442,35 +141,19 @@ internal static class AetheryteTeleport
|
|||
|
||||
protected override bool Start()
|
||||
{
|
||||
IPlayerCharacter playerCharacter = _202B_206E_206F_206B_202E_206F_202B_200D_202B_202C_206E_206A_206D_202D_202C_202D_202A_206E_202D_200E_200D_206C_202B_206A_202B_206A_206C_206E_200D_206C_202D_206C_202B_202A_206C_206E_206D_200F_202D_206B_202E(objectTable);
|
||||
int num = ((playerCharacter != null) ? 1693276113 : 1693276115);
|
||||
Vector3 playerPosition = default(Vector3);
|
||||
while (true)
|
||||
IPlayerCharacter localPlayer = objectTable.LocalPlayer;
|
||||
if (localPlayer == null)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1693276112;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
num = 1693276115;
|
||||
break;
|
||||
case 3:
|
||||
return false;
|
||||
case 1:
|
||||
playerPosition = _206F_206F_206C_200E_206B_200F_200D_202C_206B_206F_202D_206B_200C_200D_206C_200B_202E_202E_202A_202D_202E_200C_206A_200E_202B_200F_200E_200F_206A_200B_202A_200E_202C_200F_200B_202A_202B_200D_206C_200C_202E((IGameObject)playerCharacter);
|
||||
num = ((!(_206B_200B_200F_200C_202D_206F_200C_206F_200F_202B_206D_206F_202D_200B_200E_200C_206C_206C_206B_200C_202D_200C_200E_202B_200C_200B_202B_206C_200F_206B_206D_202D_202D_202D_202C_206D_202C_200E_202C_206D_202E(aetheryteData, playerPosition, _202B_200D_200F_202D_200F_206F_206D_202C_206A_206B_206B_202D_206E_206D_206A_202E_200C_200C_202B_206F_200E_206D_202B_206C_200C_206C_202D_206A_202A_206E_206F_200B_206B_202A_200B_206C_200E_202D_200E_202C_202E(clientState), base.Task.TargetAetheryte) >= 20f)) ? 1693276114 : 1693276116);
|
||||
break;
|
||||
case 4:
|
||||
return false;
|
||||
case 2:
|
||||
{
|
||||
Vector3 destination = AetherytesToMoveFrom[base.Task.TargetAetheryte].MinBy((Vector3 x) => Vector3.Distance(x, playerPosition));
|
||||
MoveTask task = new MoveTask(_202D_202E_202C_202E_200D_202A_206C_206F_200E_206A_200B_202D_206C_206E_202C_202E_206F_206E_200D_206A_202D_206F_206B_202A_202C_202D_200C_202A_200B_206F_200B_206C_200D_200D_202E_202C_202E_202D_202E_200D_202E(aetheryteData)[base.Task.TargetAetheryte], destination, false, MountRequired: false, DismountRequired: false, 0.25f, null, DisableNavmesh: true, null, Fly: false, Land: false, IgnoreDistanceToObject: false, RestartNavigation: false);
|
||||
return moveExecutor.Start(task);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Vector3 playerPosition = localPlayer.Position;
|
||||
if (aetheryteData.CalculateDistance(playerPosition, clientState.TerritoryType, base.Task.TargetAetheryte) >= 20f)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Vector3 destination = AetherytesToMoveFrom[base.Task.TargetAetheryte].MinBy((Vector3 x) => Vector3.Distance(x, playerPosition));
|
||||
MoveTask task = new MoveTask(aetheryteData.TerritoryIds[base.Task.TargetAetheryte], destination, false, MountRequired: false, DismountRequired: false, 0.25f, null, DisableNavmesh: true, null, Fly: false, Land: false, IgnoreDistanceToObject: false, RestartNavigation: false);
|
||||
return moveExecutor.Start(task);
|
||||
}
|
||||
|
||||
public override ETaskResult Update()
|
||||
|
|
@ -497,30 +180,5 @@ internal static class AetheryteTeleport
|
|||
dictionary.Add(EAetheryteLocation.SolutionNine, list);
|
||||
AetherytesToMoveFrom = dictionary;
|
||||
}
|
||||
|
||||
static IPlayerCharacter _202B_206E_206F_206B_202E_206F_202B_200D_202B_202C_206E_206A_206D_202D_202C_202D_202A_206E_202D_200E_200D_206C_202B_206A_202B_206A_206C_206E_200D_206C_202D_206C_202B_202A_206C_206E_206D_200F_202D_206B_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static Vector3 _206F_206F_206C_200E_206B_200F_200D_202C_206B_206F_202D_206B_200C_200D_206C_200B_202E_202E_202A_202D_202E_200C_206A_200E_202B_200F_200E_200F_206A_200B_202A_200E_202C_200F_200B_202A_202B_200D_206C_200C_202E(IGameObject P_0)
|
||||
{
|
||||
return P_0.Position;
|
||||
}
|
||||
|
||||
static uint _202B_200D_200F_202D_200F_206F_206D_202C_206A_206B_206B_202D_206E_206D_206A_202E_200C_200C_202B_206F_200E_206D_202B_206C_200C_206C_202D_206A_202A_206E_206F_200B_206B_202A_200B_206C_200E_202D_200E_202C_202E(IClientState P_0)
|
||||
{
|
||||
return P_0.TerritoryType;
|
||||
}
|
||||
|
||||
static float _206B_200B_200F_200C_202D_206F_200C_206F_200F_202B_206D_206F_202D_200B_200E_200C_206C_206C_206B_200C_202D_200C_200E_202B_200C_200B_202B_206C_200F_206B_206D_202D_202D_202D_202C_206D_202C_200E_202C_206D_202E(AetheryteData P_0, Vector3 P_1, uint P_2, EAetheryteLocation P_3)
|
||||
{
|
||||
return P_0.CalculateDistance(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static ReadOnlyDictionary<EAetheryteLocation, ushort> _202D_202E_202C_202E_200D_202A_206C_206F_200E_206A_200B_202D_206C_206E_202C_202E_206F_206E_200D_206A_202D_206F_206B_202A_202C_202D_200C_202A_200B_206F_200B_206C_200D_200D_202E_202C_202E_202D_202E_200D_202E(AetheryteData P_0)
|
||||
{
|
||||
return P_0.TerritoryIds;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Plugin.Services;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||
using LLib.GameData;
|
||||
using Lumina.Excel;
|
||||
using Lumina.Excel.Sheets;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Questionable.Controller.Steps.Common;
|
||||
|
|
@ -24,430 +19,111 @@ internal static class Craft
|
|||
{
|
||||
internal sealed class Factory : ITaskFactory
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public IEnumerable<ITask> CreateAllTasks(Questionable.Model.Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
int num = ((_206A_202B_202D_206A_206B_200B_202A_202A_206B_202D_206A_206A_206C_206D_206A_200C_206B_200F_202A_206C_200B_206C_206C_202C_206A_200F_206F_206B_206A_206A_206D_206C_202A_206F_206D_206B_200B_200C_202D_206D_202E(step) == EInteractionType.Craft) ? 511987702 : 511987701);
|
||||
while (true)
|
||||
if (step.InteractionType != EInteractionType.Craft)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 511987703;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 1:
|
||||
_202D_200C_206B_202C_200D_200D_206B_206E_202A_202C_200B_202B_200D_206F_202C_206C_202B_200D_202C_200F_200C_202A_206C_200D_206E_206A_200B_202C_206E_202C_206C_206D_200B_206A_206F_206A_206F_200F_202C_206E_202E((object)_200E_206A_202C_200E_202B_200B_202A_200D_206D_200E_206F_200B_202E_200F_202A_200B_202B_206B_202D_200F_202B_206C_200B_202A_206B_200F_206A_202D_202A_206A_202C_206D_200E_202A_200F_202B_206E_200C_202E_200F_202E(step), 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>(-1496371967));
|
||||
_202D_200C_206B_202C_200D_200D_206B_206E_202A_202C_200B_202B_200D_206F_202C_206C_202B_200D_202C_200F_200C_202A_206C_200D_206E_206A_200B_202C_206E_202C_206C_206D_200B_206A_206F_206A_206F_200F_202C_206E_202E((object)_202C_206E_202A_202D_200E_202E_200E_206D_206E_206F_200D_200C_202C_200E_202E_200D_206A_202E_200D_202B_202D_206C_206E_202B_200F_206B_206B_202C_200F_202C_200E_200D_206D_206C_202E_206E_202B_200F_206E_206D_202E(step), 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>(98690158));
|
||||
return new global::_003C_003Ez__ReadOnlyArray<ITask>(new ITask[2]
|
||||
{
|
||||
new Questionable.Controller.Steps.Common.Mount.UnmountTask(),
|
||||
new CraftTask(_200E_206A_202C_200E_202B_200B_202A_200D_206D_200E_206F_200B_202E_200F_202A_200B_202B_206B_202D_200F_202B_206C_200B_202A_206B_200F_206A_202D_202A_206A_202C_206D_200E_202A_200F_202B_206E_200C_202E_200F_202E(step).Value, _202C_206E_202A_202D_200E_202E_200E_206D_206E_206F_200D_200C_202C_200E_202E_200D_206A_202E_200D_202B_202D_206C_206E_202B_200F_206B_206B_202C_200F_202C_200E_200D_206D_206C_202E_206E_202B_200F_206E_206D_202E(step).Value, _202A_206E_200B_206A_202C_206D_206E_206F_206C_200B_200F_206E_206D_202E_206E_200D_202A_202A_206E_202E_206B_202C_200B_200D_200C_206D_202D_202C_200C_206A_206E_206C_200E_206C_202A_200F_200D_202E_206D_200E_202E(step) == true)
|
||||
});
|
||||
case 2:
|
||||
return Array.Empty<ITask>();
|
||||
case 0:
|
||||
goto IL_00ce;
|
||||
}
|
||||
continue;
|
||||
IL_00ce:
|
||||
num = 511987701;
|
||||
return Array.Empty<ITask>();
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerable<ITask> ITaskFactory.CreateAllTasks(Questionable.Model.Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in CreateAllTasks
|
||||
return this.CreateAllTasks(quest, sequence, step);
|
||||
}
|
||||
|
||||
static EInteractionType _206A_202B_202D_206A_206B_200B_202A_202A_206B_202D_206A_206A_206C_206D_206A_200C_206B_200F_202A_206C_200B_206C_206C_202C_206A_200F_206F_206B_206A_206A_206D_206C_202A_206F_206D_206B_200B_200C_202D_206D_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.InteractionType;
|
||||
}
|
||||
|
||||
static uint? _200E_206A_202C_200E_202B_200B_202A_200D_206D_200E_206F_200B_202E_200F_202A_200B_202B_206B_202D_200F_202B_206C_200B_202A_206B_200F_206A_202D_202A_206A_202C_206D_200E_202A_200F_202B_206E_200C_202E_200F_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.ItemId;
|
||||
}
|
||||
|
||||
static void _202D_200C_206B_202C_200D_200D_206B_206E_202A_202C_200B_202B_200D_206F_202C_206C_202B_200D_202C_200F_200C_202A_206C_200D_206E_206A_200B_202C_206E_202C_206C_206D_200B_206A_206F_206A_206F_200F_202C_206E_202E(object P_0, string P_1)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(P_0, P_1);
|
||||
}
|
||||
|
||||
static int? _202C_206E_202A_202D_200E_202E_200E_206D_206E_206F_200D_200C_202C_200E_202E_200D_206A_202E_200D_202B_202D_206C_206E_202B_200F_206B_206B_202C_200F_202C_200E_200D_206D_206C_202E_206E_202B_200F_206E_206D_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.ItemCount;
|
||||
}
|
||||
|
||||
static bool? _202A_206E_200B_206A_202C_206D_206E_206F_206C_200B_200F_206E_206D_202E_206E_200D_202A_202A_206E_202E_206B_202C_200B_200D_200C_206D_202D_202C_200C_206A_206E_206C_200E_206C_202A_200F_200D_202E_206D_200E_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.RequireHq;
|
||||
ArgumentNullException.ThrowIfNull(step.ItemId, "step.ItemId");
|
||||
ArgumentNullException.ThrowIfNull(step.ItemCount, "step.ItemCount");
|
||||
return new global::_003C_003Ez__ReadOnlyArray<ITask>(new ITask[2]
|
||||
{
|
||||
new Questionable.Controller.Steps.Common.Mount.UnmountTask(),
|
||||
new CraftTask(step.ItemId.Value, step.ItemCount.Value, step.RequireHq == true)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed record CraftTask(uint ItemId, int ItemCount, bool RequireHq) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202D_200C_200D_202D_202E_206F_206E_202D_206C_206F_200C_202A_200F_200D_200B_200C_206D_206B_200E_202A_206F_202A_206C_200B_200E_202A_202D_202D_200F_200E_202A_206F_206B_206A_200B_206C_202D_200E_202C_200E_202E(typeof(CraftTask).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(23, 3);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(-1781620549));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(ItemCount);
|
||||
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>(350814621));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(ItemId);
|
||||
defaultInterpolatedStringHandler.AppendFormatted(RequireHq ? 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>(-6445935) : 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>(-1720149641));
|
||||
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>(-1276730098));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_206D_206E_206C_200D_200B_200B_206A_200C_202B_202D_206B_200F_206D_206A_202B_200C_206C_202B_206F_206C_206B_200D_200B_202B_202D_202C_202E_206D_200F_206A_206F_202C_200E_202C_206B_200E_202E_206E_206F_202B_202E();
|
||||
_206A_200B_202B_200E_206F_202B_202D_202E_206C_202B_206C_200B_200D_202B_202E_206F_206F_202A_206A_206A_200C_206A_202C_200F_202D_200D_200B_206B_200F_206E_200E_206C_202C_206C_206F_202B_200C_202C_202E_206D_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>(-1176260912));
|
||||
_206A_200B_202B_200E_206F_202B_202D_202E_206C_202B_206C_200B_200D_202B_202E_206F_206F_202A_206A_206A_200C_206A_202C_200F_202D_200D_200B_206B_200F_206E_200E_206C_202C_206C_206F_202B_200C_202C_202E_206D_202E(builder, ItemId.ToString());
|
||||
_206A_200B_202B_200E_206F_202B_202D_202E_206C_202B_206C_200B_200D_202B_202E_206F_206F_202A_206A_206A_200C_206A_202C_200F_202D_200D_200B_206B_200F_206E_200E_206C_202C_206C_206F_202B_200C_202C_202E_206D_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>(-503598644));
|
||||
_206A_200B_202B_200E_206F_202B_202D_202E_206C_202B_206C_200B_200D_202B_202E_206F_206F_202A_206A_206A_200C_206A_202C_200F_202D_200D_200B_206B_200F_206E_200E_206C_202C_206C_206F_202B_200C_202C_202E_206D_202E(builder, ItemCount.ToString());
|
||||
_206A_200B_202B_200E_206F_202B_202D_202E_206C_202B_206C_200B_200D_202B_202E_206F_206F_202A_206A_206A_200C_206A_202C_200F_202D_200D_200B_206B_200F_206E_200E_206C_202C_206C_206F_202B_200C_202C_202E_206D_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>(1102929611));
|
||||
_206A_200B_202B_200E_206F_202B_202D_202E_206C_202B_206C_200B_200D_202B_202E_206F_206F_202A_206A_206A_200C_206A_202C_200F_202D_200D_200B_206B_200F_206E_200E_206C_202C_206C_206F_202B_200C_202C_202E_206D_202E(builder, RequireHq.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(CraftTask? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 528344161 : 528344167);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 528344166;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 6:
|
||||
num = 528344167;
|
||||
break;
|
||||
case 5:
|
||||
num = ((!EqualityComparer<uint>.Default.Equals(ItemId, other.ItemId)) ? 528344166 : 528344162);
|
||||
break;
|
||||
case 4:
|
||||
num = ((!EqualityComparer<int>.Default.Equals(ItemCount, other.ItemCount)) ? 528344166 : 528344165);
|
||||
break;
|
||||
case 7:
|
||||
return true;
|
||||
case 1:
|
||||
num = (((object)other == null) ? 528344166 : 528344164);
|
||||
break;
|
||||
case 2:
|
||||
num = ((!_206D_200F_206B_200C_206B_202E_206F_202E_202D_200F_200C_206F_206B_200C_206D_200B_202C_206A_206F_200C_200F_200F_200D_202E_202E_202B_206A_202E_200F_202B_200F_202A_200D_206D_202A_206D_206D_202A_206A_202E(EqualityContract, other.EqualityContract)) ? 528344166 : 528344163);
|
||||
break;
|
||||
case 0:
|
||||
return false;
|
||||
case 3:
|
||||
return EqualityComparer<bool>.Default.Equals(RequireHq, other.RequireHq);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<CraftTask>.Equals(CraftTask? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202D_200C_200D_202D_202E_206F_206E_202D_206C_206F_200C_202A_200F_200D_200B_200C_206D_206B_200E_202A_206F_202A_206C_200B_200E_202A_202D_202D_200F_200E_202A_206F_206B_206A_200B_206C_202D_200E_202C_200E_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _206D_206E_206C_200D_200B_200B_206A_200C_202B_202D_206B_200F_206D_206A_202B_200C_206C_202B_206F_206C_206B_200D_200B_202B_202D_202C_202E_206D_200F_206A_206F_202C_200E_202C_206B_200E_202E_206E_206F_202B_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _206A_200B_202B_200E_206F_202B_202D_202E_206C_202B_206C_200B_200D_202B_202E_206F_206F_202A_206A_206A_200C_206A_202C_200F_202D_200D_200B_206B_200F_206E_200E_206C_202C_206C_206F_202B_200C_202C_202E_206D_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _206D_200F_206B_200C_206B_202E_206F_202E_202D_200F_200C_206F_206B_200C_206D_200B_202C_206A_206F_200C_200F_200F_200D_202E_202E_202B_206A_202E_200F_202B_200F_202A_200D_206D_202A_206D_206D_202A_206A_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"Craft {ItemCount}x {ItemId}{(RequireHq ? " (HQ)" : "")} (with Artisan)";
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class DoCraft(IDataManager dataManager, IObjectTable objectTable, ArtisanIpc artisanIpc, ILogger<DoCraft> logger) : TaskExecutor<CraftTask>()
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
protected override bool Start()
|
||||
{
|
||||
int num = ((!HasRequestedItems()) ? (-227279258) : (-227279244));
|
||||
uint num8 = default(uint);
|
||||
RecipeLookup? rowOrDefault = default(RecipeLookup?);
|
||||
uint num7 = default(uint);
|
||||
uint? num9 = default(uint?);
|
||||
EClassJob? eClassJob = default(EClassJob?);
|
||||
while (true)
|
||||
if (HasRequestedItems())
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -227279260;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
EClassJob? obj;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 7:
|
||||
num8 = rowOrDefault.Value.CUL.RowId;
|
||||
num = -227279248;
|
||||
break;
|
||||
case 13:
|
||||
num8 = 0u;
|
||||
num = -227279248;
|
||||
break;
|
||||
case 18:
|
||||
num = ((num7 != 0) ? (-227279246) : (-227279252));
|
||||
break;
|
||||
case 8:
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(36, 1);
|
||||
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>(-1859404714));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(base.Task.ItemId);
|
||||
throw new TaskException(defaultInterpolatedStringHandler.ToStringAndClear());
|
||||
}
|
||||
case 11:
|
||||
num = -227279244;
|
||||
break;
|
||||
case 16:
|
||||
_202B_206D_206C_202D_202E_200D_202E_202D_206D_200E_206A_202E_200C_206A_206D_206F_206C_206B_206C_206B_200D_200E_200F_206F_206D_200D_200E_202C_200F_206E_206E_202A_200C_206D_202E_200C_202E_206F_206E_206A_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>(-695579807), new object[3]
|
||||
{
|
||||
base.Task.ItemCount,
|
||||
base.Task.ItemId,
|
||||
base.Task.RequireHq ? 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>(-6445935) : 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>(-1694032531)
|
||||
});
|
||||
return false;
|
||||
case 17:
|
||||
goto IL_01b2;
|
||||
case 19:
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler3 = new DefaultInterpolatedStringHandler(41, 1);
|
||||
defaultInterpolatedStringHandler3.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>(-1243369350));
|
||||
defaultInterpolatedStringHandler3.AppendFormatted(num7);
|
||||
throw new TaskException(defaultInterpolatedStringHandler3.ToStringAndClear());
|
||||
}
|
||||
case 3:
|
||||
goto IL_0209;
|
||||
case 9:
|
||||
goto IL_0230;
|
||||
case 1:
|
||||
goto IL_0257;
|
||||
case 15:
|
||||
return true;
|
||||
case 20:
|
||||
num7 = num8;
|
||||
num = ((num7 != 0) ? (-227279242) : (-227279256));
|
||||
break;
|
||||
case 14:
|
||||
goto IL_02a1;
|
||||
case 22:
|
||||
{
|
||||
int num10 = base.Task.ItemCount - GetOwnedItemCount();
|
||||
_202B_206D_206C_202D_202E_200D_202E_202D_206D_200E_206A_202E_200C_206A_206D_206F_206C_206B_206C_206B_200D_200E_200F_206F_206D_200D_200E_202C_200F_206E_206E_202A_200C_206D_202E_200C_202E_206F_206E_206A_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>(1999201105), new object[4]
|
||||
{
|
||||
base.Task.ItemId,
|
||||
num7,
|
||||
num10,
|
||||
base.Task.RequireHq ? 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>(-495381767) : 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>(-87324410)
|
||||
});
|
||||
num = (artisanIpc.CraftItem((ushort)num7, num10) ? (-227279253) : (-227279241));
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
rowOrDefault = dataManager.GetExcelSheet<RecipeLookup>().GetRowOrDefault(base.Task.ItemId);
|
||||
num = (rowOrDefault.HasValue ? (-227279236) : (-227279264));
|
||||
break;
|
||||
case 0:
|
||||
goto IL_03bc;
|
||||
case 23:
|
||||
num = -227279255;
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler2 = new DefaultInterpolatedStringHandler(22, 1);
|
||||
defaultInterpolatedStringHandler2.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>(335057319));
|
||||
defaultInterpolatedStringHandler2.AppendFormatted(base.Task.ItemId);
|
||||
defaultInterpolatedStringHandler2.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>(-37094116));
|
||||
throw new TaskException(defaultInterpolatedStringHandler2.ToStringAndClear());
|
||||
}
|
||||
case 24:
|
||||
{
|
||||
IPlayerCharacter playerCharacter = _200F_202D_206E_206B_206B_206E_200B_206C_206D_206D_206E_202C_206A_202D_206C_200F_206A_200B_200E_206D_206E_202C_202C_202C_206A_206E_202B_200F_206A_206F_206D_202E_202A_206F_206B_206F_206D_200F_202B_202E_202E(objectTable);
|
||||
num9 = ((playerCharacter != null) ? new uint?(_202D_206F_202B_200D_200B_202C_206F_202D_206E_200F_200E_202D_206D_206E_202D_200E_200F_206D_202D_202C_202A_200C_206C_200D_200D_200F_202A_206A_202C_202A_202C_200E_202D_200D_202D_200F_206F_206D_206E_202B_202E((ICharacter)playerCharacter).RowId) : ((uint?)null));
|
||||
num = (num9.HasValue ? (-227279250) : (-227279263));
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
obj = null;
|
||||
goto IL_04bb;
|
||||
case 10:
|
||||
obj = (EClassJob)num9.GetValueOrDefault();
|
||||
goto IL_04bb;
|
||||
case 21:
|
||||
goto IL_04e1;
|
||||
case 6:
|
||||
switch (eClassJob.GetValueOrDefault())
|
||||
{
|
||||
case EClassJob.Culinarian:
|
||||
break;
|
||||
case EClassJob.Armorer:
|
||||
goto IL_01b2;
|
||||
case EClassJob.Leatherworker:
|
||||
goto IL_0209;
|
||||
case EClassJob.Weaver:
|
||||
goto IL_0230;
|
||||
case EClassJob.Carpenter:
|
||||
goto IL_0257;
|
||||
case EClassJob.Blacksmith:
|
||||
goto IL_02a1;
|
||||
case EClassJob.Goldsmith:
|
||||
goto IL_03bc;
|
||||
case EClassJob.Alchemist:
|
||||
goto IL_04e1;
|
||||
default:
|
||||
goto IL_053a;
|
||||
}
|
||||
goto case 7;
|
||||
case 12:
|
||||
{
|
||||
num7 = new uint[8]
|
||||
{
|
||||
rowOrDefault.Value.CRP.RowId,
|
||||
rowOrDefault.Value.BSM.RowId,
|
||||
rowOrDefault.Value.ARM.RowId,
|
||||
rowOrDefault.Value.GSM.RowId,
|
||||
rowOrDefault.Value.LTW.RowId,
|
||||
rowOrDefault.Value.WVR.RowId,
|
||||
rowOrDefault.Value.ALC.RowId,
|
||||
rowOrDefault.Value.CUL.RowId
|
||||
}.FirstOrDefault((uint x) => x != 0);
|
||||
num = -227279242;
|
||||
break;
|
||||
}
|
||||
IL_053a:
|
||||
num = -227279245;
|
||||
break;
|
||||
IL_04e1:
|
||||
num8 = rowOrDefault.Value.ALC.RowId;
|
||||
num = -227279248;
|
||||
break;
|
||||
IL_04bb:
|
||||
eClassJob = obj;
|
||||
num = ((!eClassJob.HasValue) ? (-227279255) : (-227279262));
|
||||
break;
|
||||
IL_02a1:
|
||||
num8 = rowOrDefault.Value.BSM.RowId;
|
||||
num = -227279248;
|
||||
break;
|
||||
IL_0257:
|
||||
num8 = rowOrDefault.Value.CRP.RowId;
|
||||
num = -227279248;
|
||||
break;
|
||||
IL_0230:
|
||||
num8 = rowOrDefault.Value.WVR.RowId;
|
||||
num = -227279248;
|
||||
break;
|
||||
IL_03bc:
|
||||
num8 = rowOrDefault.Value.GSM.RowId;
|
||||
num = -227279248;
|
||||
break;
|
||||
IL_0209:
|
||||
num8 = rowOrDefault.Value.LTW.RowId;
|
||||
num = -227279248;
|
||||
break;
|
||||
IL_01b2:
|
||||
num8 = rowOrDefault.Value.ARM.RowId;
|
||||
num = -227279248;
|
||||
break;
|
||||
}
|
||||
logger.LogDebug("Already own {ItemCount}x {ItemId}{HqSuffix}", base.Task.ItemCount, base.Task.ItemId, base.Task.RequireHq ? " (HQ)" : "");
|
||||
return false;
|
||||
}
|
||||
RecipeLookup? rowOrDefault = dataManager.GetExcelSheet<RecipeLookup>().GetRowOrDefault(base.Task.ItemId);
|
||||
if (!rowOrDefault.HasValue)
|
||||
{
|
||||
throw new TaskException($"Item {base.Task.ItemId} is not craftable");
|
||||
}
|
||||
uint num = (EClassJob?)objectTable.LocalPlayer?.ClassJob.RowId switch
|
||||
{
|
||||
EClassJob.Carpenter => rowOrDefault.Value.CRP.RowId,
|
||||
EClassJob.Blacksmith => rowOrDefault.Value.BSM.RowId,
|
||||
EClassJob.Armorer => rowOrDefault.Value.ARM.RowId,
|
||||
EClassJob.Goldsmith => rowOrDefault.Value.GSM.RowId,
|
||||
EClassJob.Leatherworker => rowOrDefault.Value.LTW.RowId,
|
||||
EClassJob.Weaver => rowOrDefault.Value.WVR.RowId,
|
||||
EClassJob.Alchemist => rowOrDefault.Value.ALC.RowId,
|
||||
EClassJob.Culinarian => rowOrDefault.Value.CUL.RowId,
|
||||
_ => 0u,
|
||||
};
|
||||
if (num == 0)
|
||||
{
|
||||
num = new uint[8]
|
||||
{
|
||||
rowOrDefault.Value.CRP.RowId,
|
||||
rowOrDefault.Value.BSM.RowId,
|
||||
rowOrDefault.Value.ARM.RowId,
|
||||
rowOrDefault.Value.GSM.RowId,
|
||||
rowOrDefault.Value.LTW.RowId,
|
||||
rowOrDefault.Value.WVR.RowId,
|
||||
rowOrDefault.Value.ALC.RowId,
|
||||
rowOrDefault.Value.CUL.RowId
|
||||
}.FirstOrDefault((uint x) => x != 0);
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
throw new TaskException($"Unable to determine recipe for item {base.Task.ItemId}");
|
||||
}
|
||||
int num2 = base.Task.ItemCount - GetOwnedItemCount();
|
||||
logger.LogDebug("Starting craft for item {ItemId} with recipe {RecipeId} for {RemainingItemCount} items{HqSuffix}", base.Task.ItemId, num, num2, base.Task.RequireHq ? " (HQ required)" : "");
|
||||
if (!artisanIpc.CraftItem((ushort)num, num2))
|
||||
{
|
||||
throw new TaskException($"Failed to start Artisan craft for recipe {num}");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public unsafe override ETaskResult Update()
|
||||
{
|
||||
int num = (artisanIpc.IsCrafting() ? (-1658987480) : (-1658987481));
|
||||
uint addonId = default(uint);
|
||||
AgentRecipeNote* ptr = default(AgentRecipeNote*);
|
||||
AtkUnitBase* addonById = default(AtkUnitBase*);
|
||||
while (true)
|
||||
if (!artisanIpc.IsCrafting())
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1658987473;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 5:
|
||||
num = -1658987481;
|
||||
break;
|
||||
case 4:
|
||||
addonId = ptr->GetAddonId();
|
||||
num = ((addonId != 0) ? (-1658987476) : (-1658987473));
|
||||
break;
|
||||
case 3:
|
||||
addonById = AtkStage.Instance()->RaptureAtkUnitManager->GetAddonById((ushort)addonId);
|
||||
num = ((addonById == null) ? (-1658987480) : (-1658987479));
|
||||
break;
|
||||
case 0:
|
||||
return ETaskResult.StillRunning;
|
||||
case 8:
|
||||
num = ((!HasRequestedItems()) ? (-1658987475) : (-1658987474));
|
||||
break;
|
||||
case 2:
|
||||
if (!HasRequestedItems())
|
||||
{
|
||||
int ownedItemCount = GetOwnedItemCount();
|
||||
_206F_200B_206F_200D_202B_202A_206C_200C_202D_202B_200F_206D_206A_206E_200D_206B_206E_202D_202C_206C_202C_206D_206C_202E_200E_202B_206B_206A_206D_200D_202B_200D_200C_206D_202E_206D_206E_202E_202A_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>(-1100170255), new object[3]
|
||||
{
|
||||
ownedItemCount,
|
||||
base.Task.ItemCount,
|
||||
base.Task.ItemId
|
||||
});
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(52, 2);
|
||||
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>(-1173795697));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(ownedItemCount);
|
||||
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>(-1680133376));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(base.Task.ItemCount);
|
||||
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>(1889609828));
|
||||
throw new TaskException(defaultInterpolatedStringHandler.ToStringAndClear());
|
||||
logger.LogError("Artisan stopped crafting but only have {Owned}/{Required} of item {ItemId}", ownedItemCount, base.Task.ItemCount, base.Task.ItemId);
|
||||
throw new TaskException($"Artisan stopped crafting with only {ownedItemCount}/{base.Task.ItemCount} items completed");
|
||||
}
|
||||
case 1:
|
||||
ptr = AgentRecipeNote.Instance();
|
||||
num = ((ptr == null) ? (-1658987480) : (-1658987482));
|
||||
break;
|
||||
case 6:
|
||||
_202B_206D_206C_202D_202E_200D_202E_202D_206D_200E_206A_202E_200C_206A_206D_206F_206C_206B_206C_206B_200D_200E_200F_206F_206D_200D_200E_202C_200F_206E_206E_202A_200C_206D_202E_200C_202E_206F_206E_206A_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>(1809407100), Array.Empty<object>());
|
||||
addonById->FireCallbackInt(-1);
|
||||
return ETaskResult.TaskComplete;
|
||||
case 9:
|
||||
num = ((!ptr->IsAgentActive()) ? (-1658987480) : (-1658987477));
|
||||
break;
|
||||
case 7:
|
||||
return ETaskResult.StillRunning;
|
||||
AgentRecipeNote* ptr = AgentRecipeNote.Instance();
|
||||
if (ptr != null && ptr->IsAgentActive())
|
||||
{
|
||||
uint addonId = ptr->GetAddonId();
|
||||
if (addonId == 0)
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
AtkUnitBase* addonById = AtkStage.Instance()->RaptureAtkUnitManager->GetAddonById((ushort)addonId);
|
||||
if (addonById != null)
|
||||
{
|
||||
logger.LogDebug("Closing crafting window");
|
||||
addonById->FireCallbackInt(-1);
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
}
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
|
||||
private bool HasRequestedItems()
|
||||
|
|
@ -455,88 +131,24 @@ internal static class Craft
|
|||
return GetOwnedItemCount() >= base.Task.ItemCount;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private unsafe int GetOwnedItemCount()
|
||||
{
|
||||
InventoryManager* ptr = InventoryManager.Instance();
|
||||
int num = ((!base.Task.RequireHq) ? (-130787652) : (-130787651));
|
||||
while (true)
|
||||
if (base.Task.RequireHq)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -130787652;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
goto IL_005a;
|
||||
case 1:
|
||||
{
|
||||
int inventoryItemCount3 = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: true, checkEquipped: false, checkArmory: true, 0);
|
||||
_206A_202B_206B_206B_202B_206B_200F_200D_206F_200E_206D_200F_206F_200B_206A_200F_206D_200D_200E_202B_202A_206E_200F_206A_206C_206B_206A_200D_202D_206D_200D_202D_202C_202C_200F_202E_200C_206E_206E_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>(-961372782), new object[2]
|
||||
{
|
||||
base.Task.ItemId,
|
||||
inventoryItemCount3
|
||||
});
|
||||
return inventoryItemCount3;
|
||||
}
|
||||
case 0:
|
||||
{
|
||||
int inventoryItemCount = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: false, checkEquipped: false, checkArmory: true, 0);
|
||||
int inventoryItemCount2 = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: true, checkEquipped: false, checkArmory: true, 0);
|
||||
ILogger<DoCraft> logger = logger;
|
||||
string text = 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>(-1941678534);
|
||||
object[] obj = new object[4]
|
||||
{
|
||||
base.Task.ItemId,
|
||||
inventoryItemCount,
|
||||
inventoryItemCount2,
|
||||
null
|
||||
};
|
||||
num3 = inventoryItemCount2;
|
||||
num4 = inventoryItemCount;
|
||||
obj[3] = (num4 | num3) + (num4 & num3);
|
||||
_206A_202B_206B_206B_202B_206B_200F_200D_206F_200E_206D_200F_206F_200B_206A_200F_206D_200D_200E_202B_202A_206E_200F_206A_206C_206B_206A_200D_202D_206D_200D_202D_202C_202C_200F_202E_200C_206E_206E_202E((ILogger)logger, text, obj);
|
||||
num3 = inventoryItemCount2;
|
||||
num4 = inventoryItemCount;
|
||||
int num5 = num4 ^ num3;
|
||||
int num6 = num4 & num3;
|
||||
return num5 + (num6 + num6);
|
||||
}
|
||||
}
|
||||
continue;
|
||||
IL_005a:
|
||||
num = -130787651;
|
||||
int inventoryItemCount = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: true, checkEquipped: false, checkArmory: true, 0);
|
||||
logger.LogTrace("HQ item count for {ItemId}: {Count}", base.Task.ItemId, inventoryItemCount);
|
||||
return inventoryItemCount;
|
||||
}
|
||||
int inventoryItemCount2 = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: false, checkEquipped: false, checkArmory: true, 0);
|
||||
int inventoryItemCount3 = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: true, checkEquipped: false, checkArmory: true, 0);
|
||||
logger.LogTrace("Total item count for {ItemId}: {NqCount} NQ + {HqCount} HQ = {Total}", base.Task.ItemId, inventoryItemCount2, inventoryItemCount3, inventoryItemCount2 + inventoryItemCount3);
|
||||
return inventoryItemCount2 + inventoryItemCount3;
|
||||
}
|
||||
|
||||
public override bool ShouldInterruptOnDamage()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static void _202B_206D_206C_202D_202E_200D_202E_202D_206D_200E_206A_202E_200C_206A_206D_206F_206C_206B_206C_206B_200D_200E_200F_206F_206D_200D_200E_202C_200F_206E_206E_202A_200C_206D_202E_200C_202E_206F_206E_206A_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
|
||||
static IPlayerCharacter _200F_202D_206E_206B_206B_206E_200B_206C_206D_206D_206E_202C_206A_202D_206C_200F_206A_200B_200E_206D_206E_202C_202C_202C_206A_206E_202B_200F_206A_206F_206D_202E_202A_206F_206B_206F_206D_200F_202B_202E_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static RowRef<ClassJob> _202D_206F_202B_200D_200B_202C_206F_202D_206E_200F_200E_202D_206D_206E_202D_200E_200F_206D_202D_202C_202A_200C_206C_200D_200D_200F_202A_206A_202C_202A_202C_200E_202D_200D_202D_200F_206F_206D_206E_202B_202E(ICharacter P_0)
|
||||
{
|
||||
return P_0.ClassJob;
|
||||
}
|
||||
|
||||
static void _206F_200B_206F_200D_202B_202A_206C_200C_202D_202B_200F_206D_206A_206E_200D_206B_206E_202D_202C_206C_202C_206D_206C_202E_200E_202B_206B_206A_206D_200D_202B_200D_200C_206D_202E_206D_206E_202E_202A_200C_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogError(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _206A_202B_206B_206B_202B_206B_200F_200D_206F_200E_206D_200F_206F_200B_206A_200F_206D_200D_200E_202B_202A_206E_200F_206A_206C_206B_206A_200D_202D_206D_200D_202D_202C_202C_200F_202E_200C_206E_206E_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogTrace(P_1, P_2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Plugin.Services;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
|
|
@ -22,196 +19,25 @@ internal sealed class ExtraConditionUtils
|
|||
|
||||
public bool MatchesExtraCondition(EExtraSkipCondition skipCondition)
|
||||
{
|
||||
IPlayerCharacter playerCharacter = _206A_202B_202C_200B_200B_200E_206C_200B_206C_206C_206F_206F_200B_202D_206A_206E_206B_202B_206B_202C_206B_202E_206F_202D_200F_206C_202A_202C_206B_206D_200B_202E_206F_206F_200F_206C_206E_200D_206A_206D_202E(_objectTable);
|
||||
Vector3? vector = ((playerCharacter != null) ? new Vector3?(_206B_202E_202E_206A_200D_200B_202D_200F_206E_206B_206C_200C_206B_206A_206B_200D_202A_202B_202B_202C_200C_200B_200C_200C_206E_202D_202E_202A_206A_200D_202A_206F_206E_200D_202E_206B_202E_200B_202D_202E_202E((IGameObject)playerCharacter)) : ((Vector3?)null));
|
||||
int num = ((!vector.HasValue) ? 1142844286 : 1142844285);
|
||||
while (true)
|
||||
Vector3? vector = _objectTable.LocalPlayer?.Position;
|
||||
if (vector.HasValue && _clientState.TerritoryType != 0)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1142844284;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = 1142844285;
|
||||
break;
|
||||
case 3:
|
||||
return MatchesExtraCondition(skipCondition, vector.Value, _202B_206D_206D_200E_206E_200C_206D_206B_206D_202D_206E_200F_200C_206D_202C_200B_206A_200D_202A_206C_202B_200D_206B_202D_206E_202A_200D_200C_202A_206B_202B_200B_200C_206C_206D_202A_202C_200F_206C_206F_202E(_clientState));
|
||||
case 2:
|
||||
return false;
|
||||
case 1:
|
||||
num = ((_202B_206D_206D_200E_206E_200C_206D_206B_206D_202D_206E_200F_200C_206D_202C_200B_206A_200D_202A_206C_202B_200D_206B_202D_206E_202A_200D_200C_202A_206B_202B_200B_200C_206C_206D_202A_202C_200F_206C_206F_202E(_clientState) == 0) ? 1142844286 : 1142844287);
|
||||
break;
|
||||
}
|
||||
return MatchesExtraCondition(skipCondition, vector.Value, _clientState.TerritoryType);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public static bool MatchesExtraCondition(EExtraSkipCondition skipCondition, Vector3 position, uint territoryType)
|
||||
{
|
||||
int num;
|
||||
bool result = default(bool);
|
||||
switch (skipCondition)
|
||||
return skipCondition switch
|
||||
{
|
||||
default:
|
||||
num = 1143569671;
|
||||
goto IL_002b;
|
||||
case EExtraSkipCondition.DockStorehouse:
|
||||
num = ((territoryType != 137) ? 1143569672 : 1143569666);
|
||||
goto IL_002b;
|
||||
case EExtraSkipCondition.WakingSandsMainArea:
|
||||
goto IL_00cc;
|
||||
case EExtraSkipCondition.NotRoguesGuild:
|
||||
goto IL_0115;
|
||||
case EExtraSkipCondition.RoguesGuild:
|
||||
goto IL_0209;
|
||||
case EExtraSkipCondition.RisingStonesSolar:
|
||||
goto IL_022c;
|
||||
case EExtraSkipCondition.WakingSandsSolar:
|
||||
goto IL_024d;
|
||||
IL_002b:
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1143569666;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
int num12;
|
||||
int num11;
|
||||
int num10;
|
||||
int num8;
|
||||
int num9;
|
||||
int num7;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 16:
|
||||
num12 = 0;
|
||||
goto IL_009f;
|
||||
case 18:
|
||||
goto end_IL_002b;
|
||||
case 19:
|
||||
goto IL_00cc;
|
||||
case 5:
|
||||
num = 1143569683;
|
||||
break;
|
||||
case 12:
|
||||
num12 = ((position.Y > -115f) ? 1 : 0);
|
||||
goto IL_009f;
|
||||
case 1:
|
||||
goto IL_0115;
|
||||
case 17:
|
||||
throw _206B_200F_200F_200D_200F_202A_206D_200D_200D_202D_206C_206A_206E_206C_206E_202E_202B_206C_206C_200D_202C_200B_200C_202C_206A_200F_206D_206B_206C_202D_206F_202E_206F_202C_200B_206E_206A_200D_206B_206A_202E(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>(-226080792), (object)skipCondition, (string)null);
|
||||
case 0:
|
||||
num11 = ((position.Y <= -20f) ? 1 : 0);
|
||||
goto IL_018e;
|
||||
case 7:
|
||||
num10 = ((position.Z <= -28f) ? 1 : 0);
|
||||
goto IL_01c5;
|
||||
case 10:
|
||||
num11 = 0;
|
||||
goto IL_018e;
|
||||
case 4:
|
||||
num8 = ((position.X < 24f) ? 1 : 0);
|
||||
goto IL_026f;
|
||||
case 14:
|
||||
num9 = 0;
|
||||
goto IL_01b8;
|
||||
case 13:
|
||||
num10 = 0;
|
||||
goto IL_01c5;
|
||||
case 11:
|
||||
num7 = 0;
|
||||
goto IL_01d2;
|
||||
case 20:
|
||||
num = 1143569671;
|
||||
break;
|
||||
case 6:
|
||||
num9 = ((position.X >= 24f) ? 1 : 0);
|
||||
goto IL_01b8;
|
||||
case 9:
|
||||
goto IL_0209;
|
||||
case 3:
|
||||
return result;
|
||||
case 15:
|
||||
goto IL_022c;
|
||||
case 8:
|
||||
goto IL_024d;
|
||||
case 2:
|
||||
num8 = 0;
|
||||
goto IL_026f;
|
||||
case 21:
|
||||
{
|
||||
num7 = ((position.Y <= -115f) ? 1 : 0);
|
||||
goto IL_01d2;
|
||||
}
|
||||
IL_01d2:
|
||||
result = (byte)num7 != 0;
|
||||
num = 1143569665;
|
||||
break;
|
||||
IL_01b8:
|
||||
result = (byte)num9 != 0;
|
||||
num = 1143569665;
|
||||
break;
|
||||
IL_026f:
|
||||
result = (byte)num8 != 0;
|
||||
num = 1143569665;
|
||||
break;
|
||||
IL_01c5:
|
||||
result = (byte)num10 != 0;
|
||||
num = 1143569665;
|
||||
break;
|
||||
IL_018e:
|
||||
result = (byte)num11 != 0;
|
||||
num = 1143569665;
|
||||
break;
|
||||
IL_009f:
|
||||
result = (byte)num12 != 0;
|
||||
num = 1143569665;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_002b:
|
||||
break;
|
||||
}
|
||||
goto case EExtraSkipCondition.DockStorehouse;
|
||||
IL_024d:
|
||||
num = ((territoryType != 212) ? 1143569676 : 1143569668);
|
||||
goto IL_002b;
|
||||
IL_0209:
|
||||
num = ((territoryType != 129) ? 1143569673 : 1143569687);
|
||||
goto IL_002b;
|
||||
IL_0115:
|
||||
num = ((territoryType != 129) ? 1143569682 : 1143569678);
|
||||
goto IL_002b;
|
||||
IL_022c:
|
||||
num = ((territoryType != 351) ? 1143569679 : 1143569669);
|
||||
goto IL_002b;
|
||||
IL_00cc:
|
||||
num = ((territoryType != 212) ? 1143569664 : 1143569670);
|
||||
goto IL_002b;
|
||||
}
|
||||
}
|
||||
|
||||
static IPlayerCharacter _206A_202B_202C_200B_200B_200E_206C_200B_206C_206C_206F_206F_200B_202D_206A_206E_206B_202B_206B_202C_206B_202E_206F_202D_200F_206C_202A_202C_206B_206D_200B_202E_206F_206F_200F_206C_206E_200D_206A_206D_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static Vector3 _206B_202E_202E_206A_200D_200B_202D_200F_206E_206B_206C_200C_206B_206A_206B_200D_202A_202B_202B_202C_200C_200B_200C_200C_206E_202D_202E_202A_206A_200D_202A_206F_206E_200D_202E_206B_202E_200B_202D_202E_202E(IGameObject P_0)
|
||||
{
|
||||
return P_0.Position;
|
||||
}
|
||||
|
||||
static uint _202B_206D_206D_200E_206E_200C_206D_206B_206D_202D_206E_200F_200C_206D_202C_200B_206A_200D_202A_206C_202B_200D_206B_202D_206E_202A_200D_200C_202A_206B_202B_200B_200C_206C_206D_202A_202C_200F_206C_206F_202E(IClientState P_0)
|
||||
{
|
||||
return P_0.TerritoryType;
|
||||
}
|
||||
|
||||
static ArgumentOutOfRangeException _206B_200F_200F_200D_200F_202A_206D_200D_200D_202D_206C_206A_206E_206C_206E_202E_202B_206C_206C_200D_202C_200B_200C_202C_206A_200F_206D_206B_206C_202D_206F_202E_206F_202C_200B_206E_206A_200D_206B_206A_202E(string P_0, object P_1, string P_2)
|
||||
{
|
||||
return new ArgumentOutOfRangeException(P_0, P_1, P_2);
|
||||
EExtraSkipCondition.WakingSandsMainArea => territoryType == 212 && position.X < 24f,
|
||||
EExtraSkipCondition.WakingSandsSolar => territoryType == 212 && position.X >= 24f,
|
||||
EExtraSkipCondition.RisingStonesSolar => territoryType == 351 && position.Z <= -28f,
|
||||
EExtraSkipCondition.RoguesGuild => territoryType == 129 && position.Y <= -115f,
|
||||
EExtraSkipCondition.NotRoguesGuild => territoryType == 129 && position.Y > -115f,
|
||||
EExtraSkipCondition.DockStorehouse => territoryType == 137 && position.Y <= -20f,
|
||||
_ => throw new ArgumentOutOfRangeException("skipCondition", skipCondition, null),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,7 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Plugin.Services;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game;
|
||||
using LLib.Fishing;
|
||||
|
|
@ -27,480 +21,29 @@ internal static class Fish
|
|||
{
|
||||
internal sealed class Factory(AutoHookIpc autoHookIpc) : ITaskFactory
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private sealed class _003CCreateAllTasks_003Ed__2 : IEnumerable<ITask>, IEnumerable, IEnumerator<ITask>, IEnumerator, IDisposable
|
||||
{
|
||||
private int _003C_003E1__state;
|
||||
|
||||
private ITask _003C_003E2__current;
|
||||
|
||||
private int _003C_003El__initialThreadId;
|
||||
|
||||
private QuestStep step;
|
||||
|
||||
public QuestStep _003C_003E3__step;
|
||||
|
||||
public Factory _003C_003E4__this;
|
||||
|
||||
private Quest quest;
|
||||
|
||||
public Quest _003C_003E3__quest;
|
||||
|
||||
private IEnumerator<GatheredItem> _003C_003E7__wrap1;
|
||||
|
||||
ITask IEnumerator<ITask>.Current
|
||||
{
|
||||
[DebuggerHidden]
|
||||
get
|
||||
{
|
||||
return _003C_003E2__current;
|
||||
}
|
||||
}
|
||||
|
||||
object IEnumerator.Current
|
||||
{
|
||||
[DebuggerHidden]
|
||||
get
|
||||
{
|
||||
return _003C_003E2__current;
|
||||
}
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
public _003CCreateAllTasks_003Ed__2(int _003C_003E1__state)
|
||||
{
|
||||
this._003C_003E1__state = _003C_003E1__state;
|
||||
_003C_003El__initialThreadId = _202E_202B_202D_200E_206D_202B_200E_202B_200B_202D_200B_206F_202A_200C_200E_206B_200F_206E_206B_206B_200B_202E_202E_206C_206F_202E_202C_202D_202E_202E_202D_202B_202A_202B_200E_206D_200E_200B_206B_206F_202E();
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
int num = _003C_003E1__state;
|
||||
int num2 = ((num == -3) ? 1506831734 : 1506831733);
|
||||
while (true)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = 1506831732;
|
||||
int num5 = num3;
|
||||
switch ((num5 | num4) - (num5 & num4))
|
||||
{
|
||||
default:
|
||||
continue;
|
||||
case 0:
|
||||
num2 = 1506831733;
|
||||
continue;
|
||||
case 1:
|
||||
if (num == 4)
|
||||
{
|
||||
num2 = 1506831734;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
try
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
_003C_003Em__Finally1();
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
_003C_003E7__wrap1 = null;
|
||||
_003C_003E1__state = -2;
|
||||
}
|
||||
|
||||
private bool MoveNext()
|
||||
{
|
||||
try
|
||||
{
|
||||
int num = _003C_003E1__state;
|
||||
Factory factory = _003C_003E4__this;
|
||||
int num2;
|
||||
switch (num)
|
||||
{
|
||||
default:
|
||||
num2 = -1493517574;
|
||||
goto IL_0034;
|
||||
case 0:
|
||||
_003C_003E1__state = -1;
|
||||
num2 = ((_202C_200C_202E_206F_200C_202A_206A_200D_200F_200C_202D_202A_206E_202C_200C_202A_202D_202D_206D_206A_206E_200E_202E_206E_206C_202E_200B_202D_202B_200F_200C_206F_202B_200F_202B_206C_202B_206E_200B_206B_202E(step) == EInteractionType.Fish) ? (-1493517569) : (-1493517576));
|
||||
goto IL_0034;
|
||||
case 4:
|
||||
goto IL_0153;
|
||||
case 3:
|
||||
goto IL_01aa;
|
||||
case 2:
|
||||
goto IL_01e1;
|
||||
case 1:
|
||||
break;
|
||||
IL_0034:
|
||||
while (true)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = -1493517572;
|
||||
int num5 = num3;
|
||||
int num6 = num5 + num4;
|
||||
int num7 = num5 & num4;
|
||||
switch (num6 - (num7 + num7))
|
||||
{
|
||||
case 0:
|
||||
num2 = -1493517574;
|
||||
break;
|
||||
case 4:
|
||||
return false;
|
||||
case 3:
|
||||
goto IL_00ad;
|
||||
case 9:
|
||||
_003C_003E2__current = new Mount.UnmountTask();
|
||||
_003C_003E1__state = 1;
|
||||
return true;
|
||||
case 7:
|
||||
goto end_IL_0034;
|
||||
case 8:
|
||||
goto IL_012b;
|
||||
case 1:
|
||||
goto IL_0153;
|
||||
case 5:
|
||||
{
|
||||
GatheredItem current = _003C_003E7__wrap1.Current;
|
||||
_003C_003E2__current = new FishTask(quest, current, _202D_206E_200F_206D_202A_202D_202C_200E_200D_206D_200F_202B_200B_200C_206A_202E_206E_200E_206E_200F_202A_206A_202C_200D_206E_206A_202A_202C_200C_200E_206B_206B_200B_202A_200E_206A_206A_200C_206C_206C_202E(step));
|
||||
_003C_003E1__state = 4;
|
||||
return true;
|
||||
}
|
||||
case 11:
|
||||
goto IL_01aa;
|
||||
case 10:
|
||||
goto IL_01e1;
|
||||
case 6:
|
||||
return false;
|
||||
case 13:
|
||||
goto end_IL_000f;
|
||||
case 12:
|
||||
return false;
|
||||
case 2:
|
||||
_003C_003Em__Finally1();
|
||||
_003C_003E7__wrap1 = null;
|
||||
return false;
|
||||
}
|
||||
continue;
|
||||
IL_012b:
|
||||
num2 = (_202C_206E_202C_200D_206F_200F_200B_200C_200E_202D_200C_206E_202E_200C_200C_206D_206A_202A_202C_206D_202C_200D_202C_206A_206A_206B_200F_200E_202A_200D_202E_200C_200E_202C_200C_200D_206A_206F_202D_206E_202E((IEnumerator)_003C_003E7__wrap1) ? (-1493517575) : (-1493517570));
|
||||
continue;
|
||||
IL_00ad:
|
||||
num2 = (factory.autoHookIpc.IsAvailable() ? (-1493517579) : (-1493517584));
|
||||
continue;
|
||||
end_IL_0034:
|
||||
break;
|
||||
}
|
||||
goto case 0;
|
||||
IL_01e1:
|
||||
_003C_003E1__state = -1;
|
||||
_003C_003E2__current = new FishTask(quest, _200E_202A_202B_202E_200D_202E_200B_202D_206B_206C_200C_206A_206F_206A_202E_200B_200B_206B_206A_206A_206F_200D_200F_206B_200B_206B_206B_206A_206E_202C_200E_202E_200F_202B_206D_206F_200B_200D_202D_202B_202E(step).FirstOrDefault(), _202D_206E_200F_206D_202A_202D_202C_200E_200D_206D_200F_202B_200B_200C_206A_202E_206E_200E_206E_200F_202A_206A_202C_200D_206E_206A_202A_202C_200C_200E_206B_206B_200B_202A_200E_206A_206A_200C_206C_206C_202E(step));
|
||||
_003C_003E1__state = 3;
|
||||
return true;
|
||||
IL_01aa:
|
||||
_003C_003E1__state = -1;
|
||||
_003C_003E7__wrap1 = _200E_202A_202B_202E_200D_202E_200B_202D_206B_206C_200C_206A_206F_206A_202E_200B_200B_206B_206A_206A_206F_200D_200F_206B_200B_206B_206B_206A_206E_202C_200E_202E_200F_202B_206D_206F_200B_200D_202D_202B_202E(step).Skip(1).GetEnumerator();
|
||||
_003C_003E1__state = -3;
|
||||
num2 = -1493517580;
|
||||
goto IL_0034;
|
||||
IL_0153:
|
||||
_003C_003E1__state = -3;
|
||||
num2 = -1493517580;
|
||||
goto IL_0034;
|
||||
end_IL_000f:
|
||||
break;
|
||||
}
|
||||
_003C_003E1__state = -1;
|
||||
_003C_003E2__current = new SwitchClassJob.Task(EClassJob.Fisher);
|
||||
_003C_003E1__state = 2;
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
//try-fault
|
||||
((IDisposable)this).Dispose();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
bool IEnumerator.MoveNext()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
|
||||
return this.MoveNext();
|
||||
}
|
||||
|
||||
private void _003C_003Em__Finally1()
|
||||
{
|
||||
_003C_003E1__state = -1;
|
||||
int num = ((_003C_003E7__wrap1 == null) ? 1081455461 : 1081455462);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1081455460;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 1:
|
||||
return;
|
||||
case 2:
|
||||
_202C_200B_206C_200C_200F_200F_200F_200B_200C_206D_202E_206E_200E_200B_206D_206B_206A_206E_206B_206D_200F_206D_202D_200C_206D_200B_202D_202D_200D_202A_200E_206B_200C_202D_200F_206D_202B_206D_206C_206C_202E((IDisposable)_003C_003E7__wrap1);
|
||||
num = 1081455461;
|
||||
break;
|
||||
case 0:
|
||||
num = 1081455462;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
void IEnumerator.Reset()
|
||||
{
|
||||
throw _206F_200C_200C_200C_200C_206A_202A_206E_200D_200D_200E_200D_200E_202B_206B_200E_206B_202E_206D_200D_206F_202E_202A_200C_202B_202C_200F_202D_200C_206B_200F_200F_206E_202C_202D_206E_202E_206B_200D_206E_202E();
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
IEnumerator<ITask> IEnumerable<ITask>.GetEnumerator()
|
||||
{
|
||||
int num = ((_003C_003E1__state != -2) ? 1872162257 : 1872162261);
|
||||
_003CCreateAllTasks_003Ed__2 _003CCreateAllTasks_003Ed__ = default(_003CCreateAllTasks_003Ed__2);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1872162257;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 3:
|
||||
num = 1872162261;
|
||||
break;
|
||||
case 4:
|
||||
num = ((_003C_003El__initialThreadId != _202E_202B_202D_200E_206D_202B_200E_202B_200B_202D_200B_206F_202A_200C_200E_206B_200F_206E_206B_206B_200B_202E_202E_206C_206F_202E_202C_202D_202E_202E_202D_202B_202A_202B_200E_206D_200E_200B_206B_206F_202E()) ? 1872162257 : 1872162256);
|
||||
break;
|
||||
case 0:
|
||||
_003CCreateAllTasks_003Ed__ = new _003CCreateAllTasks_003Ed__2(0)
|
||||
{
|
||||
_003C_003E4__this = _003C_003E4__this
|
||||
};
|
||||
num = 1872162259;
|
||||
break;
|
||||
case 2:
|
||||
_003CCreateAllTasks_003Ed__.quest = _003C_003E3__quest;
|
||||
_003CCreateAllTasks_003Ed__.step = _003C_003E3__step;
|
||||
return _003CCreateAllTasks_003Ed__;
|
||||
case 1:
|
||||
_003C_003E1__state = 0;
|
||||
_003CCreateAllTasks_003Ed__ = this;
|
||||
num = 1872162259;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return ((IEnumerable<ITask>)this).GetEnumerator();
|
||||
}
|
||||
|
||||
static int _202E_202B_202D_200E_206D_202B_200E_202B_200B_202D_200B_206F_202A_200C_200E_206B_200F_206E_206B_206B_200B_202E_202E_206C_206F_202E_202C_202D_202E_202E_202D_202B_202A_202B_200E_206D_200E_200B_206B_206F_202E()
|
||||
{
|
||||
return Environment.CurrentManagedThreadId;
|
||||
}
|
||||
|
||||
static EInteractionType _202C_200C_202E_206F_200C_202A_206A_200D_200F_200C_202D_202A_206E_202C_200C_202A_202D_202D_206D_206A_206E_200E_202E_206E_206C_202E_200B_202D_202B_200F_200C_206F_202B_200F_202B_206C_202B_206E_200B_206B_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.InteractionType;
|
||||
}
|
||||
|
||||
static List<GatheredItem> _200E_202A_202B_202E_200D_202E_200B_202D_206B_206C_200C_206A_206F_206A_202E_200B_200B_206B_206A_206A_206F_200D_200F_206B_200B_206B_206B_206A_206E_202C_200E_202E_200F_202B_206D_206F_200B_200D_202D_202B_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.ItemsToGather;
|
||||
}
|
||||
|
||||
static List<QuestWorkValue> _202D_206E_200F_206D_202A_202D_202C_200E_200D_206D_200F_202B_200B_200C_206A_202E_206E_200E_206E_200F_202A_206A_202C_200D_206E_206A_202A_202C_200C_200E_206B_206B_200B_202A_200E_206A_206A_200C_206C_206C_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.CompletionQuestVariablesFlags;
|
||||
}
|
||||
|
||||
static bool _202C_206E_202C_200D_206F_200F_200B_200C_200E_202D_200C_206E_202E_200C_200C_206D_206A_202A_202C_206D_202C_200D_202C_206A_206A_206B_200F_200E_202A_200D_202E_200C_200E_202C_200C_200D_206A_206F_202D_206E_202E(IEnumerator P_0)
|
||||
{
|
||||
return P_0.MoveNext();
|
||||
}
|
||||
|
||||
static void _202C_200B_206C_200C_200F_200F_200F_200B_200C_206D_202E_206E_200E_200B_206D_206B_206A_206E_206B_206D_200F_206D_202D_200C_206D_200B_202D_202D_200D_202A_200E_206B_200C_202D_200F_206D_202B_206D_206C_206C_202E(IDisposable P_0)
|
||||
{
|
||||
P_0.Dispose();
|
||||
}
|
||||
|
||||
static NotSupportedException _206F_200C_200C_200C_200C_206A_202A_206E_200D_200D_200E_200D_200E_202B_206B_200E_206B_202E_206D_200D_206F_202E_202A_200C_202B_202C_200F_202D_200C_206B_200F_200F_206E_202C_202D_206E_202E_206B_200D_206E_202E()
|
||||
{
|
||||
return new NotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
[IteratorStateMachine(typeof(_003CCreateAllTasks_003Ed__2))]
|
||||
public IEnumerable<ITask> CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
//yield-return decompiler failed: Unexpected instruction in Iterator.Dispose()
|
||||
return new _003CCreateAllTasks_003Ed__2(-2)
|
||||
if (step.InteractionType != EInteractionType.Fish || !autoHookIpc.IsAvailable())
|
||||
{
|
||||
_003C_003E4__this = this,
|
||||
_003C_003E3__quest = quest,
|
||||
_003C_003E3__step = step
|
||||
};
|
||||
}
|
||||
|
||||
IEnumerable<ITask> ITaskFactory.CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in CreateAllTasks
|
||||
return this.CreateAllTasks(quest, sequence, step);
|
||||
yield break;
|
||||
}
|
||||
yield return new Mount.UnmountTask();
|
||||
yield return new SwitchClassJob.Task(EClassJob.Fisher);
|
||||
yield return new FishTask(quest, step.ItemsToGather.FirstOrDefault(), step.CompletionQuestVariablesFlags);
|
||||
foreach (GatheredItem item in step.ItemsToGather.Skip(1))
|
||||
{
|
||||
yield return new FishTask(quest, item, step.CompletionQuestVariablesFlags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed record FishTask(Quest Quest, GatheredItem? GatheredItem, IList<QuestWorkValue?> CompletionQuestVariablesFlags) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202D_202B_200F_200F_200F_202D_206D_200F_206E_206E_206D_200B_206D_206A_202D_202E_202A_206C_202D_206D_206F_200F_200F_206A_206F_200C_206F_202B_200B_200C_202C_202D_202C_200C_200E_206F_206B_206E_200D_206A_202E(typeof(FishTask).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasCompletionQuestVariablesFlags { get; } = QuestWorkUtils.HasCompletionFlags(CompletionQuestVariablesFlags);
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
string text = 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>(-1580376260);
|
||||
string obj = (HasCompletionQuestVariablesFlags ? 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>(626978395) : 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>(-1720149641));
|
||||
string text2;
|
||||
if (GatheredItem == null)
|
||||
{
|
||||
text2 = 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>(-1694032531);
|
||||
}
|
||||
else
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(4, 2);
|
||||
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>(-1824588032));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(_200D_202D_202C_200F_202A_206A_200C_200C_202E_200B_206C_202E_206B_206C_200D_200B_202A_202B_200D_202D_206C_200D_200D_206E_206F_206B_202A_200E_200D_200C_206E_206D_200C_206C_200C_202A_200E_200E_206F_200D_202E(GatheredItem));
|
||||
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>(350814621));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(_206C_202A_206E_206C_200D_202A_206F_206C_200E_200B_200E_206D_200C_202B_202C_206F_200E_206F_200B_206F_202B_206D_202A_200B_200B_206D_200F_206F_202E_202B_206C_202D_200C_206C_206E_202E_206A_206A_202C_200E_202E(GatheredItem));
|
||||
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>(444206578));
|
||||
text2 = defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
return _200D_202D_202E_206B_200B_202C_202C_200E_202E_202C_200C_200C_206E_202B_206C_200B_200D_200D_206D_202C_200C_200C_202C_200E_206B_206E_206A_202B_206A_200C_200B_200C_206F_206D_200F_202A_202A_200B_206B_206F_202E(text, obj, text2);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_200F_206E_202E_202D_202A_206E_200B_202B_206C_202D_202E_200E_200C_200B_206A_200E_200B_202A_206B_206F_206F_202D_202A_206E_200C_200D_200B_206E_206F_206E_206B_200C_200C_202C_206D_202A_202E_202A_202B_206B_202E();
|
||||
_202C_200B_202E_200E_202C_206C_202C_202D_206E_206C_206F_202D_206B_202B_202B_206D_200D_200C_200E_202E_206C_200C_200D_206A_202B_200F_202A_202D_206D_200B_206B_202A_206F_200B_200C_202B_202A_200B_202C_202E_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>(-501301525));
|
||||
_206D_202A_200B_200F_202D_200B_200E_206B_206B_206F_206E_206B_202C_200D_202B_200F_200B_206C_200E_202D_202A_200D_200F_202B_202B_202D_206F_206F_200D_206D_206A_200D_200B_200D_202D_202C_200C_202E_202B_200D_202E(builder, (object)Quest);
|
||||
_202C_200B_202E_200E_202C_206C_202C_202D_206E_206C_206F_202D_206B_202B_202B_206D_200D_200C_200E_202E_206C_200C_200D_206A_202B_200F_202A_202D_206D_200B_206B_202A_206F_200B_200C_202B_202A_200B_202C_202E_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>(2119160719));
|
||||
_206D_202A_200B_200F_202D_200B_200E_206B_206B_206F_206E_206B_202C_200D_202B_200F_200B_206C_200E_202D_202A_200D_200F_202B_202B_202D_206F_206F_200D_206D_206A_200D_200B_200D_202D_202C_200C_202E_202B_200D_202E(builder, (object)GatheredItem);
|
||||
_202C_200B_202E_200E_202C_206C_202C_202D_206E_206C_206F_202D_206B_202B_202B_206D_200D_200C_200E_202E_206C_200C_200D_206A_202B_200F_202A_202D_206D_200B_206B_202A_206F_200B_200C_202B_202A_200B_202C_202E_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>(1627383089));
|
||||
_206D_202A_200B_200F_202D_200B_200E_206B_206B_206F_206E_206B_202C_200D_202B_200F_200B_206C_200E_202D_202A_200D_200F_202B_202B_202D_206F_206F_200D_206D_206A_200D_200B_200D_202D_202C_200C_202E_202B_200D_202E(builder, (object)CompletionQuestVariablesFlags);
|
||||
_202C_200B_202E_200E_202C_206C_202C_202D_206E_206C_206F_202D_206B_202B_202B_206D_200D_200C_200E_202E_206C_200C_200D_206A_202B_200F_202A_202D_206D_200B_206B_202A_206F_200B_200C_202B_202A_200B_202C_202E_202E(builder, 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>(1417236057));
|
||||
_202C_200B_202E_200E_202C_206C_202C_202D_206E_206C_206F_202D_206B_202B_202B_206D_200D_200C_200E_202E_206C_200C_200D_206A_202B_200F_202A_202D_206D_200B_206B_202A_206F_200B_200C_202B_202A_200B_202C_202E_202E(builder, HasCompletionQuestVariablesFlags.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(FishTask? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 2038737400 : 2038737406);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 2038737403;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 4:
|
||||
num = 2038737406;
|
||||
break;
|
||||
case 3:
|
||||
return true;
|
||||
case 6:
|
||||
return false;
|
||||
case 0:
|
||||
num = ((!EqualityComparer<Questionable.Model.Questing.GatheredItem>.Default.Equals(GatheredItem, other.GatheredItem)) ? 2038737405 : 2038737402);
|
||||
break;
|
||||
case 5:
|
||||
num = (((object)other == null) ? 2038737405 : 2038737401);
|
||||
break;
|
||||
case 8:
|
||||
num = ((!EqualityComparer<Questionable.Model.Quest>.Default.Equals(Quest, other.Quest)) ? 2038737405 : 2038737403);
|
||||
break;
|
||||
case 2:
|
||||
num = ((!_206F_200B_200C_202B_200F_200D_206D_200D_200F_206A_200B_202D_202C_206D_206B_206D_200E_202B_200C_202D_200D_200E_200C_206C_202C_202C_200D_206F_202E_202C_206A_202B_200F_200E_202A_200B_200D_200E_202E_206A_202E(EqualityContract, other.EqualityContract)) ? 2038737405 : 2038737395);
|
||||
break;
|
||||
case 1:
|
||||
num = ((!EqualityComparer<IList<QuestWorkValue>>.Default.Equals(CompletionQuestVariablesFlags, other.CompletionQuestVariablesFlags)) ? 2038737405 : 2038737404);
|
||||
break;
|
||||
case 7:
|
||||
return EqualityComparer<bool>.Default.Equals(HasCompletionQuestVariablesFlags, other.HasCompletionQuestVariablesFlags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<FishTask>.Equals(FishTask? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202D_202B_200F_200F_200F_202D_206D_200F_206E_206E_206D_200B_206D_206A_202D_202E_202A_206C_202D_206D_206F_200F_200F_206A_206F_200C_206F_202B_200B_200C_202C_202D_202C_200C_200E_206F_206B_206E_200D_206A_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static int _200D_202D_202C_200F_202A_206A_200C_200C_202E_200B_206C_202E_206B_206C_200D_200B_202A_202B_200D_202D_206C_200D_200D_206E_206F_206B_202A_200E_200D_200C_206E_206D_200C_206C_200C_202A_200E_200E_206F_200D_202E(GatheredItem P_0)
|
||||
{
|
||||
return P_0.ItemCount;
|
||||
}
|
||||
|
||||
static uint _206C_202A_206E_206C_200D_202A_206F_206C_200E_200B_200E_206D_200C_202B_202C_206F_200E_206F_200B_206F_202B_206D_202A_200B_200B_206D_200F_206F_202E_202B_206C_202D_200C_206C_206E_202E_206A_206A_202C_200E_202E(GatheredItem P_0)
|
||||
{
|
||||
return P_0.ItemId;
|
||||
}
|
||||
|
||||
static string _200D_202D_202E_206B_200B_202C_202C_200E_202E_202C_200C_200C_206E_202B_206C_200B_200D_200D_206D_202C_200C_200C_202C_200E_206B_206E_206A_202B_206A_200C_200B_200C_206F_206D_200F_202A_202A_200B_206B_206F_202E(string P_0, string P_1, string P_2)
|
||||
{
|
||||
return P_0 + P_1 + P_2;
|
||||
}
|
||||
|
||||
static void _200F_206E_202E_202D_202A_206E_200B_202B_206C_202D_202E_200E_200C_200B_206A_200E_200B_202A_206B_206F_206F_202D_202A_206E_200C_200D_200B_206E_206F_206E_206B_200C_200C_202C_206D_202A_202E_202A_202B_206B_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _202C_200B_202E_200E_202C_206C_202C_202D_206E_206C_206F_202D_206B_202B_202B_206D_200D_200C_200E_202E_206C_200C_200D_206A_202B_200F_202A_202D_206D_200B_206B_202A_206F_200B_200C_202B_202A_200B_202C_202E_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _206D_202A_200B_200F_202D_200B_200E_206B_206B_206F_206E_206B_202C_200D_202B_200F_200B_206C_200E_202D_202A_200D_200F_202B_202B_202D_206F_206F_200D_206D_206A_200D_200B_200D_202D_202C_200C_202E_202B_200D_202E(StringBuilder P_0, object P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _206F_200B_200C_202B_200F_200D_206D_200D_200F_206A_200B_202D_202C_206D_206B_206D_200E_202B_200C_202D_200D_200E_200C_206C_202C_202C_200D_206F_202E_202C_206A_202B_200F_200E_202A_200B_200D_200E_202E_206A_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return "Fish" + (HasCompletionQuestVariablesFlags ? "*" : "") + ((GatheredItem != null) ? $"({GatheredItem.ItemCount}x {GatheredItem.ItemId})" : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -512,133 +55,69 @@ internal static class Fish
|
|||
|
||||
private bool _cleanupDone;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
protected override bool Start()
|
||||
{
|
||||
int num = ((!HasRequestedItem(base.Task.GatheredItem)) ? 1782485071 : 1782485057);
|
||||
string value = default(string);
|
||||
while (true)
|
||||
if (HasRequestedItem(base.Task.GatheredItem))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1782485064;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
logger.LogInformation("Already have the requested fish in inventory, skipping fish task.");
|
||||
return false;
|
||||
}
|
||||
if (HasMatchingCompletionQuestWork())
|
||||
{
|
||||
logger.LogInformation("Quest variables already match, skipping fish task.");
|
||||
return false;
|
||||
}
|
||||
if (!_wasAutoHookEnabled)
|
||||
{
|
||||
autoHookIpc.SetPluginState(enabled: true);
|
||||
if (!autoHookIpc.GetPluginState())
|
||||
{
|
||||
case 10:
|
||||
num = 1782485057;
|
||||
break;
|
||||
case 2:
|
||||
throw new TaskException(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>(2028014185));
|
||||
case 4:
|
||||
_206A_200C_202C_202C_202D_206D_200F_202B_202E_202B_202C_206B_200B_206A_200B_200E_206A_200E_200B_206A_202B_206F_202E_200B_200B_206E_200F_202D_202C_200D_202A_202E_200D_202D_206F_200D_206D_206B_202B_206D_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>(-1855558187), Array.Empty<object>());
|
||||
return false;
|
||||
case 0:
|
||||
{
|
||||
_200D_202D_206E_202D_206A_206A_206F_202E_200D_206A_202C_206F_202B_206D_206E_202A_202E_206E_202E_206E_206F_202A_200B_200C_202D_200E_206F_202A_202C_206E_200B_206F_206B_202B_200F_200C_200D_202D_206F_202C_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>(704472200), new object[1] { base.Task.Quest.Id });
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(34, 1);
|
||||
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>(807535051));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(base.Task.Quest.Id);
|
||||
throw new TaskException(defaultInterpolatedStringHandler.ToStringAndClear());
|
||||
}
|
||||
case 6:
|
||||
_206A_200C_202C_202C_202D_206D_200F_202B_202E_202B_202C_206B_200B_206A_200B_200E_206A_200E_200B_206A_202B_206F_202E_200B_200B_206E_200F_202D_202C_200D_202A_202E_200D_202D_206F_200D_206D_206B_202B_206D_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>(-1839561848), new object[1] { base.Task.Quest.Id });
|
||||
autoHookIpc.CreateAndSelectAnonymousPreset(value);
|
||||
OrientToWater();
|
||||
autoHookIpc.SetAutoStartFishing(enabled: true);
|
||||
_started = true;
|
||||
return true;
|
||||
case 7:
|
||||
num = ((!HasMatchingCompletionQuestWork()) ? 1782485065 : 1782485068);
|
||||
break;
|
||||
case 9:
|
||||
_206A_200C_202C_202C_202D_206D_200F_202B_202E_202B_202C_206B_200B_206A_200B_200E_206A_200E_200B_206A_202B_206F_202E_200B_200B_206E_200F_202D_202C_200D_202A_202E_200D_202D_206F_200D_206D_206B_202B_206D_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>(-2069167777), Array.Empty<object>());
|
||||
return false;
|
||||
case 8:
|
||||
_206B_200E_200D_200D_200F_200B_206C_206D_202B_206C_200F_202E_206B_202B_206D_202A_200D_202D_200E_206E_206D_200C_202D_206F_200E_200C_200E_206D_202B_200D_202E_200D_200B_202A_200C_206A_206A_206C_200C_206B_202E(chatGui, 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>(2028014185), 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>(1481660241), (ushort?)(ushort)576);
|
||||
num = 1782485066;
|
||||
break;
|
||||
case 1:
|
||||
num = (_wasAutoHookEnabled ? 1782485059 : 1782485067);
|
||||
break;
|
||||
case 3:
|
||||
autoHookIpc.SetPluginState(enabled: true);
|
||||
num = (autoHookIpc.GetPluginState() ? 1782485059 : 1782485069);
|
||||
break;
|
||||
case 5:
|
||||
_200D_202D_206E_202D_206A_206A_206F_202E_200D_206A_202C_206F_202B_206D_206E_202A_202E_206E_202E_206E_206F_202A_200B_200C_202D_200E_206F_202A_202C_206E_200B_206F_206B_202B_200F_200C_200D_202D_206F_202C_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>(1913024892), new object[1] { 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>(-2025711816) });
|
||||
num = (sendNotificationExecutor.Start(new SendNotification.Task(EInteractionType.Fish, 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>(774695212))) ? 1782485066 : 1782485056);
|
||||
break;
|
||||
case 11:
|
||||
num = (AutoHookPresetData.FishingPresets.TryGetValue((QuestId)base.Task.Quest.Id, out value) ? 1782485070 : 1782485064);
|
||||
break;
|
||||
logger.LogWarning("{ErrorText}", "AutoHook is required for fishing but could not be enabled. Please install or enable AutoHook.");
|
||||
if (!sendNotificationExecutor.Start(new SendNotification.Task(EInteractionType.Fish, "AutoHook is required for fishing but could not be enabled. Please install or enable AutoHook.")))
|
||||
{
|
||||
chatGui.PrintError("AutoHook is required for fishing but could not be enabled. Please install or enable AutoHook.", "Questionable", 576);
|
||||
}
|
||||
throw new TaskException("AutoHook is required for fishing but could not be enabled. Please install or enable AutoHook.");
|
||||
}
|
||||
}
|
||||
if (!AutoHookPresetData.FishingPresets.TryGetValue((QuestId)base.Task.Quest.Id, out string value))
|
||||
{
|
||||
logger.LogWarning("No fishing preset found for quest {QuestId}", base.Task.Quest.Id);
|
||||
throw new TaskException($"No fishing preset found for quest {base.Task.Quest.Id}");
|
||||
}
|
||||
logger.LogInformation("Creating anonymous AutoHook preset for quest {QuestId}", base.Task.Quest.Id);
|
||||
autoHookIpc.CreateAndSelectAnonymousPreset(value);
|
||||
OrientToWater();
|
||||
autoHookIpc.SetAutoStartFishing(enabled: true);
|
||||
_started = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
int num = ((!HasRequestedItem(base.Task.GatheredItem)) ? (-1288503250) : (-1288503251));
|
||||
while (true)
|
||||
if (HasRequestedItem(base.Task.GatheredItem))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1288503250;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = -1288503251;
|
||||
break;
|
||||
case 1:
|
||||
_200E_200F_200B_200B_202C_202B_206F_200E_206B_206F_206D_206D_206C_202E_206B_202B_206F_202E_206A_202E_200D_202C_200D_202B_202B_200B_202B_206A_200C_206F_202C_200B_202C_200B_202B_202D_206D_206C_202E_202C_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>(-571223897), Array.Empty<object>());
|
||||
Cleanup();
|
||||
return ETaskResult.TaskComplete;
|
||||
case 4:
|
||||
return ETaskResult.StillRunning;
|
||||
case 0:
|
||||
num = ((!HasMatchingCompletionQuestWork()) ? (-1288503254) : (-1288503249));
|
||||
break;
|
||||
case 3:
|
||||
_200E_200F_200B_200B_202C_202B_206F_200E_206B_206F_206D_206D_206C_202E_206B_202B_206F_202E_206A_202E_200D_202C_200D_202B_202B_200B_202B_206A_200C_206F_202C_200B_202C_200B_202B_202D_206D_206C_202E_202C_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>(895316843), Array.Empty<object>());
|
||||
Cleanup();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
logger.LogDebug("Requested fish collected, completing task.");
|
||||
Cleanup();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
if (HasMatchingCompletionQuestWork())
|
||||
{
|
||||
logger.LogDebug("Quest variables match, completing task.");
|
||||
Cleanup();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
|
||||
public void StopNow()
|
||||
{
|
||||
int num = ((!_started) ? (-861812504) : (-861812503));
|
||||
while (true)
|
||||
if (_started)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -861812504;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
num = -861812503;
|
||||
break;
|
||||
case 1:
|
||||
Cleanup();
|
||||
num = -861812504;
|
||||
break;
|
||||
case 0:
|
||||
return;
|
||||
}
|
||||
Cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
void IStoppableTaskExecutor.StopNow()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
||||
this.StopNow();
|
||||
}
|
||||
|
||||
public override bool ShouldInterruptOnDamage()
|
||||
{
|
||||
return false;
|
||||
|
|
@ -646,203 +125,70 @@ internal static class Fish
|
|||
|
||||
private bool HasMatchingCompletionQuestWork()
|
||||
{
|
||||
int num = (base.Task.HasCompletionQuestVariablesFlags ? 631430922 : 631430921);
|
||||
QuestProgressInfo questProgressInfo = default(QuestProgressInfo);
|
||||
while (true)
|
||||
if (!base.Task.HasCompletionQuestVariablesFlags)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 631430922;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 1:
|
||||
return QuestWorkUtils.MatchesQuestWork(base.Task.CompletionQuestVariablesFlags, questProgressInfo);
|
||||
case 4:
|
||||
return false;
|
||||
case 0:
|
||||
questProgressInfo = questFunctions.GetQuestProgressInfo(base.Task.Quest.Id);
|
||||
num = ((questProgressInfo == null) ? 631430926 : 631430923);
|
||||
break;
|
||||
case 2:
|
||||
num = 631430921;
|
||||
break;
|
||||
case 3:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
QuestProgressInfo questProgressInfo = questFunctions.GetQuestProgressInfo(base.Task.Quest.Id);
|
||||
if (questProgressInfo != null)
|
||||
{
|
||||
return QuestWorkUtils.MatchesQuestWork(base.Task.CompletionQuestVariablesFlags, questProgressInfo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private void Cleanup()
|
||||
{
|
||||
int num = ((!_cleanupDone) ? (-880332252) : (-880332249));
|
||||
while (true)
|
||||
if (!_cleanupDone)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -880332251;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
goto IL_0048;
|
||||
case 1:
|
||||
_200E_200F_200B_200B_202C_202B_206F_200E_206B_206F_206D_206D_206C_202E_206B_202B_206F_202E_206A_202E_200D_202C_200D_202B_202B_200B_202B_206A_200C_206F_202C_200B_202C_200B_202B_202D_206D_206C_202E_202C_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>(-1552997573), Array.Empty<object>());
|
||||
autoHookIpc.SetAutoStartFishing(enabled: false);
|
||||
StopFishing();
|
||||
autoHookIpc.DeleteAllAnonymousPresets();
|
||||
autoHookIpc.SetPluginState(_wasAutoHookEnabled);
|
||||
_cleanupDone = true;
|
||||
return;
|
||||
case 2:
|
||||
return;
|
||||
}
|
||||
continue;
|
||||
IL_0048:
|
||||
num = -880332249;
|
||||
logger.LogDebug("Cleaning up fish task.");
|
||||
autoHookIpc.SetAutoStartFishing(enabled: false);
|
||||
StopFishing();
|
||||
autoHookIpc.DeleteAllAnonymousPresets();
|
||||
autoHookIpc.SetPluginState(_wasAutoHookEnabled);
|
||||
_cleanupDone = true;
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private unsafe void OrientToWater()
|
||||
{
|
||||
IPlayerCharacter playerCharacter = _200B_202C_200B_200B_202D_200F_206B_206D_200F_206A_206B_206F_206D_202D_200E_206E_202A_202C_206B_206C_202A_200E_202B_206B_206A_206B_200B_200C_200D_200E_206E_202D_206F_200B_200E_206C_200F_206C_200F_206F_202E(objectTable);
|
||||
int num = ((playerCharacter != null) ? 2106892356 : 2106892353);
|
||||
(float, Vector3)? tuple = default((float, Vector3)?);
|
||||
while (true)
|
||||
IPlayerCharacter localPlayer = objectTable.LocalPlayer;
|
||||
if (localPlayer != null)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 2106892352;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
(float, Vector3)? tuple = WaterSurfaceDetector.FindFishableRotation(localPlayer.Position);
|
||||
if (!tuple.HasValue)
|
||||
{
|
||||
case 0:
|
||||
_200D_202D_206E_202D_206A_206A_206F_202E_200D_206A_202C_206F_202B_206D_206E_202A_202E_206E_202E_206E_206F_202A_200B_200C_202D_200E_206F_202A_202C_206E_200B_206F_206B_202B_200F_200C_200D_202D_206F_202C_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>(-977369121), Array.Empty<object>());
|
||||
return;
|
||||
case 3:
|
||||
{
|
||||
Vector3 item = tuple.Value.Item2;
|
||||
ActionManager.Instance()->AutoFaceTargetPosition(&item, 0uL);
|
||||
logger.LogWarning("No fishable water found near the player; AutoHook may fail to cast.");
|
||||
return;
|
||||
}
|
||||
case 1:
|
||||
return;
|
||||
case 2:
|
||||
num = 2106892353;
|
||||
break;
|
||||
case 4:
|
||||
tuple = _202A_202B_200D_200E_206C_206B_202C_200C_206F_206C_200C_200C_206F_202E_202B_206A_202D_202E_202E_202E_206E_200F_206E_202E_202E_200D_200B_202D_200D_200D_202C_206A_200C_200E_206C_206A_200C_200D_202D_200E_202E(_202D_202D_202E_206C_206E_206C_202C_202D_200F_206D_206B_200C_206B_200B_200B_202A_200C_206B_206E_200E_200E_202C_206D_200F_200F_206F_200F_202A_200D_200C_200E_200C_206B_206E_206D_202C_206C_206E_202C_206D_202E((IGameObject)playerCharacter), 36);
|
||||
num = (tuple.HasValue ? 2106892355 : 2106892352);
|
||||
break;
|
||||
}
|
||||
Vector3 item = tuple.Value.Item2;
|
||||
ActionManager.Instance()->AutoFaceTargetPosition(&item, 0uL);
|
||||
}
|
||||
}
|
||||
|
||||
private unsafe static void StopFishing()
|
||||
{
|
||||
ActionManager* ptr = ActionManager.Instance();
|
||||
int num = ((ptr == null) ? 1063786085 : 1063786084);
|
||||
while (true)
|
||||
if (ptr != null)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1063786085;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
return;
|
||||
case 1:
|
||||
ptr->UseAction(ActionType.Action, 299u, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null);
|
||||
num = 1063786085;
|
||||
break;
|
||||
case 2:
|
||||
num = 1063786084;
|
||||
break;
|
||||
}
|
||||
ptr->UseAction(ActionType.Action, 299u, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null);
|
||||
}
|
||||
}
|
||||
|
||||
static void _206A_200C_202C_202C_202D_206D_200F_202B_202E_202B_202C_206B_200B_206A_200B_200E_206A_200E_200B_206A_202B_206F_202E_200B_200B_206E_200F_202D_202C_200D_202A_202E_200D_202D_206F_200D_206D_206B_202B_206D_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogInformation(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _200D_202D_206E_202D_206A_206A_206F_202E_200D_206A_202C_206F_202B_206D_206E_202A_202E_206E_202E_206E_206F_202A_200B_200C_202D_200E_206F_202A_202C_206E_200B_206F_206B_202B_200F_200C_200D_202D_206F_202C_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogWarning(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _206B_200E_200D_200D_200F_200B_206C_206D_202B_206C_200F_202E_206B_202B_206D_202A_200D_202D_200E_206E_206D_200C_202D_206F_200E_200C_200E_206D_202B_200D_202E_200D_200B_202A_200C_206A_206A_206C_200C_206B_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
||||
{
|
||||
P_0.PrintError(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static void _200E_200F_200B_200B_202C_202B_206F_200E_206B_206F_206D_206D_206C_202E_206B_202B_206F_202E_206A_202E_200D_202C_200D_202B_202B_200B_202B_206A_200C_206F_202C_200B_202C_200B_202B_202D_206D_206C_202E_202C_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
|
||||
static IPlayerCharacter _200B_202C_200B_200B_202D_200F_206B_206D_200F_206A_206B_206F_206D_202D_200E_206E_202A_202C_206B_206C_202A_200E_202B_206B_206A_206B_200B_200C_200D_200E_206E_202D_206F_200B_200E_206C_200F_206C_200F_206F_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static Vector3 _202D_202D_202E_206C_206E_206C_202C_202D_200F_206D_206B_200C_206B_200B_200B_202A_200C_206B_206E_200E_200E_202C_206D_200F_200F_206F_200F_202A_200D_200C_200E_200C_206B_206E_206D_202C_206C_206E_202C_206D_202E(IGameObject P_0)
|
||||
{
|
||||
return P_0.Position;
|
||||
}
|
||||
|
||||
static (float, Vector3)? _202A_202B_200D_200E_206C_206B_202C_200C_206F_206C_200C_200C_206F_202E_202B_206A_202D_202E_202E_202E_206E_200F_206E_202E_202E_200D_200B_202D_200D_200D_202C_206A_200C_200E_206C_206A_200C_200D_202D_200E_202E(Vector3 P_0, int P_1)
|
||||
{
|
||||
return WaterSurfaceDetector.FindFishableRotation(P_0, P_1);
|
||||
}
|
||||
}
|
||||
|
||||
private const uint QuitActionId = 299u;
|
||||
|
||||
private unsafe static bool HasRequestedItem(GatheredItem? item)
|
||||
{
|
||||
int num = ((item != null) ? 1208879957 : 1208879956);
|
||||
InventoryManager* ptr = default(InventoryManager*);
|
||||
while (true)
|
||||
if (item == null)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1208879957;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 3:
|
||||
return false;
|
||||
case 2:
|
||||
return ptr->GetInventoryItemCount(_200C_202B_202C_206A_206B_202A_202C_202A_206C_202D_202A_202E_202C_206B_206A_202E_200F_202D_202A_206F_206B_202B_206D_202A_202E_200C_206A_202C_202A_206E_206F_202E_206E_202C_202B_202E_206A_200C_206E_206D_202E(item), isHq: false, checkEquipped: true, checkArmory: true, (short)_202D_206C_206F_202E_206D_206C_202A_200D_206D_202E_206B_200F_202A_202A_200B_206C_206A_206F_206B_206C_202C_200C_202A_206A_202D_200C_206A_206D_200B_200D_202B_202B_206C_200D_206F_206F_202C_206E_206B_202D_202E(item)) >= _206E_200B_206A_206D_200E_202D_206C_202D_206E_206B_206C_206B_202C_206A_206D_200B_206F_206B_206F_200C_202D_202D_206F_206E_200E_202E_206D_206D_200B_200D_202B_200D_206D_202A_202B_206E_200B_200F_206E_202D_202E(item);
|
||||
case 1:
|
||||
return false;
|
||||
case 4:
|
||||
num = 1208879956;
|
||||
break;
|
||||
case 0:
|
||||
ptr = InventoryManager.Instance();
|
||||
num = ((ptr != null) ? 1208879959 : 1208879958);
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static uint _200C_202B_202C_206A_206B_202A_202C_202A_206C_202D_202A_202E_202C_206B_206A_202E_200F_202D_202A_206F_206B_202B_206D_202A_202E_200C_206A_202C_202A_206E_206F_202E_206E_202C_202B_202E_206A_200C_206E_206D_202E(GatheredItem P_0)
|
||||
{
|
||||
return P_0.ItemId;
|
||||
}
|
||||
|
||||
static ushort _202D_206C_206F_202E_206D_206C_202A_200D_206D_202E_206B_200F_202A_202A_200B_206C_206A_206F_206B_206C_202C_200C_202A_206A_202D_200C_206A_206D_200B_200D_202B_202B_206C_200D_206F_206F_202C_206E_206B_202D_202E(GatheredItem P_0)
|
||||
{
|
||||
return P_0.Collectability;
|
||||
}
|
||||
|
||||
static int _206E_200B_206A_206D_200E_202D_206C_202D_206E_206B_206C_206B_202C_206A_206D_200B_206F_206B_206F_200C_202D_202D_206F_206E_200E_202E_206D_206D_200B_200D_202B_200D_206D_202A_202B_206E_200B_200F_206E_202D_202E(GatheredItem P_0)
|
||||
{
|
||||
return P_0.ItemCount;
|
||||
InventoryManager* ptr = InventoryManager.Instance();
|
||||
if (ptr == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return ptr->GetInventoryItemCount(item.ItemId, isHq: false, checkEquipped: true, checkArmory: true, (short)item.Collectability) >= item.ItemCount;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,8 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.ClientState.Conditions;
|
||||
using Dalamud.Plugin.Services;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game;
|
||||
|
|
@ -23,216 +20,39 @@ internal static class RedeemRewardItems
|
|||
{
|
||||
public unsafe IEnumerable<ITask> CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
int num = ((_206E_200D_206F_206B_200C_206D_200B_200F_206C_206E_200F_200E_200D_200C_202D_200F_202B_206B_206C_202A_200B_200E_206B_206F_202D_200F_202A_200F_202B_202E_206A_206E_200B_206D_206D_200F_202C_206B_206F_206A_202E(step) == EInteractionType.AcceptQuest) ? 1072934724 : 1072934722);
|
||||
List<ITask> list = default(List<ITask>);
|
||||
InventoryManager* ptr = default(InventoryManager*);
|
||||
ItemReward current = default(ItemReward);
|
||||
while (true)
|
||||
if (step.InteractionType != EInteractionType.AcceptQuest)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1072934726;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
return Array.Empty<ITask>();
|
||||
}
|
||||
List<ITask> list = new List<ITask>();
|
||||
InventoryManager* ptr = InventoryManager.Instance();
|
||||
if (ptr == null)
|
||||
{
|
||||
return list;
|
||||
}
|
||||
bool hasFreeInventorySlot = InventoryHelper.HasFreeInventorySlot();
|
||||
foreach (ItemReward redeemableItem in questData.RedeemableItems)
|
||||
{
|
||||
if (ptr->GetInventoryItemCount(redeemableItem.ItemId, isHq: false, checkEquipped: true, checkArmory: true, 0) != 0 && !redeemableItem.IsUnlocked() && PassesRedemptionFilters(redeemableItem.Type, redeemableItem.IsUntradable, configuration.General, hasFreeInventorySlot))
|
||||
{
|
||||
case 2:
|
||||
list = new List<ITask>();
|
||||
ptr = InventoryManager.Instance();
|
||||
num = ((ptr != null) ? 1072934727 : 1072934725);
|
||||
break;
|
||||
case 3:
|
||||
return list;
|
||||
case 0:
|
||||
num = 1072934722;
|
||||
break;
|
||||
case 4:
|
||||
return Array.Empty<ITask>();
|
||||
case 1:
|
||||
{
|
||||
bool hasFreeInventorySlot = _202C_200B_206C_200F_206B_202C_202B_202D_206B_202A_202B_206A_202E_200D_206C_206C_206C_200E_206A_200E_206E_206D_202A_206E_202B_206D_206E_200E_206B_206E_202E_202D_206C_206B_202D_202B_202C_202A_202A_206D_202E();
|
||||
using (ImmutableHashSet<ItemReward>.Enumerator enumerator = questData.RedeemableItems.GetEnumerator())
|
||||
{
|
||||
num = -498843277;
|
||||
while (true)
|
||||
{
|
||||
int num7 = num;
|
||||
num3 = -498843280;
|
||||
num4 = num7;
|
||||
int num8 = num4 + num3;
|
||||
int num9 = num4 & num3;
|
||||
switch (num8 - (num9 + num9))
|
||||
{
|
||||
case 6:
|
||||
num = -498843277;
|
||||
break;
|
||||
case 0:
|
||||
list.Add(new Task(current));
|
||||
num = -498843277;
|
||||
break;
|
||||
case 1:
|
||||
current = enumerator.Current;
|
||||
num = ((ptr->GetInventoryItemCount(current.ItemId, isHq: false, checkEquipped: true, checkArmory: true, 0) == 0) ? (-498843277) : (-498843278));
|
||||
break;
|
||||
case 3:
|
||||
num = (enumerator.MoveNext() ? (-498843279) : (-498843276));
|
||||
break;
|
||||
case 2:
|
||||
num = (current.IsUnlocked() ? (-498843277) : (-498843275));
|
||||
break;
|
||||
case 5:
|
||||
num = ((!PassesRedemptionFilters(current.Type, current.IsUntradable, configuration.General, hasFreeInventorySlot)) ? (-498843277) : (-498843280));
|
||||
break;
|
||||
case 4:
|
||||
goto end_IL_00be;
|
||||
}
|
||||
continue;
|
||||
end_IL_00be:
|
||||
break;
|
||||
}
|
||||
}
|
||||
num = ((list.Count <= 0) ? 1531306428 : 1531306429);
|
||||
while (true)
|
||||
{
|
||||
int num10 = num;
|
||||
num3 = 1531306428;
|
||||
num4 = num10;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
num = 1531306429;
|
||||
break;
|
||||
case 0:
|
||||
return list;
|
||||
case 1:
|
||||
list.Insert(0, new Mount.UnmountTask());
|
||||
num = 1531306428;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
list.Add(new Task(redeemableItem));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerable<ITask> ITaskFactory.CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in CreateAllTasks
|
||||
return this.CreateAllTasks(quest, sequence, step);
|
||||
}
|
||||
|
||||
static EInteractionType _206E_200D_206F_206B_200C_206D_200B_200F_206C_206E_200F_200E_200D_200C_202D_200F_202B_206B_206C_202A_200B_200E_206B_206F_202D_200F_202A_200F_202B_202E_206A_206E_200B_206D_206D_200F_202C_206B_206F_206A_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.InteractionType;
|
||||
}
|
||||
|
||||
static bool _202C_200B_206C_200F_206B_202C_202B_202D_206B_202A_202B_206A_202E_200D_206C_206C_206C_200E_206A_200E_206E_206D_202A_206E_202B_206D_206E_200E_206B_206E_202E_202D_206C_206B_202D_202B_202C_202A_202A_206D_202E()
|
||||
{
|
||||
return InventoryHelper.HasFreeInventorySlot();
|
||||
if (list.Count > 0)
|
||||
{
|
||||
list.Insert(0, new Mount.UnmountTask());
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed record Task(ItemReward ItemReward) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202C_200B_202B_202B_202A_202D_202B_206D_200E_202D_202B_200B_202A_202C_202D_202C_200E_200F_206C_202A_206C_206E_202E_202E_200F_206F_200F_202E_200C_200F_200B_202A_206A_206D_202A_206C_202D_200B_206D_200E_202E(typeof(Task).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
public int OriginalGearsetIndex { get; set; } = -1;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
return _202C_202E_200D_206C_200B_206E_200D_206A_200F_206D_206B_202D_200F_202D_200C_200C_202A_200F_202C_206C_200C_206E_202B_206B_200E_202A_200D_202A_200E_206A_202D_202B_206D_200C_206C_202E_200B_202B_202D_206B_202E(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>(483102337), ItemReward.Name, 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>(444206578));
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_202D_202A_206E_202A_200D_206E_206E_202D_202A_202E_202E_206D_206F_206B_206C_206A_206E_202C_202D_200F_202D_202C_200F_200B_202E_206B_200E_206B_202A_202B_202D_202D_200F_206C_202D_206D_206B_206F_200C_200F_202E();
|
||||
_202A_200F_200D_206A_206F_206F_206E_206B_202E_202D_202D_206F_200D_206C_202A_200C_206F_202B_200D_202A_202E_206B_200F_206A_206B_200E_206D_200B_206C_202C_206B_202C_200B_206F_202A_206C_202B_200C_202C_200C_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>(-1880324983));
|
||||
_206F_202D_200E_202D_206C_200C_200D_206E_202E_202A_202E_202C_200F_202A_206D_202D_202E_206C_200F_202C_200C_202C_200D_202D_200B_206D_200D_202E_206D_202C_206A_200E_200C_202A_206D_206F_206B_200D_200B_202C_202E(builder, (object)ItemReward);
|
||||
_202A_200F_200D_206A_206F_206F_206E_206B_202E_202D_202D_206F_200D_206C_202A_200C_206F_202B_200D_202A_202E_206B_200F_206A_206B_200E_206D_200B_206C_202C_206B_202C_200B_206F_202A_206C_202B_200C_202C_200C_202E(builder, 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>(-108687495));
|
||||
_202A_200F_200D_206A_206F_206F_206E_206B_202E_202D_202D_206F_200D_206C_202A_200C_206F_202B_200D_202A_202E_206B_200F_206A_206B_200E_206D_200B_206C_202C_206B_202C_200B_206F_202A_206C_202B_200C_202C_200C_202E(builder, OriginalGearsetIndex.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Task? other)
|
||||
{
|
||||
int num = (((object)this == other) ? (-2065789578) : (-2065789582));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -2065789584;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 5:
|
||||
num = ((!EqualityComparer<Questionable.Model.ItemReward>.Default.Equals(ItemReward, other.ItemReward)) ? (-2065789584) : (-2065789580));
|
||||
break;
|
||||
case 2:
|
||||
num = (((object)other == null) ? (-2065789584) : (-2065789583));
|
||||
break;
|
||||
case 1:
|
||||
num = ((!_206A_206E_206A_202A_202A_206B_202C_200D_202E_200E_200E_200C_206D_206B_206F_202B_206E_202B_202D_202C_206A_202B_200F_200F_206E_206E_200C_202A_202B_206E_202D_206C_200D_206F_206A_202B_200D_200F_200E_200D_202E(EqualityContract, other.EqualityContract)) ? (-2065789584) : (-2065789579));
|
||||
break;
|
||||
case 3:
|
||||
num = -2065789582;
|
||||
break;
|
||||
case 6:
|
||||
return true;
|
||||
case 4:
|
||||
return EqualityComparer<int>.Default.Equals(OriginalGearsetIndex, other.OriginalGearsetIndex);
|
||||
case 0:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Task>.Equals(Task? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202C_200B_202B_202B_202A_202D_202B_206D_200E_202D_202B_200B_202A_202C_202D_202C_200E_200F_206C_202A_206C_206E_202E_202E_200F_206F_200F_202E_200C_200F_200B_202A_206A_206D_202A_206C_202D_200B_206D_200E_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static string _202C_202E_200D_206C_200B_206E_200D_206A_200F_206D_206B_202D_200F_202D_200C_200C_202A_200F_202C_206C_200C_206E_202B_206B_200E_202A_200D_202A_200E_206A_202D_202B_206D_200C_206C_202E_200B_202B_202D_206B_202E(string P_0, string P_1, string P_2)
|
||||
{
|
||||
return P_0 + P_1 + P_2;
|
||||
}
|
||||
|
||||
static void _202D_202A_206E_202A_200D_206E_206E_202D_202A_202E_202E_206D_206F_206B_206C_206A_206E_202C_202D_200F_202D_202C_200F_200B_202E_206B_200E_206B_202A_202B_202D_202D_200F_206C_202D_206D_206B_206F_200C_200F_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _202A_200F_200D_206A_206F_206F_206E_206B_202E_202D_202D_206F_200D_206C_202A_200C_206F_202B_200D_202A_202E_206B_200F_206A_206B_200E_206D_200B_206C_202C_206B_202C_200B_206F_202A_206C_202B_200C_202C_200C_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _206F_202D_200E_202D_206C_200C_200D_206E_202E_202A_202E_202C_200F_202A_206D_202D_202E_206C_200F_202C_200C_202C_200D_202D_200B_206D_200D_202E_206D_202C_206A_200E_200C_202A_206D_206F_206B_200D_200B_202C_202E(StringBuilder P_0, object P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _206A_206E_206A_202A_202A_206B_202C_200D_202E_200E_200E_200C_206D_206B_206F_202B_206E_202B_202D_202C_206A_202B_200F_200F_206E_206E_200C_202A_202B_206E_202D_206C_200D_206F_206A_202B_200D_200F_200E_200D_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return "TryRedeem(" + ItemReward.Name + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -256,169 +76,81 @@ internal static class RedeemRewardItems
|
|||
|
||||
protected override bool Start()
|
||||
{
|
||||
int num = ((!_202A_202A_206C_206F_202D_206F_206B_206D_206F_202C_206A_200B_200B_202A_200C_200B_206A_200E_202C_206C_200D_206A_202E_202E_206A_206C_200D_202C_202A_206B_202B_200C_206E_200B_200F_200F_206D_202B_200B_206C_202E(condition, ConditionFlag.Mounted)) ? (-129962614) : (-129962617));
|
||||
long num9 = default(long);
|
||||
int? cofferGearsetIndex = default(int?);
|
||||
int valueOrDefault = default(int);
|
||||
int num7 = default(int);
|
||||
while (true)
|
||||
if (condition[ConditionFlag.Mounted] && base.Task.OriginalGearsetIndex < 0)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -129962609;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
return false;
|
||||
}
|
||||
long num = (_useItemAt = Environment.TickCount64);
|
||||
if (base.Task.ItemReward is CofferReward)
|
||||
{
|
||||
int? cofferGearsetIndex = configuration.General.CofferGearsetIndex;
|
||||
if (cofferGearsetIndex.HasValue)
|
||||
{
|
||||
case 9:
|
||||
return false;
|
||||
case 7:
|
||||
return true;
|
||||
case 5:
|
||||
num9 = (_useItemAt = _206B_202E_206A_206A_202E_206B_200C_202C_200D_206F_200E_202E_206E_206F_200D_202C_202E_202C_206F_202C_202E_200F_200B_200D_200C_206D_200D_202D_206D_206F_200F_202E_200D_206C_202D_200F_200F_200E_206F_206D_202E());
|
||||
num = ((!(base.Task.ItemReward is CofferReward)) ? (-129962616) : (-129962611));
|
||||
break;
|
||||
case 2:
|
||||
cofferGearsetIndex = configuration.General.CofferGearsetIndex;
|
||||
num = ((!cofferGearsetIndex.HasValue) ? (-129962616) : (-129962615));
|
||||
break;
|
||||
case 6:
|
||||
valueOrDefault = cofferGearsetIndex.GetValueOrDefault();
|
||||
num = ((base.Task.OriginalGearsetIndex >= 0) ? (-129962619) : (-129962620));
|
||||
break;
|
||||
case 10:
|
||||
num = ((_206A_206F_206D_202E_202B_206D_202E_206C_206C_206A_206A_200E_202E_200C_206C_206E_202A_200C_200C_200E_202E_200F_200F_206D_200D_206D_202B_206B_206C_206C_200D_202A_206C_200C_206D_202E_200D_202C_202C_206A_202E() == valueOrDefault) ? (-129962616) : (-129962610));
|
||||
break;
|
||||
case 11:
|
||||
num7 = _206A_206F_206D_202E_202B_206D_202E_206C_206C_206A_206A_200E_202E_200C_206C_206E_202A_200C_200C_200E_202E_200F_200F_206D_200D_206D_202B_206B_206C_206C_200D_202A_206C_200C_206D_202E_200D_202C_202C_206A_202E();
|
||||
num = ((num7 == valueOrDefault) ? (-129962616) : (-129962609));
|
||||
break;
|
||||
case 8:
|
||||
num = ((base.Task.OriginalGearsetIndex >= 0) ? (-129962614) : (-129962618));
|
||||
break;
|
||||
case 0:
|
||||
num = ((!_206F_202E_200E_200E_206E_202E_200D_202B_200B_200C_200B_200F_202D_206D_200E_200B_202B_202C_206A_200C_202A_200E_202A_206C_200C_202D_200F_206B_202E_200C_202B_202A_202A_202C_206E_200B_206F_202D_206C_200D_202E(valueOrDefault)) ? (-129962616) : (-129962613));
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
_206F_202E_200E_200E_206E_202E_200D_202B_200B_200C_200B_200F_202D_206D_200E_200B_202B_202C_206A_200C_202A_200E_202A_206C_200C_202D_200F_206B_202E_200C_202B_202A_202A_202C_206E_200B_206F_202D_206C_200D_202E(valueOrDefault);
|
||||
long num12 = num9;
|
||||
long num10 = 1000L;
|
||||
long num11 = num12;
|
||||
long num13 = num11 ^ num10;
|
||||
long num14 = num11 & num10;
|
||||
_useItemAt = num13 + (num14 + num14);
|
||||
num = -129962616;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
num = -129962617;
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
base.Task.OriginalGearsetIndex = num7;
|
||||
long num8 = num9;
|
||||
long num10 = 1000L;
|
||||
long num11 = num8;
|
||||
_useItemAt = (num11 | num10) + (num11 & num10);
|
||||
num = -129962616;
|
||||
break;
|
||||
}
|
||||
int valueOrDefault = cofferGearsetIndex.GetValueOrDefault();
|
||||
if (base.Task.OriginalGearsetIndex < 0)
|
||||
{
|
||||
int currentGearsetIndex = GearsetHelper.GetCurrentGearsetIndex();
|
||||
if (currentGearsetIndex != valueOrDefault && GearsetHelper.TryEquipGearset(valueOrDefault))
|
||||
{
|
||||
base.Task.OriginalGearsetIndex = currentGearsetIndex;
|
||||
_useItemAt = num + 1000;
|
||||
}
|
||||
}
|
||||
else if (GearsetHelper.GetCurrentGearsetIndex() != valueOrDefault)
|
||||
{
|
||||
GearsetHelper.TryEquipGearset(valueOrDefault);
|
||||
_useItemAt = num + 1000;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
long num = _206B_202E_206A_206A_202E_206B_200C_202C_200D_206F_200E_202E_206E_206F_200D_202C_202E_202C_206F_202C_202E_200F_200B_200D_200C_206D_200D_202D_206D_206F_200F_202E_200D_206C_202D_200F_200F_200E_206F_206D_202E();
|
||||
int num2 = (_itemUsed ? (-1961745235) : (-1961745230));
|
||||
TimeSpan timeSpan = default(TimeSpan);
|
||||
while (true)
|
||||
long tickCount = Environment.TickCount64;
|
||||
if (!_itemUsed)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = -1961745219;
|
||||
int num5 = num3;
|
||||
switch ((num5 | num4) - (num5 & num4))
|
||||
if (tickCount < _useItemAt)
|
||||
{
|
||||
case 8:
|
||||
RestoreGearset();
|
||||
return ETaskResult.TaskComplete;
|
||||
case 17:
|
||||
{
|
||||
int useItemAttempts = _useItemAttempts;
|
||||
num4 = 1;
|
||||
num5 = useItemAttempts;
|
||||
_useItemAttempts = (num5 | num4) + (num5 & num4);
|
||||
num2 = ((_useItemAttempts < 5) ? (-1961745218) : (-1961745221));
|
||||
break;
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
case 6:
|
||||
_200D_206F_202C_202C_200E_200F_206C_200F_200C_202A_202E_200B_200E_206F_200B_206A_200C_202E_200D_206B_202A_206F_202E_202A_206A_206D_202C_202D_202B_202E_202A_206D_206E_202B_200B_202A_206F_202B_202E_202D_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>(-96595266), new object[2]
|
||||
{
|
||||
base.Task.ItemReward.Name,
|
||||
_useItemAttempts
|
||||
});
|
||||
if (base.Task.ItemReward.IsUnlocked() || !HasItemInInventory(base.Task.ItemReward.ItemId))
|
||||
{
|
||||
RestoreGearset();
|
||||
return ETaskResult.TaskComplete;
|
||||
case 15:
|
||||
num2 = ((num >= _useItemAt) ? (-1961745220) : (-1961745225));
|
||||
break;
|
||||
case 11:
|
||||
}
|
||||
if (gameFunctions.UseItem(base.Task.ItemReward.ItemId))
|
||||
{
|
||||
_itemUsed = true;
|
||||
timeSpan = base.Task.ItemReward.CastTime;
|
||||
num2 = ((!(timeSpan < MinimumCastTime)) ? (-1961745232) : (-1961745217));
|
||||
break;
|
||||
case 14:
|
||||
TimeSpan timeSpan = base.Task.ItemReward.CastTime;
|
||||
if (timeSpan < MinimumCastTime)
|
||||
{
|
||||
timeSpan = MinimumCastTime;
|
||||
}
|
||||
_continueAt = tickCount + (long)timeSpan.TotalMilliseconds + 3000;
|
||||
return ETaskResult.StillRunning;
|
||||
case 10:
|
||||
return ETaskResult.StillRunning;
|
||||
case 12:
|
||||
return ETaskResult.StillRunning;
|
||||
case 4:
|
||||
num2 = -1961745230;
|
||||
break;
|
||||
case 7:
|
||||
num2 = ((!gameFunctions.UseItem(base.Task.ItemReward.ItemId)) ? (-1961745236) : (-1961745226));
|
||||
break;
|
||||
case 0:
|
||||
num2 = (HasItemInInventory(base.Task.ItemReward.ItemId) ? (-1961745222) : (-1961745228));
|
||||
break;
|
||||
case 9:
|
||||
}
|
||||
_useItemAttempts++;
|
||||
if (_useItemAttempts >= 5)
|
||||
{
|
||||
logger.LogWarning("Unable to use {ItemName} after {Attempts} attempts, giving up", base.Task.ItemReward.Name, _useItemAttempts);
|
||||
RestoreGearset();
|
||||
return ETaskResult.TaskComplete;
|
||||
case 16:
|
||||
num2 = ((!_202A_202A_206C_206F_202D_206F_206B_206D_206F_202C_206A_200B_200B_202A_200C_200B_206A_200E_202C_206C_200D_206A_202E_202E_206A_206C_200D_202C_202A_206B_202B_200C_206E_200B_200F_200F_206D_202B_200B_206C_202E(condition, ConditionFlag.Casting)) ? (-1961745224) : (-1961745229));
|
||||
break;
|
||||
case 5:
|
||||
num2 = ((num > _continueAt) ? (-1961745227) : (-1961745231));
|
||||
break;
|
||||
case 1:
|
||||
num2 = (base.Task.ItemReward.IsUnlocked() ? (-1961745228) : (-1961745219));
|
||||
break;
|
||||
case 3:
|
||||
{
|
||||
long num6 = 1000L;
|
||||
long num7 = num;
|
||||
_useItemAt = (num7 | num6) + (num7 & num6);
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
case 13:
|
||||
{
|
||||
long num6 = (long)timeSpan.TotalMilliseconds;
|
||||
long num7 = num;
|
||||
long num8 = (num7 | num6) + (num7 & num6);
|
||||
num6 = 3000L;
|
||||
num7 = num8;
|
||||
_continueAt = (num7 | num6) + (num7 & num6);
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
case 2:
|
||||
timeSpan = MinimumCastTime;
|
||||
num2 = -1961745232;
|
||||
break;
|
||||
}
|
||||
_useItemAt = tickCount + 1000;
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (condition[ConditionFlag.Casting])
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (tickCount <= _continueAt)
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
RestoreGearset();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
|
||||
public void StopNow()
|
||||
|
|
@ -426,129 +158,44 @@ internal static class RedeemRewardItems
|
|||
RestoreGearset();
|
||||
}
|
||||
|
||||
void IStoppableTaskExecutor.StopNow()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
||||
this.StopNow();
|
||||
}
|
||||
|
||||
private void RestoreGearset()
|
||||
{
|
||||
int num = ((base.Task.OriginalGearsetIndex < 0) ? (-1242962810) : (-1242962812));
|
||||
while (true)
|
||||
if (base.Task.OriginalGearsetIndex >= 0 && GearsetHelper.TryEquipGearset(base.Task.OriginalGearsetIndex))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1242962809;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = -1242962812;
|
||||
break;
|
||||
case 2:
|
||||
base.Task.OriginalGearsetIndex = -1;
|
||||
num = -1242962810;
|
||||
break;
|
||||
case 1:
|
||||
return;
|
||||
case 3:
|
||||
num = ((!_206F_202E_200E_200E_206E_202E_200D_202B_200B_200C_200B_200F_202D_206D_200E_200B_202B_202C_206A_200C_202A_200E_202A_206C_200C_202D_200F_206B_202E_200C_202B_202A_202A_202C_206E_200B_206F_202D_206C_200D_202E(base.Task.OriginalGearsetIndex)) ? (-1242962810) : (-1242962811));
|
||||
break;
|
||||
}
|
||||
base.Task.OriginalGearsetIndex = -1;
|
||||
}
|
||||
}
|
||||
|
||||
private unsafe static bool HasItemInInventory(uint itemId)
|
||||
{
|
||||
InventoryManager* ptr = InventoryManager.Instance();
|
||||
int num = ((ptr == null) ? 1562440275 : 1562440272);
|
||||
while (true)
|
||||
if (ptr != null)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1562440274;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
goto IL_0049;
|
||||
case 2:
|
||||
return ptr->GetInventoryItemCount(itemId, isHq: false, checkEquipped: true, checkArmory: true, 0) > 0;
|
||||
case 1:
|
||||
return false;
|
||||
}
|
||||
continue;
|
||||
IL_0049:
|
||||
num = 1562440272;
|
||||
return ptr->GetInventoryItemCount(itemId, isHq: false, checkEquipped: true, checkArmory: true, 0) > 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool ShouldInterruptOnDamage()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool _202A_202A_206C_206F_202D_206F_206B_206D_206F_202C_206A_200B_200B_202A_200C_200B_206A_200E_202C_206C_200D_206A_202E_202E_206A_206C_200D_202C_202A_206B_202B_200C_206E_200B_200F_200F_206D_202B_200B_206C_202E(ICondition P_0, ConditionFlag P_1)
|
||||
{
|
||||
return P_0[P_1];
|
||||
}
|
||||
|
||||
static long _206B_202E_206A_206A_202E_206B_200C_202C_200D_206F_200E_202E_206E_206F_200D_202C_202E_202C_206F_202C_202E_200F_200B_200D_200C_206D_200D_202D_206D_206F_200F_202E_200D_206C_202D_200F_200F_200E_206F_206D_202E()
|
||||
{
|
||||
return Environment.TickCount64;
|
||||
}
|
||||
|
||||
static int _206A_206F_206D_202E_202B_206D_202E_206C_206C_206A_206A_200E_202E_200C_206C_206E_202A_200C_200C_200E_202E_200F_200F_206D_200D_206D_202B_206B_206C_206C_200D_202A_206C_200C_206D_202E_200D_202C_202C_206A_202E()
|
||||
{
|
||||
return GearsetHelper.GetCurrentGearsetIndex();
|
||||
}
|
||||
|
||||
static bool _206F_202E_200E_200E_206E_202E_200D_202B_200B_200C_200B_200F_202D_206D_200E_200B_202B_202C_206A_200C_202A_200E_202A_206C_200C_202D_200F_206B_202E_200C_202B_202A_202A_202C_206E_200B_206F_202D_206C_200D_202E(int P_0)
|
||||
{
|
||||
return GearsetHelper.TryEquipGearset(P_0);
|
||||
}
|
||||
|
||||
static void _200D_206F_202C_202C_200E_200F_206C_200F_200C_202A_202E_200B_200E_206F_200B_206A_200C_202E_200D_206B_202A_206F_202E_202A_206A_206D_202C_202D_202B_202E_202A_206D_206E_202B_200B_202A_206F_202B_202E_202D_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogWarning(P_1, P_2);
|
||||
}
|
||||
}
|
||||
|
||||
internal static bool PassesRedemptionFilters(EItemRewardType type, bool isUntradable, Configuration.GeneralConfiguration general, bool hasFreeInventorySlot)
|
||||
{
|
||||
int num = ((!general.DisabledRewardTypes.Contains(type)) ? (-640252002) : (-640252008));
|
||||
while (true)
|
||||
if (general.DisabledRewardTypes.Contains(type))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -640252003;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 4:
|
||||
num = (hasFreeInventorySlot ? (-640252004) : (-640252006));
|
||||
break;
|
||||
case 1:
|
||||
return true;
|
||||
case 0:
|
||||
num = (isUntradable ? (-640252011) : (-640252001));
|
||||
break;
|
||||
case 8:
|
||||
num = ((type != EItemRewardType.Coffer) ? (-640252004) : (-640252007));
|
||||
break;
|
||||
case 2:
|
||||
return false;
|
||||
case 6:
|
||||
num = -640252008;
|
||||
break;
|
||||
case 3:
|
||||
num = ((!general.SkipTradableRewards) ? (-640252011) : (-640252003));
|
||||
break;
|
||||
case 5:
|
||||
return false;
|
||||
case 7:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (general.SkipTradableRewards && !isUntradable)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (type == EItemRewardType.Coffer && !hasFreeInventorySlot)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Questionable.Functions;
|
||||
using Questionable.Model.Questing;
|
||||
|
|
@ -12,107 +9,9 @@ internal static class SkipMissingObject
|
|||
{
|
||||
internal sealed record Task(uint DataId, ElementId ElementId, int Sequence) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202C_200C_200F_202D_202C_206F_200B_206B_200D_202D_206B_202C_200B_206C_202C_202C_206A_202C_202C_200D_206C_200F_200E_206B_200B_200D_206E_202A_206F_206E_200F_200E_206D_206B_206E_202D_202B_200C_200E_202D_202E(typeof(Task).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(19, 1);
|
||||
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>(581809339));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(DataId);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(1618480346));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_202B_202B_200F_206A_202A_200F_200F_206F_202C_206C_200E_206B_202C_202B_206C_202E_206B_202E_202C_206E_206A_202C_200C_202E_202A_200F_206D_206C_200E_202A_206D_206E_202A_202B_200B_202C_200F_202B_206E_206D_202E();
|
||||
_202B_202B_206B_206C_202A_206D_200B_206B_202B_202E_202C_206F_200C_202D_200E_200B_202C_200D_200B_200B_202C_202D_206C_200E_202A_200F_202D_202A_206B_200F_206B_206A_200D_206B_200B_206A_206E_200F_206F_200E_202E(builder, 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>(-1430532645));
|
||||
_202B_202B_206B_206C_202A_206D_200B_206B_202B_202E_202C_206F_200C_202D_200E_200B_202C_200D_200B_200B_202C_202D_206C_200E_202A_200F_202D_202A_206B_200F_206B_206A_200D_206B_200B_206A_206E_200F_206F_200E_202E(builder, DataId.ToString());
|
||||
_202B_202B_206B_206C_202A_206D_200B_206B_202B_202E_202C_206F_200C_202D_200E_200B_202C_200D_200B_200B_202C_202D_206C_200E_202A_200F_202D_202A_206B_200F_206B_206A_200D_206B_200B_206A_206E_200F_206F_200E_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>(70669024));
|
||||
_200F_200F_200E_200E_200E_206E_200B_200F_206D_200F_202D_206E_206E_206F_202D_202C_202C_202A_200D_200E_200C_206F_200C_200F_200F_200B_206A_200D_202A_200C_200E_200D_200C_206F_202A_206E_200D_206D_206D_200E_202E(builder, (object)ElementId);
|
||||
_202B_202B_206B_206C_202A_206D_200B_206B_202B_202E_202C_206F_200C_202D_200E_200B_202C_200D_200B_200B_202C_202D_206C_200E_202A_200F_202D_202A_206B_200F_206B_206A_200D_206B_200B_206A_206E_200F_206F_200E_202E(builder, 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>(-1883281888));
|
||||
_202B_202B_206B_206C_202A_206D_200B_206B_202B_202E_202C_206F_200C_202D_200E_200B_202C_200D_200B_200B_202C_202D_206C_200E_202A_200F_202D_202A_206B_200F_206B_206A_200D_206B_200B_206A_206E_200F_206F_200E_202E(builder, Sequence.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Task? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 1374562800 : 1374562801);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1374562804;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 1:
|
||||
return EqualityComparer<int>.Default.Equals(Sequence, other.Sequence);
|
||||
case 3:
|
||||
num = ((!EqualityComparer<Questionable.Model.Questing.ElementId>.Default.Equals(ElementId, other.ElementId)) ? 1374562806 : 1374562805);
|
||||
break;
|
||||
case 2:
|
||||
return false;
|
||||
case 5:
|
||||
num = (((object)other == null) ? 1374562806 : 1374562803);
|
||||
break;
|
||||
case 6:
|
||||
num = ((!EqualityComparer<uint>.Default.Equals(DataId, other.DataId)) ? 1374562806 : 1374562807);
|
||||
break;
|
||||
case 7:
|
||||
num = ((!_202E_200D_206F_202A_206C_206F_206C_206B_206A_202E_200C_202D_206F_206D_206E_202D_200C_200B_200C_206B_206E_206B_206A_202B_206F_206C_206E_202A_200B_206A_202E_202A_206A_202E_206E_200D_206C_202C_206F_202E_202E(EqualityContract, other.EqualityContract)) ? 1374562806 : 1374562802);
|
||||
break;
|
||||
case 4:
|
||||
return true;
|
||||
case 0:
|
||||
num = 1374562801;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Task>.Equals(Task? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202C_200C_200F_202D_202C_206F_200B_206B_200D_202D_206B_202C_200B_206C_202C_202C_206A_202C_202C_200D_206C_200F_200E_206B_200B_200D_206E_202A_206F_206E_200F_200E_206D_206B_206E_202D_202B_200C_200E_202D_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _202B_202B_200F_206A_202A_200F_200F_206F_202C_206C_200E_206B_202C_202B_206C_202E_206B_202E_202C_206E_206A_202C_200C_202E_202A_200F_206D_206C_200E_202A_206D_206E_202A_202B_200B_202C_200F_202B_206E_206D_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _202B_202B_206B_206C_202A_206D_200B_206B_202B_202E_202C_206F_200C_202D_200E_200B_202C_200D_200B_200B_202C_202D_206C_200E_202A_200F_202D_202A_206B_200F_206B_206A_200D_206B_200B_206A_206E_200F_206F_200E_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _200F_200F_200E_200E_200E_206E_200B_200F_206D_200F_202D_206E_206E_206F_202D_202C_202C_202A_200D_200E_200C_206F_200C_200F_200F_200B_206A_200D_202A_200C_200E_200D_200C_206F_202A_206E_200D_206D_206D_200E_202E(StringBuilder P_0, object P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _202E_200D_206F_202A_206C_206F_206C_206B_206A_202E_200C_202D_206F_206D_206E_202D_200C_200B_200C_206B_206E_206B_206A_202B_206F_206C_206E_202A_200B_206A_202E_202A_206A_202E_206E_200D_206C_202C_206F_202E_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"SkipMissingObject({DataId})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -122,52 +21,28 @@ internal static class SkipMissingObject
|
|||
|
||||
protected override bool Start()
|
||||
{
|
||||
_skipAt = _206D_200B_206C_206E_200B_200D_206F_202E_206A_202E_200E_200C_206A_200C_200D_206C_200E_200F_206C_206F_206D_200E_206E_200E_200D_206A_200F_200E_206E_206C_206F_202E_206B_202D_202C_206F_200B_206B_206D_206B_202E() + 500;
|
||||
_skipAt = Environment.TickCount64 + 500;
|
||||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
int num = ((gameFunctions.FindObjectByDataId(base.Task.DataId, null, warnIfMissing: false) == null) ? 54864098 : 54864097);
|
||||
while (true)
|
||||
if (gameFunctions.FindObjectByDataId(base.Task.DataId, null, warnIfMissing: false) != null)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 54864098;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
_206B_206A_206C_200B_206F_206F_202A_206F_200F_202D_202A_206C_202E_206A_206D_206F_206D_200E_200F_206A_202C_200F_202B_206C_206A_206E_200E_202C_206D_202A_206F_202D_200F_206B_206A_200C_206C_206F_200C_206F_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>(1261971575), new object[1] { base.Task.DataId });
|
||||
questController.IncreaseStepCount(base.Task.ElementId, base.Task.Sequence, shouldContinue: true);
|
||||
return ETaskResult.SkipRemainingTasksForStep;
|
||||
case 1:
|
||||
return ETaskResult.StillRunning;
|
||||
case 0:
|
||||
num = ((_206D_200B_206C_206E_200B_200D_206F_202E_206A_202E_200E_200C_206A_200C_200D_206C_200E_200F_206C_206F_206D_200E_206E_200E_200D_206A_200F_200E_206E_206C_206F_202E_206B_202D_202C_206F_200B_206B_206D_206B_202E() >= _skipAt) ? 54864096 : 54864099);
|
||||
break;
|
||||
case 3:
|
||||
return ETaskResult.TaskComplete;
|
||||
case 4:
|
||||
num = 54864097;
|
||||
break;
|
||||
}
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
if (Environment.TickCount64 < _skipAt)
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
logger.LogInformation("Skipping simulated actions because GameObject {DataId} is not present", base.Task.DataId);
|
||||
questController.IncreaseStepCount(base.Task.ElementId, base.Task.Sequence, shouldContinue: true);
|
||||
return ETaskResult.SkipRemainingTasksForStep;
|
||||
}
|
||||
|
||||
public override bool ShouldInterruptOnDamage()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static long _206D_200B_206C_206E_200B_200D_206F_202E_206A_202E_200E_200C_206A_200C_200D_206C_200E_200F_206C_206F_206D_200E_206E_200E_200D_206A_200F_200E_206E_206C_206F_202E_206B_202D_202C_206F_200B_206B_206D_206B_202E()
|
||||
{
|
||||
return Environment.TickCount64;
|
||||
}
|
||||
|
||||
static void _206B_206A_206C_200B_206F_206F_202A_206F_200F_202D_202A_206C_202E_206A_206D_206F_206D_200E_200F_206A_202C_200F_202B_206C_206A_206E_200E_202C_206D_202A_206F_202D_200F_206B_206A_200C_206C_206F_200C_206F_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogInformation(P_1, P_2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Questionable.Data;
|
||||
using Questionable.Model;
|
||||
|
|
@ -20,432 +15,77 @@ internal static class SmartNavStep
|
|||
{
|
||||
internal sealed class Factory(NavRouter navRouter, PlayerNavStateBuilder playerNavStateBuilder, RouteInstructionBuilder instructionBuilder, SmartNavTaskMapper taskMapper, SmartNavReRouteService reRouteService, AetheryteData aetheryteData, TerritoryData territoryData, ILogger<Factory> logger) : ITaskFactory
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private sealed class _003CCreateAllTasks_003Ed__13 : IEnumerable<ITask>, IEnumerable, IEnumerator<ITask>, IEnumerator, IDisposable
|
||||
{
|
||||
private int _003C_003E1__state;
|
||||
|
||||
private ITask _003C_003E2__current;
|
||||
|
||||
private int _003C_003El__initialThreadId;
|
||||
|
||||
public Factory _003C_003E4__this;
|
||||
|
||||
private QuestStep step;
|
||||
|
||||
public QuestStep _003C_003E3__step;
|
||||
|
||||
private IEnumerator<ITask> _003C_003E7__wrap1;
|
||||
|
||||
ITask IEnumerator<ITask>.Current
|
||||
{
|
||||
[DebuggerHidden]
|
||||
get
|
||||
{
|
||||
return _003C_003E2__current;
|
||||
}
|
||||
}
|
||||
|
||||
object IEnumerator.Current
|
||||
{
|
||||
[DebuggerHidden]
|
||||
get
|
||||
{
|
||||
return _003C_003E2__current;
|
||||
}
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
public _003CCreateAllTasks_003Ed__13(int _003C_003E1__state)
|
||||
{
|
||||
this._003C_003E1__state = _003C_003E1__state;
|
||||
_003C_003El__initialThreadId = _200F_200F_202C_206D_206F_202D_200D_206E_200B_202D_206A_202A_206B_202E_206D_200F_202E_206C_206C_206B_200C_206D_200B_206E_200F_200F_206F_206E_206A_200E_206B_206C_202C_202C_202B_206C_202D_206E_202D_200C_202E();
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
int num = _003C_003E1__state;
|
||||
int num2 = ((num == -3) ? 605314869 : 605314870);
|
||||
while (true)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = 605314868;
|
||||
int num5 = num3;
|
||||
switch ((num5 | num4) - (num5 & num4))
|
||||
{
|
||||
default:
|
||||
continue;
|
||||
case 0:
|
||||
num2 = 605314870;
|
||||
continue;
|
||||
case 2:
|
||||
if (num == 1)
|
||||
{
|
||||
num2 = 605314869;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
try
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
_003C_003Em__Finally1();
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
_003C_003E7__wrap1 = null;
|
||||
_003C_003E1__state = -2;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private bool MoveNext()
|
||||
{
|
||||
try
|
||||
{
|
||||
int num = _003C_003E1__state;
|
||||
Factory factory = _003C_003E4__this;
|
||||
int num2 = ((num == 0) ? 663941782 : 663941783);
|
||||
Vector3? vector = default(Vector3?);
|
||||
PlayerNavState playerNavState = default(PlayerNavState);
|
||||
RouteResult routeResult = default(RouteResult);
|
||||
while (true)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = 663941778;
|
||||
int num5 = num3;
|
||||
int num6 = num5 + num4;
|
||||
int num7 = num5 & num4;
|
||||
switch (num6 - (num7 + num7))
|
||||
{
|
||||
case 8:
|
||||
num2 = (_202D_200C_202E_202D_200B_206A_206E_206E_200C_200B_200F_200F_206F_206C_200C_206C_206D_200B_206B_200E_200D_206D_202A_206E_202E_200F_206C_206F_206F_202C_200B_206F_202E_200C_202C_202B_202B_200D_206F_202D_202E((IEnumerator)_003C_003E7__wrap1) ? 663941779 : 663941780);
|
||||
break;
|
||||
case 4:
|
||||
_003C_003E1__state = -1;
|
||||
factory.HandledRouting = false;
|
||||
vector = factory.ResolveDestination(step);
|
||||
num2 = (vector.HasValue ? 663941790 : 663941781);
|
||||
break;
|
||||
case 0:
|
||||
num2 = 663941783;
|
||||
break;
|
||||
case 11:
|
||||
return false;
|
||||
case 12:
|
||||
playerNavState = _200C_202A_206C_206D_206B_200D_200F_202A_202D_200E_206E_200D_200B_206C_206A_200F_202A_202B_206C_200E_206E_200B_202B_200F_202C_206B_206F_200E_202A_202B_202A_206E_206E_202C_200F_200F_202B_202A_206F_206F_202E(factory.playerNavStateBuilder, (int?)null);
|
||||
num2 = ((playerNavState != null) ? 663941776 : 663941785);
|
||||
break;
|
||||
case 7:
|
||||
return false;
|
||||
case 3:
|
||||
_003C_003E1__state = -3;
|
||||
num2 = 663941786;
|
||||
break;
|
||||
case 13:
|
||||
return false;
|
||||
case 10:
|
||||
return false;
|
||||
case 1:
|
||||
{
|
||||
ITask current = _003C_003E7__wrap1.Current;
|
||||
_003C_003E2__current = current;
|
||||
_003C_003E1__state = 1;
|
||||
return true;
|
||||
}
|
||||
case 2:
|
||||
routeResult = _206C_200D_206E_200F_200D_200B_202A_202C_206B_206D_206E_206C_202A_206F_206B_206B_206B_202D_202B_200F_206C_206D_200F_206F_200B_202C_206A_202A_202E_202E_202D_206B_200E_206A_202B_206E_202E_206F_200C_206A_202E(factory.navRouter, playerNavState, (uint)_206D_206D_206C_200C_206D_202C_206E_202C_206B_202D_206B_206A_200F_206B_200D_206A_200D_206C_206D_202E_200F_202C_206B_206F_206C_206B_206B_200F_200B_202E_206E_206F_200C_202A_200F_206A_202C_206E_206C_202C_202E(step), vector.Value, (IReadOnlySet<string>)null);
|
||||
num2 = ((_206F_206B_200F_202A_202E_200F_200B_200B_200B_200E_200D_206A_202A_206D_200D_200E_206F_202E_202A_206C_206B_200C_206E_202E_202C_202A_206E_200E_202E_206F_206D_206C_200D_202B_206E_202E_202E_200C_202A_202E_202E(routeResult).Count != 0) ? 663941787 : 663941791);
|
||||
break;
|
||||
case 5:
|
||||
num2 = ((num == 1) ? 663941777 : 663941784);
|
||||
break;
|
||||
case 9:
|
||||
factory.HandledRouting = true;
|
||||
_200C_202B_200D_200E_206A_200E_200D_206B_206C_202B_206C_202D_202D_206A_206B_206D_200B_206D_202B_202D_206F_206C_200B_202E_200B_200F_200B_202B_206E_202C_206A_200D_200E_202B_206E_200D_206B_202E_206B_202E((ILogger)factory.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>(-1590358802), new object[2]
|
||||
{
|
||||
factory.territoryData.GetNameAndId(_206D_206D_206C_200C_206D_202C_206E_202C_206B_202D_206B_206A_200F_206B_200D_206A_200D_206C_206D_202E_200F_202C_206B_206F_206C_206B_206B_200F_200B_202E_206E_206F_200C_202A_200F_206A_202C_206E_206C_202C_202E(step)),
|
||||
_206F_206B_200F_202A_202E_200F_200B_200B_200B_200E_200D_206A_202A_206D_200D_200E_206F_202E_202A_206C_206B_200C_206E_202E_202C_202A_206E_200E_202E_206F_206D_206C_200D_202B_206E_202E_202E_200C_202A_202E_202E(routeResult).Count
|
||||
});
|
||||
factory.reRouteService.SetDestination(_206D_206D_206C_200C_206D_202C_206E_202C_206B_202D_206B_206A_200F_206B_200D_206A_200D_206C_206D_202E_200F_202C_206B_206F_206C_206B_206B_200F_200B_202E_206E_206F_200C_202A_200F_206A_202C_206E_206C_202C_202E(step), vector.Value);
|
||||
_003C_003E7__wrap1 = factory.taskMapper.MapInstructions(_202C_206C_206A_202C_206B_206D_206B_206F_202A_202E_206E_206F_202A_206B_206C_206F_200B_206B_202B_202E_202C_200E_202A_200B_206D_200F_206F_202E_202B_200F_206F_202E_200B_202B_202A_202D_206D_206D_202B_202C_202E(factory.instructionBuilder, routeResult, (uint)_206D_206D_206C_200C_206D_202C_206E_202C_206B_202D_206B_206A_200F_206B_200D_206A_200D_206C_206D_202E_200F_202C_206B_206F_206C_206B_206B_200F_200B_202E_206E_206F_200C_202A_200F_206A_202C_206E_206C_202C_202E(step), _206D_202C_202E_200D_202A_200D_200B_200F_206C_200B_206F_206B_206F_206F_200D_200E_206B_206A_206C_200F_200C_200F_206A_200D_206D_206B_206A_202B_200B_200F_202E_200D_202C_206C_206E_206B_206D_202A_200B_202E_202E(step)), step).GetEnumerator();
|
||||
_003C_003E1__state = -3;
|
||||
num2 = 663941786;
|
||||
break;
|
||||
case 6:
|
||||
_003C_003Em__Finally1();
|
||||
_003C_003E7__wrap1 = null;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
//try-fault
|
||||
((IDisposable)this).Dispose();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
bool IEnumerator.MoveNext()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
|
||||
return this.MoveNext();
|
||||
}
|
||||
|
||||
private void _003C_003Em__Finally1()
|
||||
{
|
||||
_003C_003E1__state = -1;
|
||||
int num = ((_003C_003E7__wrap1 == null) ? 298667003 : 298667002);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 298667003;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = 298667002;
|
||||
break;
|
||||
case 1:
|
||||
_200E_202A_206A_200C_206E_206C_206B_206B_206D_206E_206B_202C_206D_206A_202B_202B_200C_202B_202E_202C_202D_200B_200D_202C_206B_202B_206F_202B_200F_200F_202B_202D_200C_206E_200F_206C_200F_206A_206F_206D_202E((IDisposable)_003C_003E7__wrap1);
|
||||
num = 298667003;
|
||||
break;
|
||||
case 0:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
void IEnumerator.Reset()
|
||||
{
|
||||
throw _206C_206C_200B_202D_206A_200B_200C_206D_202D_206E_202A_202B_206A_206B_200D_202E_202D_200C_200C_200C_200D_206E_202E_202A_206A_200C_202B_202C_206E_206E_200B_200C_200D_206F_202C_200C_206E_206B_206F_206C_202E();
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
IEnumerator<ITask> IEnumerable<ITask>.GetEnumerator()
|
||||
{
|
||||
int num = ((_003C_003E1__state != -2) ? (-183220830) : (-183220831));
|
||||
_003CCreateAllTasks_003Ed__13 _003CCreateAllTasks_003Ed__ = default(_003CCreateAllTasks_003Ed__13);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -183220832;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 4:
|
||||
_003C_003E1__state = 0;
|
||||
_003CCreateAllTasks_003Ed__ = this;
|
||||
num = -183220832;
|
||||
break;
|
||||
case 1:
|
||||
num = ((_003C_003El__initialThreadId != _200F_200F_202C_206D_206F_202D_200D_206E_200B_202D_206A_202A_206B_202E_206D_200F_202E_206C_206C_206B_200C_206D_200B_206E_200F_200F_206F_206E_206A_200E_206B_206C_202C_202C_202B_206C_202D_206E_202D_200C_202E()) ? (-183220830) : (-183220828));
|
||||
break;
|
||||
case 0:
|
||||
_003CCreateAllTasks_003Ed__.step = _003C_003E3__step;
|
||||
return _003CCreateAllTasks_003Ed__;
|
||||
case 3:
|
||||
num = -183220831;
|
||||
break;
|
||||
case 2:
|
||||
_003CCreateAllTasks_003Ed__ = new _003CCreateAllTasks_003Ed__13(0)
|
||||
{
|
||||
_003C_003E4__this = _003C_003E4__this
|
||||
};
|
||||
num = -183220832;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return ((IEnumerable<ITask>)this).GetEnumerator();
|
||||
}
|
||||
|
||||
static int _200F_200F_202C_206D_206F_202D_200D_206E_200B_202D_206A_202A_206B_202E_206D_200F_202E_206C_206C_206B_200C_206D_200B_206E_200F_200F_206F_206E_206A_200E_206B_206C_202C_202C_202B_206C_202D_206E_202D_200C_202E()
|
||||
{
|
||||
return Environment.CurrentManagedThreadId;
|
||||
}
|
||||
|
||||
static PlayerNavState _200C_202A_206C_206D_206B_200D_200F_202A_202D_200E_206E_200D_200B_206C_206A_200F_202A_202B_206C_200E_206E_200B_202B_200F_202C_206B_206F_200E_202A_202B_202A_206E_206E_202C_200F_200F_202B_202A_206F_206F_202E(PlayerNavStateBuilder P_0, int? P_1)
|
||||
{
|
||||
return P_0.Build(P_1);
|
||||
}
|
||||
|
||||
static ushort _206D_206D_206C_200C_206D_202C_206E_202C_206B_202D_206B_206A_200F_206B_200D_206A_200D_206C_206D_202E_200F_202C_206B_206F_206C_206B_206B_200F_200B_202E_206E_206F_200C_202A_200F_206A_202C_206E_206C_202C_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.TerritoryId;
|
||||
}
|
||||
|
||||
static RouteResult _206C_200D_206E_200F_200D_200B_202A_202C_206B_206D_206E_206C_202A_206F_206B_206B_206B_202D_202B_200F_206C_206D_200F_206F_200B_202C_206A_202A_202E_202E_202D_206B_200E_206A_202B_206E_202E_206F_200C_206A_202E(NavRouter P_0, PlayerNavState P_1, uint P_2, Vector3 P_3, IReadOnlySet<string> P_4)
|
||||
{
|
||||
return P_0.FindRoute(P_1, P_2, P_3, P_4);
|
||||
}
|
||||
|
||||
static IReadOnlyList<RouteSegment> _206F_206B_200F_202A_202E_200F_200B_200B_200B_200E_200D_206A_202A_206D_200D_200E_206F_202E_202A_206C_206B_200C_206E_202E_202C_202A_206E_200E_202E_206F_206D_206C_200D_202B_206E_202E_202E_200C_202A_202E_202E(RouteResult P_0)
|
||||
{
|
||||
return P_0.Segments;
|
||||
}
|
||||
|
||||
static void _200C_202B_200D_200E_206A_200E_200D_206B_206C_202B_206C_202D_202D_206A_206B_206D_200B_206D_202B_202D_206F_206C_200B_202E_200B_200F_200B_202B_206E_202C_206A_200D_200E_202B_206E_200D_206B_202E_206B_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
|
||||
static bool _206D_202C_202E_200D_202A_200D_200B_200F_206C_200B_206F_206B_206F_206F_200D_200E_206B_206A_206C_200F_200C_200F_206A_200D_206D_206B_206A_202B_200B_200F_202E_200D_202C_206C_206E_206B_206D_202A_200B_202E_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.DisableNavmesh;
|
||||
}
|
||||
|
||||
static IReadOnlyList<NavInstruction> _202C_206C_206A_202C_206B_206D_206B_206F_202A_202E_206E_206F_202A_206B_206C_206F_200B_206B_202B_202E_202C_200E_202A_200B_206D_200F_206F_202E_202B_200F_206F_202E_200B_202B_202A_202D_206D_206D_202B_202C_202E(RouteInstructionBuilder P_0, RouteResult P_1, uint P_2, bool P_3)
|
||||
{
|
||||
return P_0.Build(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static bool _202D_200C_202E_202D_200B_206A_206E_206E_200C_200B_200F_200F_206F_206C_200C_206C_206D_200B_206B_200E_200D_206D_202A_206E_202E_200F_206C_206F_206F_202C_200B_206F_202E_200C_202C_202B_202B_200D_206F_202D_202E(IEnumerator P_0)
|
||||
{
|
||||
return P_0.MoveNext();
|
||||
}
|
||||
|
||||
static void _200E_202A_206A_200C_206E_206C_206B_206B_206D_206E_206B_202C_206D_206A_202B_202B_200C_202B_202E_202C_202D_200B_200D_202C_206B_202B_206F_202B_200F_200F_202B_202D_200C_206E_200F_206C_200F_206A_206F_206D_202E(IDisposable P_0)
|
||||
{
|
||||
P_0.Dispose();
|
||||
}
|
||||
|
||||
static NotSupportedException _206C_206C_200B_202D_206A_200B_200C_206D_202D_206E_202A_202B_206A_206B_200D_202E_202D_200C_200C_200C_200D_206E_202E_202A_206A_200C_202B_202C_206E_206E_200B_200C_200D_206F_202C_200C_206E_206B_206F_206C_202E()
|
||||
{
|
||||
return new NotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public bool HandledRouting { get; private set; }
|
||||
|
||||
[IteratorStateMachine(typeof(_003CCreateAllTasks_003Ed__13))]
|
||||
public IEnumerable<ITask> CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
//yield-return decompiler failed: Unexpected instruction in Iterator.Dispose()
|
||||
return new _003CCreateAllTasks_003Ed__13(-2)
|
||||
HandledRouting = false;
|
||||
Vector3? vector = ResolveDestination(step);
|
||||
if (!vector.HasValue)
|
||||
{
|
||||
_003C_003E4__this = this,
|
||||
_003C_003E3__step = step
|
||||
};
|
||||
}
|
||||
|
||||
IEnumerable<ITask> ITaskFactory.CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in CreateAllTasks
|
||||
return this.CreateAllTasks(quest, sequence, step);
|
||||
yield break;
|
||||
}
|
||||
PlayerNavState playerNavState = playerNavStateBuilder.Build();
|
||||
if (playerNavState == null)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
RouteResult routeResult = navRouter.FindRoute(playerNavState, step.TerritoryId, vector.Value);
|
||||
if (routeResult.Segments.Count == 0)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
HandledRouting = true;
|
||||
logger.LogDebug("SmartNav routing to {Territory} with {Count} segments", territoryData.GetNameAndId(step.TerritoryId), routeResult.Segments.Count);
|
||||
reRouteService.SetDestination(step.TerritoryId, vector.Value);
|
||||
foreach (ITask item in taskMapper.MapInstructions(instructionBuilder.Build(routeResult, step.TerritoryId, step.DisableNavmesh), step))
|
||||
{
|
||||
yield return item;
|
||||
}
|
||||
}
|
||||
|
||||
private Vector3? ResolveDestination(QuestStep step)
|
||||
{
|
||||
int num = ((!_200C_200E_202E_206A_206E_202E_202E_200D_200D_206D_200C_200C_200B_200C_200E_200F_200C_206A_206F_202B_202A_206A_202E_200D_200D_200B_200E_200C_206B_200B_202B_202B_202A_206B_200F_206D_206A_200B_200F_202B_202E(step).HasValue) ? (-1099591953) : (-1099591967));
|
||||
Vector3 value2 = default(Vector3);
|
||||
EAetheryteLocation? eAetheryteLocation = default(EAetheryteLocation?);
|
||||
EAetheryteLocation valueOrDefault2 = default(EAetheryteLocation);
|
||||
bool flag = default(bool);
|
||||
Vector3 value = default(Vector3);
|
||||
while (true)
|
||||
if (step.Position.HasValue)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1099591953;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
return step.Position;
|
||||
}
|
||||
EAetheryteLocation valueOrDefault = default(EAetheryteLocation);
|
||||
bool flag;
|
||||
if (step != null)
|
||||
{
|
||||
EInteractionType interactionType = step.InteractionType;
|
||||
if ((uint)(interactionType - 4) <= 1u)
|
||||
{
|
||||
case 0:
|
||||
num = ((step == null) ? (-1099591954) : (-1099591955));
|
||||
break;
|
||||
case 7:
|
||||
return value2;
|
||||
case 13:
|
||||
eAetheryteLocation = _202C_206D_200B_200C_202E_202B_206C_206F_206F_206E_202E_200F_206C_202D_202C_200D_200D_202B_206E_202A_200C_202D_202C_206A_206A_200E_206E_202B_206D_206D_202B_202E_206D_200F_202C_206D_206B_206E_200D_202E_202E(step);
|
||||
num = ((!eAetheryteLocation.HasValue) ? (-1099591964) : (-1099591963));
|
||||
break;
|
||||
case 15:
|
||||
num = ((!_200D_200B_206D_206B_200B_200E_206C_202B_200D_200C_200C_202A_206F_206C_206E_206B_202A_206D_202B_206D_206D_202E_206B_200B_200F_202A_200C_206E_200B_202A_206B_200C_200E_200F_202D_200F_206A_206B_202C_200F_202E(aetheryteData).TryGetValue(valueOrDefault2, out value2)) ? (-1099591957) : (-1099591960));
|
||||
break;
|
||||
case 5:
|
||||
num = ((!flag) ? (-1099591957) : (-1099591968));
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
EInteractionType eInteractionType = _200C_202C_206A_202D_206E_200D_206D_202D_206F_202E_200B_202E_206A_202D_200F_206F_200E_206E_202D_206B_202D_200E_200D_206F_202D_206B_202C_206F_200E_206C_206E_200F_202C_206A_206C_206E_206D_206E_206F_206D_202E(step);
|
||||
num = (((uint)(eInteractionType - 4) > 1u) ? (-1099591954) : (-1099591962));
|
||||
break;
|
||||
}
|
||||
case 12:
|
||||
num = ((_200C_202C_206A_202D_206E_200D_206D_202D_206F_202E_200B_202E_206A_202D_200F_206F_200E_206E_202D_206B_202D_200E_200D_206F_202D_206B_202C_206F_200E_206C_206E_200F_202C_206A_206C_206E_206D_206E_206F_206D_202E(step) != EInteractionType.AttuneAethernetShard) ? (-1099591964) : (-1099591966));
|
||||
break;
|
||||
case 4:
|
||||
num = ((step == null) ? (-1099591964) : (-1099591965));
|
||||
break;
|
||||
case 3:
|
||||
num = -1099591967;
|
||||
break;
|
||||
case 11:
|
||||
return null;
|
||||
case 6:
|
||||
return value;
|
||||
case 9:
|
||||
eAetheryteLocation = _206D_202A_200F_206A_200E_206D_206D_202D_202D_206D_200E_202D_202D_200F_202E_202E_206F_206E_200E_200F_206A_200B_200E_202A_202C_206F_206C_206B_206D_202A_200B_200F_206D_200D_206B_202B_200D_202E_206F_200E_202E(step);
|
||||
num = ((!eAetheryteLocation.HasValue) ? (-1099591954) : (-1099591961));
|
||||
break;
|
||||
case 1:
|
||||
flag = false;
|
||||
num = -1099591958;
|
||||
break;
|
||||
case 8:
|
||||
valueOrDefault2 = eAetheryteLocation.GetValueOrDefault();
|
||||
flag = true;
|
||||
num = -1099591958;
|
||||
break;
|
||||
case 10:
|
||||
{
|
||||
EAetheryteLocation valueOrDefault = eAetheryteLocation.GetValueOrDefault();
|
||||
num = ((!_200D_200B_206D_206B_200B_200E_206C_202B_200D_200C_200C_202A_206F_206C_206E_206B_202A_206D_202B_206D_206D_202E_206B_200B_200F_202A_200C_206E_200B_202A_206B_200C_200E_200F_202D_200F_206A_206B_202C_200F_202E(aetheryteData).TryGetValue(valueOrDefault, out value)) ? (-1099591964) : (-1099591959));
|
||||
break;
|
||||
}
|
||||
case 14:
|
||||
return _200C_200E_202E_206A_206E_202E_202E_200D_200D_206D_200C_200C_200B_200C_200E_200F_200C_206A_206F_202B_202A_206A_202E_200D_200D_200B_200E_200C_206B_200B_202B_202B_202A_206B_200F_206D_206A_200B_200F_202B_202E(step);
|
||||
EAetheryteLocation? aetheryte = step.Aetheryte;
|
||||
if (aetheryte.HasValue)
|
||||
{
|
||||
valueOrDefault = aetheryte.GetValueOrDefault();
|
||||
flag = true;
|
||||
goto IL_004b;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static Vector3? _200C_200E_202E_206A_206E_202E_202E_200D_200D_206D_200C_200C_200B_200C_200E_200F_200C_206A_206F_202B_202A_206A_202E_200D_200D_200B_200E_200C_206B_200B_202B_202B_202A_206B_200F_206D_206A_200B_200F_202B_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.Position;
|
||||
}
|
||||
|
||||
static EInteractionType _200C_202C_206A_202D_206E_200D_206D_202D_206F_202E_200B_202E_206A_202D_200F_206F_200E_206E_202D_206B_202D_200E_200D_206F_202D_206B_202C_206F_200E_206C_206E_200F_202C_206A_206C_206E_206D_206E_206F_206D_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.InteractionType;
|
||||
}
|
||||
|
||||
static EAetheryteLocation? _206D_202A_200F_206A_200E_206D_206D_202D_202D_206D_200E_202D_202D_200F_202E_202E_206F_206E_200E_200F_206A_200B_200E_202A_202C_206F_206C_206B_206D_202A_200B_200F_206D_200D_206B_202B_200D_202E_206F_200E_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.Aetheryte;
|
||||
}
|
||||
|
||||
static ReadOnlyDictionary<EAetheryteLocation, Vector3> _200D_200B_206D_206B_200B_200E_206C_202B_200D_200C_200C_202A_206F_206C_206E_206B_202A_206D_202B_206D_206D_202E_206B_200B_200F_202A_200C_206E_200B_202A_206B_200C_200E_200F_202D_200F_206A_206B_202C_200F_202E(AetheryteData P_0)
|
||||
{
|
||||
return P_0.Locations;
|
||||
}
|
||||
|
||||
static EAetheryteLocation? _202C_206D_200B_200C_202E_202B_206C_206F_206F_206E_202E_200F_206C_202D_202C_200D_200D_202B_206E_202A_200C_202D_202C_206A_206A_200E_206E_202B_206D_206D_202B_202E_206D_200F_202C_206D_206B_206E_200D_202E_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.AethernetShard;
|
||||
flag = false;
|
||||
goto IL_004b;
|
||||
IL_004b:
|
||||
if (flag && aetheryteData.Locations.TryGetValue(valueOrDefault, out var value))
|
||||
{
|
||||
return value;
|
||||
}
|
||||
if (step != null && step.InteractionType == EInteractionType.AttuneAethernetShard)
|
||||
{
|
||||
EAetheryteLocation? aetheryte = step.AethernetShard;
|
||||
if (aetheryte.HasValue)
|
||||
{
|
||||
EAetheryteLocation valueOrDefault2 = aetheryte.GetValueOrDefault();
|
||||
if (aetheryteData.Locations.TryGetValue(valueOrDefault2, out var value2))
|
||||
{
|
||||
return value2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Questionable.Model;
|
||||
using Questionable.Model.Questing;
|
||||
|
|
@ -12,39 +10,19 @@ internal static class StepDisabled
|
|||
{
|
||||
public override ITask? CreateTask(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
int num = (_200D_202A_202A_206E_200D_206F_206C_202D_206F_200C_200D_202A_206D_200C_202C_202A_202A_200C_206F_206F_200F_202E_202C_202C_206B_202A_200C_206F_206C_200E_206E_202D_202E_206E_206B_202D_202D_200B_206B_206D_202E(step) ? 1566722384 : 1566722387);
|
||||
while (true)
|
||||
if (!step.Disabled)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1566722386;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
return new SkipRemainingTasks();
|
||||
case 1:
|
||||
return null;
|
||||
case 0:
|
||||
goto IL_004e;
|
||||
}
|
||||
continue;
|
||||
IL_004e:
|
||||
num = 1566722387;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static bool _200D_202A_202A_206E_200D_206F_206C_202D_206F_200C_200D_202A_206D_200C_202C_202A_202A_200C_206F_206F_200F_202E_202C_202C_206B_202A_200C_206F_206C_200E_206E_202D_202E_206E_206B_202D_202D_200B_206B_206D_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.Disabled;
|
||||
return new SkipRemainingTasks();
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class SkipRemainingTasks : ITask
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
return 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>(-2111602818);
|
||||
return "StepDisabled";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -55,10 +33,9 @@ internal static class StepDisabled
|
|||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
_206E_202C_206C_206D_200C_200C_200D_200E_202C_202E_200D_206F_202D_200D_206C_202D_202D_200B_206B_206C_200E_200E_200F_200E_206F_206C_206A_200F_202D_202E_202C_200C_206A_206B_206A_202A_206F_206C_206E_206F_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>(-1976171694), Array.Empty<object>());
|
||||
logger.LogDebug("Skipping step, as it is disabled");
|
||||
return ETaskResult.SkipRemainingTasksForStep;
|
||||
}
|
||||
|
||||
|
|
@ -66,10 +43,5 @@ internal static class StepDisabled
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static void _206E_202C_206C_206D_200C_200C_200D_200E_202C_202E_200D_206F_202D_200D_206C_202D_202D_200B_206B_206C_200E_200E_200F_200E_206F_206C_206A_200F_202D_202E_202C_200C_206A_206B_206A_202A_206F_206C_206E_206F_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Plugin.Services;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
|
|
@ -14,117 +10,14 @@ internal static class SubRegionTransport
|
|||
{
|
||||
internal sealed record Task(Vector3 SourcePosition, Vector3 DestPosition, ushort TerritoryId) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _200D_200C_202B_200B_206F_200D_206B_206E_206B_202A_200E_200B_202E_202A_206A_206F_202E_200D_202C_206B_200F_206B_202B_202E_200F_206B_200F_206D_200E_206E_202B_200B_200B_206F_200D_200B_202C_206B_206F_206D_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(26, 3);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(-630206869));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(TerritoryId);
|
||||
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>(-1095822044));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(SourcePosition);
|
||||
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>(198379463));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(DestPosition);
|
||||
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>(444206578));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_202C_200F_206B_206E_202C_206B_200E_200B_200E_200F_206D_200B_202A_202E_206C_202E_202D_206F_202B_206B_206B_200D_202C_202D_202E_200F_206B_202D_206D_200F_202B_206E_202A_200D_202D_202C_200C_200E_202D_202E_202E();
|
||||
_202D_200E_202E_202E_200B_202E_206E_200B_200B_202B_200B_206D_206D_200B_206A_206A_206E_202C_202A_206A_202D_202A_202A_200D_200F_200B_200F_200F_206A_202B_202D_206E_202E_206A_202D_200F_206E_200C_202E_206C_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>(-603430089));
|
||||
_202D_200E_202E_202E_200B_202E_206E_200B_200B_202B_200B_206D_206D_200B_206A_206A_206E_202C_202A_206A_202D_202A_202A_200D_200F_200B_200F_200F_206A_202B_202D_206E_202E_206A_202D_200F_206E_200C_202E_206C_202E(builder, SourcePosition.ToString());
|
||||
_202D_200E_202E_202E_200B_202E_206E_200B_200B_202B_200B_206D_206D_200B_206A_206A_206E_202C_202A_206A_202D_202A_202A_200D_200F_200B_200F_200F_206A_202B_202D_206E_202E_206A_202D_200F_206E_200C_202E_206C_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>(-1503839347));
|
||||
_202D_200E_202E_202E_200B_202E_206E_200B_200B_202B_200B_206D_206D_200B_206A_206A_206E_202C_202A_206A_202D_202A_202A_200D_200F_200B_200F_200F_206A_202B_202D_206E_202E_206A_202D_200F_206E_200C_202E_206C_202E(builder, DestPosition.ToString());
|
||||
_202D_200E_202E_202E_200B_202E_206E_200B_200B_202B_200B_206D_206D_200B_206A_206A_206E_202C_202A_206A_202D_202A_202A_200D_200F_200B_200F_200F_206A_202B_202D_206E_202E_206A_202D_200F_206E_200C_202E_206C_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>(-1428648191));
|
||||
_202D_200E_202E_202E_200B_202E_206E_200B_200B_202B_200B_206D_206D_200B_206A_206A_206E_202C_202A_206A_202D_202A_202A_200D_200F_200B_200F_200F_206A_202B_202D_206E_202E_206A_202D_200F_206E_200C_202E_206C_202E(builder, TerritoryId.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Task? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 627105870 : 627105869);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 627105866;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 4:
|
||||
return true;
|
||||
case 5:
|
||||
num = ((!EqualityComparer<Vector3>.Default.Equals(SourcePosition, other.SourcePosition)) ? 627105867 : 627105868);
|
||||
break;
|
||||
case 7:
|
||||
num = (((object)other == null) ? 627105867 : 627105866);
|
||||
break;
|
||||
case 0:
|
||||
num = ((!_202C_202C_206E_206B_200D_206A_200B_202D_206D_202E_202E_206D_206F_202C_200E_200E_202D_206F_200C_206D_202C_202D_200C_202E_206C_206A_200E_200C_202A_206F_202D_206F_206B_200F_202B_202A_202E_206D_206B_200E_202E(EqualityContract, other.EqualityContract)) ? 627105867 : 627105871);
|
||||
break;
|
||||
case 3:
|
||||
return EqualityComparer<ushort>.Default.Equals(TerritoryId, other.TerritoryId);
|
||||
case 6:
|
||||
num = ((!EqualityComparer<Vector3>.Default.Equals(DestPosition, other.DestPosition)) ? 627105867 : 627105865);
|
||||
break;
|
||||
case 1:
|
||||
return false;
|
||||
case 2:
|
||||
num = 627105869;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Task>.Equals(Task? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _200D_200C_202B_200B_206F_200D_206B_206E_206B_202A_200E_200B_202E_202A_206A_206F_202E_200D_202C_206B_200F_206B_202B_202E_200F_206B_200F_206D_200E_206E_202B_200B_200B_206F_200D_200B_202C_206B_206F_206D_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _202C_200F_206B_206E_202C_206B_200E_200B_200E_200F_206D_200B_202A_202E_206C_202E_202D_206F_202B_206B_206B_200D_202C_202D_202E_200F_206B_202D_206D_200F_202B_206E_202A_200D_202D_202C_200C_200E_202D_202E_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _202D_200E_202E_202E_200B_202E_206E_200B_200B_202B_200B_206D_206D_200B_206A_206A_206E_202C_202A_206A_202D_202A_202A_200D_200F_200B_200F_200F_206A_202B_202D_206E_202E_206A_202D_200F_206E_200C_202E_206C_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _202C_202C_206E_206B_200D_206A_200B_202D_206D_202E_202E_206D_206F_202C_200E_200E_202D_206F_200C_206D_202C_202D_200C_202E_206C_206A_200E_200C_202A_206F_202D_206F_206B_200F_202B_202A_202E_206D_206B_200E_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"SubRegionTransport({TerritoryId}, {SourcePosition} -> {DestPosition})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -134,77 +27,33 @@ internal static class SubRegionTransport
|
|||
|
||||
private long _startTime;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
protected override bool Start()
|
||||
{
|
||||
IPlayerCharacter playerCharacter = _202E_206B_206E_206F_202D_206C_206B_206C_200D_202C_200D_202A_202B_206B_206E_202B_202D_206F_206F_202A_200E_206F_202D_202C_206F_200F_200F_206B_202A_206E_206C_206B_202B_202E_200D_206C_200D_202B_206F_202A_202E(objectTable);
|
||||
_startPosition = ((playerCharacter != null) ? _200B_202A_206C_202E_206D_202A_202B_202B_202D_200F_200C_200E_206F_206B_206D_200F_206B_202E_200F_206D_202B_206B_206E_202A_202A_206B_200C_202A_202B_200D_200E_200D_206C_206C_202A_202D_202D_200F_200C_206D_202E((IGameObject)playerCharacter) : Vector3.Zero);
|
||||
_startTime = _202E_206E_200D_200E_206C_206D_202D_202D_206D_206F_202E_200D_200D_200D_206C_206D_200E_200E_200E_200B_200E_206F_200D_200B_200D_200C_202D_200C_206A_206E_202B_200D_202B_202D_200B_206A_200B_202C_206C_200C_202E();
|
||||
_200F_202C_200F_202E_202C_200C_206E_206F_202E_200B_206B_202E_206D_200F_206A_206A_202B_202E_200F_206D_206D_206D_206B_206A_202B_200E_200C_200B_200F_202C_202A_202E_202B_200F_206F_206D_202C_200D_202A_206D_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>(-1244283886), new object[1] { base.Task.SourcePosition });
|
||||
_startPosition = objectTable.LocalPlayer?.Position ?? Vector3.Zero;
|
||||
_startTime = Environment.TickCount64;
|
||||
logger.LogDebug("SubRegionTransport: Waiting for transport pad activation at {Position}", base.Task.SourcePosition);
|
||||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
IPlayerCharacter playerCharacter = _202E_206B_206E_206F_202D_206C_206B_206C_200D_202C_200D_202A_202B_206B_206E_202B_202D_206F_206F_202A_200E_206F_202D_202C_206F_200F_200F_206B_202A_206E_206C_206B_202B_202E_200D_206C_200D_202B_206F_202A_202E(objectTable);
|
||||
int num = ((playerCharacter == null) ? 733700456 : 733700461);
|
||||
while (true)
|
||||
IPlayerCharacter localPlayer = objectTable.LocalPlayer;
|
||||
if (localPlayer != null && Vector3.Distance(localPlayer.Position, _startPosition) > 5f)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 733700460;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 3:
|
||||
num = 733700461;
|
||||
break;
|
||||
case 1:
|
||||
num = ((!(Vector3.Distance(_200B_202A_206C_202E_206D_202A_202B_202B_202D_200F_200C_200E_206F_206B_206D_200F_206B_202E_200F_206D_202B_206B_206E_202A_202A_206B_200C_202A_202B_200D_200E_200D_206C_206C_202A_202D_202D_200F_200C_206D_202E((IGameObject)playerCharacter), _startPosition) > 5f)) ? 733700456 : 733700457);
|
||||
break;
|
||||
case 4:
|
||||
num = ((_202E_206E_200D_200E_206C_206D_202D_202D_206D_206F_202E_200D_200D_200D_206C_206D_200E_200E_200E_200B_200E_206F_200D_200B_200D_200C_202D_200C_206A_206E_202B_200D_202B_202D_200B_206A_200B_202C_206C_200C_202E() - _startTime <= 15000) ? 733700462 : 733700460);
|
||||
break;
|
||||
case 0:
|
||||
_202B_206B_200B_206A_206F_202E_202C_202C_200B_202A_206C_206E_200E_206D_206D_200E_200F_200E_200F_206B_200C_200E_202D_202D_202E_200B_206D_206A_202E_200E_200C_200E_202D_200C_206E_202E_206E_200F_206D_202C_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>(21515827), Array.Empty<object>());
|
||||
return ETaskResult.RetryStep;
|
||||
case 2:
|
||||
return ETaskResult.StillRunning;
|
||||
case 5:
|
||||
_200F_202C_200F_202E_202C_200C_206E_206F_202E_200B_206B_202E_206D_200F_206A_206A_202B_202E_200F_206D_206D_206D_206B_206A_202B_200E_200C_200B_200F_202C_202A_202E_202B_200F_206F_206D_202C_200D_202A_206D_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>(161211834), new object[1] { Vector3.Distance(_200B_202A_206C_202E_206D_202A_202B_202B_202D_200F_200C_200E_206F_206B_206D_200F_206B_202E_200F_206D_202B_206B_206E_202A_202A_206B_200C_202A_202B_200D_200E_200D_206C_206C_202A_202D_202D_200F_200C_206D_202E((IGameObject)playerCharacter), _startPosition) });
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
logger.LogDebug("SubRegionTransport: Position changed ({Distance:F1}y), transport complete", Vector3.Distance(localPlayer.Position, _startPosition));
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
if (Environment.TickCount64 - _startTime > 15000)
|
||||
{
|
||||
logger.LogWarning("SubRegionTransport: Timed out waiting for transport activation");
|
||||
return ETaskResult.RetryStep;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
|
||||
public override bool ShouldInterruptOnDamage()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static IPlayerCharacter _202E_206B_206E_206F_202D_206C_206B_206C_200D_202C_200D_202A_202B_206B_206E_202B_202D_206F_206F_202A_200E_206F_202D_202C_206F_200F_200F_206B_202A_206E_206C_206B_202B_202E_200D_206C_200D_202B_206F_202A_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static Vector3 _200B_202A_206C_202E_206D_202A_202B_202B_202D_200F_200C_200E_206F_206B_206D_200F_206B_202E_200F_206D_202B_206B_206E_202A_202A_206B_200C_202A_202B_200D_200E_200D_206C_206C_202A_202D_202D_200F_200C_206D_202E(IGameObject P_0)
|
||||
{
|
||||
return P_0.Position;
|
||||
}
|
||||
|
||||
static long _202E_206E_200D_200E_206C_206D_202D_202D_206D_206F_202E_200D_200D_200D_206C_206D_200E_200E_200E_200B_200E_206F_200D_200B_200D_200C_202D_200C_206A_206E_202B_200D_202B_202D_200B_206A_200B_202C_206C_200C_202E()
|
||||
{
|
||||
return Environment.TickCount64;
|
||||
}
|
||||
|
||||
static void _200F_202C_200F_202E_202C_200C_206E_206F_202E_200B_206B_202E_206D_200F_206A_206A_202B_202E_200F_206D_206D_206D_206B_206A_202B_200E_200C_200B_200F_202C_202A_202E_202B_200F_206F_206D_202C_200D_202A_206D_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _202B_206B_200B_206A_206F_202E_202C_202C_200B_202A_206C_206E_200E_206D_206D_200E_200F_200E_200F_206B_200C_200E_202D_202D_202E_200B_206D_206A_202E_200E_200C_200E_202D_200C_206E_202E_206E_200F_206D_202C_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogWarning(P_1, P_2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Plugin.Services;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
|
||||
using LLib.GameData;
|
||||
using Lumina.Excel;
|
||||
using Lumina.Excel.Sheets;
|
||||
using Questionable.Controller.Steps.Common;
|
||||
using Questionable.Data;
|
||||
using Questionable.Model;
|
||||
|
|
@ -21,193 +13,46 @@ internal static class SwitchClassJob
|
|||
{
|
||||
internal sealed class Factory(ClassJobUtils classJobUtils) : SimpleTaskFactory()
|
||||
{
|
||||
public override ITask? CreateTask(Questionable.Model.Quest quest, QuestSequence sequence, QuestStep step)
|
||||
public override ITask? CreateTask(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
int num = ((_206A_206B_200C_202D_202B_206A_200B_200D_206A_206D_200E_202B_206D_206E_202C_202B_206D_200F_206D_206E_202C_206A_206B_202D_206A_206A_202A_206D_206E_200C_200C_202C_206F_202A_206C_200E_202C_202E_200C_202E(step) == EInteractionType.SwitchClass) ? 1159912211 : 1159912210);
|
||||
while (true)
|
||||
if (step.InteractionType != EInteractionType.SwitchClass)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1159912211;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
return new Task(classJobUtils.AsIndividualJobs(_202B_206A_202A_206D_206D_200D_206D_202E_200B_206D_202B_200E_206E_206C_206A_202D_206B_206F_202C_200E_206A_206B_200C_206E_206A_206A_206C_202B_202A_206B_200C_206A_200F_200C_206B_206C_202E_206C_200B_206D_202E(step), quest.Id).Single());
|
||||
case 1:
|
||||
return null;
|
||||
case 2:
|
||||
goto IL_006e;
|
||||
}
|
||||
continue;
|
||||
IL_006e:
|
||||
num = 1159912210;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static EInteractionType _206A_206B_200C_202D_202B_206A_200B_200D_206A_206D_200E_202B_206D_206E_202C_202B_206D_200F_206D_206E_202C_206A_206B_202D_206A_206A_202A_206D_206E_200C_200C_202C_206F_202A_206C_200E_202C_202E_200C_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.InteractionType;
|
||||
}
|
||||
|
||||
static EExtendedClassJob _202B_206A_202A_206D_206D_200D_206D_202E_200B_206D_202B_200E_206E_206C_206A_202D_206B_206F_202C_200E_206A_206B_200C_206E_206A_206A_206C_202B_202A_206B_200C_206A_200F_200C_206B_206C_202E_206C_200B_206D_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.TargetClass;
|
||||
return new Task(classJobUtils.AsIndividualJobs(step.TargetClass, quest.Id).Single());
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed record Task(EClassJob ClassJob) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _206E_206D_206D_200E_202C_206F_202E_202E_200B_206F_206B_200D_206B_206A_206A_200F_200B_200E_206C_200F_200F_206F_202D_200E_206F_202E_200E_200F_206F_200C_206E_200C_202D_200D_200D_200E_200F_202C_206A_200D_202E(typeof(Task).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(11, 1);
|
||||
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>(292179226));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(ClassJob);
|
||||
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)
|
||||
{
|
||||
_202C_200E_200C_206D_200F_206D_202D_200B_206B_206D_200E_206E_202E_206E_202E_200E_200F_200C_206C_206A_202C_202E_200E_200D_206A_206D_206B_200D_202B_202C_206D_200E_200F_206D_206F_202C_200C_200C_202A_200F_202E();
|
||||
_206E_206D_206E_206B_200C_200C_206C_206A_200C_202E_200F_206E_206E_202E_202B_200C_202C_202A_200C_206A_200C_200B_200D_200F_206A_206C_202C_200F_202E_200E_200C_202A_200D_202B_202B_200E_200F_202E_206E_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>(-27440332));
|
||||
_206E_206D_206E_206B_200C_200C_206C_206A_200C_202E_200F_206E_206E_202E_202B_200C_202C_202A_200C_206A_200C_200B_200D_200F_206A_206C_202C_200F_202E_200E_200C_202A_200D_202B_202B_200E_200F_202E_206E_202E(builder, ClassJob.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Task? other)
|
||||
{
|
||||
int num = (((object)this == other) ? (-777293331) : (-777293333));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -777293335;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = -777293333;
|
||||
break;
|
||||
case 2:
|
||||
num = (((object)other == null) ? (-777293334) : (-777293332));
|
||||
break;
|
||||
case 5:
|
||||
num = ((!_200E_206D_200C_200F_202D_200B_206B_200E_206A_206C_202B_200D_206D_206C_202D_206F_202A_206E_206A_202A_206B_200D_206B_200D_200F_202B_202A_202D_200C_206A_206F_200F_206F_206C_202C_200B_200F_202D_202D_206D_202E(EqualityContract, other.EqualityContract)) ? (-777293334) : (-777293336));
|
||||
break;
|
||||
case 1:
|
||||
return EqualityComparer<EClassJob>.Default.Equals(ClassJob, other.ClassJob);
|
||||
case 4:
|
||||
return true;
|
||||
case 3:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Task>.Equals(Task? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _206E_206D_206D_200E_202C_206F_202E_202E_200B_206F_206B_200D_206B_206A_206A_200F_200B_200E_206C_200F_200F_206F_202D_200E_206F_202E_200E_200F_206F_200C_206E_200C_202D_200D_200D_200E_200F_202C_206A_200D_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _202C_200E_200C_206D_200F_206D_202D_200B_206B_206D_200E_206E_202E_206E_202E_200E_200F_200C_206C_206A_202C_202E_200E_200D_206A_206D_206B_200D_202B_202C_206D_200E_200F_206D_206F_202C_200C_200C_202A_200F_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _206E_206D_206E_206B_200C_200C_206C_206A_200C_202E_200F_206E_206E_202E_202B_200C_202C_202A_200C_206A_200C_200B_200D_200F_206A_206C_202C_200F_202E_200E_200C_202A_200D_202B_202B_200E_200F_202E_206E_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _200E_206D_200C_200F_202D_200B_206B_200E_206A_206C_202B_200D_206D_206C_202D_206F_202A_206E_206A_202A_206B_200D_206B_200D_200F_202B_202A_202D_200C_206A_206F_200F_206F_206C_202C_200B_200F_202D_202D_206D_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"SwitchJob({ClassJob})";
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class SwitchClassJobExecutor(IObjectTable objectTable) : AbstractDelayedTaskExecutor<Task>()
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
protected unsafe override bool StartInternal()
|
||||
{
|
||||
IPlayerCharacter playerCharacter = _202A_206B_200E_206F_202C_202D_206D_200B_202E_202B_200E_200C_206A_202B_200F_200C_206B_200C_206B_202D_200E_202B_206F_202C_202C_206D_202E_202C_202B_206B_206B_202A_206C_200D_206D_200E_202A_202A_202A_206A_202E(objectTable);
|
||||
int num = ((((playerCharacter != null) ? new uint?(_202B_200B_206B_200C_202D_206C_200E_202A_200E_206A_200B_206B_200B_206A_200B_200F_202B_206E_202C_206B_202B_206E_200D_206E_206A_202C_202C_200E_200D_206A_206B_200B_200D_206F_202D_202C_206B_206A_202E_200E_202E((ICharacter)playerCharacter).RowId) : ((uint?)null)) != (uint?)base.Task.ClassJob) ? (-402111789) : (-402111788));
|
||||
RaptureGearsetModule* ptr = default(RaptureGearsetModule*);
|
||||
RaptureGearsetModule.GearsetEntry* gearset = default(RaptureGearsetModule.GearsetEntry*);
|
||||
int num6 = default(int);
|
||||
while (true)
|
||||
if (objectTable.LocalPlayer?.ClassJob.RowId == (uint?)base.Task.ClassJob)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -402111787;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
return false;
|
||||
}
|
||||
RaptureGearsetModule* ptr = RaptureGearsetModule.Instance();
|
||||
if (ptr != null)
|
||||
{
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
case 4:
|
||||
num = -402111788;
|
||||
break;
|
||||
case 1:
|
||||
return false;
|
||||
case 3:
|
||||
ptr->EquipGearset(gearset->Id, 0);
|
||||
return true;
|
||||
case 7:
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(21, 1);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(1883607487));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(base.Task.ClassJob);
|
||||
throw new TaskException(defaultInterpolatedStringHandler.ToStringAndClear());
|
||||
}
|
||||
case 5:
|
||||
num6 = 0;
|
||||
num = -402111779;
|
||||
break;
|
||||
case 8:
|
||||
num = ((num6 < 100) ? (-402111787) : (-402111790));
|
||||
break;
|
||||
case 0:
|
||||
gearset = ptr->GetGearset(num6);
|
||||
num = ((gearset->ClassJob != (byte)base.Task.ClassJob) ? (-402111785) : (-402111786));
|
||||
break;
|
||||
case 6:
|
||||
ptr = RaptureGearsetModule.Instance();
|
||||
num = ((ptr == null) ? (-402111790) : (-402111792));
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
int num5 = num6;
|
||||
num3 = 1;
|
||||
num4 = num5;
|
||||
int num7 = num4 ^ num3;
|
||||
int num8 = num4 & num3;
|
||||
num6 = num7 + (num8 + num8);
|
||||
num = -402111779;
|
||||
break;
|
||||
}
|
||||
RaptureGearsetModule.GearsetEntry* gearset = ptr->GetGearset(i);
|
||||
if (gearset->ClassJob == (byte)base.Task.ClassJob)
|
||||
{
|
||||
ptr->EquipGearset(gearset->Id, 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new TaskException($"No gearset found for {base.Task.ClassJob}");
|
||||
}
|
||||
|
||||
protected override ETaskResult UpdateInternal()
|
||||
|
|
@ -219,15 +64,5 @@ internal static class SwitchClassJob
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static IPlayerCharacter _202A_206B_200E_206F_202C_202D_206D_200B_202E_202B_200E_200C_206A_202B_200F_200C_206B_200C_206B_202D_200E_202B_206F_202C_202C_206D_202E_202C_202B_206B_206B_202A_206C_200D_206D_200E_202A_202A_202A_206A_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static RowRef<ClassJob> _202B_200B_206B_200C_202D_206C_200E_202A_200E_206A_200B_206B_200B_206A_200B_200F_202B_206E_202C_206B_202B_206E_200D_206E_206A_202C_202C_200E_200D_206A_206B_200B_200D_206F_202D_202C_206B_206A_202E_200E_202E(ICharacter P_0)
|
||||
{
|
||||
return P_0.ClassJob;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
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;
|
||||
|
|
@ -17,134 +13,14 @@ internal static class TaxiInteract
|
|||
{
|
||||
internal sealed record Task(uint NpcDataId, uint DestStandRowId, string DestPlaceName, ushort SourceTerritoryId, ushort DestTerritoryId) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202C_200E_200C_206D_202D_200B_200C_200C_206E_202B_206A_202E_202D_206F_206D_202E_202A_200B_206A_202A_206A_202D_202A_200C_206D_206E_206B_200C_200C_202D_200C_200D_206D_202B_202A_202A_200D_202C_206D_206A_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._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>(1757266526));
|
||||
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>(-144328307));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(DestPlaceName);
|
||||
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._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>(-1599740866));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(DestTerritoryId);
|
||||
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>(555647321));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_200D_202B_200E_206D_200D_206F_206A_206F_202C_202A_206A_200F_202A_200C_200E_202B_200C_200B_206C_200C_202D_206D_202B_206C_202C_206F_200F_206F_200E_202E_202C_206A_206B_200D_206A_206B_200D_202B_202D_206A_202E();
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_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>(1462199948));
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_202E(builder, NpcDataId.ToString());
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_202E(builder, 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>(756158436));
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_202E(builder, DestStandRowId.ToString());
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_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>(247569825));
|
||||
_206B_200C_206B_200E_202E_200C_202C_200D_206B_206A_200B_202E_200D_206C_202A_200F_200E_206E_206E_200E_200C_206F_206B_200E_200E_200D_206F_206D_206A_200F_206C_202E_206C_206F_202D_206A_200D_206F_202A_206A_202E(builder, (object)DestPlaceName);
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_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>(1994630997));
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_202E(builder, SourceTerritoryId.ToString());
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_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>(1846217432));
|
||||
_202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_202E(builder, DestTerritoryId.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Task? other)
|
||||
{
|
||||
int num = (((object)this == other) ? (-611933830) : (-611933829));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -611933826;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = -611933829;
|
||||
break;
|
||||
case 5:
|
||||
num = (((object)other == null) ? (-611933833) : (-611933825));
|
||||
break;
|
||||
case 9:
|
||||
return false;
|
||||
case 4:
|
||||
return true;
|
||||
case 1:
|
||||
num = ((!_206E_206E_200E_200B_202B_202D_200D_200E_200F_202B_206F_202E_206D_202D_200E_202D_206C_200B_206F_202D_206A_202D_206D_202D_202B_200E_202C_202A_202C_202A_206A_200C_200E_202C_200C_202C_200D_202D_200B_202A_202E(EqualityContract, other.EqualityContract)) ? (-611933833) : (-611933828));
|
||||
break;
|
||||
case 6:
|
||||
num = ((!EqualityComparer<uint>.Default.Equals(DestStandRowId, other.DestStandRowId)) ? (-611933833) : (-611933831));
|
||||
break;
|
||||
case 7:
|
||||
num = ((!EqualityComparer<string>.Default.Equals(DestPlaceName, other.DestPlaceName)) ? (-611933833) : (-611933827));
|
||||
break;
|
||||
case 8:
|
||||
return EqualityComparer<ushort>.Default.Equals(DestTerritoryId, other.DestTerritoryId);
|
||||
case 2:
|
||||
num = ((!EqualityComparer<uint>.Default.Equals(NpcDataId, other.NpcDataId)) ? (-611933833) : (-611933832));
|
||||
break;
|
||||
case 3:
|
||||
num = ((!EqualityComparer<ushort>.Default.Equals(SourceTerritoryId, other.SourceTerritoryId)) ? (-611933833) : (-611933834));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Task>.Equals(Task? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202C_200E_200C_206D_202D_200B_200C_200C_206E_202B_206A_202E_202D_206F_206D_202E_202A_200B_206A_202A_206A_202D_202A_200C_206D_206E_206B_200C_200C_202D_200C_200D_206D_202B_202A_202A_200D_202C_206D_206A_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _200D_202B_200E_206D_200D_206F_206A_206F_202C_202A_206A_200F_202A_200C_200E_202B_200C_200B_206C_200C_202D_206D_202B_206C_202C_206F_200F_206F_200E_202E_202C_206A_206B_200D_206A_206B_200D_202B_202D_206A_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _202B_202A_200D_202B_200C_206B_206E_202C_202E_200E_202A_200D_206D_202D_200F_206F_200D_206C_206B_202E_202E_202E_202A_200F_206E_200F_202B_200C_206F_206D_200D_200F_202E_206B_200F_206E_206E_200B_206B_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _206B_200C_206B_200E_202E_200C_202C_200D_206B_206A_200B_202E_200D_206C_202A_200F_200E_206E_206E_200E_200C_206F_206B_200E_200E_200D_206F_206D_206A_200F_206C_202E_206C_206F_202D_206A_200D_206F_202A_206A_202E(StringBuilder P_0, object P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _206E_206E_200E_200B_202B_202D_200D_200E_200F_202B_206F_202E_206D_202D_200E_202D_206C_200B_206F_202D_206A_202D_206D_202D_202B_200E_202C_202A_202C_202A_206A_200C_200E_202C_200C_202C_200D_202D_200B_202A_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"TaxiInteract({NpcDataId}, dest={DestPlaceName}, {SourceTerritoryId}->{DestTerritoryId})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -166,294 +42,127 @@ internal static class TaxiInteract
|
|||
|
||||
private bool _wasRiding;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
protected override bool Start()
|
||||
{
|
||||
_phase = ETaxiPhase.None;
|
||||
_wasRiding = false;
|
||||
IPlayerCharacter playerCharacter = _206B_206D_202B_202B_202D_200C_206C_200E_206E_206B_202B_206E_206C_200E_200E_206D_200D_206D_206B_202E_202A_202E_206B_200B_202C_200F_202D_206A_202A_202C_206D_206A_200C_200F_200D_202C_206E_202C_206C_206F_202E(objectTable);
|
||||
_startPosition = ((playerCharacter != null) ? _200B_206F_202B_200F_202B_206F_200E_206F_206A_200F_206C_206C_200E_202C_202A_206C_200B_206F_200F_202C_200E_200B_200F_200D_200E_202A_206E_200C_202C_202D_206D_206F_200D_200D_200E_206E_206E_206D_202E_206D_202E((IGameObject)playerCharacter) : Vector3.Zero);
|
||||
_startPosition = objectTable.LocalPlayer?.Position ?? Vector3.Zero;
|
||||
interactionUiController.SmartNavTaxiDestPlaceName = base.Task.DestPlaceName;
|
||||
IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
||||
int num = ((gameObject != null) ? 593300063 : 593300057);
|
||||
while (true)
|
||||
if (gameObject == null)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 593300058;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 4:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(-1199220683), new object[2]
|
||||
{
|
||||
base.Task.NpcDataId,
|
||||
base.Task.DestPlaceName
|
||||
});
|
||||
_phase = ETaxiPhase.Interacting;
|
||||
_interactingStartedAt = _206D_206E_200D_202B_206C_202E_206B_200B_200F_200B_206B_200F_206E_202D_206A_206D_200E_206D_200E_202A_202D_206A_206B_206D_202A_202B_206D_200B_206E_202C_206C_202A_206E_202B_200F_202E_200E_200E_200C_202E_202E();
|
||||
num = 593300059;
|
||||
break;
|
||||
case 5:
|
||||
num = ((!_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.Mounted)) ? 593300060 : 593300056);
|
||||
break;
|
||||
case 2:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(1789778383), Array.Empty<object>());
|
||||
gameFunctions.Unmount();
|
||||
_phase = ETaxiPhase.Unmounting;
|
||||
return true;
|
||||
case 3:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(-1881696787), new object[1] { base.Task.NpcDataId });
|
||||
return true;
|
||||
case 6:
|
||||
num = ((!gameFunctions.InteractWith(gameObject)) ? 593300059 : 593300062);
|
||||
break;
|
||||
case 1:
|
||||
return true;
|
||||
case 0:
|
||||
num = 593300057;
|
||||
break;
|
||||
}
|
||||
logger.LogDebug("TaxiInteract: NPC with DataId {DataId} not found yet, waiting", base.Task.NpcDataId);
|
||||
return true;
|
||||
}
|
||||
if (condition[ConditionFlag.Mounted])
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: Unmounting before taxi interaction");
|
||||
gameFunctions.Unmount();
|
||||
_phase = ETaxiPhase.Unmounting;
|
||||
return true;
|
||||
}
|
||||
if (gameFunctions.InteractWith(gameObject))
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: Interacting with NPC {DataId} for taxi to {Dest}", base.Task.NpcDataId, base.Task.DestPlaceName);
|
||||
_phase = ETaxiPhase.Interacting;
|
||||
_interactingStartedAt = Environment.TickCount64;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
switch (_phase)
|
||||
{
|
||||
case ETaxiPhase.Unmounting:
|
||||
goto IL_0227;
|
||||
case ETaxiPhase.Riding:
|
||||
goto IL_0252;
|
||||
case ETaxiPhase.None:
|
||||
goto IL_0365;
|
||||
case ETaxiPhase.Interacting:
|
||||
goto IL_0478;
|
||||
}
|
||||
int num = -893031987;
|
||||
goto IL_0029;
|
||||
IL_0227:
|
||||
num = ((!_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.Mounted)) ? (-893031938) : (-893031981));
|
||||
goto IL_0029;
|
||||
IL_0478:
|
||||
num = ((!_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.Mounted)) ? (-893031991) : (-893031973));
|
||||
goto IL_0029;
|
||||
IL_0365:
|
||||
IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
||||
num = ((gameObject != null) ? (-893031980) : (-893031976));
|
||||
goto IL_0029;
|
||||
IL_0252:
|
||||
num = ((_202B_206B_206B_206B_202E_202D_200C_206E_200E_200F_206E_206C_200C_202A_206D_206C_200B_202C_200C_206B_202E_202E_202E_202A_200C_206B_200C_202C_206B_200B_206B_206E_206B_202D_202E_200E_206D_202C_206B_202A_202E(clientState) == base.Task.SourceTerritoryId) ? (-893031994) : (-893031969));
|
||||
goto IL_0029;
|
||||
IL_0029:
|
||||
IGameObject gameObject2 = default(IGameObject);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -893031969;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
if (condition[ConditionFlag.Mounted])
|
||||
{
|
||||
case 26:
|
||||
num = -893031984;
|
||||
break;
|
||||
case 20:
|
||||
num = -893031997;
|
||||
break;
|
||||
case 17:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(-336207586), Array.Empty<object>());
|
||||
ClearContext();
|
||||
return ETaskResult.TaskComplete;
|
||||
case 35:
|
||||
goto IL_013f;
|
||||
case 13:
|
||||
return ETaskResult.StillRunning;
|
||||
case 32:
|
||||
if (!_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.OccupiedInEvent))
|
||||
{
|
||||
goto case 26;
|
||||
}
|
||||
goto case 20;
|
||||
case 11:
|
||||
goto IL_0189;
|
||||
case 9:
|
||||
_200B_202D_206E_202C_200C_206A_206C_206A_202B_202A_206E_202E_206D_202D_200E_200D_202D_202E_200F_206B_200C_202B_202D_200B_200D_200D_206E_206A_206A_200C_206A_206F_200D_202D_202C_202A_206F_200E_200E_202C_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>(347542039), Array.Empty<object>());
|
||||
ClearContext();
|
||||
return ETaskResult.RetryStep;
|
||||
case 24:
|
||||
return ETaskResult.StillRunning;
|
||||
case 25:
|
||||
goto IL_01fe;
|
||||
case 21:
|
||||
goto end_IL_0029;
|
||||
case 7:
|
||||
return ETaskResult.StillRunning;
|
||||
case 16:
|
||||
goto IL_0252;
|
||||
case 34:
|
||||
return ETaskResult.StillRunning;
|
||||
case 29:
|
||||
return ETaskResult.StillRunning;
|
||||
case 23:
|
||||
if (_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.OccupiedInEvent))
|
||||
{
|
||||
goto case 1;
|
||||
}
|
||||
goto case 22;
|
||||
case 28:
|
||||
return ETaskResult.StillRunning;
|
||||
case 1:
|
||||
num = -893031975;
|
||||
break;
|
||||
case 22:
|
||||
num = -893031977;
|
||||
break;
|
||||
case 5:
|
||||
gameFunctions.Unmount();
|
||||
_phase = ETaxiPhase.Unmounting;
|
||||
return ETaskResult.StillRunning;
|
||||
case 12:
|
||||
return ETaskResult.StillRunning;
|
||||
case 8:
|
||||
goto IL_02de;
|
||||
case 2:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(1391970464), new object[1] { base.Task.NpcDataId });
|
||||
_phase = ETaxiPhase.Interacting;
|
||||
_interactingStartedAt = _206D_206E_200D_202B_206C_202E_206B_200B_200F_200B_206B_200F_206E_202D_206A_206D_200E_206D_200E_202A_202D_206A_206B_206D_202A_202B_206D_200B_206E_202C_206C_202A_206E_202B_200F_202E_200E_200E_200C_202E_202E();
|
||||
num = -893031993;
|
||||
break;
|
||||
case 18:
|
||||
num = -893031939;
|
||||
break;
|
||||
case 10:
|
||||
goto IL_0365;
|
||||
case 19:
|
||||
goto IL_03a4;
|
||||
case 3:
|
||||
goto IL_03cd;
|
||||
case 27:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(-210335967), new object[1] { base.Task.NpcDataId });
|
||||
_phase = ETaxiPhase.Interacting;
|
||||
_interactingStartedAt = _206D_206E_200D_202B_206C_202E_206B_200B_200F_200B_206B_200F_206E_202D_206A_206D_200E_206D_200E_202A_202D_206A_206B_206D_202A_202B_206D_200B_206E_202C_206C_202A_206E_202B_200F_202E_200E_200E_200C_202E_202E();
|
||||
num = -893031998;
|
||||
break;
|
||||
case 6:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(-1554309501), Array.Empty<object>());
|
||||
_wasRiding = true;
|
||||
_phase = ETaxiPhase.Riding;
|
||||
return ETaskResult.StillRunning;
|
||||
case 14:
|
||||
num = -893031987;
|
||||
break;
|
||||
case 30:
|
||||
goto IL_0478;
|
||||
case 33:
|
||||
goto IL_04a1;
|
||||
case 0:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(-459829090), new object[1] { _202B_206B_206B_206B_202E_202D_200C_206E_200E_200F_206E_206C_200C_202A_206D_206C_200B_202C_200C_206B_202E_202E_202E_202A_200C_206B_200C_202C_206B_200B_206B_206E_206B_202D_202E_200E_206D_202C_206B_202A_202E(clientState) });
|
||||
ClearContext();
|
||||
return ETaskResult.TaskComplete;
|
||||
case 15:
|
||||
goto IL_0516;
|
||||
case 4:
|
||||
goto IL_0539;
|
||||
case 31:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(117734441), Array.Empty<object>());
|
||||
}
|
||||
IGameObject gameObject2 = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
||||
if (gameObject2 == null)
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: NPC not found after unmount, waiting");
|
||||
_phase = ETaxiPhase.None;
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
continue;
|
||||
IL_0539:
|
||||
num = (_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.Occupied) ? (-893031970) : (-893031992));
|
||||
continue;
|
||||
IL_03cd:
|
||||
num = ((!gameFunctions.InteractWith(gameObject)) ? (-893031998) : (-893031996));
|
||||
continue;
|
||||
IL_02de:
|
||||
num = ((_206D_206E_200D_202B_206C_202E_206B_200B_200F_200B_206B_200F_206E_202D_206A_206D_200E_206D_200E_202A_202D_206A_206B_206D_202A_202B_206D_200B_206E_202C_206C_202A_206E_202B_200F_202E_200E_200E_200C_202E_202E() - _interactingStartedAt <= 30000) ? (-893031982) : (-893031978));
|
||||
continue;
|
||||
IL_0516:
|
||||
num = ((!_wasRiding) ? (-893031997) : (-893031986));
|
||||
continue;
|
||||
IL_0189:
|
||||
IPlayerCharacter playerCharacter = _206B_206D_202B_202B_202D_200C_206C_200E_206E_206B_202B_206E_206C_200E_200E_206D_200D_206D_206B_202E_202A_202E_206B_200B_202C_200F_202D_206A_202A_202C_206D_206A_200C_200F_200D_202C_206E_202C_206C_206F_202E(objectTable);
|
||||
_startPosition = ((playerCharacter != null) ? _200B_206F_202B_200F_202B_206F_200E_206F_206A_200F_206C_206C_200E_202C_202A_206C_200B_206F_200F_202C_200E_200B_200F_200D_200E_202A_206E_200C_202C_202D_206D_206F_200D_200D_200E_206E_206E_206D_202E_206D_202E((IGameObject)playerCharacter) : _startPosition);
|
||||
num = ((!_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.Mounted)) ? (-893031972) : (-893031974));
|
||||
continue;
|
||||
IL_03a4:
|
||||
num = ((!gameFunctions.InteractWith(gameObject2)) ? (-893031993) : (-893031971));
|
||||
continue;
|
||||
IL_04a1:
|
||||
gameObject2 = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
||||
num = ((gameObject2 != null) ? (-893031988) : (-893032000));
|
||||
continue;
|
||||
IL_013f:
|
||||
num = (_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.Occupied) ? (-893031989) : (-893031937));
|
||||
continue;
|
||||
IL_01fe:
|
||||
num = ((!_202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(condition, ConditionFlag.Mounted)) ? (-893031995) : (-893031940));
|
||||
continue;
|
||||
end_IL_0029:
|
||||
break;
|
||||
if (gameFunctions.InteractWith(gameObject2))
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: Interacting with NPC {DataId} after unmount", base.Task.NpcDataId);
|
||||
_phase = ETaxiPhase.Interacting;
|
||||
_interactingStartedAt = Environment.TickCount64;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
case ETaxiPhase.Interacting:
|
||||
if (condition[ConditionFlag.Mounted] && (condition[ConditionFlag.Occupied] || condition[ConditionFlag.OccupiedInEvent]))
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: Taxi ride started");
|
||||
_wasRiding = true;
|
||||
_phase = ETaxiPhase.Riding;
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (Environment.TickCount64 - _interactingStartedAt > 30000)
|
||||
{
|
||||
logger.LogWarning("TaxiInteract: Timed out waiting for taxi ride to start, retrying step");
|
||||
ClearContext();
|
||||
return ETaskResult.RetryStep;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
case ETaxiPhase.Riding:
|
||||
if (clientState.TerritoryType != base.Task.SourceTerritoryId)
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: Territory changed to {Territory}, taxi ride complete", clientState.TerritoryType);
|
||||
ClearContext();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
if ((!condition[ConditionFlag.Mounted] || (!condition[ConditionFlag.Occupied] && !condition[ConditionFlag.OccupiedInEvent])) && _wasRiding)
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: Taxi ride ended (dismounted)");
|
||||
ClearContext();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
case ETaxiPhase.None:
|
||||
{
|
||||
IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
||||
if (gameObject == null)
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
_startPosition = objectTable.LocalPlayer?.Position ?? _startPosition;
|
||||
if (condition[ConditionFlag.Mounted])
|
||||
{
|
||||
gameFunctions.Unmount();
|
||||
_phase = ETaxiPhase.Unmounting;
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (gameFunctions.InteractWith(gameObject))
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: Interacting with NPC {DataId}", base.Task.NpcDataId);
|
||||
_phase = ETaxiPhase.Interacting;
|
||||
_interactingStartedAt = Environment.TickCount64;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
default:
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
goto IL_0227;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public void OnConditionChange(ConditionFlag flag, bool value)
|
||||
{
|
||||
bool flag2 = _phase == ETaxiPhase.Interacting;
|
||||
int num = ((!flag2) ? 1668552207 : 1668552200);
|
||||
bool flag3 = default(bool);
|
||||
while (true)
|
||||
if (flag2)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1668552201;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 3:
|
||||
flag3 = false;
|
||||
num = 1668552204;
|
||||
break;
|
||||
case 1:
|
||||
num = (((uint)(flag - 31) > 1u) ? 1668552202 : 1668552203);
|
||||
break;
|
||||
case 5:
|
||||
flag2 = flag3;
|
||||
num = 1668552207;
|
||||
break;
|
||||
case 0:
|
||||
num = 1668552200;
|
||||
break;
|
||||
case 4:
|
||||
return;
|
||||
case 2:
|
||||
flag3 = true;
|
||||
num = 1668552204;
|
||||
break;
|
||||
case 6:
|
||||
{
|
||||
bool num5 = flag2;
|
||||
num3 = (value ? 1 : 0);
|
||||
num4 = (num5 ? 1 : 0);
|
||||
num = (((num4 | num3) - (num4 ^ num3) == 0) ? 1668552205 : 1668552206);
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
_206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_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>(-919040948), Array.Empty<object>());
|
||||
num = 1668552205;
|
||||
break;
|
||||
}
|
||||
bool flag3 = (uint)(flag - 31) <= 1u;
|
||||
flag2 = flag3;
|
||||
}
|
||||
if (flag2 && value)
|
||||
{
|
||||
logger.LogDebug("TaxiInteract: Interaction confirmed via condition flag");
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
@ -465,40 +174,5 @@ internal static class TaxiInteract
|
|||
{
|
||||
interactionUiController.SmartNavTaxiDestPlaceName = null;
|
||||
}
|
||||
|
||||
static IPlayerCharacter _206B_206D_202B_202B_202D_200C_206C_200E_206E_206B_202B_206E_206C_200E_200E_206D_200D_206D_206B_202E_202A_202E_206B_200B_202C_200F_202D_206A_202A_202C_206D_206A_200C_200F_200D_202C_206E_202C_206C_206F_202E(IObjectTable P_0)
|
||||
{
|
||||
return P_0.LocalPlayer;
|
||||
}
|
||||
|
||||
static Vector3 _200B_206F_202B_200F_202B_206F_200E_206F_206A_200F_206C_206C_200E_202C_202A_206C_200B_206F_200F_202C_200E_200B_200F_200D_200E_202A_206E_200C_202C_202D_206D_206F_200D_200D_200E_206E_206E_206D_202E_206D_202E(IGameObject P_0)
|
||||
{
|
||||
return P_0.Position;
|
||||
}
|
||||
|
||||
static void _206F_202A_202C_200F_200F_206A_206F_200B_202C_202D_202A_202A_206B_206D_206F_206B_202C_200E_206D_202A_202D_206B_206E_200E_202E_202D_202D_206F_206D_202A_200B_202D_200F_202D_206C_206B_206A_206A_200D_202D_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
|
||||
static bool _202A_202A_202D_202C_202D_206B_206F_202E_202A_202A_200D_202D_202A_206E_200C_200F_206C_200C_206C_206D_200D_206B_206C_206C_200D_206A_202D_200C_202A_206F_206D_206C_202A_202D_202C_200B_206F_200D_206C_202A_202E(ICondition P_0, ConditionFlag P_1)
|
||||
{
|
||||
return P_0[P_1];
|
||||
}
|
||||
|
||||
static long _206D_206E_200D_202B_206C_202E_206B_200B_200F_200B_206B_200F_206E_202D_206A_206D_200E_206D_200E_202A_202D_206A_206B_206D_202A_202B_206D_200B_206E_202C_206C_202A_206E_202B_200F_202E_200E_200E_200C_202E_202E()
|
||||
{
|
||||
return Environment.TickCount64;
|
||||
}
|
||||
|
||||
static void _200B_202D_206E_202C_200C_206A_206C_206A_202B_202A_206E_202E_206D_202D_200E_200D_202D_202E_200F_206B_200C_202B_202D_200B_200D_200D_206E_206A_206A_200C_206A_206F_200D_202D_202C_202A_206F_200E_200E_202C_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogWarning(P_1, P_2);
|
||||
}
|
||||
|
||||
static uint _202B_206B_206B_206B_202E_202D_200C_206E_200E_200F_206E_206C_200C_202A_206D_206C_200B_202C_200C_206B_202E_202E_202E_202A_200C_206B_200C_202C_206B_200B_206B_206E_206B_202D_202E_200E_206D_202C_206B_202A_202E(IClientState P_0)
|
||||
{
|
||||
return P_0.TerritoryType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Plugin.Services;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Questionable.Controller.Steps.Interactions;
|
||||
|
|
@ -14,16 +11,6 @@ internal static class TicketTeleport
|
|||
{
|
||||
internal sealed record Task(uint ItemId, ushort DestTerritoryId) : UseItem.IUseItemBase, ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _206E_206B_206A_200E_206B_206F_200B_202A_206A_200C_200F_206B_206A_200E_206F_200B_200B_200D_206B_206F_206C_200C_206B_200C_200F_200F_200D_202D_202B_206B_202E_200E_206F_200B_200B_206D_202B_200F_206B_206C_202E(typeof(Task).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
public ElementId? QuestId => null;
|
||||
|
||||
public IList<QuestWorkValue?> CompletionQuestVariablesFlags => new List<QuestWorkValue>();
|
||||
|
|
@ -35,104 +22,9 @@ internal static class TicketTeleport
|
|||
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(30, 2);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(-1384911958));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(ItemId);
|
||||
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>(-1691935347));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(DestTerritoryId);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(1618480346));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_202B_206F_206F_206B_200E_202A_206A_206B_200C_202B_202E_206D_202A_202E_202B_202E_202E_206D_206D_206D_202D_206D_206E_200E_206B_206E_200B_206C_206C_206F_200D_200C_202E_206A_200F_202E_200D_200B_200B_206C_202E();
|
||||
_200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_202E(builder, 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>(-1298229987));
|
||||
_200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_202E(builder, ItemId.ToString());
|
||||
_200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_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));
|
||||
_200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_202E(builder, DestTerritoryId.ToString());
|
||||
_200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_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>(1816920176));
|
||||
_206D_206E_206D_206C_206C_200E_206F_202D_206C_206F_206D_206F_200C_200C_200B_200F_200B_200D_206E_206F_200F_202B_206B_200B_200E_202A_202D_206C_202C_202A_200C_202A_202A_202B_206C_206E_202B_202E_200E_200E_202E(builder, (object?)QuestId);
|
||||
_200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_202E(builder, 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>(-755497586));
|
||||
_206D_206E_206D_206C_206C_200E_206F_202D_206C_206F_206D_206F_200C_200C_200B_200F_200B_200D_206E_206F_200F_202B_206B_200B_200E_202A_202D_206C_202C_202A_200C_202A_202A_202B_206C_206E_202B_202E_200E_200E_202E(builder, (object?)CompletionQuestVariablesFlags);
|
||||
_200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_202E(builder, 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>(-395177721));
|
||||
_200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_202E(builder, StartingCombat.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Task? other)
|
||||
{
|
||||
int num = (((object)this == other) ? (-1363614777) : (-1363614778));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1363614780;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
num = -1363614778;
|
||||
break;
|
||||
case 1:
|
||||
num = ((!_202A_206A_200E_206F_202D_202C_206D_200C_206C_206F_206E_202C_200D_206C_200E_202A_200F_202A_200B_202D_200F_202E_206B_200F_200F_202B_206B_202C_206C_200F_206D_200B_202C_200F_202E_200D_202E_200C_200E_206E_202E(EqualityContract, other.EqualityContract)) ? (-1363614784) : (-1363614782));
|
||||
break;
|
||||
case 4:
|
||||
return false;
|
||||
case 2:
|
||||
num = (((object)other == null) ? (-1363614784) : (-1363614779));
|
||||
break;
|
||||
case 6:
|
||||
num = ((!EqualityComparer<uint>.Default.Equals(ItemId, other.ItemId)) ? (-1363614784) : (-1363614783));
|
||||
break;
|
||||
case 5:
|
||||
return EqualityComparer<ushort>.Default.Equals(DestTerritoryId, other.DestTerritoryId);
|
||||
case 3:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Task>.Equals(Task? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type? _206E_206B_206A_200E_206B_206F_200B_202A_206A_200C_200F_206B_206A_200E_206F_200B_200B_200D_206B_206F_206C_200C_206B_200C_200F_200F_200D_202D_202B_206B_202E_200E_206F_200B_200B_206D_202B_200F_206B_206C_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _202B_206F_206F_206B_200E_202A_206A_206B_200C_202B_202E_206D_202A_202E_202B_202E_202E_206D_206D_206D_202D_206D_206E_200E_206B_206E_200B_206C_206C_206F_200D_200C_202E_206A_200F_202E_200D_200B_200B_206C_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder? _200C_200D_202D_206A_206C_206A_202A_206A_200E_202A_202D_200E_202C_206E_202D_200F_200B_202E_206C_200D_206B_200E_206F_202A_206A_202A_202A_206F_202D_202E_200F_200F_202C_206D_206B_200D_200B_202D_206B_206A_202E(StringBuilder? P_0, string? P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder? _206D_206E_206D_206C_206C_200E_206F_202D_206C_206F_206D_206F_200C_200C_200B_200F_200B_200D_206E_206F_200F_202B_206B_200B_200E_202A_202D_206C_202C_202A_200C_202A_202A_202B_206C_206E_202B_202E_200E_200E_202E(StringBuilder? P_0, object? P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _202A_206A_200E_206F_202D_202C_206D_200C_206C_206F_206E_202C_200D_206C_200E_202A_200F_202A_200B_202D_200F_202E_206B_200F_200F_202B_206B_202C_206C_200F_206D_200B_202C_200F_202E_200D_202E_200C_200E_206E_202E(Type? P_0, Type? P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"TicketTeleport({ItemId} -> territory {DestTerritoryId})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Questionable.Controller.Steps.Common;
|
||||
using Questionable.Model;
|
||||
using Questionable.Model.Questing;
|
||||
|
|
@ -14,121 +11,19 @@ internal static class WaitAtStart
|
|||
{
|
||||
public override ITask? CreateTask(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
int num = (_202C_202C_206A_206A_206F_200F_202E_200C_206E_202D_206E_202D_206C_206B_202C_202B_200E_200B_200C_206A_200C_206F_200D_200F_200D_200D_202A_202C_202A_202A_200E_202A_206F_202A_202B_200E_206E_202A_206C_202B_202E(step).HasValue ? 917790050 : 917790049);
|
||||
while (true)
|
||||
if (!step.DelaySecondsAtStart.HasValue)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 917790048;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
goto IL_0050;
|
||||
case 1:
|
||||
return null;
|
||||
case 2:
|
||||
return new WaitDelay(TimeSpan.FromSeconds(_202C_202C_206A_206A_206F_200F_202E_200C_206E_202D_206E_202D_206C_206B_202C_202B_200E_200B_200C_206A_200C_206F_200D_200F_200D_200D_202A_202C_202A_202A_200E_202A_206F_202A_202B_200E_206E_202A_206C_202B_202E(step).Value));
|
||||
}
|
||||
continue;
|
||||
IL_0050:
|
||||
num = 917790049;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static float? _202C_202C_206A_206A_206F_200F_202E_200C_206E_202D_206E_202D_206C_206B_202C_202B_200E_200B_200C_206A_200C_206F_200D_200F_200D_200D_202A_202C_202A_202A_200E_202A_206F_202A_202B_200E_206E_202A_206C_202B_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.DelaySecondsAtStart;
|
||||
return new WaitDelay(TimeSpan.FromSeconds(step.DelaySecondsAtStart.Value));
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed record WaitDelay(TimeSpan Delay) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _202B_200F_206B_200D_206E_206B_206D_202E_206C_200B_200F_206B_202A_200D_202C_206F_206F_206C_202B_200E_200F_206A_202B_202D_206D_206D_206D_206E_200C_206A_200E_200E_206B_202D_206F_200B_206B_206A_202B_200C_202E(typeof(WaitDelay).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(18, 1);
|
||||
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>(-761909785));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(Delay.TotalSeconds);
|
||||
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>(424561659));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_206A_200E_206B_202D_202D_206C_202E_206F_202A_200F_206B_200C_206B_202D_200C_206C_206D_200F_206B_206D_206D_200C_202A_200D_206B_206C_202C_200D_206B_202C_206A_206F_206A_206B_200B_206E_200B_206A_202B_206B_202E();
|
||||
_200E_202A_206F_206B_206D_200E_202D_206A_206D_206A_200B_202D_200E_206E_202D_206E_200E_200E_200D_202E_202C_200D_202E_206E_200F_200C_200D_200F_200C_200C_202A_206C_200F_206F_202B_206F_202B_202E_202A_202E(builder, 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>(484837343));
|
||||
_200E_202A_206F_206B_206D_200E_202D_206A_206D_206A_200B_202D_200E_206E_202D_206E_200E_200E_200D_202E_202C_200D_202E_206E_200F_200C_200D_200F_200C_200C_202A_206C_200F_206F_202B_206F_202B_202E_202A_202E(builder, Delay.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(WaitDelay? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 1541411164 : 1541411161);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1541411165;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 1:
|
||||
return true;
|
||||
case 2:
|
||||
num = ((!_202D_200D_206A_206E_200F_202C_202B_200E_206D_200C_200E_206B_200D_206C_206D_200D_202E_206B_206F_200E_206B_200C_200C_200E_200F_206D_202D_202B_206D_200D_202C_200D_202E_206B_200B_202C_200D_202E_206A_202D_202E(EqualityContract, other.EqualityContract)) ? 1541411160 : 1541411166);
|
||||
break;
|
||||
case 4:
|
||||
num = (((object)other == null) ? 1541411160 : 1541411167);
|
||||
break;
|
||||
case 5:
|
||||
return false;
|
||||
case 0:
|
||||
num = 1541411161;
|
||||
break;
|
||||
case 3:
|
||||
return EqualityComparer<TimeSpan>.Default.Equals(Delay, other.Delay);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<WaitDelay>.Equals(WaitDelay? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _202B_200F_206B_200D_206E_206B_206D_202E_206C_200B_200F_206B_202A_200D_202C_206F_206F_206C_202B_200E_200F_206A_202B_202D_206D_206D_206D_206E_200C_206A_200E_200E_206B_202D_206F_200B_206B_206A_202B_200C_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _206A_200E_206B_202D_202D_206C_202E_206F_202A_200F_206B_200C_206B_202D_200C_206C_206D_200F_206B_206D_206D_200C_202A_200D_206B_206C_202C_200D_206B_202C_206A_206F_206A_206B_200B_206E_200B_206A_202B_206B_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _200E_202A_206F_206B_206D_200E_202D_206A_206D_206A_200B_202D_200E_206E_202D_206E_200E_200E_200D_202E_202C_200D_202E_206E_200F_200C_200D_200F_200C_200C_202A_206C_200F_206F_202B_206F_202B_202E_202A_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _202D_200D_206A_206E_200F_202C_202B_200E_206D_200C_200E_206B_200D_206C_206D_200D_202E_206B_206F_200E_206B_200C_200C_200E_200F_206D_202D_202B_206D_200D_202C_200D_202E_206B_200B_202C_200D_202E_206A_202D_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"Wait[S](seconds: {Delay.TotalSeconds})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
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;
|
||||
|
|
@ -18,122 +15,14 @@ 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;
|
||||
return $"WarpInteract({NpcDataId}, warp={WarpRowId}, {SourceTerritoryId}->{DestTerritoryId})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -157,266 +46,146 @@ internal static class WarpInteract
|
|||
|
||||
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)
|
||||
_startPosition = objectTable.LocalPlayer?.Position ?? Vector3.Zero;
|
||||
warpFailureTracker.RecordAttempt(base.Task.WarpRowId);
|
||||
if (warpFailureTracker.IsBlacklisted(base.Task.WarpRowId))
|
||||
{
|
||||
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;
|
||||
}
|
||||
logger.LogWarning("WarpInteract: warp {WarpRowId} blacklisted after repeated failures, retrying step to re-route", base.Task.WarpRowId);
|
||||
_abortToReroute = true;
|
||||
return true;
|
||||
}
|
||||
interactionUiController.SmartNavWarpRowId = base.Task.WarpRowId;
|
||||
interactionUiController.SmartNavDestTerritoryId = base.Task.DestTerritoryId;
|
||||
IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
||||
if (gameObject == null)
|
||||
{
|
||||
logger.LogDebug("WarpInteract: NPC with DataId {DataId} not found yet, waiting", base.Task.NpcDataId);
|
||||
return true;
|
||||
}
|
||||
if (condition[ConditionFlag.Mounted])
|
||||
{
|
||||
logger.LogDebug("WarpInteract: Unmounting before warp interaction");
|
||||
gameFunctions.Unmount();
|
||||
_phase = EWarpPhase.Unmounting;
|
||||
return true;
|
||||
}
|
||||
if (gameFunctions.InteractWith(gameObject))
|
||||
{
|
||||
logger.LogDebug("WarpInteract: Interacting with NPC {DataId}", base.Task.NpcDataId);
|
||||
_phase = EWarpPhase.Interacting;
|
||||
_interactingStartedAt = Environment.TickCount64;
|
||||
}
|
||||
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)
|
||||
if (_abortToReroute)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1701566722;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
ClearContext();
|
||||
return ETaskResult.RetryStep;
|
||||
}
|
||||
switch (_phase)
|
||||
{
|
||||
case EWarpPhase.Unmounting:
|
||||
{
|
||||
if (condition[ConditionFlag.Mounted])
|
||||
{
|
||||
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:
|
||||
}
|
||||
IGameObject gameObject2 = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
||||
if (gameObject2 == null)
|
||||
{
|
||||
logger.LogDebug("WarpInteract: NPC not found after unmount, waiting");
|
||||
_phase = EWarpPhase.None;
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (gameFunctions.InteractWith(gameObject2))
|
||||
{
|
||||
logger.LogDebug("WarpInteract: Interacting with NPC {DataId} after unmount", base.Task.NpcDataId);
|
||||
_phase = EWarpPhase.Interacting;
|
||||
_interactingStartedAt = Environment.TickCount64;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
case EWarpPhase.Interacting:
|
||||
{
|
||||
if (clientState.TerritoryType != base.Task.SourceTerritoryId)
|
||||
{
|
||||
logger.LogDebug("WarpInteract: Territory changed to {Territory}, warp successful", clientState.TerritoryType);
|
||||
warpFailureTracker.RecordSuccess(base.Task.WarpRowId);
|
||||
_phase = EWarpPhase.WaitingForSettle;
|
||||
_settleAt = Environment.TickCount64 + 500;
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
IPlayerCharacter localPlayer = objectTable.LocalPlayer;
|
||||
if (localPlayer != null && Vector3.Distance(localPlayer.Position, _startPosition) > 2f)
|
||||
{
|
||||
logger.LogDebug("WarpInteract: Position changed significantly, same-zone warp detected");
|
||||
warpFailureTracker.RecordSuccess(base.Task.WarpRowId);
|
||||
_phase = EWarpPhase.WaitingForSettle;
|
||||
_settleAt = Environment.TickCount64 + 500;
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
if (Environment.TickCount64 - _interactingStartedAt > 30000)
|
||||
{
|
||||
logger.LogWarning("WarpInteract: Timed out waiting for warp transition, retrying step");
|
||||
ClearContext();
|
||||
return ETaskResult.RetryStep;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
case EWarpPhase.WaitingForSettle:
|
||||
if (Environment.TickCount64 >= _settleAt)
|
||||
{
|
||||
logger.LogDebug("WarpInteract: Warp complete");
|
||||
ClearContext();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
case EWarpPhase.None:
|
||||
{
|
||||
IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.NpcDataId);
|
||||
if (gameObject == null)
|
||||
{
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
_startPosition = objectTable.LocalPlayer?.Position ?? _startPosition;
|
||||
if (condition[ConditionFlag.Mounted])
|
||||
{
|
||||
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:
|
||||
}
|
||||
if (gameFunctions.InteractWith(gameObject))
|
||||
{
|
||||
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 });
|
||||
logger.LogDebug("WarpInteract: Interacting with NPC {DataId}", 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;
|
||||
_interactingStartedAt = Environment.TickCount64;
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
default:
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
}
|
||||
|
||||
[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)
|
||||
if (flag2)
|
||||
{
|
||||
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;
|
||||
}
|
||||
bool flag3 = (uint)(flag - 31) <= 1u;
|
||||
flag2 = flag3;
|
||||
}
|
||||
if (flag2 && value)
|
||||
{
|
||||
logger.LogDebug("WarpInteract: Interaction confirmed via condition flag");
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
@ -429,66 +198,10 @@ internal static class WarpInteract
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue