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,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue