697 lines
34 KiB
C#
697 lines
34 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using Dalamud.Game.ClientState.Objects.Types;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Functions;
|
|
using Questionable.Model.Questing;
|
|
|
|
namespace Questionable.Controller.Steps.Interactions;
|
|
|
|
internal static class FateFarming
|
|
{
|
|
internal sealed record WaitForFateTargets(IReadOnlyList<FateActionTarget> Targets) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206F_200D_200E_202C_202D_202D_200C_206D_206B_206B_206A_200E_200F_206D_202D_206B_206A_202D_200D_206C_206B_206B_206D_206B_206F_206F_202C_200E_200F_202C_206B_202C_202E_202B_202C_202A_202A_202C_206C_202B_202E(typeof(WaitForFateTargets).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(28, 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>(-764429910));
|
|
defaultInterpolatedStringHandler.AppendFormatted(Targets.Count);
|
|
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>(81942764));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_206C_202D_202C_200E_202E_206E_206E_200F_206A_200B_200E_206C_206F_200C_202D_206A_202E_200E_206D_200E_202E_206B_202E_202D_202A_202B_206A_206D_206D_202D_200E_206E_206B_202D_206F_206B_200E_206F_202E();
|
|
_206C_202C_206F_206E_200C_206E_202A_206A_206A_206C_200C_206D_200E_202D_206D_206A_206E_206D_202D_200E_206D_206E_200F_200E_206D_206D_202E_202D_202C_202A_202D_200E_206D_202A_206F_206E_206D_206F_200C_202C_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>(-1764240763));
|
|
_202B_200F_200B_202B_202E_206A_206B_200D_206D_202C_206A_200D_206C_200F_200F_200D_206C_200D_202A_202E_206A_206B_206B_200C_200C_206B_202A_200D_200F_206A_206C_200B_200D_200C_206A_200C_200D_202A_202E_202E(builder, (object)Targets);
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(WaitForFateTargets? other)
|
|
{
|
|
int num = (((object)this == other) ? (-989608852) : (-989608851));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -989608856;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
return false;
|
|
case 5:
|
|
num = (((object)other == null) ? (-989608854) : (-989608853));
|
|
break;
|
|
case 1:
|
|
return EqualityComparer<IReadOnlyList<FateActionTarget>>.Default.Equals(Targets, other.Targets);
|
|
case 4:
|
|
return true;
|
|
case 3:
|
|
num = ((!_206E_202A_200D_206C_202A_202B_206C_206D_206E_202D_202E_206E_206C_206D_202B_206C_206C_202C_200C_206C_202C_202B_206F_202B_202C_200C_202D_206F_206F_206C_200E_206D_206B_206F_206A_202C_202B_206D_200E_206D_202E(EqualityContract, other.EqualityContract)) ? (-989608854) : (-989608855));
|
|
break;
|
|
case 0:
|
|
num = -989608851;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<WaitForFateTargets>.Equals(WaitForFateTargets? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206F_200D_200E_202C_202D_202D_200C_206D_206B_206B_206A_200E_200F_206D_202D_206B_206A_202D_200D_206C_206B_206B_206D_206B_206F_206F_202C_200E_200F_202C_206B_202C_202E_202B_202C_202A_202A_202C_206C_202B_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _206C_202D_202C_200E_202E_206E_206E_200F_206A_200B_200E_206C_206F_200C_202D_206A_202E_200E_206D_200E_202E_206B_202E_202D_202A_202B_206A_206D_206D_202D_200E_206E_206B_202D_206F_206B_200E_206F_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _206C_202C_206F_206E_200C_206E_202A_206A_206A_206C_200C_206D_200E_202D_206D_206A_206E_206D_202D_200E_206D_206E_200F_200E_206D_206D_202E_202D_202C_202A_202D_200E_206D_202A_206F_206E_206D_206F_200C_202C_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _202B_200F_200B_202B_202E_206A_206B_200D_206D_202C_206A_200D_206C_200F_200F_200D_206C_200D_202A_202E_206A_206B_206B_200C_200C_206B_202A_200D_200F_206A_206C_200B_200D_200C_206A_200C_200D_202A_202E_202E(StringBuilder P_0, object P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _206E_202A_200D_206C_202A_202B_206C_206D_206E_202D_202E_206E_206C_206D_202B_206C_206C_202C_200C_206C_202C_202B_206F_202B_202C_200C_202D_206F_206F_206C_200E_206D_206B_206F_206A_202C_202B_206D_200E_206D_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class WaitForFateTargetsExecutor(GameFunctions gameFunctions, ILogger<WaitForFateTargetsExecutor> logger) : TaskExecutor<WaitForFateTargets>()
|
|
{
|
|
private long _nextPollAt;
|
|
|
|
private bool _loggedWaitingForFate;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
_202B_200F_202E_200F_206D_200F_206B_200D_206D_200D_200E_202C_206C_202E_206F_206A_206E_206D_202B_202B_202C_200B_206F_200F_202A_200D_200F_200C_202E_200B_206D_202E_206B_206A_206E_202B_200F_200F_202E_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>(-1410411632), new object[1] { base.Task.Targets.Count });
|
|
_loggedWaitingForFate = false;
|
|
return true;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
int num = ((_202D_202D_200B_200D_202B_206A_202D_200C_202E_200B_200B_206B_202C_200C_206E_200E_200E_200D_202C_202B_202D_200C_200D_206B_200D_200F_206A_202C_202B_200C_206E_202A_206F_200D_206C_206F_206B_202E_202A_202E() >= _nextPollAt) ? 347657580 : 347657579);
|
|
ushort currentFateId = default(ushort);
|
|
FateActionTarget current = default(FateActionTarget);
|
|
IGameObject gameObject = default(IGameObject);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 347657582;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 3:
|
|
num = 347657579;
|
|
break;
|
|
case 5:
|
|
return ETaskResult.StillRunning;
|
|
case 1:
|
|
_nextPollAt = _202D_202D_200B_200D_202B_206A_202D_200C_202E_200B_200B_206B_202C_200C_206E_200E_200E_200D_202C_202B_202D_200C_200D_206B_200D_200F_206A_202C_202B_200C_206E_202A_206F_200D_206C_206F_206B_202E_202A_202E() + 1000;
|
|
return ETaskResult.StillRunning;
|
|
case 4:
|
|
_202B_200F_202E_200F_206D_200F_206B_200D_206D_200D_200E_202C_206C_202E_206F_206A_206E_206D_202B_202B_202C_200B_206F_200F_202A_200D_200F_200C_202E_200B_206D_202E_206B_206A_206E_202B_200F_200F_202E_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>(-1240055981), Array.Empty<object>());
|
|
_loggedWaitingForFate = true;
|
|
num = 347657583;
|
|
break;
|
|
case 2:
|
|
currentFateId = gameFunctions.GetCurrentFateId();
|
|
num = ((currentFateId != 0) ? 347657576 : 347657582);
|
|
break;
|
|
case 0:
|
|
num = (_loggedWaitingForFate ? 347657583 : 347657578);
|
|
break;
|
|
case 6:
|
|
{
|
|
_loggedWaitingForFate = false;
|
|
IEnumerator<FateActionTarget> enumerator = base.Task.Targets.GetEnumerator();
|
|
try
|
|
{
|
|
num = -373808532;
|
|
while (true)
|
|
{
|
|
int num7 = num;
|
|
num3 = -373808536;
|
|
num4 = num7;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = -373808532;
|
|
break;
|
|
case 4:
|
|
num = (_202B_200B_206D_206A_200C_206A_200E_202A_200C_206D_202A_200D_200F_202A_202A_200D_206F_206E_200B_200B_206A_206F_206B_206D_206C_206B_200B_206F_202C_200E_202A_206B_206C_206B_206D_206A_202B_200F_206C_206C_202E((IEnumerator)enumerator) ? (-373808535) : (-373808534));
|
|
break;
|
|
case 1:
|
|
current = enumerator.Current;
|
|
gameObject = gameFunctions.FindObjectByDataId(_206C_200C_206E_202D_200E_202B_200C_202E_200E_202A_206E_200E_202A_206F_206A_206E_206B_202E_206D_206B_200B_202E_206C_200C_200B_202D_200E_202D_206D_206E_206C_206A_200D_206A_200B_206D_202D_200D_200F_200E_202E(current), null, warnIfMissing: false);
|
|
num = ((gameObject == null) ? (-373808532) : (-373808531));
|
|
break;
|
|
case 3:
|
|
_202B_200F_202E_200F_206D_200F_206B_200D_206D_200D_200E_202C_206C_202E_206F_206A_206E_206D_202B_202B_202C_200B_206F_200F_202A_200D_200F_200C_202E_200B_206D_202E_206B_206A_206E_202B_200F_200F_202E_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>(955603109), new object[2]
|
|
{
|
|
currentFateId,
|
|
_206C_200C_206E_202D_200E_202B_200C_202E_200E_202A_206E_200E_202A_206F_206A_206E_206B_202E_206D_206B_200B_202E_206C_200C_200B_202D_200E_202D_206D_206E_206C_206A_200D_206A_200B_206D_202D_200D_200F_200E_202E(current)
|
|
});
|
|
return ETaskResult.TaskComplete;
|
|
case 5:
|
|
num = ((!_206E_202E_206B_200E_202C_202C_206D_200F_206F_200E_202C_200F_200E_202B_206E_206A_202C_202D_200F_200B_202C_202B_202E_206A_206A_200C_206B_202E_206C_200F_200F_206B_200F_200D_206F_200C_202D_200F_202E_202C_202E(gameObject)) ? (-373808532) : (-373808533));
|
|
break;
|
|
case 2:
|
|
goto end_IL_0126;
|
|
}
|
|
continue;
|
|
end_IL_0126:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num = ((enumerator == null) ? (-816867460) : (-816867457));
|
|
while (true)
|
|
{
|
|
int num8 = num;
|
|
num3 = -816867458;
|
|
num4 = num8;
|
|
int num9 = num4 + num3;
|
|
int num10 = num4 & num3;
|
|
switch (num9 - (num10 + num10))
|
|
{
|
|
case 0:
|
|
num = -816867457;
|
|
break;
|
|
case 2:
|
|
goto end_IL_025b;
|
|
case 1:
|
|
_200D_200B_202C_206E_200C_200D_202E_200F_206E_206B_206F_206F_202C_206C_206B_200B_202E_206E_202E_206F_206B_206E_206B_206C_200B_206D_206C_200E_202B_202E_200D_200D_202D_206B_200B_206C_206C_202C_206D_206D_202E((IDisposable)enumerator);
|
|
num = -816867460;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_025b:
|
|
break;
|
|
}
|
|
}
|
|
_nextPollAt = _202D_202D_200B_200D_202B_206A_202D_200C_202E_200B_200B_206B_202C_200C_206E_200E_200E_200D_202C_202B_202D_200C_200D_206B_200D_200F_206A_202C_202B_200C_206E_202A_206F_200D_206C_206F_206B_202E_202A_202E() + 1000;
|
|
return ETaskResult.StillRunning;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _202B_200F_202E_200F_206D_200F_206B_200D_206D_200D_200E_202C_206C_202E_206F_206A_206E_206D_202B_202B_202C_200B_206F_200F_202A_200D_200F_200C_202E_200B_206D_202E_206B_206A_206E_202B_200F_200F_202E_206D_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static long _202D_202D_200B_200D_202B_206A_202D_200C_202E_200B_200B_206B_202C_200C_206E_200E_200E_200D_202C_202B_202D_200C_200D_206B_200D_200F_206A_202C_202B_200C_206E_202A_206F_200D_206C_206F_206B_202E_202A_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static uint _206C_200C_206E_202D_200E_202B_200C_202E_200E_202A_206E_200E_202A_206F_206A_206E_206B_202E_206D_206B_200B_202E_206C_200C_200B_202D_200E_202D_206D_206E_206C_206A_200D_206A_200B_206D_202D_200D_200F_200E_202E(FateActionTarget P_0)
|
|
{
|
|
return P_0.DataId;
|
|
}
|
|
|
|
static bool _206E_202E_206B_200E_202C_202C_206D_200F_206F_200E_202C_200F_200E_202B_206E_206A_202C_202D_200F_200B_202C_202B_202E_206A_206A_200C_206B_202E_206C_200F_200F_206B_200F_200D_206F_200C_202D_200F_202E_202C_202E(IGameObject P_0)
|
|
{
|
|
return P_0.IsTargetable;
|
|
}
|
|
|
|
static bool _202B_200B_206D_206A_200C_206A_200E_202A_200C_206D_202A_200D_200F_202A_202A_200D_206F_206E_200B_200B_206A_206F_206B_206D_206C_206B_200B_206F_202C_200E_202A_206B_206C_206B_206D_206A_202B_200F_206C_206C_202E(IEnumerator P_0)
|
|
{
|
|
return P_0.MoveNext();
|
|
}
|
|
|
|
static void _200D_200B_202C_206E_200C_200D_202E_200F_206E_206B_206F_206F_202C_206C_206B_200B_202E_206E_202E_206F_206B_206E_206B_206C_200B_206D_206C_200E_202B_202E_200D_200D_202D_206B_200B_206C_206C_202C_206D_206D_202E(IDisposable P_0)
|
|
{
|
|
P_0.Dispose();
|
|
}
|
|
}
|
|
|
|
internal sealed record SyncFateLevel : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _200E_200E_202E_202C_206D_206D_202D_202D_206D_202D_202D_200E_202E_200B_206F_200F_206D_202A_202B_206C_202D_206C_200D_206B_206B_206D_200B_206B_202B_206D_202D_206C_206E_206A_202B_200C_202E_202A_202A_202E(typeof(SyncFateLevel).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return 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>(-475022604);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(SyncFateLevel? other)
|
|
{
|
|
int num = (((object)this == other) ? (-1810746369) : (-1810746375));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1810746371;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 3:
|
|
return false;
|
|
case 4:
|
|
num = (((object)other == null) ? (-1810746370) : (-1810746372));
|
|
break;
|
|
case 1:
|
|
return _202C_200F_206A_206F_202B_202E_200E_206A_206B_206E_206A_206C_206D_202B_200E_206F_206B_200B_200D_200D_202D_202E_206A_202A_200F_202D_202A_200B_206D_202D_202B_200B_202E_202C_202A_202B_200D_200E_206D_206E_202E(EqualityContract, other.EqualityContract);
|
|
case 2:
|
|
return true;
|
|
case 0:
|
|
num = -1810746375;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<SyncFateLevel>.Equals(SyncFateLevel? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _200E_200E_202E_202C_206D_206D_202D_202D_206D_202D_202D_200E_202E_200B_206F_200F_206D_202A_202B_206C_202D_206C_200D_206B_206B_206D_200B_206B_202B_206D_202D_206C_206E_206A_202B_200C_202E_202A_202A_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _202C_200F_206A_206F_202B_202E_200E_206A_206B_206E_206A_206C_206D_202B_200E_206F_206B_200B_200D_200D_202D_202E_206A_202A_200F_202D_202A_200B_206D_202D_202B_200B_202E_202C_202A_202B_200D_200E_206D_206E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class SyncFateLevelExecutor(GameFunctions gameFunctions, ILogger<SyncFateLevelExecutor> logger) : TaskExecutor<SyncFateLevel>()
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
_206B_206D_200B_202C_206D_206E_202E_206E_200E_202A_200E_206B_206E_200D_200E_206A_200D_202B_200D_202A_206C_200C_206E_206F_202B_202C_200D_200E_206E_206C_200F_202A_206F_202C_202E_202E_206D_206C_202B_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>(245649986), Array.Empty<object>());
|
|
return true;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
ushort currentFateId = gameFunctions.GetCurrentFateId();
|
|
int num = ((currentFateId != 0) ? (-666684793) : (-666684794));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -666684793;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
gameFunctions.SyncToFate(currentFateId);
|
|
return ETaskResult.TaskComplete;
|
|
case 1:
|
|
_206B_206D_200B_202C_206D_206E_202E_206E_200E_202A_200E_206B_206E_200D_200E_206A_200D_202B_200D_202A_206C_200C_206E_206F_202B_202C_200D_200E_206E_206C_200F_202A_206F_202C_202E_202E_206D_206C_202B_202D_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>(-1969316216), Array.Empty<object>());
|
|
return ETaskResult.TaskComplete;
|
|
case 2:
|
|
goto IL_007a;
|
|
}
|
|
continue;
|
|
IL_007a:
|
|
num = -666684794;
|
|
}
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _206B_206D_200B_202C_206D_206E_202E_206E_200E_202A_200E_206B_206E_200D_200E_206A_200D_202B_200D_202A_206C_200C_206E_206F_202B_202C_200D_200E_206E_206C_200F_202A_206F_202C_202E_202E_206D_206C_202B_202D_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
}
|
|
|
|
internal sealed record FateActionLoop(IReadOnlyList<FateActionTarget> Targets, EStatus? RequiredStatusId = null) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _200F_202C_206B_202D_200B_200D_206E_202C_202D_202C_206B_202A_200B_206F_206D_200C_202E_200E_202B_202B_206A_206E_200F_202C_206F_200B_202A_206A_200D_206A_206A_200B_202E_200F_200E_206D_206B_206F_202C_202E(typeof(FateActionLoop).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(24, 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>(213111494));
|
|
defaultInterpolatedStringHandler.AppendFormatted(Targets.Count);
|
|
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>(-1905985229));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_200D_202A_200E_200D_206D_206D_206E_200F_206D_202A_206F_206E_200D_202E_206D_206C_200C_202E_206D_206F_206C_200F_200C_200C_202E_202B_206C_206F_206C_206E_206F_202A_202A_206D_200E_200D_206B_200F_202E_200C_202E();
|
|
_206D_202A_200C_200C_202C_202D_206E_202B_206C_202E_202D_200C_202C_202C_202E_202C_206B_206C_202B_202C_206D_206D_200F_202A_200C_206E_206C_206D_200F_200F_206D_200E_206E_206A_202E_200F_206F_200E_200E_200D_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>(-144611919));
|
|
_200C_206F_202A_206F_202D_200D_206C_202E_202E_206C_206B_206F_206F_202E_200F_206D_202D_202B_206F_202B_202E_206B_206F_202C_200C_206C_200F_202A_206C_202A_202B_202B_206D_206A_206D_206A_206F_200B_202A_202B_202E(builder, (object)Targets);
|
|
_206D_202A_200C_200C_202C_202D_206E_202B_206C_202E_202D_200C_202C_202C_202E_202C_206B_206C_202B_202C_206D_206D_200F_202A_200C_206E_206C_206D_200F_200F_206D_200E_206E_206A_202E_200F_206F_200E_200E_200D_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>(-1576420107));
|
|
_206D_202A_200C_200C_202C_202D_206E_202B_206C_202E_202D_200C_202C_202C_202E_202C_206B_206C_202B_202C_206D_206D_200F_202A_200C_206E_206C_206D_200F_200F_206D_200E_206E_206A_202E_200F_206F_200E_200E_200D_202E(builder, RequiredStatusId.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(FateActionLoop? other)
|
|
{
|
|
int num = (((object)this == other) ? (-346298677) : (-346298676));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -346298674;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = ((!EqualityComparer<IReadOnlyList<FateActionTarget>>.Default.Equals(Targets, other.Targets)) ? (-346298680) : (-346298673));
|
|
break;
|
|
case 2:
|
|
num = (((object)other == null) ? (-346298680) : (-346298678));
|
|
break;
|
|
case 6:
|
|
return false;
|
|
case 3:
|
|
num = -346298676;
|
|
break;
|
|
case 4:
|
|
num = ((!_206D_200C_202E_200C_202A_206D_200C_200B_200C_202B_206C_202E_206D_206B_202E_202B_202C_202B_200E_206D_202B_202C_206F_202D_206F_202C_200D_206B_206A_206C_206B_202C_202B_202A_206E_200F_200C_206E_200B_200D_202E(EqualityContract, other.EqualityContract)) ? (-346298680) : (-346298674));
|
|
break;
|
|
case 5:
|
|
return true;
|
|
case 1:
|
|
return EqualityComparer<EStatus?>.Default.Equals(RequiredStatusId, other.RequiredStatusId);
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<FateActionLoop>.Equals(FateActionLoop? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _200F_202C_206B_202D_200B_200D_206E_202C_202D_202C_206B_202A_200B_206F_206D_200C_202E_200E_202B_202B_206A_206E_200F_202C_206F_200B_202A_206A_200D_206A_206A_200B_202E_200F_200E_206D_206B_206F_202C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _200D_202A_200E_200D_206D_206D_206E_200F_206D_202A_206F_206E_200D_202E_206D_206C_200C_202E_206D_206F_206C_200F_200C_200C_202E_202B_206C_206F_206C_206E_206F_202A_202A_206D_200E_200D_206B_200F_202E_200C_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _206D_202A_200C_200C_202C_202D_206E_202B_206C_202E_202D_200C_202C_202C_202E_202C_206B_206C_202B_202C_206D_206D_200F_202A_200C_206E_206C_206D_200F_200F_206D_200E_206E_206A_202E_200F_206F_200E_200E_200D_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _200C_206F_202A_206F_202D_200D_206C_202E_202E_206C_206B_206F_206F_202E_200F_206D_202D_202B_206F_202B_202E_206B_206F_202C_200C_206C_200F_202A_206C_202A_202B_202B_206D_206A_206D_206A_206F_200B_202A_202B_202E(StringBuilder P_0, object P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _206D_200C_202E_200C_202A_206D_200C_200B_200C_202B_206C_202E_206D_206B_202E_202B_202C_202B_200E_206D_202B_202C_206F_202D_206F_202C_200D_206B_206A_206C_206B_202C_202B_202A_206E_200F_200C_206E_200B_200D_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class FateActionLoopExecutor(GameFunctions gameFunctions, ILogger<FateActionLoopExecutor> logger) : TaskExecutor<FateActionLoop>()
|
|
{
|
|
private long _nextActionAt;
|
|
|
|
private ushort _trackedFateId;
|
|
|
|
private bool _fateWasActive;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
_trackedFateId = gameFunctions.GetCurrentFateId();
|
|
_202E_202D_202C_202B_206F_200B_206E_202D_206A_202D_200D_202E_206C_206F_206D_206C_206D_200D_206E_206E_202E_206C_202A_206D_200F_206A_200B_200E_202A_200C_202A_200B_200C_206A_202D_200E_200C_202C_206F_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>(-2063272986), new object[2]
|
|
{
|
|
base.Task.Targets.Count,
|
|
_trackedFateId
|
|
});
|
|
return true;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
int num = ((_202E_206D_202B_200D_206F_206C_202A_206F_206C_202D_206B_206D_202B_200D_202C_206B_200F_200E_202B_202D_206B_206E_206E_200D_206E_200E_200D_202A_200E_202A_206D_200C_202A_206D_200D_206E_206E_206E_202D_202A_202E() >= _nextActionAt) ? 464111573 : 464111570);
|
|
bool flag2 = default(bool);
|
|
ushort currentFateId = default(ushort);
|
|
IGameObject gameObject = default(IGameObject);
|
|
FateActionTarget current = default(FateActionTarget);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 464111571;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 10:
|
|
_202E_202D_202C_202B_206F_200B_206E_202D_206A_202D_200D_202E_206C_206F_206D_206C_206D_200D_206E_206E_202E_206C_202A_206D_200F_206A_200B_200E_202A_200C_202A_200B_200C_206A_202D_200E_200C_202C_206F_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>(1515231479), new object[1] { _trackedFateId });
|
|
num = 464111571;
|
|
break;
|
|
case 2:
|
|
_fateWasActive = flag2;
|
|
num = ((_trackedFateId != 0) ? 464111571 : 464111572);
|
|
break;
|
|
case 12:
|
|
num = (gameFunctions.HasStatus(base.Task.RequiredStatusId.Value) ? 464111581 : 464111574);
|
|
break;
|
|
case 7:
|
|
_trackedFateId = currentFateId;
|
|
num = ((_trackedFateId == 0) ? 464111571 : 464111577);
|
|
break;
|
|
case 14:
|
|
currentFateId = gameFunctions.GetCurrentFateId();
|
|
flag2 = currentFateId != 0;
|
|
num = ((!_fateWasActive) ? 464111569 : 464111582);
|
|
break;
|
|
case 0:
|
|
num = ((_trackedFateId == 0) ? 464111576 : 464111568);
|
|
break;
|
|
case 3:
|
|
num = (gameFunctions.IsFateStillActive(_trackedFateId) ? 464111576 : 464111579);
|
|
break;
|
|
case 9:
|
|
num = 464111570;
|
|
break;
|
|
case 6:
|
|
num = ((!base.Task.RequiredStatusId.HasValue) ? 464111581 : 464111583);
|
|
break;
|
|
case 8:
|
|
_202E_202D_202C_202B_206F_200B_206E_202D_206A_202D_200D_202E_206C_206F_206D_206C_206D_200D_206E_206E_202E_206C_202A_206D_200F_206A_200B_200E_202A_200C_202A_200B_200C_206A_202D_200E_200C_202C_206F_200F_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>(-1418980453), new object[1] { _trackedFateId });
|
|
return ETaskResult.TaskComplete;
|
|
case 5:
|
|
_202E_202D_202C_202B_206F_200B_206E_202D_206A_202D_200D_202E_206C_206F_206D_206C_206D_200D_206E_206E_202E_206C_202A_206D_200F_206A_200B_200E_202A_200C_202A_200B_200C_206A_202D_200E_200C_202C_206F_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>(1749346970), new object[1] { base.Task.RequiredStatusId.Value });
|
|
return ETaskResult.TaskComplete;
|
|
case 4:
|
|
_202E_202D_202C_202B_206F_200B_206E_202D_206A_202D_200D_202E_206C_206F_206D_206C_206D_200D_206E_206E_202E_206C_202A_206D_200F_206A_200B_200E_202A_200C_202A_200B_200C_206A_202D_200E_200C_202C_206F_200F_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>(-1750997403), new object[1] { _trackedFateId });
|
|
return ETaskResult.TaskComplete;
|
|
case 1:
|
|
return ETaskResult.StillRunning;
|
|
case 13:
|
|
num = (flag2 ? 464111569 : 464111575);
|
|
break;
|
|
case 11:
|
|
{
|
|
IEnumerator<FateActionTarget> enumerator = base.Task.Targets.GetEnumerator();
|
|
try
|
|
{
|
|
num = -742577641;
|
|
while (true)
|
|
{
|
|
int num7 = num;
|
|
num3 = -742577643;
|
|
num4 = num7;
|
|
int num8 = num4 + num3;
|
|
int num9 = num4 & num3;
|
|
switch (num8 - (num9 + num9))
|
|
{
|
|
case 2:
|
|
num = (_206F_202D_200F_206F_200C_206E_206A_200D_200E_202D_206B_200F_202E_206D_202A_206A_202B_206F_200F_202D_200F_206E_200D_202E_206B_200E_206B_200C_202A_200E_206C_200F_206E_206C_202E_202D_206E_202D_200B_202C_202E((IEnumerator)enumerator) ? (-742577647) : (-742577642));
|
|
break;
|
|
case 1:
|
|
num = ((!_200E_202B_202A_200B_200C_206B_206F_202A_202A_202C_206D_206A_206A_206E_206F_202C_202A_202E_202C_202B_200D_202A_200D_202D_206B_200B_202B_206E_206F_202B_206F_200B_202A_200F_206D_202B_206C_200F_202B_206D_202E(gameObject)) ? (-742577641) : (-742577648));
|
|
break;
|
|
case 5:
|
|
{
|
|
bool flag = gameFunctions.UseAction(gameObject, _202C_202D_206A_200F_206B_202A_206B_202D_202B_202D_206F_200E_202D_206C_206A_202E_202A_200B_202D_206B_202B_206E_202D_206C_206D_202D_202B_200D_200B_202A_206F_200B_202A_200B_206A_202C_206B_206D_206F_206A_202E(current));
|
|
_nextActionAt = (flag ? (_202E_206D_202B_200D_206F_206C_202A_206F_206C_202D_206B_206D_202B_200D_202C_206B_200F_200E_202B_202D_206B_206E_206E_200D_206E_200E_200D_202A_200E_202A_206D_200C_202A_206D_200D_206E_206E_206E_202D_202A_202E() + 2500) : (_202E_206D_202B_200D_206F_206C_202A_206F_206C_202D_206B_206D_202B_200D_202C_206B_200F_200E_202B_202D_206B_206E_206E_200D_206E_200E_200D_202A_200E_202A_206D_200C_202A_206D_200D_206E_206E_206E_202D_202A_202E() + 500));
|
|
return ETaskResult.StillRunning;
|
|
}
|
|
case 4:
|
|
current = enumerator.Current;
|
|
gameObject = gameFunctions.FindObjectByDataId(_200F_206F_206E_206B_200D_206D_202E_206A_206E_202C_200B_200E_200D_200E_202A_200C_202C_206D_202B_206A_206D_200F_202C_200C_200C_202A_206B_206C_206E_202B_206A_206E_202A_202B_206A_206D_202E_206C_202D_202B_202E(current), null, warnIfMissing: false);
|
|
num = ((gameObject == null) ? (-742577641) : (-742577644));
|
|
break;
|
|
case 0:
|
|
num = -742577641;
|
|
break;
|
|
case 3:
|
|
goto end_IL_02d6;
|
|
}
|
|
continue;
|
|
end_IL_02d6:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num = ((enumerator == null) ? (-2077958927) : (-2077958928));
|
|
while (true)
|
|
{
|
|
int num10 = num;
|
|
num3 = -2077958927;
|
|
num4 = num10;
|
|
int num11 = num4 + num3;
|
|
int num12 = num4 & num3;
|
|
switch (num11 - (num12 + num12))
|
|
{
|
|
case 0:
|
|
goto end_IL_0421;
|
|
case 1:
|
|
_202C_206B_202B_202B_206B_202C_200C_206D_206F_200B_200B_206C_206F_202E_200F_206C_206A_202B_200E_206D_200D_202E_206F_200F_206E_202B_202D_202B_200C_202C_206C_202B_206D_200F_202A_206A_200C_202A_206D_202E_202E((IDisposable)enumerator);
|
|
num = -2077958927;
|
|
break;
|
|
case 2:
|
|
num = -2077958928;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0421:
|
|
break;
|
|
}
|
|
}
|
|
_nextActionAt = _202E_206D_202B_200D_206F_206C_202A_206F_206C_202D_206B_206D_202B_200D_202C_206B_200F_200E_202B_202D_206B_206E_206E_200D_206E_200E_200D_202A_200E_202A_206D_200C_202A_206D_200D_206E_206E_206E_202D_202A_202E() + 250;
|
|
return ETaskResult.StillRunning;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _202E_202D_202C_202B_206F_200B_206E_202D_206A_202D_200D_202E_206C_206F_206D_206C_206D_200D_206E_206E_202E_206C_202A_206D_200F_206A_200B_200E_202A_200C_202A_200B_200C_206A_202D_200E_200C_202C_206F_200F_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static long _202E_206D_202B_200D_206F_206C_202A_206F_206C_202D_206B_206D_202B_200D_202C_206B_200F_200E_202B_202D_206B_206E_206E_200D_206E_200E_200D_202A_200E_202A_206D_200C_202A_206D_200D_206E_206E_206E_202D_202A_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static uint _200F_206F_206E_206B_200D_206D_202E_206A_206E_202C_200B_200E_200D_200E_202A_200C_202C_206D_202B_206A_206D_200F_202C_200C_200C_202A_206B_206C_206E_202B_206A_206E_202A_202B_206A_206D_202E_206C_202D_202B_202E(FateActionTarget P_0)
|
|
{
|
|
return P_0.DataId;
|
|
}
|
|
|
|
static bool _200E_202B_202A_200B_200C_206B_206F_202A_202A_202C_206D_206A_206A_206E_206F_202C_202A_202E_202C_202B_200D_202A_200D_202D_206B_200B_202B_206E_206F_202B_206F_200B_202A_200F_206D_202B_206C_200F_202B_206D_202E(IGameObject P_0)
|
|
{
|
|
return P_0.IsTargetable;
|
|
}
|
|
|
|
static EAction _202C_202D_206A_200F_206B_202A_206B_202D_202B_202D_206F_200E_202D_206C_206A_202E_202A_200B_202D_206B_202B_206E_202D_206C_206D_202D_202B_200D_200B_202A_206F_200B_202A_200B_206A_202C_206B_206D_206F_206A_202E(FateActionTarget P_0)
|
|
{
|
|
return P_0.Action;
|
|
}
|
|
|
|
static bool _206F_202D_200F_206F_200C_206E_206A_200D_200E_202D_206B_200F_202E_206D_202A_206A_202B_206F_200F_202D_200F_206E_200D_202E_206B_200E_206B_200C_202A_200E_206C_200F_206E_206C_202E_202D_206E_202D_200B_202C_202E(IEnumerator P_0)
|
|
{
|
|
return P_0.MoveNext();
|
|
}
|
|
|
|
static void _202C_206B_202B_202B_206B_202C_200C_206D_206F_200B_200B_206C_206F_202E_200F_206C_206A_202B_200E_206D_200D_202E_206F_200F_206E_202B_202D_202B_200C_202C_206C_202B_206D_200F_202A_206A_200C_202A_206D_202E_202E(IDisposable P_0)
|
|
{
|
|
P_0.Dispose();
|
|
}
|
|
}
|
|
}
|