forked from aly/qstbak
1242 lines
63 KiB
C#
1242 lines
63 KiB
C#
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.RegularExpressions;
|
||
using Dalamud.Game.ClientState.Conditions;
|
||
using Dalamud.Game.ClientState.Objects.Enums;
|
||
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.Game.Character;
|
||
using FFXIVClientStructs.FFXIV.Client.Game.Control;
|
||
using FFXIVClientStructs.FFXIV.Client.Game.Event;
|
||
using FFXIVClientStructs.FFXIV.Client.Game.Fate;
|
||
using FFXIVClientStructs.FFXIV.Client.Game.Object;
|
||
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||
using LLib;
|
||
using LLib.GameData;
|
||
using Lumina.Excel.Sheets;
|
||
using Microsoft.Extensions.Logging;
|
||
using Questionable.Model;
|
||
using Questionable.Model.Questing;
|
||
|
||
namespace Questionable.Functions;
|
||
|
||
internal sealed class GameFunctions
|
||
{
|
||
private delegate void AbandonDutyDelegate(bool a1);
|
||
|
||
private readonly GameStateHelper _gameState;
|
||
|
||
private readonly PublicEventHelper _publicEventHelper;
|
||
|
||
private readonly QuestFunctions _questFunctions;
|
||
|
||
private readonly IDataManager _dataManager;
|
||
|
||
private readonly IObjectTable _objectTable;
|
||
|
||
private readonly ITargetManager _targetManager;
|
||
|
||
private readonly ICondition _condition;
|
||
|
||
private readonly IClientState _clientState;
|
||
|
||
private readonly IGameGui _gameGui;
|
||
|
||
private readonly Configuration _configuration;
|
||
|
||
private readonly ILogger<GameFunctions> _logger;
|
||
|
||
private readonly AbandonDutyDelegate _abandonDuty;
|
||
|
||
private readonly ReadOnlyDictionary<uint, uint> _contentFinderConditionToContentId;
|
||
|
||
private static readonly Regex MacroLiteralRegex = _200E_206C_202E_206E_206B_206A_202D_206B_206B_206B_200D_206F_200E_202A_202A_206F_206A_200F_206B_200D_202D_200B_202A_206D_200C_206C_200C_202A_200D_202A_200D_202A_206B_206D_206A_200B_200C_200D_206F_200F_202E(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>(-1537827123), RegexOptions.Compiled);
|
||
|
||
public GameFunctions(GameStateHelper gameState, PublicEventHelper publicEventHelper, QuestFunctions questFunctions, IDataManager dataManager, IObjectTable objectTable, ITargetManager targetManager, ICondition condition, IClientState clientState, IGameGui gameGui, Configuration configuration, ISigScanner sigScanner, ILogger<GameFunctions> logger)
|
||
{
|
||
_gameState = gameState;
|
||
_publicEventHelper = publicEventHelper;
|
||
_questFunctions = questFunctions;
|
||
_dataManager = dataManager;
|
||
_objectTable = objectTable;
|
||
_targetManager = targetManager;
|
||
_condition = condition;
|
||
_clientState = clientState;
|
||
_gameGui = gameGui;
|
||
_configuration = configuration;
|
||
_logger = logger;
|
||
_abandonDuty = Marshal.GetDelegateForFunctionPointer<AbandonDutyDelegate>(EventFramework.Addresses.LeaveCurrentContent.Value);
|
||
_contentFinderConditionToContentId = dataManager.GetExcelSheet<ContentFinderCondition>().Where(delegate(ContentFinderCondition x)
|
||
{
|
||
int num = ((x.RowId == 0) ? 1024647166 : 1024647165);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = 1024647164;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 2:
|
||
return false;
|
||
case 1:
|
||
return x.Content.RowId != 0;
|
||
case 0:
|
||
goto IL_005d;
|
||
}
|
||
continue;
|
||
IL_005d:
|
||
num = 1024647165;
|
||
}
|
||
}).ToDictionary((ContentFinderCondition x) => x.RowId, (ContentFinderCondition x) => x.Content.RowId)
|
||
.AsReadOnly();
|
||
}
|
||
|
||
public bool IsFlyingUnlocked(uint territoryId)
|
||
{
|
||
int num = ((!_configuration.Navigation.NeverFly) ? (-1364280485) : (-1364280489));
|
||
ushort? mountId = default(ushort?);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1364280481;
|
||
int num4 = num2;
|
||
int? obj;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 6:
|
||
num = ((!_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Mounted)) ? (-1364280484) : (-1364280486));
|
||
break;
|
||
case 2:
|
||
obj = mountId.GetValueOrDefault();
|
||
goto IL_009e;
|
||
case 1:
|
||
obj = null;
|
||
goto IL_009e;
|
||
case 0:
|
||
num = -1364280489;
|
||
break;
|
||
case 3:
|
||
return _202B_202C_206D_206E_200C_206D_206C_206E_200E_206F_206F_206C_202A_202B_202E_202D_206B_202C_206F_200C_200F_206A_202B_206E_206D_206C_202A_202B_206C_202A_206B_206E_206A_206E_200F_200C_206E_200E_202C_200C_202E(_gameState, territoryId);
|
||
case 4:
|
||
num = ((!_questFunctions.IsQuestAccepted(_202A_206D_206C_206A_202C_202C_202B_206E_206D_202C_200F_202D_200D_202E_200B_200C_202D_202B_202A_206B_202A_202D_206E_206A_202C_200F_206A_200C_200B_206E_200F_200C_200C_206D_200F_200E_206B_206A_200B_202C_202E((ushort)3304))) ? (-1364280484) : (-1364280487));
|
||
break;
|
||
case 7:
|
||
return true;
|
||
case 5:
|
||
mountId = GetMountId();
|
||
num = (mountId.HasValue ? (-1364280483) : (-1364280482));
|
||
break;
|
||
case 8:
|
||
{
|
||
return false;
|
||
}
|
||
IL_009e:
|
||
num = ((obj != 198) ? (-1364280484) : (-1364280488));
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
public bool IsFlyingUnlockedPersistent(uint territoryId)
|
||
{
|
||
int num = ((!_configuration.Navigation.NeverFly) ? (-1580908316) : (-1580908315));
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1580908316;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 0:
|
||
return _202B_202C_206D_206E_200C_206D_206C_206E_200E_206F_206F_206C_202A_202B_202E_202D_206B_202C_206F_200C_200F_206A_202B_206E_206D_206C_202A_202B_206C_202A_206B_206E_206A_206E_200F_200C_206E_200E_202C_200C_202E(_gameState, territoryId);
|
||
case 1:
|
||
return false;
|
||
case 2:
|
||
goto IL_005f;
|
||
}
|
||
continue;
|
||
IL_005f:
|
||
num = -1580908315;
|
||
}
|
||
}
|
||
|
||
public ushort? GetMountId()
|
||
{
|
||
return _200B_200E_206F_202A_202E_200E_200C_206E_206A_206A_206A_206F_200B_206C_202B_200C_206B_202C_200E_200B_202E_206A_202E_202E_202D_206A_202A_200D_206C_206D_206C_200D_200C_206D_206A_200E_206F_206C_202D_206A_202E(_gameState);
|
||
}
|
||
|
||
public bool IsFlyingUnlockedInCurrentZone()
|
||
{
|
||
return IsFlyingUnlocked(_206B_202D_206E_206A_202C_200F_202B_202E_206A_206C_206D_200E_206E_202D_206B_202C_206C_200E_200C_200F_206A_200F_200B_206D_202E_206E_200D_202B_206E_206C_206F_200E_202B_202E_202C_202C_206C_206A_200C_206D_202E(_clientState));
|
||
}
|
||
|
||
public static bool IsAetherCurrentUnlocked(uint aetherCurrentId)
|
||
{
|
||
return _202C_206E_206E_200D_206D_202A_200B_202A_200E_200C_206E_206A_202E_200B_202E_202E_200B_206B_202C_202A_202B_206F_202A_206D_206C_200F_202E_200D_202A_200D_206B_206D_206A_200B_206C_206D_206E_206A_206E_206B_202E(aetherCurrentId);
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public IGameObject? FindObjectByDataId(uint dataId, Dalamud.Game.ClientState.Objects.Enums.ObjectKind? kind = null, bool warnIfMissing = true)
|
||
{
|
||
int num = 0;
|
||
int num2 = 807951982;
|
||
bool flag = default(bool);
|
||
IGameObject gameObject = default(IGameObject);
|
||
Dalamud.Game.ClientState.Objects.Enums.ObjectKind objectKind = default(Dalamud.Game.ClientState.Objects.Enums.ObjectKind);
|
||
while (true)
|
||
{
|
||
int num3 = num2;
|
||
int num4 = 807951971;
|
||
int num5 = num3;
|
||
int num6 = num5 + num4;
|
||
int num7 = num5 & num4;
|
||
switch (num6 - (num7 + num7))
|
||
{
|
||
case 10:
|
||
num2 = (flag ? 807951978 : 807951968);
|
||
break;
|
||
case 18:
|
||
num2 = ((!kind.HasValue) ? 807951976 : 807951971);
|
||
break;
|
||
case 16:
|
||
num2 = ((_206D_202C_200F_200B_202C_200B_200B_206C_206C_206E_200F_202B_206F_200E_202B_200C_200B_200D_200F_206E_206D_206B_200F_202E_206C_202C_202C_202C_200E_206F_200F_200E_200B_206C_206D_206B_202D_202D_206A_202D_202E(gameObject) != Dalamud.Game.ClientState.Objects.Enums.ObjectKind.GatheringPoint) ? 807951974 : 807951970);
|
||
break;
|
||
case 7:
|
||
return null;
|
||
case 4:
|
||
objectKind = _206D_202C_200F_200B_202C_200B_200B_206C_206C_206E_200F_202B_206F_200E_202B_200C_200B_200D_200F_206E_206D_206B_200F_202E_206C_202C_202C_202C_200E_206F_200F_200E_200B_206C_206D_206B_202D_202D_206A_202D_202E(gameObject);
|
||
num2 = ((objectKind == Dalamud.Game.ClientState.Objects.Enums.ObjectKind.Pc) ? 807951986 : 807951980);
|
||
break;
|
||
case 14:
|
||
_206A_206B_202A_200C_206A_200E_202D_206C_202A_200E_200B_206B_202B_202E_200D_200F_206F_206C_200E_200E_206E_200F_206F_200B_206B_200B_200F_202B_202E_202A_206C_206B_206D_206A_206F_202C_202C_206D_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>(1434337485), new object[1] { dataId });
|
||
num2 = 807951972;
|
||
break;
|
||
case 15:
|
||
num2 = ((objectKind - 8 <= Dalamud.Game.ClientState.Objects.Enums.ObjectKind.BattleNpc) ? 807951986 : 807951983);
|
||
break;
|
||
case 13:
|
||
num2 = ((num < _202D_206E_206D_200C_200E_200F_200D_200C_200C_202B_206F_202B_202C_206F_206B_200C_202C_202C_206A_206D_202C_206C_200D_200C_200F_202D_200E_206D_202B_202B_200F_202B_206F_202E_202E_206E_202A_206A_206C_206F_202E(_objectTable)) ? 807951984 : 807951973);
|
||
break;
|
||
case 2:
|
||
num2 = 807951982;
|
||
break;
|
||
case 12:
|
||
num2 = ((objectKind != Dalamud.Game.ClientState.Objects.Enums.ObjectKind.HousingEventObject) ? 807951979 : 807951986);
|
||
break;
|
||
case 3:
|
||
num2 = ((gameObject == null) ? 807951974 : 807951987);
|
||
break;
|
||
case 6:
|
||
num2 = ((!warnIfMissing) ? 807951972 : 807951981);
|
||
break;
|
||
case 9:
|
||
{
|
||
int num8 = num;
|
||
num4 = 1;
|
||
num5 = num8;
|
||
num = (num5 | num4) + (num5 & num4);
|
||
num2 = 807951982;
|
||
break;
|
||
}
|
||
case 5:
|
||
num2 = ((_202A_200F_200B_206E_206D_202B_206E_206B_200C_202D_202B_200E_206A_202D_206F_200F_202C_202E_206C_202B_202E_200E_202E_202C_200D_200C_200D_202C_206F_200F_202C_202E_202B_202E_206B_206F_206B_206E_206F_200D_202E(gameObject) != dataId) ? 807951978 : 807951985);
|
||
break;
|
||
case 8:
|
||
flag = false;
|
||
num2 = 807951977;
|
||
break;
|
||
case 17:
|
||
flag = true;
|
||
num2 = 807951977;
|
||
break;
|
||
case 0:
|
||
num2 = ((kind.Value != _206D_202C_200F_200B_202C_200B_200B_206C_206C_206E_200F_202B_206F_200E_202B_200C_200B_200D_200F_206E_206D_206B_200F_202E_206C_202C_202C_202C_200E_206F_200F_200E_200B_206C_206D_206B_202D_202D_206A_202D_202E(gameObject)) ? 807951978 : 807951976);
|
||
break;
|
||
case 1:
|
||
num2 = ((!_200F_200C_202B_200D_206D_200F_200F_200F_206A_202E_200F_202A_206B_200F_200B_200D_206C_202C_206A_206E_206A_202C_206F_206B_202E_200F_206D_202D_206D_200D_200C_206A_202D_206F_202D_200D_206D_206D_202C_206A_202E(gameObject)) ? 807951978 : 807951974);
|
||
break;
|
||
case 11:
|
||
return gameObject;
|
||
case 19:
|
||
gameObject = _200E_200B_206B_202E_202B_200C_206D_206D_200E_200B_200F_206C_206C_202D_202D_200C_200B_200E_206A_200C_202D_206A_206F_200D_200D_200C_206C_206E_202D_202E_200C_200D_202A_206E_202D_200F_200E_206F_206E_200C_202E(_objectTable, num);
|
||
num2 = ((gameObject == null) ? 807951978 : 807951975);
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public bool InteractWith(uint dataId, Dalamud.Game.ClientState.Objects.Enums.ObjectKind? kind = null)
|
||
{
|
||
IGameObject gameObject = FindObjectByDataId(dataId, kind);
|
||
int num = ((gameObject == null) ? (-1334484933) : (-1334484936));
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1334484935;
|
||
int num4 = num2;
|
||
int num5 = num4 + num3;
|
||
int num6 = num4 & num3;
|
||
switch (num5 - (num6 + num6))
|
||
{
|
||
case 2:
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(-1930921245), Array.Empty<object>());
|
||
return false;
|
||
case 1:
|
||
return InteractWith(gameObject);
|
||
case 0:
|
||
goto IL_0071;
|
||
}
|
||
continue;
|
||
IL_0071:
|
||
num = -1334484936;
|
||
}
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public unsafe bool InteractWith(IGameObject gameObject)
|
||
{
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(-1635854667), new object[2]
|
||
{
|
||
_202A_200F_200B_206E_206D_202B_206E_206B_200C_202D_202B_200E_206A_202D_206F_200F_202C_202E_206C_202B_202E_200E_202E_202C_200D_200C_200D_202C_206F_200F_202C_202E_202B_202E_206B_206F_206B_206E_206F_200D_202E(gameObject),
|
||
_200E_206F_200B_200E_206D_206D_200E_202E_200B_200F_206D_202E_202C_202E_202C_202A_206F_200F_206C_200D_206E_206B_206B_206D_202B_202C_200B_202E_200C_202B_206A_202E_202C_202A_206A_206A_202E_206C_200D_200E_202E(gameObject)
|
||
});
|
||
_202D_200B_206B_202B_200E_206A_200F_206D_206D_200B_202A_202E_206D_200C_200F_202B_200D_202C_200D_206F_202E_202D_202E_202C_206E_202A_202E_200F_206A_206C_200C_200F_206B_206F_200E_200E_200B_206C_200C_206D_202E(_targetManager, (IGameObject)null);
|
||
_202D_200B_206B_202B_200E_206A_200F_206D_206D_200B_202A_202E_206D_200C_200F_202B_200D_202C_200D_206F_202E_202D_202E_202C_206E_202A_202E_200F_206A_206C_200C_200F_206B_206F_200E_200E_200B_206C_200C_206D_202E(_targetManager, gameObject);
|
||
int num = ((_206D_202C_200F_200B_202C_200B_200B_206C_206C_206E_200F_202B_206F_200E_202B_200C_200B_200D_200F_206E_206D_206B_200F_202E_206C_202C_202C_202C_200E_206F_200F_200E_200B_206C_206D_206B_202D_202D_206A_202D_202E(gameObject) != Dalamud.Game.ClientState.Objects.Enums.ObjectKind.GatheringPoint) ? (-1441144196) : (-1441144194));
|
||
long num7 = default(long);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1441144195;
|
||
int num4 = num2;
|
||
int num5 = num4 + num3;
|
||
int num6 = num4 & num3;
|
||
switch (num5 - (num6 + num6))
|
||
{
|
||
case 4:
|
||
num = -1441144194;
|
||
break;
|
||
case 0:
|
||
return false;
|
||
case 3:
|
||
TargetSystem.Instance()->OpenObjectInteraction((GameObject*)_206D_206E_202A_202A_202D_206B_200B_202D_200F_200B_206C_202D_200C_206C_206D_202A_202B_206B_206C_206B_206D_202B_202D_206F_206F_200C_200E_200E_200B_206C_206A_202A_206A_206C_206A_200C_200B_202D_202C_206A_202E(gameObject));
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(1675557369), Array.Empty<object>());
|
||
return true;
|
||
case 1:
|
||
num7 = (long)TargetSystem.Instance()->InteractWithObject((GameObject*)_206D_206E_202A_202A_202D_206B_200B_202D_200F_200B_206C_202D_200C_206C_206D_202A_202B_206B_206C_206B_206D_202B_202D_206F_206F_200C_200E_200E_200B_206C_206A_202A_206A_206C_206A_200C_200B_202D_202C_206A_202E(gameObject), checkLineOfSight: false);
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(1317132666), new object[1] { num7 });
|
||
num = ((num7 == 7) ? (-1441144195) : (-1441144193));
|
||
break;
|
||
case 2:
|
||
return num7 > 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public unsafe bool UseItem(uint itemId)
|
||
{
|
||
long num = AgentInventoryContext.Instance()->UseItem(itemId, InventoryType.Invalid, 0u, 0);
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(1085424213), new object[1] { num });
|
||
return num == 0;
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public unsafe bool UseItem(uint dataId, uint itemId)
|
||
{
|
||
IGameObject gameObject = FindObjectByDataId(dataId);
|
||
int num = ((gameObject == null) ? (-1343850894) : (-1343850890));
|
||
bool result = default(bool);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1343850893;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 0:
|
||
result = true;
|
||
num = -1343850895;
|
||
break;
|
||
case 1:
|
||
return false;
|
||
case 4:
|
||
num = -1343850890;
|
||
break;
|
||
case 5:
|
||
{
|
||
_202D_200B_206B_202B_200E_206A_200F_206D_206D_200B_202A_202E_206D_200C_200F_202B_200D_202C_200D_206F_202E_202D_202E_202C_206E_202A_202E_200F_206A_206C_200C_200F_206B_206F_200E_200E_200B_206C_200C_206D_202E(_targetManager, gameObject);
|
||
long num5 = AgentInventoryContext.Instance()->UseItem(itemId, InventoryType.Invalid, 0u, 0);
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_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>(1838451938), new object[2] { dataId, num5 });
|
||
num = (((ulong)num5 > 1uL) ? (-1343850896) : (-1343850893));
|
||
break;
|
||
}
|
||
case 2:
|
||
return result;
|
||
case 3:
|
||
result = false;
|
||
num = -1343850895;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
public unsafe bool UseItemOnGround(uint dataId, uint itemId)
|
||
{
|
||
IGameObject gameObject = FindObjectByDataId(dataId);
|
||
int num = ((gameObject == null) ? 888380852 : 888380855);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = 888380853;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 1:
|
||
return false;
|
||
case 2:
|
||
{
|
||
Vector3 vector = _202C_202A_200C_206D_200E_200F_206F_206C_202C_202E_200F_200C_200F_202B_200D_202C_206A_200C_200B_206A_206C_206C_206E_202E_206C_202B_206A_200C_206B_202E_202E_200F_200C_202D_200E_202E_206F_200E_200B_202E_202E(gameObject);
|
||
return ActionManager.Instance()->UseActionLocation(ActionType.EventItem, itemId, 3758096384uL, &vector, 0u, 0);
|
||
}
|
||
case 0:
|
||
goto IL_007a;
|
||
}
|
||
continue;
|
||
IL_007a:
|
||
num = 888380855;
|
||
}
|
||
}
|
||
|
||
public unsafe bool UseItemOnPosition(Vector3 position, uint itemId)
|
||
{
|
||
return ActionManager.Instance()->UseActionLocation(ActionType.EventItem, itemId, 3758096384uL, &position, 0u, 0);
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public unsafe bool UseAction(EAction action)
|
||
{
|
||
uint num = (uint)(action & (EAction)65535);
|
||
int num2 = (((action & (EAction)65536) == (EAction)65536) ? 1130045637 : 1130045635);
|
||
ActionType actionType = default(ActionType);
|
||
while (true)
|
||
{
|
||
int num3 = num2;
|
||
int num4 = 1130045637;
|
||
int num5 = num3;
|
||
int num6;
|
||
switch ((num5 | num4) - (num5 & num4))
|
||
{
|
||
case 1:
|
||
num = ActionManager.Instance()->GetAdjustedActionId(num);
|
||
num2 = 1130045632;
|
||
break;
|
||
case 3:
|
||
return false;
|
||
case 0:
|
||
num6 = 5;
|
||
goto IL_0084;
|
||
case 2:
|
||
num2 = 1130045635;
|
||
break;
|
||
case 4:
|
||
{
|
||
bool flag = ActionManager.Instance()->UseAction(actionType, num, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null);
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_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>(1601213303), new object[3] { action, num, flag });
|
||
return flag;
|
||
}
|
||
case 6:
|
||
num6 = 1;
|
||
goto IL_0084;
|
||
case 5:
|
||
{
|
||
num2 = ((ActionManager.Instance()->GetActionStatus(actionType, num, 3758096384uL, checkRecastActive: true, checkCastingActive: true, null) != 0) ? 1130045638 : 1130045633);
|
||
break;
|
||
}
|
||
IL_0084:
|
||
actionType = (ActionType)num6;
|
||
num2 = ((actionType != ActionType.Action) ? 1130045632 : 1130045636);
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public unsafe bool UseAction(IGameObject gameObject, EAction action, bool checkCanUse = true)
|
||
{
|
||
uint num = (uint)(action & (EAction)65535);
|
||
int num2 = (((action & (EAction)65536) == (EAction)65536) ? (-1758207256) : (-1758207250));
|
||
bool flag = default(bool);
|
||
Lumina.Excel.Sheets.Action row = default(Lumina.Excel.Sheets.Action);
|
||
ActionType actionType = default(ActionType);
|
||
while (true)
|
||
{
|
||
int num3 = num2;
|
||
int num4 = -1758207249;
|
||
int num5 = num3;
|
||
int num6 = num5 + num4;
|
||
int num7 = num5 & num4;
|
||
int num8;
|
||
switch (num6 - (num7 + num7))
|
||
{
|
||
case 2:
|
||
return flag;
|
||
case 4:
|
||
_206A_206B_202A_200C_206A_200E_202D_206C_202A_200E_200B_206B_202B_202E_200D_200F_206F_206C_200E_200E_206E_200F_206F_200B_206B_200B_200F_202B_202E_202A_206C_206B_206D_206A_206F_202C_202C_206D_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>(2035975643), new object[3] { action, num, gameObject });
|
||
return false;
|
||
case 1:
|
||
num8 = 1;
|
||
goto IL_0161;
|
||
case 8:
|
||
_206A_206B_202A_200C_206A_200E_202D_206C_202A_200E_200B_206B_202B_202E_200D_200F_206F_206C_200E_200E_206E_200F_206F_200B_206B_200B_200F_202B_202E_202A_206C_206B_206D_206A_206F_202C_202C_206D_202C_200C_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>(-124503162), new object[2] { action, gameObject });
|
||
return false;
|
||
case 10:
|
||
num2 = -1758207250;
|
||
break;
|
||
case 0:
|
||
row = _dataManager.GetExcelSheet<Lumina.Excel.Sheets.Action>().GetRow(num);
|
||
_202D_200B_206B_202B_200E_206A_200F_206D_206D_200B_202A_202E_206D_200C_200F_202B_200D_202C_200D_206F_202E_202D_202E_202C_206E_202A_202E_200F_206A_206C_200C_200F_206B_206F_200E_200E_200B_206C_200C_206D_202E(_targetManager, gameObject);
|
||
num2 = ((ActionManager.Instance()->GetActionStatus(actionType, num, _202B_200D_202A_206F_202B_202E_206D_206D_202C_206E_202A_206E_200F_200F_202E_206B_202B_200C_200D_200D_206A_202C_206F_200B_202C_200B_202C_206E_202C_206B_200B_206E_206C_202E_202A_200F_200F_206C_202E_206D_202E(gameObject), checkRecastActive: true, checkCastingActive: true, null) != 0) ? (-1758207258) : (-1758207260));
|
||
break;
|
||
case 7:
|
||
num8 = 5;
|
||
goto IL_0161;
|
||
case 6:
|
||
num2 = (ActionManager.CanUseActionOnTarget(num, (GameObject*)_206D_206E_202A_202A_202D_206B_200B_202D_200F_200B_206C_202D_200C_206C_206D_202A_202B_206B_206C_206B_206D_202B_202D_206F_206F_200C_200E_200E_200B_206C_206A_202A_206A_206C_206A_200C_200B_202D_202C_206A_202E(gameObject)) ? (-1758207249) : (-1758207253));
|
||
break;
|
||
case 11:
|
||
num2 = ((!row.TargetArea) ? (-1758207261) : (-1758207252));
|
||
break;
|
||
case 3:
|
||
{
|
||
Vector3 vector = _202C_202A_200C_206D_200E_200F_206F_206C_202C_202E_200F_200C_200F_202B_200D_202C_206A_200C_200B_206A_206C_206C_206E_202E_206C_202B_206A_200C_206B_202E_202E_200F_200C_202D_200E_202E_206F_200E_200B_202E_202E(gameObject);
|
||
flag = ActionManager.Instance()->UseActionLocation(actionType, num, 3758096384uL, &vector, 0u, 0);
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(-652463398), new object[4] { action, num, gameObject, flag });
|
||
num2 = -1758207251;
|
||
break;
|
||
}
|
||
case 12:
|
||
flag = ActionManager.Instance()->UseAction(actionType, num, _202B_200D_202A_206F_202B_202E_206D_206D_202C_206E_202A_206E_200F_200F_202E_206B_202B_200C_200D_200D_206A_202C_206F_200B_202C_200B_202C_206E_202C_206B_200B_206E_206C_202E_202A_200F_200F_206C_202E_206D_202E(gameObject), 0u, ActionManager.UseActionMode.None, 0u, null);
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(-1081537317), new object[4] { action, num, gameObject, flag });
|
||
num2 = -1758207251;
|
||
break;
|
||
case 5:
|
||
num = ActionManager.Instance()->GetAdjustedActionId(num);
|
||
num2 = ((!checkCanUse) ? (-1758207249) : (-1758207255));
|
||
break;
|
||
case 9:
|
||
{
|
||
return false;
|
||
}
|
||
IL_0161:
|
||
actionType = (ActionType)num8;
|
||
num2 = ((actionType != ActionType.GeneralAction) ? (-1758207254) : (-1758207257));
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
public bool IsObjectAtPosition(uint dataId, Vector3 position, float distance)
|
||
{
|
||
IGameObject gameObject = FindObjectByDataId(dataId);
|
||
int num = ((gameObject == null) ? 1252577697 : 1252577696);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = 1252577697;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 2:
|
||
goto IL_0059;
|
||
case 0:
|
||
return false;
|
||
case 1:
|
||
return (_202C_202A_200C_206D_200E_200F_206F_206C_202C_202E_200F_200C_200F_202B_200D_202C_206A_200C_200B_206A_206C_206C_206E_202E_206C_202B_206A_200C_206B_202E_202E_200F_200C_202D_200E_202E_206F_200E_200B_202E_202E(gameObject) - position).Length() < distance;
|
||
}
|
||
continue;
|
||
IL_0059:
|
||
num = 1252577696;
|
||
}
|
||
}
|
||
|
||
public bool HasStatusPreventingMount()
|
||
{
|
||
return _200B_200E_206E_206D_206B_206F_202B_202D_202B_206B_206F_200F_200F_202C_202A_202B_200C_202B_206A_202A_206F_200C_206E_202B_200F_200F_202D_202A_202B_206A_206A_200C_200B_202B_202A_200B_202B_206A_200E_200C_202E(_gameState);
|
||
}
|
||
|
||
public bool HasStatusPreventingSprint()
|
||
{
|
||
return _206A_202B_200C_200E_202E_200B_206D_202E_202E_200C_206D_206E_206E_200B_206B_206B_206B_206B_202C_206D_206D_202C_202A_200C_206B_202E_202A_200C_206B_200B_200C_206B_206E_206F_202E_206B_200F_202A_206E_206F_202E(_gameState);
|
||
}
|
||
|
||
public unsafe bool HasStatus(EStatus statusId)
|
||
{
|
||
IPlayerCharacter playerCharacter = _206F_202A_200F_202E_206C_200E_202B_200E_200E_206E_200F_200D_202D_202B_200C_202D_206F_206D_200B_200E_206F_206F_206F_206E_206C_202C_200D_206C_202B_206E_200C_202A_200E_202E_202D_200D_202B_202C_206C_202A_202E(_objectTable);
|
||
int num = ((playerCharacter != null) ? 1203210310 : 1203210309);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = 1203210308;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 0:
|
||
goto IL_0050;
|
||
case 2:
|
||
{
|
||
BattleChara* ptr = (BattleChara*)_206D_206E_202A_202A_202D_206B_200B_202D_200F_200B_206C_202D_200C_206C_206D_202A_202B_206B_206C_206B_206D_202B_202D_206F_206F_200C_200E_200E_200B_206C_206A_202A_206A_206C_206A_200C_200B_202D_202C_206A_202E((IGameObject)playerCharacter);
|
||
return ptr->GetStatusManager()->HasStatus((uint)statusId);
|
||
}
|
||
case 1:
|
||
return false;
|
||
}
|
||
continue;
|
||
IL_0050:
|
||
num = 1203210309;
|
||
}
|
||
}
|
||
|
||
public static bool RemoveStatus(EStatus statusId)
|
||
{
|
||
return StatusManager.ExecuteStatusOff((uint)statusId);
|
||
}
|
||
|
||
public bool Mount()
|
||
{
|
||
return _202D_200F_200F_200C_206B_206A_206B_206E_206E_206E_202A_202A_206A_200B_202D_206C_200B_200F_202E_206C_202B_200E_200D_200D_202C_206D_206D_206E_200B_202A_206C_206E_206C_202D_200B_206F_206F_200E_202C_200E_202E(_gameState, _configuration.Navigation.MountId);
|
||
}
|
||
|
||
public bool Unmount()
|
||
{
|
||
return _206B_200F_206B_206E_202C_202A_200B_200B_206F_202C_200B_200E_202D_200C_206E_202D_206D_200C_200B_206A_206F_200F_206E_200B_206A_206B_202E_202B_202E_200D_202B_200F_202D_202E_206A_206A_200E_200B_200D_206C_202E(_gameState);
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public unsafe void OpenDutyFinder(uint contentFinderConditionId)
|
||
{
|
||
uint value;
|
||
int num = ((!_contentFinderConditionToContentId.TryGetValue(contentFinderConditionId, out value)) ? (-161194421) : (-161194419));
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -161194417;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 3:
|
||
_206B_202A_200C_202E_200E_206B_200B_206A_200B_206D_202E_202C_202D_206C_206C_206A_200F_206B_202C_200D_202D_202B_206D_206F_206C_202D_206E_200E_202B_200E_200D_202B_206A_206E_200D_200D_206D_200B_206B_200D_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>(925011176), new object[2] { contentFinderConditionId, value });
|
||
return;
|
||
case 2:
|
||
num = ((!UIState.IsInstanceContentUnlocked(value)) ? (-161194420) : (-161194418));
|
||
break;
|
||
case 4:
|
||
_206B_202A_200C_202E_200E_206B_200B_206A_200B_206D_202E_202C_202D_206C_206C_206A_200F_206B_202C_200D_202D_202B_206D_206F_206C_202D_206E_200E_202B_200E_200D_202B_206A_206E_200D_200D_206D_200B_206B_200D_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>(1235394690), new object[1] { contentFinderConditionId });
|
||
return;
|
||
case 1:
|
||
AgentContentsFinder.Instance()->OpenRegularDuty(contentFinderConditionId);
|
||
return;
|
||
case 0:
|
||
num = -161194419;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
public static bool GameStringEquals(string? a, string? b)
|
||
{
|
||
int num = ((a != null) ? 728092045 : 728092040);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = 728092041;
|
||
int num4 = num2;
|
||
int num5 = num4 + num3;
|
||
int num6 = num4 & num3;
|
||
switch (num5 - (num6 + num6))
|
||
{
|
||
case 6:
|
||
return false;
|
||
case 4:
|
||
num = ((b != null) ? 728092044 : 728092047);
|
||
break;
|
||
case 3:
|
||
return true;
|
||
case 0:
|
||
num = 728092040;
|
||
break;
|
||
case 2:
|
||
return _206D_202C_202B_200C_200C_206C_206D_206B_202D_202C_200C_206D_200F_202C_200B_200B_200D_206E_206A_206A_200F_200E_206D_206E_200B_200E_202D_206D_202C_202E_206F_200D_200E_206F_206D_206B_200D_202E_202D_206B_202E(NormalizeGameString(a), NormalizeGameString(b));
|
||
case 5:
|
||
num = ((!_206D_202C_202B_200C_200C_206C_206D_206B_202D_202C_200C_206D_200F_202C_200B_200B_200D_206E_206A_206A_200F_200E_206D_206E_200B_200E_202D_206D_202C_202E_206F_200D_200E_206F_206D_206B_200D_202E_202D_206B_202E(a, b)) ? 728092043 : 728092042);
|
||
break;
|
||
case 1:
|
||
return b == null;
|
||
}
|
||
}
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
private static string NormalizeGameString(string value)
|
||
{
|
||
int num = ((!_206B_206A_206F_202E_206F_206F_206D_200C_200E_200B_200D_200E_200E_206E_206F_200E_206A_202A_202A_206A_202D_200D_206A_202B_200B_202B_200D_206E_202D_200E_200C_200C_200D_206E_206E_200E_202A_206A_202C_206E_202E(value, '<', StringComparison.Ordinal)) ? (-1423448910) : (-1423448911));
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1423448912;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 0:
|
||
num = -1423448911;
|
||
break;
|
||
case 2:
|
||
return _200F_200E_206B_200D_200C_206E_200F_200E_202A_200D_206A_202D_200F_206F_200B_200C_200E_200B_206C_206B_206D_202E_200E_206A_206B_200E_202D_202A_200D_206B_202B_200C_202A_206E_200E_200C_206F_206E_202D_206A_202E(_200C_206D_202C_202A_202E_202D_206D_206D_202E_202E_206B_206E_206E_200C_200F_202E_202A_202A_206C_206F_206D_200F_206A_206D_206C_200B_202A_200C_202A_202C_206F_206F_200D_200D_206B_206F_206F_202B_202B_206D_202E(_200B_202D_206D_200B_206E_202A_200D_206B_202E_206A_202A_200D_202D_202D_206A_202C_206E_206E_200B_206F_202C_200B_206C_206F_200F_200D_206A_200D_200D_200D_202B_202A_206D_200F_200F_202C_206C_206F_200C_206A_202E(_206B_200F_200D_200E_202C_200F_200C_202D_200B_206C_202C_206E_206B_200F_200F_200C_206E_202E_206E_200E_206D_200C_206C_202E_202E_202B_206E_202E_206A_200E_202B_206A_206A_200D_200E_202A_206F_200C_202C_200E_202E(value), '–', '-'), 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>(1413166639), 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), StringComparison.Ordinal));
|
||
case 1:
|
||
value = _200D_200F_206C_200E_206F_200B_206E_206B_206E_206A_206A_200E_202D_202D_206B_206F_200C_206A_202B_202E_200C_202B_202B_206C_200F_200F_202C_206E_202D_206B_206A_206D_206A_202E_200E_206F_206F_200E_200D_202D_202E(MacroLiteralRegex, value, string.Empty);
|
||
num = -1423448910;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
public unsafe bool IsOccupied()
|
||
{
|
||
int num = ((!_200F_206B_202B_200C_206A_206E_200F_200D_200C_200C_200E_202D_200F_200E_200D_202E_202C_200F_206D_200C_200D_200F_202E_200F_200B_202B_202C_200B_202C_200C_202B_200B_202E_200D_200E_200D_200F_202D_206A_200D_202E(_clientState)) ? 1381723980 : 1381723991);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = 1381723978;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 16:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Occupied33) ? 1381723979 : 1381723977);
|
||
break;
|
||
case 23:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.PreparingToCraft) ? 1381723970 : 1381723985);
|
||
break;
|
||
case 29:
|
||
num = ((_206F_202A_200F_202E_206C_200E_202B_200E_200E_206E_200F_200D_202D_202B_200C_202D_206F_206D_200B_200E_206F_206F_206F_206E_206C_202C_200D_206C_202B_206E_200C_202A_200E_202E_202D_200D_202B_202C_206C_202A_202E(_objectTable) != null) ? 1381723969 : 1381723980);
|
||
break;
|
||
case 2:
|
||
num = (AgentRecipeNote.Instance()->IsAgentActive() ? 1381723997 : 1381723983);
|
||
break;
|
||
case 7:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Occupied39) ? 1381723979 : 1381723986);
|
||
break;
|
||
case 21:
|
||
return _206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Jumping);
|
||
case 27:
|
||
return true;
|
||
case 11:
|
||
num = ((!IsLoadingScreenVisible()) ? 1381723972 : 1381723993);
|
||
break;
|
||
case 15:
|
||
num = ((!_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.SufferingStatusAffliction63)) ? 1381723968 : 1381723995);
|
||
break;
|
||
case 18:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.BetweenAreas51) ? 1381723979 : 1381723998);
|
||
break;
|
||
case 1:
|
||
return true;
|
||
case 6:
|
||
return true;
|
||
case 20:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Jumping61) ? 1381723979 : 1381723971);
|
||
break;
|
||
case 5:
|
||
return true;
|
||
case 25:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.BetweenAreas) ? 1381723979 : 1381723992);
|
||
break;
|
||
case 17:
|
||
num = ((_206B_202D_206E_206A_202C_200F_202B_202E_206A_206C_206D_200E_206E_202D_206B_202C_206C_200E_200C_200F_206A_200F_200B_206D_202E_206E_200D_202B_206E_206C_206F_200E_202B_202E_202C_202C_206C_206A_200C_206D_202E(_clientState) != 1052) ? 1381723968 : 1381723974);
|
||
break;
|
||
case 9:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.ExecutingGatheringAction) ? 1381723979 : 1381723999);
|
||
break;
|
||
case 13:
|
||
num = 1381723991;
|
||
break;
|
||
case 4:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Occupied30) ? 1381723979 : 1381723994);
|
||
break;
|
||
case 28:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.OccupiedInCutSceneEvent) ? 1381723979 : 1381723984);
|
||
break;
|
||
case 12:
|
||
return false;
|
||
case 0:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.OccupiedInQuestEvent) ? 1381723979 : 1381723990);
|
||
break;
|
||
case 24:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.OccupiedInEvent) ? 1381723979 : 1381723978);
|
||
break;
|
||
case 3:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Occupied38) ? 1381723979 : 1381723981);
|
||
break;
|
||
case 19:
|
||
return true;
|
||
case 26:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Casting) ? 1381723979 : 1381723996);
|
||
break;
|
||
case 14:
|
||
num = ((!_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Crafting)) ? 1381723970 : 1381723976);
|
||
break;
|
||
case 10:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Occupied) ? 1381723979 : 1381723982);
|
||
break;
|
||
case 22:
|
||
num = (_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.MountOrOrnamentTransition) ? 1381723979 : 1381723987);
|
||
break;
|
||
case 8:
|
||
num = ((!_206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(_condition, ConditionFlag.Unconscious)) ? 1381723968 : 1381723973);
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
public unsafe bool IsOccupiedWithCustomDeliveryNpc(Questionable.Model.Quest? currentQuest)
|
||
{
|
||
int num = ((currentQuest == null) ? 1849968251 : 1849968246);
|
||
HashSet<ConditionFlag> hashSet = default(HashSet<ConditionFlag>);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = 1849968241;
|
||
int num4 = num2;
|
||
int num5 = num4 + num3;
|
||
int num6 = num4 & num3;
|
||
switch (num5 - (num6 + num6))
|
||
{
|
||
case 4:
|
||
num = 1849968246;
|
||
break;
|
||
case 2:
|
||
num = ((_202E_200B_202C_206E_206F_206E_202E_206A_202B_206E_200E_206C_200D_206E_202B_206F_206E_200B_200B_200D_206B_206C_200D_202A_206B_206E_206D_200C_200F_206F_200E_206C_202E_206F_202E_206C_206A_206B_206A_202E_202E(_targetManager) == null) ? 1849968249 : 1849968244);
|
||
break;
|
||
case 5:
|
||
num = ((_202A_200F_200B_206E_206D_202B_206E_206B_200C_202D_202B_200E_206A_202D_206F_200F_202C_202E_206C_202B_202E_200E_202E_202C_200D_200C_200D_202C_206F_200F_202C_202E_202B_202E_206B_206F_206B_206E_206F_200D_202E(_202E_200B_202C_206E_206F_206E_202E_206A_202B_206E_200E_206C_200D_206E_202B_206F_206E_200B_200B_200D_206B_206C_200D_202A_206B_206E_206D_200C_200F_206F_200E_206C_202E_206F_202E_206C_206A_206B_206A_202E_202E(_targetManager)) == currentQuest.Info.IssuerDataId) ? 1849968248 : 1849968249);
|
||
break;
|
||
case 3:
|
||
hashSet = _206D_200F_200C_206F_206B_202A_206E_200D_206F_200E_200D_200D_206C_200E_200D_206D_200D_206B_200E_202D_202A_200E_200D_200F_202D_202C_200F_200C_206B_202E_200E_206A_202D_200B_200F_206B_202C_200E_200F_202C_202E(_condition).ToHashSet();
|
||
hashSet.Remove(ConditionFlag.InDutyQueue);
|
||
num = ((hashSet.Count != 2) ? 1849968247 : 1849968240);
|
||
break;
|
||
case 6:
|
||
return false;
|
||
case 0:
|
||
return hashSet.Contains(ConditionFlag.OccupiedInQuestEvent);
|
||
case 1:
|
||
num = ((!hashSet.Contains(ConditionFlag.NormalConditions)) ? 1849968247 : 1849968241);
|
||
break;
|
||
case 9:
|
||
num = (AgentSatisfactionSupply.Instance()->IsAgentActive() ? 1849968242 : 1849968250);
|
||
break;
|
||
case 11:
|
||
return false;
|
||
case 10:
|
||
return false;
|
||
case 7:
|
||
num = ((currentQuest.Info is SatisfactionSupplyInfo) ? 1849968243 : 1849968251);
|
||
break;
|
||
case 8:
|
||
return false;
|
||
}
|
||
}
|
||
}
|
||
|
||
public bool IsLoadingScreenVisible()
|
||
{
|
||
return _206B_200B_202E_200C_206E_202E_202A_200B_206D_206C_206C_200F_200D_206B_206F_202B_202E_200E_200E_206F_206B_202B_202A_206E_206A_206D_202D_202D_200F_200B_202B_202D_202E_202A_202B_200F_200B_206D_202D_200D_202E(_gameState);
|
||
}
|
||
|
||
public int GetFreeInventorySlots()
|
||
{
|
||
return _202C_200E_202E_206E_206D_206C_206B_202B_200B_202D_206D_206F_200B_200F_202D_206A_206D_202E_200B_202D_200C_206F_200B_202A_200B_206D_200F_200D_202A_206F_202D_206E_202E_200D_206F_200B_206B_206C_202A_206E_202E(_gameState).GetValueOrDefault();
|
||
}
|
||
|
||
public void AbandonDuty()
|
||
{
|
||
_abandonDuty(a1: false);
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public unsafe IReadOnlyList<uint> GetUnlockLinks()
|
||
{
|
||
UIState* ptr = UIState.Instance();
|
||
int num = ((ptr != null) ? (-1353490127) : (-1353490121));
|
||
uint num8 = default(uint);
|
||
List<uint> list = default(List<uint>);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1353490124;
|
||
int num4 = num2;
|
||
int num5 = num4 + num3;
|
||
int num6 = num4 & num3;
|
||
switch (num5 - (num6 + num6))
|
||
{
|
||
case 4:
|
||
num = ((!ptr->IsUnlockLinkUnlocked(num8)) ? (-1353490125) : (-1353490126));
|
||
break;
|
||
case 6:
|
||
list.Add(num8);
|
||
num = -1353490125;
|
||
break;
|
||
case 5:
|
||
list = new List<uint>();
|
||
num8 = 0u;
|
||
num = -1353490123;
|
||
break;
|
||
case 0:
|
||
num = -1353490121;
|
||
break;
|
||
case 3:
|
||
_206B_202A_200C_202E_200E_206B_200B_206A_200B_206D_202E_202C_202D_206C_206C_206A_200F_206B_202C_200D_202D_202B_206D_206F_206C_202D_206E_200E_202B_200E_200D_202B_206A_206E_200D_200D_206D_200B_206B_200D_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>(221322502), Array.Empty<object>());
|
||
return Array.Empty<uint>();
|
||
case 2:
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(430632350), new object[1] { string.Join(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>(1087086507), list) });
|
||
return list;
|
||
case 1:
|
||
num = ((num8 < ptr->UnlockLinksBitArray.ByteLength * 8) ? (-1353490128) : (-1353490122));
|
||
break;
|
||
case 7:
|
||
{
|
||
uint num7 = num8;
|
||
num3 = 1;
|
||
num4 = (int)num7;
|
||
int num9 = num4 ^ num3;
|
||
int num10 = num4 & num3;
|
||
num8 = (uint)(num9 + (num10 + num10));
|
||
num = -1353490123;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||
public unsafe bool SyncToFate(uint fateId)
|
||
{
|
||
IPlayerCharacter playerCharacter = _206F_202A_200F_202E_206C_200E_202B_200E_200E_206E_200F_200D_202D_202B_200C_202D_206F_206D_200B_200E_206F_206F_206F_206E_206C_202C_200D_206C_202B_206E_200C_202A_200E_202E_202D_200D_202B_202C_206C_202A_202E(_objectTable);
|
||
int num = ((playerCharacter != null) ? (-1314333021) : (-1314333022));
|
||
FateManager* ptr = default(FateManager*);
|
||
FateContext* currentFate = default(FateContext*);
|
||
byte maxLevel = default(byte);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1314333023;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 2:
|
||
ptr = FateManager.Instance();
|
||
num = ((ptr == null) ? (-1314333018) : (-1314333024));
|
||
break;
|
||
case 0:
|
||
currentFate = ptr->CurrentFate;
|
||
maxLevel = currentFate->MaxLevel;
|
||
num = ((_206C_206D_200D_206A_206C_202D_206E_202A_200B_206E_200C_200F_200D_200B_202C_206B_206E_202B_200D_206A_200D_202A_202E_206B_206F_200D_206C_206B_200E_202C_202A_200B_206A_206D_202D_206B_202C_206F_206F_200E_202E((ICharacter)playerCharacter) > maxLevel) ? (-1314333019) : (-1314333017));
|
||
break;
|
||
case 7:
|
||
return false;
|
||
case 3:
|
||
_206A_206B_202A_200C_206A_200E_202D_206C_202A_200E_200B_206B_202B_202E_200D_200F_206F_206C_200E_200E_206E_200F_206F_200B_206B_200B_200F_202B_202E_202A_206C_206B_206D_206A_206F_202C_202C_206D_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>(-1286612770), Array.Empty<object>());
|
||
return false;
|
||
case 5:
|
||
num = -1314333022;
|
||
break;
|
||
case 6:
|
||
return true;
|
||
case 1:
|
||
num = ((ptr->CurrentFate != null) ? (-1314333023) : (-1314333018));
|
||
break;
|
||
case 4:
|
||
try
|
||
{
|
||
_200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_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>(1871009359), new object[2]
|
||
{
|
||
currentFate->FateId,
|
||
maxLevel
|
||
});
|
||
ExecuteCommand(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>(19767302));
|
||
return true;
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
_206A_202D_200F_200E_206D_202C_206C_202A_206B_200B_206B_206E_206A_202C_202C_202C_200B_206E_202C_206E_206C_202E_202B_206C_202B_200C_206D_206E_200D_206D_206E_200C_206E_202C_206D_206F_200F_202C_200D_202E_202E((ILogger)_logger, ex, 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>(-440333270), new object[1] { fateId });
|
||
return false;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
public ushort GetCurrentFateId()
|
||
{
|
||
PublicEvent? publicEvent = _200F_202A_206F_206A_200D_206C_206B_206C_200E_206A_206A_206A_200D_202E_206F_200C_202D_202B_202C_206E_206E_200D_202C_200F_202E_206A_200D_206A_206A_200D_206D_202B_206B_202B_200F_206A_202E_206E_202C_202E_202E(_publicEventHelper);
|
||
int num = ((!publicEvent.HasValue) ? (-1016300898) : (-1016300900));
|
||
PublicEvent valueOrDefault = default(PublicEvent);
|
||
while (true)
|
||
{
|
||
int num2 = num;
|
||
int num3 = -1016300899;
|
||
int num4 = num2;
|
||
switch ((num4 | num3) - (num4 & num3))
|
||
{
|
||
case 0:
|
||
num = -1016300900;
|
||
break;
|
||
case 2:
|
||
return (ushort)valueOrDefault.Id;
|
||
case 1:
|
||
valueOrDefault = publicEvent.GetValueOrDefault();
|
||
num = ((valueOrDefault.Type == EPublicEventType.Fate) ? (-1016300897) : (-1016300898));
|
||
break;
|
||
case 3:
|
||
return 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
public bool IsFateStillActive(ushort fateId)
|
||
{
|
||
return _200B_206A_200D_200E_206C_200B_206F_206F_200E_206E_206C_200B_206D_206D_202A_206D_206D_206C_202E_206F_202B_200B_206E_206B_200B_206B_202B_200E_206C_202E_202A_202A_206E_206C_206F_200B_206C_202C_206F_200F_202E(_publicEventHelper, fateId);
|
||
}
|
||
|
||
public uint GetItemLevel(uint itemId)
|
||
{
|
||
return _202D_206D_206F_200E_200E_200C_206F_200B_202C_206B_206B_202E_202B_206C_206D_206C_200F_206C_202D_200E_200E_206C_200E_202A_200C_200F_200F_200C_200F_200F_206E_200B_206B_206F_206A_206E_200D_206B_200F_202B_202E(_gameState, itemId);
|
||
}
|
||
|
||
private static void ExecuteCommand(string command)
|
||
{
|
||
_200C_202E_202E_206B_206B_206A_200E_200C_202C_202A_202D_200D_206E_200E_200E_200B_206D_206A_206E_202A_202A_200F_202C_206A_202C_202C_200E_206A_206E_202C_200F_200E_206B_206B_206E_206D_202E_200D_200B_206E_202E(command);
|
||
}
|
||
|
||
static QuestId _202A_206D_206C_206A_202C_202C_202B_206E_206D_202C_200F_202D_200D_202E_200B_200C_202D_202B_202A_206B_202A_202D_206E_206A_202C_200F_206A_200C_200B_206E_200F_200C_200C_206D_200F_200E_206B_206A_200B_202C_202E(ushort P_0)
|
||
{
|
||
return new QuestId(P_0);
|
||
}
|
||
|
||
static bool _206E_206C_206C_202C_202C_206C_206F_206B_200D_206B_206E_206F_202D_202C_206E_202A_202D_206E_202B_202E_200E_200F_206F_202E_206D_206D_206D_202C_206A_206D_206F_200B_200F_206B_200F_202D_200B_200C_202E_200C_202E(ICondition P_0, ConditionFlag P_1)
|
||
{
|
||
return P_0[P_1];
|
||
}
|
||
|
||
static bool _202B_202C_206D_206E_200C_206D_206C_206E_200E_206F_206F_206C_202A_202B_202E_202D_206B_202C_206F_200C_200F_206A_202B_206E_206D_206C_202A_202B_206C_202A_206B_206E_206A_206E_200F_200C_206E_200E_202C_200C_202E(GameStateHelper P_0, uint P_1)
|
||
{
|
||
return P_0.IsFlyingUnlocked(P_1);
|
||
}
|
||
|
||
static ushort? _200B_200E_206F_202A_202E_200E_200C_206E_206A_206A_206A_206F_200B_206C_202B_200C_206B_202C_200E_200B_202E_206A_202E_202E_202D_206A_202A_200D_206C_206D_206C_200D_200C_206D_206A_200E_206F_206C_202D_206A_202E(GameStateHelper P_0)
|
||
{
|
||
return P_0.GetMountId();
|
||
}
|
||
|
||
static uint _206B_202D_206E_206A_202C_200F_202B_202E_206A_206C_206D_200E_206E_202D_206B_202C_206C_200E_200C_200F_206A_200F_200B_206D_202E_206E_200D_202B_206E_206C_206F_200E_202B_202E_202C_202C_206C_206A_200C_206D_202E(IClientState P_0)
|
||
{
|
||
return P_0.TerritoryType;
|
||
}
|
||
|
||
static bool _202C_206E_206E_200D_206D_202A_200B_202A_200E_200C_206E_206A_202E_200B_202E_202E_200B_206B_202C_202A_202B_206F_202A_206D_206C_200F_202E_200D_202A_200D_206B_206D_206A_200B_206C_206D_206E_206A_206E_206B_202E(uint P_0)
|
||
{
|
||
return PlayerStateHelper.IsAetherCurrentUnlocked(P_0);
|
||
}
|
||
|
||
static IGameObject _200E_200B_206B_202E_202B_200C_206D_206D_200E_200B_200F_206C_206C_202D_202D_200C_200B_200E_206A_200C_202D_206A_206F_200D_200D_200C_206C_206E_202D_202E_200C_200D_202A_206E_202D_200F_200E_206F_206E_200C_202E(IObjectTable P_0, int P_1)
|
||
{
|
||
return P_0[P_1];
|
||
}
|
||
|
||
static Dalamud.Game.ClientState.Objects.Enums.ObjectKind _206D_202C_200F_200B_202C_200B_200B_206C_206C_206E_200F_202B_206F_200E_202B_200C_200B_200D_200F_206E_206D_206B_200F_202E_206C_202C_202C_202C_200E_206F_200F_200E_200B_206C_206D_206B_202D_202D_206A_202D_202E(IGameObject P_0)
|
||
{
|
||
return P_0.ObjectKind;
|
||
}
|
||
|
||
static bool _200F_200C_202B_200D_206D_200F_200F_200F_206A_202E_200F_202A_206B_200F_200B_200D_206C_202C_206A_206E_206A_202C_206F_206B_202E_200F_206D_202D_206D_200D_200C_206A_202D_206F_202D_200D_206D_206D_202C_206A_202E(IGameObject P_0)
|
||
{
|
||
return P_0.IsTargetable;
|
||
}
|
||
|
||
static uint _202A_200F_200B_206E_206D_202B_206E_206B_200C_202D_202B_200E_206A_202D_206F_200F_202C_202E_206C_202B_202E_200E_202E_202C_200D_200C_200D_202C_206F_200F_202C_202E_202B_202E_206B_206F_206B_206E_206F_200D_202E(IGameObject P_0)
|
||
{
|
||
return P_0.BaseId;
|
||
}
|
||
|
||
static int _202D_206E_206D_200C_200E_200F_200D_200C_200C_202B_206F_202B_202C_206F_206B_200C_202C_202C_206A_206D_202C_206C_200D_200C_200F_202D_200E_206D_202B_202B_200F_202B_206F_202E_202E_206E_202A_206A_206C_206F_202E(IObjectTable P_0)
|
||
{
|
||
return P_0.Length;
|
||
}
|
||
|
||
static void _206A_206B_202A_200C_206A_200E_202D_206C_202A_200E_200B_206B_202B_202E_200D_200F_206F_206C_200E_200E_206E_200F_206F_200B_206B_200B_200F_202B_202E_202A_206C_206B_206D_206A_206F_202C_202C_206D_202C_200C_202E(ILogger P_0, string P_1, object[] P_2)
|
||
{
|
||
P_0.LogWarning(P_1, P_2);
|
||
}
|
||
|
||
static void _200B_200D_200E_202D_206C_202D_200D_202D_206F_200F_200C_206A_200F_202E_200D_200B_206F_200D_202C_202D_206E_206A_200C_202D_200E_200E_202B_200C_202D_206D_200E_206F_200E_202B_206C_200E_206C_206F_202D_206F_202E(ILogger P_0, string P_1, object[] P_2)
|
||
{
|
||
P_0.LogDebug(P_1, P_2);
|
||
}
|
||
|
||
static uint _200E_206F_200B_200E_206D_206D_200E_202E_200B_200F_206D_202E_202C_202E_202C_202A_206F_200F_206C_200D_206E_206B_206B_206D_202B_202C_200B_202E_200C_202B_206A_202E_202C_202A_206A_206A_202E_206C_200D_200E_202E(IGameObject P_0)
|
||
{
|
||
return P_0.EntityId;
|
||
}
|
||
|
||
static void _202D_200B_206B_202B_200E_206A_200F_206D_206D_200B_202A_202E_206D_200C_200F_202B_200D_202C_200D_206F_202E_202D_202E_202C_206E_202A_202E_200F_206A_206C_200C_200F_206B_206F_200E_200E_200B_206C_200C_206D_202E(ITargetManager P_0, IGameObject P_1)
|
||
{
|
||
P_0.Target = P_1;
|
||
}
|
||
|
||
static nint _206D_206E_202A_202A_202D_206B_200B_202D_200F_200B_206C_202D_200C_206C_206D_202A_202B_206B_206C_206B_206D_202B_202D_206F_206F_200C_200E_200E_200B_206C_206A_202A_206A_206C_206A_200C_200B_202D_202C_206A_202E(IGameObject P_0)
|
||
{
|
||
return P_0.Address;
|
||
}
|
||
|
||
static Vector3 _202C_202A_200C_206D_200E_200F_206F_206C_202C_202E_200F_200C_200F_202B_200D_202C_206A_200C_200B_206A_206C_206C_206E_202E_206C_202B_206A_200C_206B_202E_202E_200F_200C_202D_200E_202E_206F_200E_200B_202E_202E(IGameObject P_0)
|
||
{
|
||
return P_0.Position;
|
||
}
|
||
|
||
static ulong _202B_200D_202A_206F_202B_202E_206D_206D_202C_206E_202A_206E_200F_200F_202E_206B_202B_200C_200D_200D_206A_202C_206F_200B_202C_200B_202C_206E_202C_206B_200B_206E_206C_202E_202A_200F_200F_206C_202E_206D_202E(IGameObject P_0)
|
||
{
|
||
return P_0.GameObjectId;
|
||
}
|
||
|
||
static bool _200B_200E_206E_206D_206B_206F_202B_202D_202B_206B_206F_200F_200F_202C_202A_202B_200C_202B_206A_202A_206F_200C_206E_202B_200F_200F_202D_202A_202B_206A_206A_200C_200B_202B_202A_200B_202B_206A_200E_200C_202E(GameStateHelper P_0)
|
||
{
|
||
return P_0.HasStatusPreventingMount();
|
||
}
|
||
|
||
static bool _206A_202B_200C_200E_202E_200B_206D_202E_202E_200C_206D_206E_206E_200B_206B_206B_206B_206B_202C_206D_206D_202C_202A_200C_206B_202E_202A_200C_206B_200B_200C_206B_206E_206F_202E_206B_200F_202A_206E_206F_202E(GameStateHelper P_0)
|
||
{
|
||
return P_0.HasStatusPreventingSprint();
|
||
}
|
||
|
||
static IPlayerCharacter _206F_202A_200F_202E_206C_200E_202B_200E_200E_206E_200F_200D_202D_202B_200C_202D_206F_206D_200B_200E_206F_206F_206F_206E_206C_202C_200D_206C_202B_206E_200C_202A_200E_202E_202D_200D_202B_202C_206C_202A_202E(IObjectTable P_0)
|
||
{
|
||
return P_0.LocalPlayer;
|
||
}
|
||
|
||
static bool _202D_200F_200F_200C_206B_206A_206B_206E_206E_206E_202A_202A_206A_200B_202D_206C_200B_200F_202E_206C_202B_200E_200D_200D_202C_206D_206D_206E_200B_202A_206C_206E_206C_202D_200B_206F_206F_200E_202C_200E_202E(GameStateHelper P_0, uint P_1)
|
||
{
|
||
return P_0.Mount(P_1);
|
||
}
|
||
|
||
static bool _206B_200F_206B_206E_202C_202A_200B_200B_206F_202C_200B_200E_202D_200C_206E_202D_206D_200C_200B_206A_206F_200F_206E_200B_206A_206B_202E_202B_202E_200D_202B_200F_202D_202E_206A_206A_200E_200B_200D_206C_202E(GameStateHelper P_0)
|
||
{
|
||
return P_0.Unmount();
|
||
}
|
||
|
||
static void _206B_202A_200C_202E_200E_206B_200B_206A_200B_206D_202E_202C_202D_206C_206C_206A_200F_206B_202C_200D_202D_202B_206D_206F_206C_202D_206E_200E_202B_200E_200D_202B_206A_206E_200D_200D_206D_200B_206B_200D_202E(ILogger P_0, string P_1, object[] P_2)
|
||
{
|
||
P_0.LogError(P_1, P_2);
|
||
}
|
||
|
||
static bool _206D_202C_202B_200C_200C_206C_206D_206B_202D_202C_200C_206D_200F_202C_200B_200B_200D_206E_206A_206A_200F_200E_206D_206E_200B_200E_202D_206D_202C_202E_206F_200D_200E_206F_206D_206B_200D_202E_202D_206B_202E(string P_0, string P_1)
|
||
{
|
||
return P_0 == P_1;
|
||
}
|
||
|
||
static bool _206B_206A_206F_202E_206F_206F_206D_200C_200E_200B_200D_200E_200E_206E_206F_200E_206A_202A_202A_206A_202D_200D_206A_202B_200B_202B_200D_206E_202D_200E_200C_200C_200D_206E_206E_200E_202A_206A_202C_206E_202E(string P_0, char P_1, StringComparison P_2)
|
||
{
|
||
return P_0.Contains(P_1, P_2);
|
||
}
|
||
|
||
static string _200D_200F_206C_200E_206F_200B_206E_206B_206E_206A_206A_200E_202D_202D_206B_206F_200C_206A_202B_202E_200C_202B_202B_206C_200F_200F_202C_206E_202D_206B_206A_206D_206A_202E_200E_206F_206F_200E_200D_202D_202E(Regex P_0, string P_1, string P_2)
|
||
{
|
||
return P_0.Replace(P_1, P_2);
|
||
}
|
||
|
||
static string _206B_200F_200D_200E_202C_200F_200C_202D_200B_206C_202C_206E_206B_200F_200F_200C_206E_202E_206E_200E_206D_200C_206C_202E_202E_202B_206E_202E_206A_200E_202B_206A_206A_200D_200E_202A_206F_200C_202C_200E_202E(string P_0)
|
||
{
|
||
return P_0.ReplaceLineEndings();
|
||
}
|
||
|
||
static string _200B_202D_206D_200B_206E_202A_200D_206B_202E_206A_202A_200D_202D_202D_206A_202C_206E_206E_200B_206F_202C_200B_206C_206F_200F_200D_206A_200D_200D_200D_202B_202A_206D_200F_200F_202C_206C_206F_200C_206A_202E(string P_0, char P_1, char P_2)
|
||
{
|
||
return P_0.Replace(P_1, P_2);
|
||
}
|
||
|
||
static string _200C_206D_202C_202A_202E_202D_206D_206D_202E_202E_206B_206E_206E_200C_200F_202E_202A_202A_206C_206F_206D_200F_206A_206D_206C_200B_202A_200C_202A_202C_206F_206F_200D_200D_206B_206F_206F_202B_202B_206D_202E(string P_0, string P_1, string P_2, StringComparison P_3)
|
||
{
|
||
return P_0.Replace(P_1, P_2, P_3);
|
||
}
|
||
|
||
static string _200F_200E_206B_200D_200C_206E_200F_200E_202A_200D_206A_202D_200F_206F_200B_200C_200E_200B_206C_206B_206D_202E_200E_206A_206B_200E_202D_202A_200D_206B_202B_200C_202A_206E_200E_200C_206F_206E_202D_206A_202E(string P_0)
|
||
{
|
||
return P_0.Trim();
|
||
}
|
||
|
||
static bool _200F_206B_202B_200C_206A_206E_200F_200D_200C_200C_200E_202D_200F_200E_200D_202E_202C_200F_206D_200C_200D_200F_202E_200F_200B_202B_202C_200B_202C_200C_202B_200B_202E_200D_200E_200D_200F_202D_206A_200D_202E(IClientState P_0)
|
||
{
|
||
return P_0.IsLoggedIn;
|
||
}
|
||
|
||
static IGameObject _202E_200B_202C_206E_206F_206E_202E_206A_202B_206E_200E_206C_200D_206E_202B_206F_206E_200B_200B_200D_206B_206C_200D_202A_206B_206E_206D_200C_200F_206F_200E_206C_202E_206F_202E_206C_206A_206B_206A_202E_202E(ITargetManager P_0)
|
||
{
|
||
return P_0.Target;
|
||
}
|
||
|
||
static IReadOnlySet<ConditionFlag> _206D_200F_200C_206F_206B_202A_206E_200D_206F_200E_200D_200D_206C_200E_200D_206D_200D_206B_200E_202D_202A_200E_200D_200F_202D_202C_200F_200C_206B_202E_200E_206A_202D_200B_200F_206B_202C_200E_200F_202C_202E(ICondition P_0)
|
||
{
|
||
return P_0.AsReadOnlySet();
|
||
}
|
||
|
||
static bool _206B_200B_202E_200C_206E_202E_202A_200B_206D_206C_206C_200F_200D_206B_206F_202B_202E_200E_200E_206F_206B_202B_202A_206E_206A_206D_202D_202D_200F_200B_202B_202D_202E_202A_202B_200F_200B_206D_202D_200D_202E(GameStateHelper P_0)
|
||
{
|
||
return P_0.IsLoadingScreenVisible();
|
||
}
|
||
|
||
static int? _202C_200E_202E_206E_206D_206C_206B_202B_200B_202D_206D_206F_200B_200F_202D_206A_206D_202E_200B_202D_200C_206F_200B_202A_200B_206D_200F_200D_202A_206F_202D_206E_202E_200D_206F_200B_206B_206C_202A_206E_202E(GameStateHelper P_0)
|
||
{
|
||
return P_0.GetFreeInventorySlots();
|
||
}
|
||
|
||
static byte _206C_206D_200D_206A_206C_202D_206E_202A_200B_206E_200C_200F_200D_200B_202C_206B_206E_202B_200D_206A_200D_202A_202E_206B_206F_200D_206C_206B_200E_202C_202A_200B_206A_206D_202D_206B_202C_206F_206F_200E_202E(ICharacter P_0)
|
||
{
|
||
return P_0.Level;
|
||
}
|
||
|
||
static void _206A_202D_200F_200E_206D_202C_206C_202A_206B_200B_206B_206E_206A_202C_202C_202C_200B_206E_202C_206E_206C_202E_202B_206C_202B_200C_206D_206E_200D_206D_206E_200C_206E_202C_206D_206F_200F_202C_200D_202E_202E(ILogger P_0, Exception P_1, string P_2, object[] P_3)
|
||
{
|
||
P_0.LogError(P_1, P_2, P_3);
|
||
}
|
||
|
||
static PublicEvent? _200F_202A_206F_206A_200D_206C_206B_206C_200E_206A_206A_206A_200D_202E_206F_200C_202D_202B_202C_206E_206E_200D_202C_200F_202E_206A_200D_206A_206A_200D_206D_202B_206B_202B_200F_206A_202E_206E_202C_202E_202E(PublicEventHelper P_0)
|
||
{
|
||
return P_0.GetCurrentPlayerEvent();
|
||
}
|
||
|
||
static bool _200B_206A_200D_200E_206C_200B_206F_206F_200E_206E_206C_200B_206D_206D_202A_206D_206D_206C_202E_206F_202B_200B_206E_206B_200B_206B_202B_200E_206C_202E_202A_202A_206E_206C_206F_200B_206C_202C_206F_200F_202E(PublicEventHelper P_0, ushort P_1)
|
||
{
|
||
return P_0.IsFateActive(P_1);
|
||
}
|
||
|
||
static uint _202D_206D_206F_200E_200E_200C_206F_200B_202C_206B_206B_202E_202B_206C_206D_206C_200F_206C_202D_200E_200E_206C_200E_202A_200C_200F_200F_200C_200F_200F_206E_200B_206B_206F_206A_206E_200D_206B_200F_202B_202E(GameStateHelper P_0, uint P_1)
|
||
{
|
||
return P_0.GetItemLevel(P_1);
|
||
}
|
||
|
||
static void _200C_202E_202E_206B_206B_206A_200E_200C_202C_202A_202D_200D_206E_200E_200E_200B_206D_206A_206E_202A_202A_200F_202C_206A_202C_202C_200E_206A_206E_202C_200F_200E_206B_206B_206E_206D_202E_200D_200B_206E_202E(string P_0)
|
||
{
|
||
ChatHelper.SendCommand(P_0);
|
||
}
|
||
|
||
static Regex _200E_206C_202E_206E_206B_206A_202D_206B_206B_206B_200D_206F_200E_202A_202A_206F_206A_200F_206B_200D_202D_200B_202A_206D_200C_206C_200C_202A_200D_202A_200D_202A_206B_206D_206A_200B_200C_200D_206F_200F_202E(string P_0, RegexOptions P_1)
|
||
{
|
||
return new Regex(P_0, P_1);
|
||
}
|
||
}
|