forked from aly/qstbak
2650 lines
123 KiB
C#
2650 lines
123 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
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 FFXIVClientStructs.FFXIV.Client.Game;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.Group;
|
|
using LLib.Gear;
|
|
using Lumina.Excel;
|
|
using Lumina.Excel.Sheets;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Controller.CombatModules;
|
|
using Questionable.Controller.Steps.Common;
|
|
using Questionable.Controller.Steps.Shared;
|
|
using Questionable.Controller.Utils;
|
|
using Questionable.Data;
|
|
using Questionable.External;
|
|
using Questionable.Functions;
|
|
using Questionable.Model;
|
|
using Questionable.Model.Questing;
|
|
using Questionable.Notifications;
|
|
|
|
namespace Questionable.Controller.Steps.Interactions;
|
|
|
|
internal static class Duty
|
|
{
|
|
internal sealed class Factory(AutoDutyIpc autoDutyIpc, WrathComboModule wrathComboModule, RotationSolverRebornModule rsrModule, BossModIpc bossModIpc, Configuration configuration, TerritoryData territoryData, GearStatsCalculator gearStatsCalculator, IObjectTable objectTable, ILogger<Factory> logger) : ITaskFactory
|
|
{
|
|
[CompilerGenerated]
|
|
private sealed class _003CCreateAllTasks_003Ed__10 : IEnumerable<ITask>, IEnumerable, IEnumerator<ITask>, IEnumerator, IDisposable
|
|
{
|
|
private int _003C_003E1__state;
|
|
|
|
private ITask _003C_003E2__current;
|
|
|
|
private int _003C_003El__initialThreadId;
|
|
|
|
private QuestStep step;
|
|
|
|
public QuestStep _003C_003E3__step;
|
|
|
|
public Factory _003C_003E4__this;
|
|
|
|
private uint _003CcfcId_003E5__2;
|
|
|
|
private AutoDutyIpc.DutyMode _003CdutyMode_003E5__3;
|
|
|
|
ITask IEnumerator<ITask>.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
object IEnumerator.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
public _003CCreateAllTasks_003Ed__10(int _003C_003E1__state)
|
|
{
|
|
this._003C_003E1__state = _003C_003E1__state;
|
|
_003C_003El__initialThreadId = _200E_200F_206B_206F_200F_202B_206B_202B_206E_200E_202B_202A_202D_206D_202E_206B_200F_206A_202E_200C_202C_206F_200E_202E_202C_202B_202B_202D_200B_200D_200F_200D_206A_206E_202E_206B_206C_206B_202B_206D_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IDisposable.Dispose()
|
|
{
|
|
_003C_003E1__state = -2;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private bool MoveNext()
|
|
{
|
|
int num = _003C_003E1__state;
|
|
Factory factory = _003C_003E4__this;
|
|
int num2;
|
|
EDutyMode effectiveEDutyMode = default(EDutyMode);
|
|
DutyEntry value = default(DutyEntry);
|
|
EDutyMode? registryDutyMode = default(EDutyMode?);
|
|
switch (num)
|
|
{
|
|
default:
|
|
num2 = -1986449047;
|
|
goto IL_004c;
|
|
case 2:
|
|
_003C_003E1__state = -1;
|
|
num2 = -1986449033;
|
|
goto IL_004c;
|
|
case 3:
|
|
goto IL_016b;
|
|
case 1:
|
|
goto IL_01e0;
|
|
case 6:
|
|
goto IL_0233;
|
|
case 5:
|
|
goto IL_0333;
|
|
case 10:
|
|
goto IL_0346;
|
|
case 4:
|
|
goto IL_03d5;
|
|
case 0:
|
|
goto IL_0424;
|
|
case 7:
|
|
break;
|
|
case 8:
|
|
goto IL_050a;
|
|
case 9:
|
|
goto IL_0566;
|
|
IL_004c:
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -1986449046;
|
|
int num5 = num3;
|
|
EDutyMode? obj;
|
|
switch ((num5 | num4) - (num5 & num4))
|
|
{
|
|
case 5:
|
|
goto IL_0104;
|
|
case 27:
|
|
return false;
|
|
case 1:
|
|
goto end_IL_004c;
|
|
case 3:
|
|
return false;
|
|
case 24:
|
|
goto IL_0143;
|
|
case 16:
|
|
goto IL_016b;
|
|
case 23:
|
|
_003C_003E2__current = new StartAutoDutyTask(_003CcfcId_003E5__2, _003CdutyMode_003E5__3);
|
|
_003C_003E1__state = 6;
|
|
return true;
|
|
case 14:
|
|
_003C_003E2__current = new EnableWrathForDutyTask();
|
|
_003C_003E1__state = 2;
|
|
return true;
|
|
case 36:
|
|
goto IL_01b2;
|
|
case 21:
|
|
goto IL_01e0;
|
|
case 13:
|
|
goto IL_01f3;
|
|
case 37:
|
|
num2 = -1986449047;
|
|
break;
|
|
case 7:
|
|
if (effectiveEDutyMode == EDutyMode.UnsyncParty)
|
|
{
|
|
num2 = -1986449077;
|
|
break;
|
|
}
|
|
goto case 26;
|
|
case 19:
|
|
goto IL_0233;
|
|
case 30:
|
|
goto IL_0254;
|
|
case 6:
|
|
goto IL_0294;
|
|
case 35:
|
|
obj = value.DutyMode;
|
|
goto IL_02c2;
|
|
case 34:
|
|
_003C_003E2__current = new WaitAtEnd.WaitNextStepOrSequence();
|
|
_003C_003E1__state = 9;
|
|
return true;
|
|
case 20:
|
|
goto IL_030b;
|
|
case 22:
|
|
goto IL_0333;
|
|
case 15:
|
|
goto IL_0346;
|
|
case 2:
|
|
_003C_003E2__current = new OpenDutyFinderTask(_003CcfcId_003E5__2);
|
|
_003C_003E1__state = 10;
|
|
return true;
|
|
case 33:
|
|
_003C_003E2__current = new WaitForPartyTask();
|
|
_003C_003E1__state = 1;
|
|
return true;
|
|
case 29:
|
|
goto IL_0388;
|
|
case 0:
|
|
goto IL_03b0;
|
|
case 17:
|
|
return false;
|
|
case 31:
|
|
goto IL_03d5;
|
|
case 25:
|
|
goto IL_03e8;
|
|
case 4:
|
|
_003C_003E2__current = new EnableBossModForDutyTask();
|
|
_003C_003E1__state = 4;
|
|
return true;
|
|
case 10:
|
|
goto IL_0424;
|
|
case 26:
|
|
num2 = -1986449038;
|
|
break;
|
|
case 9:
|
|
goto IL_0473;
|
|
case 11:
|
|
goto end_IL_000f;
|
|
case 8:
|
|
obj = null;
|
|
goto IL_02c2;
|
|
case 12:
|
|
goto IL_050a;
|
|
case 28:
|
|
_003C_003E2__current = new EnableBossModPassiveForDutyTask();
|
|
_003C_003E1__state = 5;
|
|
return true;
|
|
case 32:
|
|
_003C_003E2__current = new EnableRsrForDutyTask();
|
|
_003C_003E1__state = 3;
|
|
return true;
|
|
case 18:
|
|
goto IL_0566;
|
|
IL_02c2:
|
|
registryDutyMode = obj;
|
|
num2 = ((!factory.autoDutyIpc.IsConfiguredToRunContent(_206A_200B_200F_202D_202C_202A_202E_202E_206E_206A_206C_202E_202D_202C_206A_206C_206D_206A_202B_206A_202C_206F_202C_202E_206B_206B_206C_206E_200B_206F_200E_206F_202E_200D_200E_206C_206A_206E_200F_202E_202E(step))) ? (-1986449049) : (-1986449036));
|
|
break;
|
|
}
|
|
continue;
|
|
IL_0473:
|
|
_200B_202A_202C_206E_206B_206F_200D_200D_206C_200E_206C_206D_202C_202A_200D_200D_202E_200E_202C_200F_202E_206D_206C_200B_206D_202C_202C_206B_202D_200C_206E_200C_206A_206C_202E_206C_206F_200F_200D_202E((object)_206A_200B_200F_202D_202C_202A_202E_202E_206E_206A_206C_202E_202D_202C_206A_206C_206D_206A_202B_206A_202C_206F_202C_202E_206B_206B_206C_206E_200B_206F_200E_206F_202E_200D_200E_206C_206A_206E_200F_202E_202E(step), global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(190396670));
|
|
_003CcfcId_003E5__2 = _206F_206D_206C_202A_200D_202A_206E_200E_200F_206D_200E_206B_200F_206D_206A_202E_206F_202B_202E_200C_206C_200B_206B_200C_202D_200B_206C_200E_202A_206B_200C_202E_202A_202E_206E_200E_202E_206D_206B_200E_202E(_206A_200B_200F_202D_202C_202A_202E_202E_206E_206A_206C_202E_202D_202C_206A_206C_206D_206A_202B_206A_202C_206F_202C_202E_206B_206B_206C_206E_200B_206F_200E_206F_202E_200D_200E_206C_206A_206E_200F_202E_202E(step));
|
|
DutyRegistry.Duties.TryGetValue(_003CcfcId_003E5__2, out value);
|
|
num2 = (((object)value != null) ? (-1986449079) : (-1986449054));
|
|
continue;
|
|
IL_0254:
|
|
effectiveEDutyMode = factory.GetEffectiveEDutyMode(_003CcfcId_003E5__2, registryDutyMode);
|
|
_003CdutyMode_003E5__3 = ConvertToAutoDutyMode(effectiveEDutyMode);
|
|
num2 = ((_003CdutyMode_003E5__3 != AutoDutyIpc.DutyMode.UnsyncRegular) ? (-1986449040) : (-1986449043));
|
|
continue;
|
|
IL_030b:
|
|
num2 = ((!factory.bossModIpc.IsSupported()) ? (-1986449027) : (-1986449034));
|
|
continue;
|
|
IL_03e8:
|
|
num2 = ((!factory.bossModIpc.IsSupported()) ? (-1986449026) : (-1986449042));
|
|
continue;
|
|
IL_0104:
|
|
num2 = ((!factory.wrathComboModule.IsAvailable()) ? (-1986449044) : (-1986449052));
|
|
continue;
|
|
IL_01b2:
|
|
num2 = ((factory.configuration.General.CombatModule != Configuration.ECombatModule.BossMod) ? (-1986449026) : (-1986449037));
|
|
continue;
|
|
IL_03b0:
|
|
num2 = (value.LowPriority ? (-1986449039) : (-1986449048));
|
|
continue;
|
|
IL_0294:
|
|
num2 = ((!factory.rsrModule.IsAvailable()) ? (-1986449033) : (-1986449078));
|
|
continue;
|
|
IL_01f3:
|
|
num2 = (((object)value == null) ? (-1986449048) : (-1986449046));
|
|
continue;
|
|
IL_0388:
|
|
num2 = (factory.autoDutyIpc.ManagesBossModAiSettings() ? (-1986449027) : (-1986449074));
|
|
continue;
|
|
IL_0143:
|
|
num2 = (factory.autoDutyIpc.ManagesRotationPluginState() ? (-1986449033) : (-1986449041));
|
|
continue;
|
|
end_IL_004c:
|
|
break;
|
|
}
|
|
goto case 2;
|
|
IL_0566:
|
|
_003C_003E1__state = -1;
|
|
num2 = -1986449039;
|
|
goto IL_004c;
|
|
IL_050a:
|
|
_003C_003E1__state = -1;
|
|
num2 = (QuestWorkUtils.HasCompletionFlags(_206A_202D_202D_206B_202B_206C_206D_206E_206A_200D_206B_206F_202C_206C_206A_206D_200B_206D_200B_202D_202A_206E_202D_206D_200C_200D_200C_206D_200F_206C_206B_200D_200C_200C_202A_206C_202C_206A_206E_202A_202E(step)) ? (-1986449039) : (-1986449080));
|
|
goto IL_004c;
|
|
IL_0233:
|
|
_003C_003E1__state = -1;
|
|
_003C_003E2__current = new WaitAutoDutyTask(_003CcfcId_003E5__2);
|
|
_003C_003E1__state = 7;
|
|
return true;
|
|
IL_01e0:
|
|
_003C_003E1__state = -1;
|
|
num2 = -1986449038;
|
|
goto IL_004c;
|
|
IL_0424:
|
|
_003C_003E1__state = -1;
|
|
num2 = ((_202B_200D_200D_200D_202B_200D_202D_200E_202A_206B_206C_206E_206A_200F_200C_206C_200E_200F_200C_206D_200B_206B_206B_206C_202E_200D_200E_202C_200B_202B_206F_202A_200B_206C_206F_206C_206F_206A_206A_202A_202E(step) == EInteractionType.Duty) ? (-1986449053) : (-1986449029));
|
|
goto IL_004c;
|
|
IL_016b:
|
|
_003C_003E1__state = -1;
|
|
num2 = -1986449033;
|
|
goto IL_004c;
|
|
IL_03d5:
|
|
_003C_003E1__state = -1;
|
|
num2 = -1986449027;
|
|
goto IL_004c;
|
|
IL_0346:
|
|
_003C_003E1__state = -1;
|
|
num2 = -1986449039;
|
|
goto IL_004c;
|
|
IL_0333:
|
|
_003C_003E1__state = -1;
|
|
num2 = -1986449027;
|
|
goto IL_004c;
|
|
end_IL_000f:
|
|
break;
|
|
}
|
|
_003C_003E1__state = -1;
|
|
_003C_003E2__current = new DisableCombatPluginsForDutyTask();
|
|
_003C_003E1__state = 8;
|
|
return true;
|
|
}
|
|
|
|
bool IEnumerator.MoveNext()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
|
|
return this.MoveNext();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IEnumerator.Reset()
|
|
{
|
|
throw _200B_202C_202C_200B_200B_206A_200F_202D_200F_206C_206D_206A_202B_200D_206A_202B_202A_200B_206F_202D_200F_202C_202C_202A_206C_200B_206E_200F_202A_200F_202E_202B_200D_206A_206E_200F_202D_202E_202E_200D_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator<ITask> IEnumerable<ITask>.GetEnumerator()
|
|
{
|
|
int num = ((_003C_003E1__state != -2) ? (-408191389) : (-408191391));
|
|
_003CCreateAllTasks_003Ed__10 _003CCreateAllTasks_003Ed__ = default(_003CCreateAllTasks_003Ed__10);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -408191392;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 4:
|
|
_003CCreateAllTasks_003Ed__.step = _003C_003E3__step;
|
|
return _003CCreateAllTasks_003Ed__;
|
|
case 1:
|
|
num = ((_003C_003El__initialThreadId != _200E_200F_206B_206F_200F_202B_206B_202B_206E_200E_202B_202A_202D_206D_202E_206B_200F_206A_202E_200C_202C_206F_200E_202E_202C_202B_202B_202D_200B_200D_200F_200D_206A_206E_202E_206B_206C_206B_202B_206D_202E()) ? (-408191389) : (-408191392));
|
|
break;
|
|
case 2:
|
|
num = -408191391;
|
|
break;
|
|
case 0:
|
|
_003C_003E1__state = 0;
|
|
_003CCreateAllTasks_003Ed__ = this;
|
|
num = -408191388;
|
|
break;
|
|
case 3:
|
|
_003CCreateAllTasks_003Ed__ = new _003CCreateAllTasks_003Ed__10(0)
|
|
{
|
|
_003C_003E4__this = _003C_003E4__this
|
|
};
|
|
num = -408191388;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return ((IEnumerable<ITask>)this).GetEnumerator();
|
|
}
|
|
|
|
static int _200E_200F_206B_206F_200F_202B_206B_202B_206E_200E_202B_202A_202D_206D_202E_206B_200F_206A_202E_200C_202C_206F_200E_202E_202C_202B_202B_202D_200B_200D_200F_200D_206A_206E_202E_206B_206C_206B_202B_206D_202E()
|
|
{
|
|
return Environment.CurrentManagedThreadId;
|
|
}
|
|
|
|
static EInteractionType _202B_200D_200D_200D_202B_200D_202D_200E_202A_206B_206C_206E_206A_200F_200C_206C_200E_200F_200C_206D_200B_206B_206B_206C_202E_200D_200E_202C_200B_202B_206F_202A_200B_206C_206F_206C_206F_206A_206A_202A_202E(QuestStep P_0)
|
|
{
|
|
return P_0.InteractionType;
|
|
}
|
|
|
|
static DutyOptions _206A_200B_200F_202D_202C_202A_202E_202E_206E_206A_206C_202E_202D_202C_206A_206C_206D_206A_202B_206A_202C_206F_202C_202E_206B_206B_206C_206E_200B_206F_200E_206F_202E_200D_200E_206C_206A_206E_200F_202E_202E(QuestStep P_0)
|
|
{
|
|
return P_0.DutyOptions;
|
|
}
|
|
|
|
static void _200B_202A_202C_206E_206B_206F_200D_200D_206C_200E_206C_206D_202C_202A_200D_200D_202E_200E_202C_200F_202E_206D_206C_200B_206D_202C_202C_206B_202D_200C_206E_200C_206A_206C_202E_206C_206F_200F_200D_202E(object P_0, string P_1)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(P_0, P_1);
|
|
}
|
|
|
|
static uint _206F_206D_206C_202A_200D_202A_206E_200E_200F_206D_200E_206B_200F_206D_206A_202E_206F_202B_202E_200C_206C_200B_206B_200C_202D_200B_206C_200E_202A_206B_200C_202E_202A_202E_206E_200E_202E_206D_206B_200E_202E(DutyOptions P_0)
|
|
{
|
|
return P_0.ContentFinderConditionId;
|
|
}
|
|
|
|
static List<QuestWorkValue> _206A_202D_202D_206B_202B_206C_206D_206E_206A_200D_206B_206F_202C_206C_206A_206D_200B_206D_200B_202D_202A_206E_202D_206D_200C_200D_200C_206D_200F_206C_206B_200D_200C_200C_202A_206C_202C_206A_206E_202A_202E(QuestStep P_0)
|
|
{
|
|
return P_0.CompletionQuestVariablesFlags;
|
|
}
|
|
|
|
static NotSupportedException _200B_202C_202C_200B_200B_206A_200F_202D_200F_206C_206D_206A_202B_200D_206A_202B_202A_200B_206F_202D_200F_202C_202C_202A_206C_200B_206E_200F_202A_200F_202E_202B_200D_206A_206E_200F_202D_202E_202E_200D_202E()
|
|
{
|
|
return new NotSupportedException();
|
|
}
|
|
}
|
|
|
|
public IEnumerable<ITask> CreateAllTasks(Questionable.Model.Quest quest, QuestSequence sequence, QuestStep step)
|
|
{
|
|
uint cfcId = default(uint);
|
|
AutoDutyIpc.DutyMode dutyMode = default(AutoDutyIpc.DutyMode);
|
|
DutyEntry value = default(DutyEntry);
|
|
EDutyMode effectiveEDutyMode = default(EDutyMode);
|
|
EDutyMode? registryDutyMode = default(EDutyMode?);
|
|
while (true)
|
|
{
|
|
int num = ((_003CCreateAllTasks_003Ed__10._202B_200D_200D_200D_202B_200D_202D_200E_202A_206B_206C_206E_206A_200F_200C_206C_200E_200F_200C_206D_200B_206B_206B_206C_202E_200D_200E_202C_200B_202B_206F_202A_200B_206C_206F_206C_206F_206A_206A_202A_202E(step) == EInteractionType.Duty) ? (-1986449053) : (-1986449029));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1986449046;
|
|
int num4 = num2;
|
|
int num5;
|
|
EDutyMode? obj;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
default:
|
|
continue;
|
|
case 5:
|
|
num = ((!wrathComboModule.IsAvailable()) ? (-1986449044) : (-1986449052));
|
|
continue;
|
|
case 27:
|
|
yield break;
|
|
case 1:
|
|
num = -1986449033;
|
|
continue;
|
|
case 3:
|
|
yield break;
|
|
case 24:
|
|
num = (autoDutyIpc.ManagesRotationPluginState() ? (-1986449033) : (-1986449041));
|
|
continue;
|
|
case 16:
|
|
num = -1986449033;
|
|
continue;
|
|
case 23:
|
|
yield return new StartAutoDutyTask(cfcId, dutyMode);
|
|
goto case 19;
|
|
case 14:
|
|
yield return new EnableWrathForDutyTask();
|
|
goto case 1;
|
|
case 36:
|
|
num = ((configuration.General.CombatModule != Configuration.ECombatModule.BossMod) ? (-1986449026) : (-1986449037));
|
|
continue;
|
|
case 21:
|
|
num = -1986449038;
|
|
continue;
|
|
case 13:
|
|
num = (((object)value == null) ? (-1986449048) : (-1986449046));
|
|
continue;
|
|
case 37:
|
|
num = -1986449047;
|
|
continue;
|
|
case 7:
|
|
num5 = ((effectiveEDutyMode == EDutyMode.UnsyncParty) ? 1 : 0);
|
|
goto IL_0456;
|
|
case 19:
|
|
yield return new WaitAutoDutyTask(cfcId);
|
|
goto case 11;
|
|
case 30:
|
|
effectiveEDutyMode = GetEffectiveEDutyMode(cfcId, registryDutyMode);
|
|
dutyMode = ConvertToAutoDutyMode(effectiveEDutyMode);
|
|
num = ((dutyMode != AutoDutyIpc.DutyMode.UnsyncRegular) ? (-1986449040) : (-1986449043));
|
|
continue;
|
|
case 6:
|
|
num = ((!rsrModule.IsAvailable()) ? (-1986449033) : (-1986449078));
|
|
continue;
|
|
case 35:
|
|
obj = value.DutyMode;
|
|
goto IL_02c2;
|
|
case 34:
|
|
yield return new WaitAtEnd.WaitNextStepOrSequence();
|
|
goto case 18;
|
|
case 20:
|
|
num = ((!bossModIpc.IsSupported()) ? (-1986449027) : (-1986449034));
|
|
continue;
|
|
case 22:
|
|
num = -1986449027;
|
|
continue;
|
|
case 15:
|
|
num = -1986449039;
|
|
continue;
|
|
case 2:
|
|
yield return new OpenDutyFinderTask(cfcId);
|
|
goto case 15;
|
|
case 33:
|
|
yield return new WaitForPartyTask();
|
|
goto case 21;
|
|
case 29:
|
|
num = (autoDutyIpc.ManagesBossModAiSettings() ? (-1986449027) : (-1986449074));
|
|
continue;
|
|
case 0:
|
|
num = (value.LowPriority ? (-1986449039) : (-1986449048));
|
|
continue;
|
|
case 17:
|
|
yield break;
|
|
case 31:
|
|
num = -1986449027;
|
|
continue;
|
|
case 25:
|
|
num = ((!bossModIpc.IsSupported()) ? (-1986449026) : (-1986449042));
|
|
continue;
|
|
case 4:
|
|
yield return new EnableBossModForDutyTask();
|
|
goto case 31;
|
|
case 10:
|
|
break;
|
|
case 26:
|
|
num5 = 0;
|
|
goto IL_0456;
|
|
case 9:
|
|
_003CCreateAllTasks_003Ed__10._200B_202A_202C_206E_206B_206F_200D_200D_206C_200E_206C_206D_202C_202A_200D_200D_202E_200E_202C_200F_202E_206D_206C_200B_206D_202C_202C_206B_202D_200C_206E_200C_206A_206C_202E_206C_206F_200F_200D_202E((object)_003CCreateAllTasks_003Ed__10._206A_200B_200F_202D_202C_202A_202E_202E_206E_206A_206C_202E_202D_202C_206A_206C_206D_206A_202B_206A_202C_206F_202C_202E_206B_206B_206C_206E_200B_206F_200E_206F_202E_200D_200E_206C_206A_206E_200F_202E_202E(step), global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(190396670));
|
|
cfcId = _003CCreateAllTasks_003Ed__10._206F_206D_206C_202A_200D_202A_206E_200E_200F_206D_200E_206B_200F_206D_206A_202E_206F_202B_202E_200C_206C_200B_206B_200C_202D_200B_206C_200E_202A_206B_200C_202E_202A_202E_206E_200E_202E_206D_206B_200E_202E(_003CCreateAllTasks_003Ed__10._206A_200B_200F_202D_202C_202A_202E_202E_206E_206A_206C_202E_202D_202C_206A_206C_206D_206A_202B_206A_202C_206F_202C_202E_206B_206B_206C_206E_200B_206F_200E_206F_202E_200D_200E_206C_206A_206E_200F_202E_202E(step));
|
|
DutyRegistry.Duties.TryGetValue(cfcId, out value);
|
|
num = (((object)value != null) ? (-1986449079) : (-1986449054));
|
|
continue;
|
|
case 11:
|
|
yield return new DisableCombatPluginsForDutyTask();
|
|
goto case 12;
|
|
case 8:
|
|
obj = null;
|
|
goto IL_02c2;
|
|
case 12:
|
|
num = (QuestWorkUtils.HasCompletionFlags(_003CCreateAllTasks_003Ed__10._206A_202D_202D_206B_202B_206C_206D_206E_206A_200D_206B_206F_202C_206C_206A_206D_200B_206D_200B_202D_202A_206E_202D_206D_200C_200D_200C_206D_200F_206C_206B_200D_200C_200C_202A_206C_202C_206A_206E_202A_202E(step)) ? (-1986449039) : (-1986449080));
|
|
continue;
|
|
case 28:
|
|
yield return new EnableBossModPassiveForDutyTask();
|
|
goto case 22;
|
|
case 32:
|
|
yield return new EnableRsrForDutyTask();
|
|
goto case 16;
|
|
case 18:
|
|
{
|
|
num = -1986449039;
|
|
continue;
|
|
}
|
|
IL_0456:
|
|
num = ((num5 == 0) ? (-1986449038) : (-1986449077));
|
|
continue;
|
|
IL_02c2:
|
|
registryDutyMode = obj;
|
|
num = ((!autoDutyIpc.IsConfiguredToRunContent(_003CCreateAllTasks_003Ed__10._206A_200B_200F_202D_202C_202A_202E_202E_206E_206A_206C_202E_202D_202C_206A_206C_206D_206A_202B_206A_202C_206F_202C_202E_206B_206B_206C_206E_200B_206F_200E_206F_202E_200D_200E_206C_206A_206E_200F_202E_202E(step))) ? (-1986449049) : (-1986449036));
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
IEnumerable<ITask> ITaskFactory.CreateAllTasks(Questionable.Model.Quest quest, QuestSequence sequence, QuestStep step)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in CreateAllTasks
|
|
return this.CreateAllTasks(quest, sequence, step);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private EDutyMode GetEffectiveEDutyMode(uint cfcId, EDutyMode? registryDutyMode)
|
|
{
|
|
int num = ((!registryDutyMode.HasValue) ? (-1266283203) : (-1266283204));
|
|
EDutyMode defaultDutyMode = default(EDutyMode);
|
|
EDutyMode value = default(EDutyMode);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1266283202;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 6:
|
|
defaultDutyMode = configuration.Duties.DefaultDutyMode;
|
|
num = ((defaultDutyMode != EDutyMode.Support) ? (-1266283205) : (-1266283210));
|
|
break;
|
|
case 2:
|
|
return registryDutyMode.Value;
|
|
case 1:
|
|
num = ((!IsSafelyOverleveled(cfcId)) ? (-1266283205) : (-1266283206));
|
|
break;
|
|
case 3:
|
|
num = ((!configuration.Duties.DutyModeOverrides.TryGetValue(cfcId, out value)) ? (-1266283208) : (-1266283207));
|
|
break;
|
|
case 0:
|
|
num = -1266283204;
|
|
break;
|
|
case 8:
|
|
num = ((!configuration.Duties.AutoUnsyncOverleveled) ? (-1266283205) : (-1266283201));
|
|
break;
|
|
case 4:
|
|
_200F_206A_202D_206F_200C_202B_206D_206F_206D_206E_200B_200E_202A_206D_206A_206C_206A_202A_206A_200B_206F_200F_200D_206F_206E_206F_200F_206B_206F_202D_206C_206C_206F_202B_202B_202C_206F_202D_206A_202A_202E((ILogger)logger, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(1793434316), new object[1] { cfcId });
|
|
return EDutyMode.UnsyncSolo;
|
|
case 5:
|
|
return defaultDutyMode;
|
|
case 7:
|
|
return value;
|
|
}
|
|
}
|
|
}
|
|
|
|
private unsafe bool IsSafelyOverleveled(uint cfcId)
|
|
{
|
|
TerritoryData.ContentFinderConditionData contentFinderConditionData;
|
|
int num = (territoryData.TryGetContentFinderCondition(cfcId, out contentFinderConditionData) ? 930630783 : 930630772);
|
|
int num7 = default(int);
|
|
InventoryContainer* inventoryContainer = default(InventoryContainer*);
|
|
InventoryManager* ptr = default(InventoryManager*);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 930630776;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
{
|
|
IPlayerCharacter playerCharacter = _206C_202A_206B_202A_202A_206D_202A_200B_202A_200F_202A_200B_206F_200E_200F_206B_206A_206B_200C_206F_200F_202E_200E_202B_200F_200C_202B_200B_206A_202C_200C_202A_206F_202C_206A_202B_206E_200B_202B_202E(objectTable);
|
|
num7 = ((playerCharacter != null) ? _202A_206D_200D_202C_200D_202B_206F_206D_206C_206C_200D_206C_206A_202C_202D_200C_202C_200E_200B_202E_202C_206E_202D_200D_200E_202D_202A_200F_206B_206C_206A_206E_202E_206C_202B_202B_206D_200E_200F_206F_202E((ICharacter)playerCharacter) : 0) - contentFinderConditionData.ClassJobLevelSync;
|
|
num = ((num7 < 15) ? 930630782 : 930630774);
|
|
break;
|
|
}
|
|
case 7:
|
|
num = ((!contentFinderConditionData.IsDungeon) ? 930630768 : 930630780);
|
|
break;
|
|
case 10:
|
|
num = ((contentFinderConditionData.ClassJobLevelSync != 0) ? 930630777 : 930630768);
|
|
break;
|
|
case 3:
|
|
num = 930630772;
|
|
break;
|
|
case 6:
|
|
num = ((num7 >= 10) ? 930630773 : 930630769);
|
|
break;
|
|
case 14:
|
|
return true;
|
|
case 8:
|
|
return false;
|
|
case 4:
|
|
num = ((!contentFinderConditionData.AllowUndersized) ? 930630768 : 930630770);
|
|
break;
|
|
case 9:
|
|
return false;
|
|
case 11:
|
|
inventoryContainer = ptr->GetInventoryContainer(InventoryType.EquippedItems);
|
|
num = ((inventoryContainer != null) ? 930630781 : 930630776);
|
|
break;
|
|
case 2:
|
|
return false;
|
|
case 12:
|
|
return false;
|
|
case 0:
|
|
return false;
|
|
case 5:
|
|
return _202C_206C_202C_206D_206E_202B_206C_200F_206C_200C_200F_200C_200E_206A_206E_202B_202E_200F_200C_200B_206C_200F_202B_200D_200D_206B_200C_200D_206C_206A_202D_202E_202B_202B_202B_206E_200C_200D_202A_202B_202E(gearStatsCalculator, inventoryContainer) - contentFinderConditionData.RequiredItemLevel >= 100;
|
|
case 13:
|
|
ptr = InventoryManager.Instance();
|
|
num = ((ptr != null) ? 930630771 : 930630778);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
private static AutoDutyIpc.DutyMode ConvertToAutoDutyMode(EDutyMode mode)
|
|
{
|
|
int num;
|
|
AutoDutyIpc.DutyMode result = default(AutoDutyIpc.DutyMode);
|
|
switch (mode)
|
|
{
|
|
default:
|
|
num = 1970716629;
|
|
goto IL_001d;
|
|
case EDutyMode.UnsyncParty:
|
|
result = AutoDutyIpc.DutyMode.UnsyncRegular;
|
|
num = 1970716626;
|
|
goto IL_001d;
|
|
case EDutyMode.UnsyncSolo:
|
|
goto IL_0077;
|
|
case EDutyMode.Support:
|
|
goto IL_0084;
|
|
IL_001d:
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1970716624;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
goto end_IL_001d;
|
|
case 5:
|
|
num = 1970716630;
|
|
break;
|
|
case 0:
|
|
num = 1970716629;
|
|
break;
|
|
case 3:
|
|
goto IL_0077;
|
|
case 4:
|
|
goto IL_0084;
|
|
case 6:
|
|
result = AutoDutyIpc.DutyMode.Support;
|
|
num = 1970716626;
|
|
break;
|
|
case 2:
|
|
return result;
|
|
}
|
|
continue;
|
|
end_IL_001d:
|
|
break;
|
|
}
|
|
goto case EDutyMode.UnsyncParty;
|
|
IL_0084:
|
|
result = AutoDutyIpc.DutyMode.Support;
|
|
num = 1970716626;
|
|
goto IL_001d;
|
|
IL_0077:
|
|
result = AutoDutyIpc.DutyMode.UnsyncRegular;
|
|
num = 1970716626;
|
|
goto IL_001d;
|
|
}
|
|
}
|
|
|
|
static void _200F_206A_202D_206F_200C_202B_206D_206F_206D_206E_200B_200E_202A_206D_206A_206C_206A_202A_206A_200B_206F_200F_200D_206F_206E_206F_200F_206B_206F_202D_206C_206C_206F_202B_202B_202C_206F_202D_206A_202A_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogInformation(P_1, P_2);
|
|
}
|
|
|
|
static IPlayerCharacter _206C_202A_206B_202A_202A_206D_202A_200B_202A_200F_202A_200B_206F_200E_200F_206B_206A_206B_200C_206F_200F_202E_200E_202B_200F_200C_202B_200B_206A_202C_200C_202A_206F_202C_206A_202B_206E_200B_202B_202E(IObjectTable P_0)
|
|
{
|
|
return P_0.LocalPlayer;
|
|
}
|
|
|
|
static byte _202A_206D_200D_202C_200D_202B_206F_206D_206C_206C_200D_206C_206A_202C_202D_200C_202C_200E_200B_202E_202C_206E_202D_200D_200E_202D_202A_200F_206B_206C_206A_206E_202E_206C_202B_202B_206D_200E_200F_206F_202E(ICharacter P_0)
|
|
{
|
|
return P_0.Level;
|
|
}
|
|
|
|
unsafe static short _202C_206C_202C_206D_206E_202B_206C_200F_206C_200C_200F_200C_200E_206A_206E_202B_202E_200F_200C_200B_206C_200F_202B_200D_200D_206B_200C_200D_206C_206A_202D_202E_202B_202B_202B_206E_200C_200D_202A_202B_202E(GearStatsCalculator P_0, InventoryContainer* P_1)
|
|
{
|
|
return P_0.CalculateAverageItemLevel(P_1);
|
|
}
|
|
}
|
|
|
|
internal sealed record WaitForPartyTask : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206A_200B_206B_206F_202A_202C_202B_202E_200D_202B_206B_202B_202D_206B_206D_202B_206E_200E_202E_206B_206F_206A_200D_202A_206C_206C_202B_200D_202A_202E_200E_200C_202A_206F_202D_206E_202E_202A_202C_206A_202E(typeof(WaitForPartyTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-91915822);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(WaitForPartyTask? other)
|
|
{
|
|
int num = (((object)this == other) ? 354214905 : 354214910);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 354214909;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = 354214910;
|
|
break;
|
|
case 4:
|
|
return true;
|
|
case 1:
|
|
return _200B_200B_202B_200C_206D_202C_202A_202C_206C_202B_206E_206E_200C_206B_202E_206F_202A_206D_200B_200B_202E_206B_206E_206D_206D_202A_200F_206C_200E_206E_206A_206F_200D_202C_206E_202B_200E_202C_202B_200D_202E(EqualityContract, other.EqualityContract);
|
|
case 3:
|
|
num = (((object)other == null) ? 354214911 : 354214908);
|
|
break;
|
|
case 2:
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<WaitForPartyTask>.Equals(WaitForPartyTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206A_200B_206B_206F_202A_202C_202B_202E_200D_202B_206B_202B_202D_206B_206D_202B_206E_200E_202E_206B_206F_206A_200D_202A_206C_206C_202B_200D_202A_202E_200E_200C_202A_206F_202D_206E_202E_202A_202C_206A_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _200B_200B_202B_200C_206D_202C_202A_202C_206C_202B_206E_206E_200C_206B_202E_206F_202A_206D_200B_200B_202E_206B_206E_206D_206D_202A_200F_206C_200E_206E_206A_206F_200D_202C_206E_202B_200E_202C_202B_200D_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class WaitForPartyExecutor(IChatGui chatGui, ILogger<WaitForPartyExecutor> logger) : TaskExecutor<WaitForPartyTask>()
|
|
{
|
|
private long _warnNextMs;
|
|
|
|
private long _startMs;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
_206C_206A_202B_202A_202E_202C_202A_202E_206F_202B_206F_202E_202D_202D_200F_200B_200D_200D_202D_202A_200F_202B_202E_206B_202D_200C_206F_200E_200B_202D_202B_206A_200C_206E_206E_200D_202C_202E_202C_206A_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>(-48268655), Array.Empty<object>());
|
|
_startMs = _200D_200F_200E_206A_206F_200C_200B_202D_202B_206F_200F_200C_206F_202E_200B_206A_206D_206F_200F_202D_202E_202E_202D_202E_202C_202E_200F_202A_200E_202D_206A_206C_206E_202A_206B_206A_206B_200E_202B_200C_202E();
|
|
return true;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public unsafe override ETaskResult Update()
|
|
{
|
|
GroupManager* ptr = GroupManager.Instance();
|
|
int num = ((ptr != null) ? (-782293747) : (-782293748));
|
|
long num6 = default(long);
|
|
byte memberCount = default(byte);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -782293752;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 6:
|
|
num = -782293748;
|
|
break;
|
|
case 3:
|
|
num = ((num6 < _warnNextMs) ? (-782293760) : (-782293752));
|
|
break;
|
|
case 7:
|
|
_202D_200E_202B_202E_200B_200F_202D_200E_200D_200C_206F_200C_200E_206C_202C_206D_202B_206B_206C_206D_200C_202B_200D_202A_202D_200D_200D_206B_202C_200D_202C_202A_202A_206D_200E_200F_206D_200F_200E_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>(923058086), Array.Empty<object>());
|
|
_206D_200D_200B_202E_200C_202C_206F_200C_202E_200C_202C_200E_202C_206C_202C_206D_206C_206E_206D_202A_202A_202E_206B_200F_206B_206B_202B_200F_206B_206F_202A_206D_206D_202D_206C_200E_206A_206C_202B_202A_202E(chatGui, 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>(-323748972), 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>(-1179749275), (ushort?)(ushort)576);
|
|
return ETaskResult.End;
|
|
case 5:
|
|
{
|
|
memberCount = ptr->MainGroup.MemberCount;
|
|
bool isAlliance = ptr->MainGroup.IsAlliance;
|
|
bool num12 = memberCount > 1;
|
|
num3 = (isAlliance ? 1 : 0);
|
|
num4 = (num12 ? 1 : 0);
|
|
num = ((num4 + num3 - (num4 & num3) == 0) ? (-782293751) : (-782293750));
|
|
break;
|
|
}
|
|
case 8:
|
|
return ETaskResult.StillRunning;
|
|
case 1:
|
|
{
|
|
num6 = _200D_200F_200E_206A_206F_200C_200B_202D_202B_206F_200F_200C_206F_202E_200B_206A_206D_206F_200F_202D_202E_202E_202D_202E_202C_202E_200F_202A_200E_202D_206A_206C_206E_202A_206B_206A_206B_200E_202B_200C_202E();
|
|
long num11 = num6;
|
|
long num7 = _startMs;
|
|
long num8 = num11;
|
|
num = ((~(~num8 + num7) <= 300000) ? (-782293749) : (-782293745));
|
|
break;
|
|
}
|
|
case 4:
|
|
return ETaskResult.StillRunning;
|
|
case 0:
|
|
{
|
|
_206D_202B_206E_206C_206F_202C_206E_202C_206C_202A_206A_206F_206D_202C_206C_202D_202E_206E_200E_202C_206E_200E_206B_200B_200E_202A_200E_200F_206F_206F_200B_202A_206D_202B_202E_200D_200C_206C_200B_200D_202E(chatGui, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1726719131), 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>(-1179749275), (ushort?)(ushort)576);
|
|
long num5 = num6;
|
|
long num7 = 10000L;
|
|
long num8 = num5;
|
|
long num9 = num8 ^ num7;
|
|
long num10 = num8 & num7;
|
|
_warnNextMs = num9 + (num10 + num10);
|
|
num = -782293760;
|
|
break;
|
|
}
|
|
case 2:
|
|
_206C_206A_202B_202A_202E_202C_202A_202E_206F_202B_206F_202E_202D_202D_200F_200B_200D_200D_202D_202A_200F_202B_202E_206B_202D_200C_206F_200E_200B_202D_202B_206A_200C_206E_206E_200D_202C_202E_202C_206A_202E((ILogger)logger, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-2115626228), new object[1] { memberCount });
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _206C_206A_202B_202A_202E_202C_202A_202E_206F_202B_206F_202E_202D_202D_200F_200B_200D_200D_202D_202A_200F_202B_202E_206B_202D_200C_206F_200E_200B_202D_202B_206A_200C_206E_206E_200D_202C_202E_202C_206A_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static long _200D_200F_200E_206A_206F_200C_200B_202D_202B_206F_200F_200C_206F_202E_200B_206A_206D_206F_200F_202D_202E_202E_202D_202E_202C_202E_200F_202A_200E_202D_206A_206C_206E_202A_206B_206A_206B_200E_202B_200C_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static void _202D_200E_202B_202E_200B_200F_202D_200E_200D_200C_206F_200C_200E_206C_202C_206D_202B_206B_206C_206D_200C_202B_200D_202A_202D_200D_200D_206B_202C_200D_202C_202A_202A_206D_200E_200F_206D_200F_200E_206F_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogError(P_1, P_2);
|
|
}
|
|
|
|
static void _206D_200D_200B_202E_200C_202C_206F_200C_202E_200C_202C_200E_202C_206C_202C_206D_206C_206E_206D_202A_202A_202E_206B_200F_206B_206B_202B_200F_206B_206F_202A_206D_206D_202D_206C_200E_206A_206C_202B_202A_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
|
{
|
|
P_0.PrintError(P_1, P_2, P_3);
|
|
}
|
|
|
|
static void _206D_202B_206E_206C_206F_202C_206E_202C_206C_202A_206A_206F_206D_202C_206C_202D_202E_206E_200E_202C_206E_200E_206B_200B_200E_202A_200E_200F_206F_206F_200B_202A_206D_202B_202E_200D_200C_206C_200B_200D_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
|
{
|
|
P_0.Print(P_1, P_2, P_3);
|
|
}
|
|
}
|
|
|
|
internal sealed record StartAutoDutyTask(uint ContentFinderConditionId, AutoDutyIpc.DutyMode DutyMode) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _200E_206F_200B_200D_200B_206C_202C_202A_200E_202B_206A_200E_206A_202C_200B_200C_206B_206F_206C_200F_200B_200D_202C_202A_200D_202D_200B_206E_206E_200F_206F_206D_200E_202E_202B_200B_202A_200B_202A_200C_202E(typeof(StartAutoDutyTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(17, 2);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(2068222385));
|
|
defaultInterpolatedStringHandler.AppendFormatted(ContentFinderConditionId);
|
|
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>(1087086507));
|
|
defaultInterpolatedStringHandler.AppendFormatted(DutyMode);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(1618480346));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_200E_206E_202E_202E_200F_202A_206B_202C_206C_202E_200F_200C_200B_200C_206A_206B_206D_200D_200C_200C_202B_200C_202E_202E_202C_202D_200C_206A_202A_202D_202E_206D_206C_202E_200B_200B_206B_200E_202A_202E_202E();
|
|
_202C_202B_206F_202E_202A_202C_200B_206C_202D_202D_202D_206D_206E_206C_200B_200B_206F_200B_200D_206F_206D_206B_206A_202B_206D_206A_200E_202B_206A_206A_202E_206D_200F_206A_202A_200D_202E_202B_200C_200F_202E(builder, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-532733746));
|
|
_202C_202B_206F_202E_202A_202C_200B_206C_202D_202D_202D_206D_206E_206C_200B_200B_206F_200B_200D_206F_206D_206B_206A_202B_206D_206A_200E_202B_206A_206A_202E_206D_200F_206A_202A_200D_202E_202B_200C_200F_202E(builder, ContentFinderConditionId.ToString());
|
|
_202C_202B_206F_202E_202A_202C_200B_206C_202D_202D_202D_206D_206E_206C_200B_200B_206F_200B_200D_206F_206D_206B_206A_202B_206D_206A_200E_202B_206A_206A_202E_206D_200F_206A_202A_200D_202E_202B_200C_200F_202E(builder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-1559637926));
|
|
_202C_202B_206F_202E_202A_202C_200B_206C_202D_202D_202D_206D_206E_206C_200B_200B_206F_200B_200D_206F_206D_206B_206A_202B_206D_206A_200E_202B_206A_206A_202E_206D_200F_206A_202A_200D_202E_202B_200C_200F_202E(builder, DutyMode.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(StartAutoDutyTask? other)
|
|
{
|
|
int num = (((object)this == other) ? 1503405605 : 1503405604);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1503405605;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 5:
|
|
num = 1503405604;
|
|
break;
|
|
case 6:
|
|
num = ((!EqualityComparer<uint>.Default.Equals(ContentFinderConditionId, other.ContentFinderConditionId)) ? 1503405601 : 1503405606);
|
|
break;
|
|
case 3:
|
|
return EqualityComparer<AutoDutyIpc.DutyMode>.Default.Equals(DutyMode, other.DutyMode);
|
|
case 1:
|
|
num = (((object)other == null) ? 1503405601 : 1503405607);
|
|
break;
|
|
case 0:
|
|
return true;
|
|
case 4:
|
|
return false;
|
|
case 2:
|
|
num = ((!_206F_200D_206A_206D_200D_206B_206D_202E_202C_202B_206A_202A_202C_206D_200D_206B_202D_200C_202D_202C_202C_200D_206F_206B_206F_202E_200C_200E_206D_200E_206C_206E_206D_202E_202D_202E_206E_200B_202C_202E(EqualityContract, other.EqualityContract)) ? 1503405601 : 1503405603);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<StartAutoDutyTask>.Equals(StartAutoDutyTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _200E_206F_200B_200D_200B_206C_202C_202A_200E_202B_206A_200E_206A_202C_200B_200C_206B_206F_206C_200F_200B_200D_202C_202A_200D_202D_200B_206E_206E_200F_206F_206D_200E_202E_202B_200B_202A_200B_202A_200C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _200E_206E_202E_202E_200F_202A_206B_202C_206C_202E_200F_200C_200B_200C_206A_206B_206D_200D_200C_200C_202B_200C_202E_202E_202C_202D_200C_206A_202A_202D_202E_206D_206C_202E_200B_200B_206B_200E_202A_202E_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _202C_202B_206F_202E_202A_202C_200B_206C_202D_202D_202D_206D_206E_206C_200B_200B_206F_200B_200D_206F_206D_206B_206A_202B_206D_206A_200E_202B_206A_206A_202E_206D_200F_206A_202A_200D_202E_202B_200C_200F_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _206F_200D_206A_206D_200D_206B_206D_202E_202C_202B_206A_202A_202C_206D_200D_206B_202D_200C_202D_202C_202C_200D_206F_206B_206F_202E_200C_200E_206D_200E_206C_206E_206D_202E_202D_202E_206E_200B_202C_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class StartAutoDutyExecutor(GearStatsCalculator gearStatsCalculator, AutoDutyIpc autoDutyIpc, TerritoryData territoryData, IClientState clientState, IChatGui chatGui, ILogger<StartAutoDutyExecutor> logger, SendNotification.Executor sendNotificationExecutor) : TaskExecutor<StartAutoDutyTask>(), IStoppableTaskExecutor, ITaskExecutor
|
|
{
|
|
private long _startMs;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected unsafe override bool Start()
|
|
{
|
|
TerritoryData.ContentFinderConditionData contentFinderConditionData;
|
|
int num = (territoryData.TryGetContentFinderCondition(base.Task.ContentFinderConditionId, out contentFinderConditionData) ? (-980640286) : (-980640288));
|
|
InventoryContainer* inventoryContainer = default(InventoryContainer*);
|
|
short num7 = default(short);
|
|
string text = default(string);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -980640281;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = -980640288;
|
|
break;
|
|
case 2:
|
|
{
|
|
InventoryManager* intPtr = InventoryManager.Instance();
|
|
if (intPtr == null)
|
|
{
|
|
throw new TaskException(global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-1365738455));
|
|
}
|
|
inventoryContainer = intPtr->GetInventoryContainer(InventoryType.EquippedItems);
|
|
num = ((inventoryContainer != null) ? (-980640274) : (-980640284));
|
|
break;
|
|
}
|
|
case 1:
|
|
return false;
|
|
case 4:
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(82, 3);
|
|
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>(379247300));
|
|
defaultInterpolatedStringHandler.AppendFormatted(contentFinderConditionData.Name);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-314153188));
|
|
defaultInterpolatedStringHandler.AppendFormatted(contentFinderConditionData.RequiredItemLevel);
|
|
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>(-205350481));
|
|
defaultInterpolatedStringHandler.AppendFormatted(num7);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-978038014));
|
|
text = defaultInterpolatedStringHandler.ToStringAndClear();
|
|
num = (sendNotificationExecutor.Start(new SendNotification.Task(EInteractionType.Duty, text)) ? (-980640282) : (-980640287));
|
|
break;
|
|
}
|
|
case 8:
|
|
autoDutyIpc.StartInstance(base.Task.ContentFinderConditionId, base.Task.DutyMode);
|
|
_startMs = _206C_202E_206F_200F_206B_200E_206E_200C_206A_206E_202B_206D_202D_202D_200E_202A_206E_200F_200D_202A_206F_202B_200C_202B_206B_206F_206E_200E_200E_202A_200B_206B_202D_206A_206E_200D_200B_200B_206F_202A_202E();
|
|
return true;
|
|
case 9:
|
|
num7 = _200F_202A_202B_206D_206A_206D_206C_200C_200F_202E_202B_200E_200E_206C_206F_200C_202D_200B_200D_206F_206C_202D_202E_206E_200F_200B_206A_206A_202A_206E_200D_200D_206D_200F_200E_200D_202B_202B_206F_206B_202E(gearStatsCalculator, inventoryContainer);
|
|
num = ((contentFinderConditionData.RequiredItemLevel <= num7) ? (-980640273) : (-980640285));
|
|
break;
|
|
case 7:
|
|
throw new TaskException(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>(-474694589));
|
|
case 6:
|
|
_206A_206D_200B_206F_206D_200E_202A_200C_202C_202E_202A_206D_200D_206E_202D_206D_202D_202B_200F_202A_206D_200C_202A_200E_206D_202A_200E_200E_202D_202B_206A_200C_202C_200C_200B_202A_202E_206F_206F_202A_202E(chatGui, text, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(85756196), (ushort?)(ushort)576);
|
|
num = -980640282;
|
|
break;
|
|
case 5:
|
|
num = ((base.Task.DutyMode == AutoDutyIpc.DutyMode.UnsyncRegular) ? (-980640273) : (-980640283));
|
|
break;
|
|
case 3:
|
|
throw new TaskException(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1709557218));
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
TerritoryData.ContentFinderConditionData contentFinderConditionData;
|
|
int num = (territoryData.TryGetContentFinderCondition(base.Task.ContentFinderConditionId, out contentFinderConditionData) ? (-2114723665) : (-2114723668));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -2114723665;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 8:
|
|
num = ((_206C_202E_206F_200F_206B_200E_206E_200C_206A_206E_202B_206D_202D_202D_200E_202A_206E_200F_200D_202A_206F_202B_200C_202B_206B_206F_206E_200E_200E_202A_200B_206B_202D_206A_206E_200D_200B_200B_206F_202A_202E() - _startMs >= 10000) ? (-2114723669) : (-2114723667));
|
|
break;
|
|
case 1:
|
|
return ETaskResult.TaskComplete;
|
|
case 3:
|
|
throw new TaskException(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>(502048434));
|
|
case 7:
|
|
return ETaskResult.StillRunning;
|
|
case 6:
|
|
num = -2114723668;
|
|
break;
|
|
case 0:
|
|
num = ((_202B_202E_200B_200D_202E_206F_202E_200F_200B_206F_206B_202A_206C_202B_200B_206C_202E_206B_206B_200D_202D_202E_206F_206A_206F_200F_206F_202B_206A_202C_206B_200C_206B_202A_200F_202C_200C_206F_206D_200D_202E(clientState) != contentFinderConditionData.TerritoryId) ? (-2114723670) : (-2114723666));
|
|
break;
|
|
case 2:
|
|
return ETaskResult.StillRunning;
|
|
case 5:
|
|
num = (autoDutyIpc.IsStopped() ? (-2114723673) : (-2114723672));
|
|
break;
|
|
case 4:
|
|
_206D_206E_202E_202B_202E_206D_200E_200D_206E_200B_200C_200E_206F_206F_202E_206B_206C_202A_206A_202B_206E_206E_202D_202D_202E_206A_200E_202C_200E_200E_206D_202E_206C_202D_206E_202C_206B_200F_206F_202B_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>(1754806661), new object[1] { base.Task.ContentFinderConditionId });
|
|
_206A_206D_200B_206F_206D_200E_202A_200C_202C_202E_202A_206D_200D_206E_202D_206D_202D_202B_200F_202A_206D_200C_202A_200E_206D_202A_200E_200E_202D_202B_206A_200C_202C_200C_200B_202A_202E_206F_206F_202A_202E(chatGui, 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>(170724657), 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>(-1179749275), (ushort?)(ushort)576);
|
|
return ETaskResult.End;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void StopNow()
|
|
{
|
|
autoDutyIpc.Stop();
|
|
}
|
|
|
|
void IStoppableTaskExecutor.StopNow()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
|
this.StopNow();
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
unsafe static short _200F_202A_202B_206D_206A_206D_206C_200C_200F_202E_202B_200E_200E_206C_206F_200C_202D_200B_200D_206F_206C_202D_202E_206E_200F_200B_206A_206A_202A_206E_200D_200D_206D_200F_200E_200D_202B_202B_206F_206B_202E(GearStatsCalculator P_0, InventoryContainer* P_1)
|
|
{
|
|
return P_0.CalculateAverageItemLevel(P_1);
|
|
}
|
|
|
|
static void _206A_206D_200B_206F_206D_200E_202A_200C_202C_202E_202A_206D_200D_206E_202D_206D_202D_202B_200F_202A_206D_200C_202A_200E_206D_202A_200E_200E_202D_202B_206A_200C_202C_200C_200B_202A_202E_206F_206F_202A_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
|
{
|
|
P_0.PrintError(P_1, P_2, P_3);
|
|
}
|
|
|
|
static long _206C_202E_206F_200F_206B_200E_206E_200C_206A_206E_202B_206D_202D_202D_200E_202A_206E_200F_200D_202A_206F_202B_200C_202B_206B_206F_206E_200E_200E_202A_200B_206B_202D_206A_206E_200D_200B_200B_206F_202A_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static uint _202B_202E_200B_200D_202E_206F_202E_200F_200B_206F_206B_202A_206C_202B_200B_206C_202E_206B_206B_200D_202D_202E_206F_206A_206F_200F_206F_202B_206A_202C_206B_200C_206B_202A_200F_202C_200C_206F_206D_200D_202E(IClientState P_0)
|
|
{
|
|
return P_0.TerritoryType;
|
|
}
|
|
|
|
static void _206D_206E_202E_202B_202E_206D_200E_200D_206E_200B_200C_200E_206F_206F_202E_206B_206C_202A_206A_202B_206E_206E_202D_202D_202E_206A_200E_202C_200E_200E_206D_202E_206C_202D_206E_202C_206B_200F_206F_202B_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogError(P_1, P_2);
|
|
}
|
|
}
|
|
|
|
internal sealed record WaitAutoDutyTask(uint ContentFinderConditionId) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202E_202C_206C_206B_206C_206F_206D_202B_206F_206F_202E_202A_200F_206E_202D_206B_202C_200C_206F_206A_200B_206E_200B_206F_202A_200D_200E_206C_206B_200F_202C_200E_202A_200B_200C_200C_206A_206B_202C_202B_202E(typeof(WaitAutoDutyTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(30, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(-2064501432));
|
|
defaultInterpolatedStringHandler.AppendFormatted(ContentFinderConditionId);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(1618480346));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_200C_202D_206B_206E_206D_206C_202C_206A_202C_206A_206F_202A_200F_206C_202D_202E_200C_206E_206A_206A_202A_202C_200B_206E_200E_200F_200F_200D_200C_206E_206A_202C_206C_202D_200D_206E_202A_202A_206D_202D_202E();
|
|
_200E_200B_206F_202C_206C_206C_202D_202D_202D_200F_206F_206E_206A_202A_200F_206B_202B_200B_200F_202B_200F_206A_200E_202B_206D_206F_202B_202E_206B_200F_206F_206E_202E_202A_200E_202D_206C_206F_202B_200F_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>(-374667389));
|
|
_200E_200B_206F_202C_206C_206C_202D_202D_202D_200F_206F_206E_206A_202A_200F_206B_202B_200B_200F_202B_200F_206A_200E_202B_206D_206F_202B_202E_206B_200F_206F_206E_202E_202A_200E_202D_206C_206F_202B_200F_202E(builder, ContentFinderConditionId.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(WaitAutoDutyTask? other)
|
|
{
|
|
int num = (((object)this == other) ? 1302345077 : 1302345076);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1302345078;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 1:
|
|
return false;
|
|
case 2:
|
|
num = (((object)other == null) ? 1302345079 : 1302345074);
|
|
break;
|
|
case 5:
|
|
return EqualityComparer<uint>.Default.Equals(ContentFinderConditionId, other.ContentFinderConditionId);
|
|
case 3:
|
|
return true;
|
|
case 0:
|
|
num = 1302345076;
|
|
break;
|
|
case 4:
|
|
num = ((!_200E_206C_202B_202C_200B_206A_200E_202C_200D_200D_202A_206B_206D_200E_206A_202B_206D_200B_202E_200F_200C_200E_202C_202B_200F_200E_206E_202D_206D_200F_200C_202C_206B_206E_200F_202A_202C_206B_206C_202A_202E(EqualityContract, other.EqualityContract)) ? 1302345079 : 1302345075);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<WaitAutoDutyTask>.Equals(WaitAutoDutyTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202E_202C_206C_206B_206C_206F_206D_202B_206F_206F_202E_202A_200F_206E_202D_206B_202C_200C_206F_206A_200B_206E_200B_206F_202A_200D_200E_206C_206B_200F_202C_200E_202A_200B_200C_200C_206A_206B_202C_202B_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _200C_202D_206B_206E_206D_206C_202C_206A_202C_206A_206F_202A_200F_206C_202D_202E_200C_206E_206A_206A_202A_202C_200B_206E_200E_200F_200F_200D_200C_206E_206A_202C_206C_202D_200D_206E_202A_202A_206D_202D_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _200E_200B_206F_202C_206C_206C_202D_202D_202D_200F_206F_206E_206A_202A_200F_206B_202B_200B_200F_202B_200F_206A_200E_202B_206D_206F_202B_202E_206B_200F_206F_206E_202E_202A_200E_202D_206C_206F_202B_200F_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _200E_206C_202B_202C_200B_206A_200E_202C_200D_200D_202A_206B_206D_200E_206A_202B_206D_200B_202E_200F_200C_200E_202C_202B_200F_200E_206E_202D_206D_200F_200C_202C_206B_206E_200F_202A_202C_206B_206C_202A_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class WaitAutoDutyExecutor(AutoDutyIpc autoDutyIpc, TerritoryData territoryData, IClientState clientState, IChatGui chatGui, ILogger<WaitAutoDutyExecutor> logger, NotificationService notificationService) : TaskExecutor<WaitAutoDutyTask>(), IStoppableTaskExecutor, ITaskExecutor
|
|
{
|
|
private long _stoppedInsideMs = -1L;
|
|
|
|
protected override bool Start()
|
|
{
|
|
_stoppedInsideMs = -1L;
|
|
return true;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
TerritoryData.ContentFinderConditionData contentFinderConditionData;
|
|
int num = (territoryData.TryGetContentFinderCondition(base.Task.ContentFinderConditionId, out contentFinderConditionData) ? 587590587 : 587590588);
|
|
long num6 = default(long);
|
|
bool flag = default(bool);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 587590583;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 5:
|
|
_stoppedInsideMs = num6;
|
|
num = 587590590;
|
|
break;
|
|
case 6:
|
|
num = ((!autoDutyIpc.IsStopped()) ? 587590589 : 587590582);
|
|
break;
|
|
case 4:
|
|
return ETaskResult.StillRunning;
|
|
case 11:
|
|
throw new TaskException(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>(-474694589));
|
|
case 12:
|
|
flag = _202A_206A_202A_206E_200F_202E_202B_206B_202A_206A_206B_206A_206E_206C_206F_206A_202C_206E_200F_202D_206A_206A_202A_200D_202D_200C_202B_206F_200B_206B_200B_202E_200C_200B_200B_206A_200F_202E_206A_202D_202E(clientState) != contentFinderConditionData.TerritoryId;
|
|
num = ((!flag) ? 587590589 : 587590577);
|
|
break;
|
|
case 9:
|
|
{
|
|
long num5 = num6;
|
|
long stoppedInsideMs = _stoppedInsideMs;
|
|
long num7 = num5;
|
|
num = ((~(~num7 + stoppedInsideMs) <= 60000) ? 587590579 : 587590583);
|
|
break;
|
|
}
|
|
case 1:
|
|
notificationService.Notify(EInteractionType.Duty, _202E_206A_200E_202E_202D_200D_200C_206E_206B_202C_200E_202B_206D_202D_206A_202E_202C_206D_200E_206C_200E_202D_206F_202B_202C_206E_200C_200E_200B_202D_200B_206D_202A_202E_200C_200C_200F_206F_200C_206C_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>(-310659385), contentFinderConditionData.Name));
|
|
return ETaskResult.TaskComplete;
|
|
case 10:
|
|
num = (flag ? 587590580 : 587590576);
|
|
break;
|
|
case 2:
|
|
num6 = _200F_206C_200D_200E_200B_200C_206D_202D_206B_206A_206C_200C_200F_206F_206F_202E_200B_200E_206B_202D_200C_206C_202A_202C_206A_202D_206B_200D_200D_200D_202B_206E_206E_202D_200B_206C_206C_202E_202C_202E();
|
|
num = ((_stoppedInsideMs >= 0) ? 587590590 : 587590578);
|
|
break;
|
|
case 7:
|
|
num = ((!autoDutyIpc.IsStopped()) ? 587590580 : 587590581);
|
|
break;
|
|
case 0:
|
|
_206E_206F_202A_202E_206A_202A_200C_202B_202C_206F_206F_200C_202B_202E_202A_200D_200C_202A_206C_200D_200E_200C_202D_206E_202C_200E_200D_200B_202E_202D_200D_202A_200B_200C_200B_206A_206C_202D_202B_206B_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>(2033898559), new object[1] { base.Task.ContentFinderConditionId });
|
|
_200B_200F_200F_202B_202A_206E_206E_202B_202C_202D_206C_202A_202A_206D_206E_202E_206B_200F_206C_200C_200E_202B_200E_200D_202C_200E_202C_200D_200C_206C_206A_206C_206B_206F_200E_200C_200C_200C_202B_202E_202E(chatGui, 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>(623741352), global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1481660241), (ushort?)(ushort)576);
|
|
return ETaskResult.End;
|
|
case 3:
|
|
_stoppedInsideMs = -1L;
|
|
num = 587590579;
|
|
break;
|
|
case 8:
|
|
num = 587590588;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void StopNow()
|
|
{
|
|
autoDutyIpc.Stop();
|
|
}
|
|
|
|
void IStoppableTaskExecutor.StopNow()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
|
this.StopNow();
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static uint _202A_206A_202A_206E_200F_202E_202B_206B_202A_206A_206B_206A_206E_206C_206F_206A_202C_206E_200F_202D_206A_206A_202A_200D_202D_200C_202B_206F_200B_206B_200B_202E_200C_200B_200B_206A_200F_202E_206A_202D_202E(IClientState P_0)
|
|
{
|
|
return P_0.TerritoryType;
|
|
}
|
|
|
|
static string _202E_206A_200E_202E_202D_200D_200C_206E_206B_202C_200E_202B_206D_202D_206A_202E_202C_206D_200E_206C_200E_202D_206F_202B_202C_206E_200C_200E_200B_202D_200B_206D_202A_202E_200C_200C_200F_206F_200C_206C_202E(string P_0, string P_1)
|
|
{
|
|
return P_0 + P_1;
|
|
}
|
|
|
|
static long _200F_206C_200D_200E_200B_200C_206D_202D_206B_206A_206C_200C_200F_206F_206F_202E_200B_200E_206B_202D_200C_206C_202A_202C_206A_202D_206B_200D_200D_200D_202B_206E_206E_202D_200B_206C_206C_202E_202C_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static void _206E_206F_202A_202E_206A_202A_200C_202B_202C_206F_206F_200C_202B_202E_202A_200D_200C_202A_206C_200D_200E_200C_202D_206E_202C_200E_200D_200B_202E_202D_200D_202A_200B_200C_200B_206A_206C_202D_202B_206B_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogError(P_1, P_2);
|
|
}
|
|
|
|
static void _200B_200F_200F_202B_202A_206E_206E_202B_202C_202D_206C_202A_202A_206D_206E_202E_206B_200F_206C_200C_200E_202B_200E_200D_202C_200E_202C_200D_200C_206C_206A_206C_206B_206F_200E_200C_200C_200C_202B_202E_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
|
{
|
|
P_0.PrintError(P_1, P_2, P_3);
|
|
}
|
|
}
|
|
|
|
internal sealed record OpenDutyFinderTask(uint ContentFinderConditionId) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206F_206F_202D_206E_206C_206E_206B_206C_206B_202A_202E_202E_206F_206D_206D_202E_202C_202C_206E_206B_202A_202C_200E_200E_202C_202B_202C_206E_202B_206E_202A_206C_206B_202B_200D_202E_206E_206E_206E_206F_202E(typeof(OpenDutyFinderTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(16, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(806915853));
|
|
defaultInterpolatedStringHandler.AppendFormatted(ContentFinderConditionId);
|
|
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)
|
|
{
|
|
_202C_206E_206C_206E_206E_206B_206E_206C_206B_202C_202D_206C_206D_202B_206C_206E_202C_200E_202B_202A_202E_206E_200C_206A_200C_206A_200C_206F_206C_202B_200F_202D_206F_202D_202E_200F_202A_206B_206B_202E_202E();
|
|
_200E_206F_206C_200B_200B_200C_202E_202C_200F_202D_206A_202C_202B_206F_202C_206E_200B_202B_200E_202A_202C_202C_202C_206F_206A_200C_206E_200C_202A_206F_202D_206E_206D_200D_202E_200D_200E_202B_200B_206D_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>(-532733746));
|
|
_200E_206F_206C_200B_200B_200C_202E_202C_200F_202D_206A_202C_202B_206F_202C_206E_200B_202B_200E_202A_202C_202C_202C_206F_206A_200C_206E_200C_202A_206F_202D_206E_206D_200D_202E_200D_200E_202B_200B_206D_202E(builder, ContentFinderConditionId.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(OpenDutyFinderTask? other)
|
|
{
|
|
int num = (((object)this == other) ? (-235260412) : (-235260415));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -235260416;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 4:
|
|
return true;
|
|
case 2:
|
|
return EqualityComparer<uint>.Default.Equals(ContentFinderConditionId, other.ContentFinderConditionId);
|
|
case 1:
|
|
num = (((object)other == null) ? (-235260413) : (-235260411));
|
|
break;
|
|
case 3:
|
|
return false;
|
|
case 5:
|
|
num = ((!_200B_200F_202A_206B_206B_206D_202C_202B_200D_200C_202B_200E_206D_200C_202E_202B_202E_200C_202E_206A_200D_206C_206D_202B_200E_206D_200D_202E_200F_206A_206A_202C_206E_202D_200E_206C_206F_206B_202A_202E(EqualityContract, other.EqualityContract)) ? (-235260413) : (-235260414));
|
|
break;
|
|
case 0:
|
|
num = -235260415;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<OpenDutyFinderTask>.Equals(OpenDutyFinderTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206F_206F_202D_206E_206C_206E_206B_206C_206B_202A_202E_202E_206F_206D_206D_202E_202C_202C_206E_206B_202A_202C_200E_200E_202C_202B_202C_206E_202B_206E_202A_206C_206B_202B_200D_202E_206E_206E_206E_206F_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _202C_206E_206C_206E_206E_206B_206E_206C_206B_202C_202D_206C_206D_202B_206C_206E_202C_200E_202B_202A_202E_206E_200C_206A_200C_206A_200C_206F_206C_202B_200F_202D_206F_202D_202E_200F_202A_206B_206B_202E_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _200E_206F_206C_200B_200B_200C_202E_202C_200F_202D_206A_202C_202B_206F_202C_206E_200B_202B_200E_202A_202C_202C_202C_206F_206A_200C_206E_200C_202A_206F_202D_206E_206D_200D_202E_200D_200E_202B_200B_206D_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _200B_200F_202A_206B_206B_206D_202C_202B_200D_200C_202B_200E_206D_200C_202E_202B_202E_200C_202E_206A_200D_206C_206D_202B_200E_206D_200D_202E_200F_206A_206A_202C_206E_202D_200E_206C_206F_206B_202A_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class OpenDutyFinderExecutor(GameFunctions gameFunctions, ICondition condition) : TaskExecutor<OpenDutyFinderTask>()
|
|
{
|
|
protected override bool Start()
|
|
{
|
|
int num = ((!_206E_202C_206F_202D_206E_206B_202A_206D_202D_200E_202E_206A_200B_200B_200C_200C_206F_206A_200F_200C_202E_200F_206A_200B_206B_202E_206D_206C_202D_202E_206A_206A_206A_200F_202A_206E_202C_206D_202B_206E_202E(condition, ConditionFlag.InDutyQueue)) ? 28080166 : 28080167);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 28080166;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
goto IL_004d;
|
|
case 1:
|
|
return false;
|
|
case 0:
|
|
gameFunctions.OpenDutyFinder(base.Task.ContentFinderConditionId);
|
|
return true;
|
|
}
|
|
continue;
|
|
IL_004d:
|
|
num = 28080167;
|
|
}
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static bool _206E_202C_206F_202D_206E_206B_202A_206D_202D_200E_202E_206A_200B_200B_200C_200C_206F_206A_200F_200C_202E_200F_206A_200B_206B_202E_206D_206C_202D_202E_206A_206A_206A_200F_202A_206E_202C_206D_202B_206E_202E(ICondition P_0, ConditionFlag P_1)
|
|
{
|
|
return P_0[P_1];
|
|
}
|
|
}
|
|
|
|
internal sealed record EnableBossModForDutyTask : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206E_200F_206D_206B_206D_200D_200C_200E_206F_200E_202B_202A_206F_206C_200F_200D_202D_200F_200E_202A_206D_202A_206B_206F_200E_200F_206D_202D_200D_202E_206C_206E_206E_206F_202A_200C_200E_200F_206E_206D_202E(typeof(EnableBossModForDutyTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return 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>(1257245001);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(EnableBossModForDutyTask? other)
|
|
{
|
|
int num = (((object)this == other) ? 1984746115 : 1984746114);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1984746112;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 4:
|
|
num = 1984746114;
|
|
break;
|
|
case 1:
|
|
return _200C_206F_206B_206A_202D_200D_200E_200D_202C_202B_200D_200E_206C_206F_206D_202E_200F_202E_202D_206C_200E_200D_200C_202D_202E_202D_200C_206D_202C_206A_202D_202A_206E_200D_206C_206E_202C_206D_206E_206B_202E(EqualityContract, other.EqualityContract);
|
|
case 3:
|
|
return true;
|
|
case 0:
|
|
return false;
|
|
case 2:
|
|
num = (((object)other == null) ? 1984746112 : 1984746113);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<EnableBossModForDutyTask>.Equals(EnableBossModForDutyTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206E_200F_206D_206B_206D_200D_200C_200E_206F_200E_202B_202A_206F_206C_200F_200D_202D_200F_200E_202A_206D_202A_206B_206F_200E_200F_206D_202D_200D_202E_206C_206E_206E_206F_202A_200C_200E_200F_206E_206D_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _200C_206F_206B_206A_202D_200D_200E_200D_202C_202B_200D_200E_206C_206F_206D_202E_200F_202E_202D_206C_200E_200D_200C_202D_202E_202D_200C_206D_202C_206A_202D_202A_206E_200D_206C_206E_202C_206D_206E_206B_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class EnableBossModForDutyExecutor(BossModIpc bossModIpc, IObjectTable objectTable, ILogger<EnableBossModForDutyExecutor> logger) : TaskExecutor<EnableBossModForDutyTask>()
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
bossModIpc.EnableAi(BossModIpc.EPreset.Active);
|
|
IPlayerCharacter playerCharacter = _202E_202D_206C_200B_202C_200E_200E_200D_206B_206E_202A_202D_202C_202C_202D_206B_206C_206A_202C_202A_202E_202E_206B_200F_206D_200E_206A_202E_206A_202E_206D_206D_202E_206A_206A_206A_202B_202D_202C_200E_202E(objectTable);
|
|
int num = ((playerCharacter == null) ? 1728643060 : 1728643063);
|
|
bool flag = default(bool);
|
|
byte? b = default(byte?);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1728643060;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 1:
|
|
flag = true;
|
|
num = 1728643062;
|
|
break;
|
|
case 3:
|
|
b = _206F_200C_200D_206B_200B_206A_206C_206A_202E_202E_202A_206F_200C_200D_206B_200B_206C_200F_202B_202E_206F_202B_206D_206E_202E_202A_200F_202B_202A_206D_206A_200F_206E_200D_202B_200F_202A_200F_206C_202A_202E((ICharacter)playerCharacter).ValueNullable?.Role;
|
|
num = ((!b.HasValue) ? 1728643058 : 1728643057);
|
|
break;
|
|
case 5:
|
|
{
|
|
byte valueOrDefault = b.GetValueOrDefault();
|
|
num3 = 3;
|
|
num4 = valueOrDefault;
|
|
num = (((uint)(~(~num4 + num3)) > 1u) ? 1728643058 : 1728643061);
|
|
break;
|
|
}
|
|
case 4:
|
|
num = 1728643063;
|
|
break;
|
|
case 2:
|
|
{
|
|
bool isRanged = flag;
|
|
bossModIpc.SetRangeStrategy(BossModIpc.EPreset.Active, isRanged);
|
|
num = 1728643060;
|
|
break;
|
|
}
|
|
case 6:
|
|
flag = false;
|
|
num = 1728643062;
|
|
break;
|
|
case 0:
|
|
_206F_202D_202C_206F_200D_206D_200C_206A_202A_200C_200D_206D_202A_202B_200E_202B_206B_202A_200B_202C_202A_200E_202B_206E_200C_206F_202C_200B_200C_206E_202D_206C_200D_206E_200E_206C_206A_200F_202C_202E((ILogger)logger, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-248169920), Array.Empty<object>());
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static IPlayerCharacter _202E_202D_206C_200B_202C_200E_200E_200D_206B_206E_202A_202D_202C_202C_202D_206B_206C_206A_202C_202A_202E_202E_206B_200F_206D_200E_206A_202E_206A_202E_206D_206D_202E_206A_206A_206A_202B_202D_202C_200E_202E(IObjectTable P_0)
|
|
{
|
|
return P_0.LocalPlayer;
|
|
}
|
|
|
|
static RowRef<ClassJob> _206F_200C_200D_206B_200B_206A_206C_206A_202E_202E_202A_206F_200C_200D_206B_200B_206C_200F_202B_202E_206F_202B_206D_206E_202E_202A_200F_202B_202A_206D_206A_200F_206E_200D_202B_200F_202A_200F_206C_202A_202E(ICharacter P_0)
|
|
{
|
|
return P_0.ClassJob;
|
|
}
|
|
|
|
static void _206F_202D_202C_206F_200D_206D_200C_206A_202A_200C_200D_206D_202A_202B_200E_202B_206B_202A_200B_202C_202A_200E_202B_206E_200C_206F_202C_200B_200C_206E_202D_206C_200D_206E_200E_206C_206A_200F_202C_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
}
|
|
|
|
internal sealed record EnableRsrForDutyTask : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _200C_202C_200B_200E_202D_202B_206A_200F_206E_200F_202D_206D_202B_202A_202A_202D_202D_200B_200F_200F_200D_202D_206C_200E_206E_200E_200D_206F_202D_206A_200B_200E_202B_200B_200E_206D_202A_206B_206F_200F_202E(typeof(EnableRsrForDutyTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(2113295925);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(EnableRsrForDutyTask? other)
|
|
{
|
|
int num = (((object)this == other) ? (-1091562402) : (-1091562403));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1091562402;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
return true;
|
|
case 1:
|
|
return false;
|
|
case 2:
|
|
num = -1091562403;
|
|
break;
|
|
case 3:
|
|
num = (((object)other == null) ? (-1091562401) : (-1091562406));
|
|
break;
|
|
case 4:
|
|
return _206F_200E_206D_200B_206F_202C_202E_200F_200E_206A_202E_202A_206C_200B_202A_206D_200E_206F_202A_202D_206A_200E_200E_206B_200B_202A_200B_200D_206F_200F_200F_202E_202B_206C_206F_202B_206F_200F_206C_200E_202E(EqualityContract, other.EqualityContract);
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<EnableRsrForDutyTask>.Equals(EnableRsrForDutyTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _200C_202C_200B_200E_202D_202B_206A_200F_206E_200F_202D_206D_202B_202A_202A_202D_202D_200B_200F_200F_200D_202D_206C_200E_206E_200E_200D_206F_202D_206A_200B_200E_202B_200B_200E_206D_202A_206B_206F_200F_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _206F_200E_206D_200B_206F_202C_202E_200F_200E_206A_202E_202A_206C_200B_202A_206D_200E_206F_202A_202D_206A_200E_200E_206B_200B_202A_200B_200D_206F_200F_200F_202E_202B_206C_206F_202B_206F_200F_206C_200E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class EnableRsrForDutyExecutor(RotationSolverRebornModule rsrModule, ILogger<EnableRsrForDutyExecutor> logger) : TaskExecutor<EnableRsrForDutyTask>()
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
CombatController.CombatData combatData = new CombatController.CombatData
|
|
{
|
|
ElementId = null,
|
|
Sequence = 0,
|
|
CompletionQuestVariablesFlags = new List<QuestWorkValue>(),
|
|
SpawnType = EEnemySpawnType.None,
|
|
KillEnemyDataIds = new List<uint>(),
|
|
ComplexCombatDatas = new List<ComplexCombatData>(),
|
|
CombatItemUse = null
|
|
};
|
|
int num = ((!rsrModule.Start(combatData)) ? 2061228906 : 2061228905);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 2061228904;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_008f;
|
|
case 2:
|
|
_206E_206A_206A_200E_206E_200F_200E_206A_206D_206C_206C_206A_200D_200E_202D_206B_202A_200C_202A_202C_202C_206E_202B_200C_202E_206E_200E_206F_202D_202B_206C_206F_206A_202C_200F_200F_202B_206B_206B_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>(-442018741), Array.Empty<object>());
|
|
return true;
|
|
case 1:
|
|
_206A_202D_200C_206D_200F_202C_202C_200C_202E_202D_206F_202B_202E_206A_200B_200F_202E_206E_202A_200D_206C_206B_206F_202C_200F_206D_200E_206E_206D_200F_200C_200E_200F_202D_206E_202A_200B_202C_200F_202E_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>(1848587528), Array.Empty<object>());
|
|
return true;
|
|
}
|
|
continue;
|
|
IL_008f:
|
|
num = 2061228905;
|
|
}
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _206A_202D_200C_206D_200F_202C_202C_200C_202E_202D_206F_202B_202E_206A_200B_200F_202E_206E_202A_200D_206C_206B_206F_202C_200F_206D_200E_206E_206D_200F_200C_200E_200F_202D_206E_202A_200B_202C_200F_202E_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static void _206E_206A_206A_200E_206E_200F_200E_206A_206D_206C_206C_206A_200D_200E_202D_206B_202A_200C_202A_202C_202C_206E_202B_200C_202E_206E_200E_206F_202D_202B_206C_206F_206A_202C_200F_200F_202B_206B_206B_206F_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogWarning(P_1, P_2);
|
|
}
|
|
}
|
|
|
|
internal sealed record EnableBossModPassiveForDutyTask : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202B_200D_200F_206D_200E_200B_206F_200F_200B_200C_206F_200D_206D_202E_202B_206A_206E_200D_202C_200E_202B_202B_206A_202D_206B_202B_202E_206F_202D_200D_202E_200F_202B_202C_206F_200F_202C_202D_206C_202E_202E(typeof(EnableBossModPassiveForDutyTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(1459576092);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(EnableBossModPassiveForDutyTask? other)
|
|
{
|
|
int num = (((object)this == other) ? (-1195583475) : (-1195583474));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1195583475;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
return false;
|
|
case 1:
|
|
return _202C_206C_200F_202E_206C_206B_200C_202D_206E_206E_200E_202B_202A_202E_206D_200B_200E_202A_206B_200C_200B_206E_206C_202A_200D_202C_200D_200E_202E_206D_202A_202B_200B_200C_200F_206B_206E_200F_202B_202C_202E(EqualityContract, other.EqualityContract);
|
|
case 0:
|
|
return true;
|
|
case 4:
|
|
num = -1195583474;
|
|
break;
|
|
case 3:
|
|
num = (((object)other == null) ? (-1195583473) : (-1195583476));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<EnableBossModPassiveForDutyTask>.Equals(EnableBossModPassiveForDutyTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202B_200D_200F_206D_200E_200B_206F_200F_200B_200C_206F_200D_206D_202E_202B_206A_206E_200D_202C_200E_202B_202B_206A_202D_206B_202B_202E_206F_202D_200D_202E_200F_202B_202C_206F_200F_202C_202D_206C_202E_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _202C_206C_200F_202E_206C_206B_200C_202D_206E_206E_200E_202B_202A_202E_206D_200B_200E_202A_206B_200C_200B_206E_206C_202A_200D_202C_200D_200E_202E_206D_202A_202B_200B_200C_200F_206B_206E_200F_202B_202C_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class EnableBossModPassiveForDutyExecutor(BossModIpc bossModIpc, ILogger<EnableBossModPassiveForDutyExecutor> logger) : TaskExecutor<EnableBossModPassiveForDutyTask>()
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
bossModIpc.EnableAi(BossModIpc.EPreset.Passive);
|
|
_206F_206F_200B_202B_206F_200F_202B_200F_200E_206C_202A_202D_206E_206F_206F_206F_200D_206F_206E_202B_200D_202E_200F_200E_206B_202D_202B_202D_200D_200F_200F_200E_206A_206C_206A_200C_200E_206B_200B_200E_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>(-1506955003), Array.Empty<object>());
|
|
return true;
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _206F_206F_200B_202B_206F_200F_202B_200F_200E_206C_202A_202D_206E_206F_206F_206F_200D_206F_206E_202B_200D_202E_200F_200E_206B_202D_202B_202D_200D_200F_200F_200E_206A_206C_206A_200C_200E_206B_200B_200E_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
}
|
|
|
|
internal sealed record EnableWrathForDutyTask : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206D_202A_202D_206F_202A_206D_206B_200E_206C_202E_202C_200B_202E_202A_202C_202D_202A_202E_200F_200B_200F_202E_200E_202C_200D_206B_200C_206F_206E_202A_200C_202A_200E_200F_200D_202E_200C_200B_202D_206F_202E(typeof(EnableWrathForDutyTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return 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>(675489831);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(EnableWrathForDutyTask? other)
|
|
{
|
|
int num = (((object)this == other) ? 1904585332 : 1904585334);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1904585335;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
return false;
|
|
case 1:
|
|
num = (((object)other == null) ? 1904585335 : 1904585333);
|
|
break;
|
|
case 3:
|
|
return true;
|
|
case 4:
|
|
num = 1904585334;
|
|
break;
|
|
case 2:
|
|
return _202A_200D_200C_200F_202A_206A_202E_200D_202C_206C_200E_200E_200E_200B_206F_206C_206B_206B_206A_206E_206F_206B_200F_206C_202A_206B_202D_206A_206D_202A_206A_202B_206D_202A_200D_202A_206E_202E_202A_206D_202E(EqualityContract, other.EqualityContract);
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<EnableWrathForDutyTask>.Equals(EnableWrathForDutyTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206D_202A_202D_206F_202A_206D_206B_200E_206C_202E_202C_200B_202E_202A_202C_202D_202A_202E_200F_200B_200F_202E_200E_202C_200D_206B_200C_206F_206E_202A_200C_202A_200E_200F_200D_202E_200C_200B_202D_206F_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _202A_200D_200C_200F_202A_206A_202E_200D_202C_206C_200E_200E_200E_200B_206F_206C_206B_206B_206A_206E_206F_206B_200F_206C_202A_206B_202D_206A_206D_202A_206A_202B_206D_202A_200D_202A_206E_202E_202A_206D_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class EnableWrathForDutyExecutor(WrathComboModule wrathComboModule, ILogger<EnableWrathForDutyExecutor> logger) : TaskExecutor<EnableWrathForDutyTask>()
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
CombatController.CombatData combatData = new CombatController.CombatData
|
|
{
|
|
ElementId = null,
|
|
Sequence = 0,
|
|
CompletionQuestVariablesFlags = new List<QuestWorkValue>(),
|
|
SpawnType = EEnemySpawnType.None,
|
|
KillEnemyDataIds = new List<uint>(),
|
|
ComplexCombatDatas = new List<ComplexCombatData>(),
|
|
CombatItemUse = null
|
|
};
|
|
int num = ((!wrathComboModule.Start(combatData)) ? (-846521954) : (-846521955));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -846521953;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
_202B_202B_202C_200E_202B_206C_202E_200E_206E_206D_206D_200E_202B_206A_202B_202E_202A_206B_206E_202A_200E_206F_202C_200E_206F_202E_200E_202D_202A_200C_206B_206F_206F_206C_202B_206E_202A_202C_202C_202E((ILogger)logger, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-409178902), Array.Empty<object>());
|
|
return true;
|
|
case 2:
|
|
_206E_202A_206F_206A_206E_206B_200C_206A_202A_206E_200F_202B_200E_206D_200E_202A_202E_206A_206B_202B_200B_206C_200C_206A_206F_202E_206B_200C_200D_206F_200F_202B_202A_202D_206B_202C_200F_200C_206D_202C_202E((ILogger)logger, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(29508109), Array.Empty<object>());
|
|
return true;
|
|
case 0:
|
|
goto IL_00c9;
|
|
}
|
|
continue;
|
|
IL_00c9:
|
|
num = -846521955;
|
|
}
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _206E_202A_206F_206A_206E_206B_200C_206A_202A_206E_200F_202B_200E_206D_200E_202A_202E_206A_206B_202B_200B_206C_200C_206A_206F_202E_206B_200C_200D_206F_200F_202B_202A_202D_206B_202C_200F_200C_206D_202C_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static void _202B_202B_202C_200E_202B_206C_202E_200E_206E_206D_206D_200E_202B_206A_202B_202E_202A_206B_206E_202A_200E_206F_202C_200E_206F_202E_200E_202D_202A_200C_206B_206F_206F_206C_202B_206E_202A_202C_202C_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogWarning(P_1, P_2);
|
|
}
|
|
}
|
|
|
|
internal sealed record DisableCombatPluginsForDutyTask : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202B_206C_206F_202C_202B_206F_202A_206A_202D_206E_200D_206D_206A_200E_202B_206E_202D_206A_202E_206A_200E_206A_202C_202D_206C_202B_202C_202D_206F_202D_206E_200E_206D_206D_202C_202C_206D_200D_206C_200C_202E(typeof(DisableCombatPluginsForDutyTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-1157161609);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(DisableCombatPluginsForDutyTask? other)
|
|
{
|
|
int num = (((object)this == other) ? (-1653700635) : (-1653700636));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1653700633;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 4:
|
|
return false;
|
|
case 3:
|
|
num = (((object)other == null) ? (-1653700637) : (-1653700634));
|
|
break;
|
|
case 2:
|
|
return true;
|
|
case 0:
|
|
num = -1653700636;
|
|
break;
|
|
case 1:
|
|
return _206D_206A_206D_206D_206A_200C_200B_202A_202D_200E_206D_202D_206F_206A_206B_202E_200E_206B_200E_202D_200F_206B_206F_202C_206F_206C_206A_202C_202C_206B_200E_206D_202C_200E_206A_200D_206E_206B_202B_202D_202E(EqualityContract, other.EqualityContract);
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<DisableCombatPluginsForDutyTask>.Equals(DisableCombatPluginsForDutyTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202B_206C_206F_202C_202B_206F_202A_206A_202D_206E_200D_206D_206A_200E_202B_206E_202D_206A_202E_206A_200E_206A_202C_202D_206C_202B_202C_202D_206F_202D_206E_200E_206D_206D_202C_202C_206D_200D_206C_200C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _206D_206A_206D_206D_206A_200C_200B_202A_202D_200E_206D_202D_206F_206A_206B_202E_200E_206B_200E_202D_200F_206B_206F_202C_206F_206C_206A_202C_202C_206B_200E_206D_202C_200E_206A_200D_206E_206B_202B_202D_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class DisableCombatPluginsForDutyExecutor(WrathComboModule wrathComboModule, RotationSolverRebornModule rsrModule, BossModIpc bossModIpc, ILogger<DisableCombatPluginsForDutyExecutor> logger) : TaskExecutor<DisableCombatPluginsForDutyTask>()
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
wrathComboModule.Stop();
|
|
rsrModule.Stop();
|
|
bossModIpc.DisableAi();
|
|
_200F_200D_200E_202D_206A_202E_200C_206B_206D_202E_202A_206B_202C_202D_200E_206B_206E_202E_206A_200B_202A_206D_202E_200B_200E_202E_202D_206C_202B_206E_202D_202E_206F_200E_200D_206D_200D_206F_206C_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>(-721701585), Array.Empty<object>());
|
|
return true;
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _200F_200D_200E_202D_206A_202E_200C_206B_206D_202E_202A_206B_202C_202D_200E_206B_206E_202E_206A_200B_202A_206D_202E_200B_200E_202E_202D_206C_202B_206E_202D_202E_206F_200E_200D_206D_200D_206F_206C_206F_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
}
|
|
|
|
internal sealed record StartLevelingModeTask(int RequiredLevel, string? QuestName) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206A_206B_206F_200B_206C_206F_200E_202B_206C_200F_200B_202B_206D_206B_200C_200D_200E_200D_206F_200B_202B_206D_202C_206E_202A_206B_200E_202E_206D_202D_206E_206B_202E_202D_206B_202C_200D_202E_206D_202E(typeof(StartLevelingModeTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(36, 2);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(2016705418));
|
|
defaultInterpolatedStringHandler.AppendFormatted(RequiredLevel);
|
|
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>(506226778));
|
|
defaultInterpolatedStringHandler.AppendFormatted(QuestName);
|
|
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>(-1163511253));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_200B_206D_206A_200F_206D_200F_202A_200E_200D_200B_206D_206F_206C_206E_200B_202E_202A_206F_200D_206F_200C_206B_200C_200F_200B_200B_200B_206F_202C_200F_200C_202A_202C_202E_206F_202E_200E_206C_206B_202A_202E();
|
|
_206F_200C_202A_206F_206E_202C_206B_200F_206F_200D_202A_206A_206B_200C_202B_206D_200E_206C_202D_200F_202B_202B_202A_200B_200C_206B_206F_200F_200B_206C_200C_206D_202D_200C_202B_206E_206B_202A_206A_202E_202E(builder, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(-1394284169));
|
|
_206F_200C_202A_206F_206E_202C_206B_200F_206F_200D_202A_206A_206B_200C_202B_206D_200E_206C_202D_200F_202B_202B_202A_200B_200C_206B_206F_200F_200B_206C_200C_206D_202D_200C_202B_206E_206B_202A_206A_202E_202E(builder, RequiredLevel.ToString());
|
|
_206F_200C_202A_206F_206E_202C_206B_200F_206F_200D_202A_206A_206B_200C_202B_206D_200E_206C_202D_200F_202B_202B_202A_200B_200C_206B_206F_200F_200B_206C_200C_206D_202D_200C_202B_206E_206B_202A_206A_202E_202E(builder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(2013631228));
|
|
_206F_206B_200C_200B_202B_206C_200E_200D_200C_202A_206B_206F_202D_206C_206D_206F_206C_206C_200F_202B_206C_200D_202C_200C_202C_202E_206E_200B_200F_200B_202E_206F_200E_200B_202A_206E_200F_200B_206B_200F_202E(builder, (object?)QuestName);
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(StartLevelingModeTask? other)
|
|
{
|
|
int num = (((object)this == other) ? 767902798 : 767902795);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 767902794;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 6:
|
|
return false;
|
|
case 0:
|
|
return EqualityComparer<string>.Default.Equals(QuestName, other.QuestName);
|
|
case 1:
|
|
num = (((object)other == null) ? 767902796 : 767902799);
|
|
break;
|
|
case 5:
|
|
num = ((!_200F_206E_206F_202D_206E_202A_202E_206C_206E_206E_200C_202A_206D_206A_202C_206F_200E_200E_200D_206F_206A_206F_200C_202E_206F_206A_206E_206D_206C_200F_202A_202E_206D_202D_200E_206D_202A_200B_200C_200F_202E(EqualityContract, other.EqualityContract)) ? 767902796 : 767902793);
|
|
break;
|
|
case 3:
|
|
num = ((!EqualityComparer<int>.Default.Equals(RequiredLevel, other.RequiredLevel)) ? 767902796 : 767902794);
|
|
break;
|
|
case 4:
|
|
return true;
|
|
case 2:
|
|
num = 767902795;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<StartLevelingModeTask>.Equals(StartLevelingModeTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type? _206A_206B_206F_200B_206C_206F_200E_202B_206C_200F_200B_202B_206D_206B_200C_200D_200E_200D_206F_200B_202B_206D_202C_206E_202A_206B_200E_202E_206D_202D_206E_206B_202E_202D_206B_202C_200D_202E_206D_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _200B_206D_206A_200F_206D_200F_202A_200E_200D_200B_206D_206F_206C_206E_200B_202E_202A_206F_200D_206F_200C_206B_200C_200F_200B_200B_200B_206F_202C_200F_200C_202A_202C_202E_206F_202E_200E_206C_206B_202A_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder? _206F_200C_202A_206F_206E_202C_206B_200F_206F_200D_202A_206A_206B_200C_202B_206D_200E_206C_202D_200F_202B_202B_202A_200B_200C_206B_206F_200F_200B_206C_200C_206D_202D_200C_202B_206E_206B_202A_206A_202E_202E(StringBuilder? P_0, string? P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder? _206F_206B_200C_200B_202B_206C_200E_200D_200C_202A_206B_206F_202D_206C_206D_206F_206C_206C_200F_202B_206C_200D_202C_200C_202C_202E_206E_200B_200F_200B_202E_206F_200E_200B_202A_206E_200F_200B_206B_200F_202E(StringBuilder? P_0, object? P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _200F_206E_206F_202D_206E_202A_202E_206C_206E_206E_200C_202A_206D_206A_202C_206F_200E_200E_200D_206F_206A_206F_200C_202E_206F_206A_206E_206D_206C_200F_202A_202E_206D_202D_200E_206D_202A_200B_200C_200F_202E(Type? P_0, Type? P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class StartLevelingModeExecutor(AutoDutyIpc autoDutyIpc, ICondition condition, IChatGui chatGui, ILogger<StartLevelingModeExecutor> logger) : TaskExecutor<StartLevelingModeTask>(), IStoppableTaskExecutor, ITaskExecutor
|
|
{
|
|
private long _startMs;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
protected override bool Start()
|
|
{
|
|
_200E_200D_206E_206F_202C_202A_200F_202A_206D_202B_202D_206C_206D_200B_206E_202E_200B_202E_206E_202D_202A_202B_202C_202B_206F_200B_206A_202E_202A_206B_202C_206A_206F_206E_200C_206D_200D_200D_202C_202D_202E((ILogger)logger, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(55261693), new object[2]
|
|
{
|
|
base.Task.RequiredLevel,
|
|
base.Task.QuestName
|
|
});
|
|
int num = (_202B_202C_206B_200B_200F_200F_206A_206F_202C_202A_206B_200F_202C_202A_202C_206C_200C_200D_200E_202C_202D_202B_200C_200B_206E_200F_206F_206B_200D_200D_200E_202A_206A_200E_202D_206F_206A_200D_206F_202A_202E(condition, ConditionFlag.BoundByDuty) ? 734035572 : 734035573);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 734035575;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = 734035573;
|
|
break;
|
|
case 2:
|
|
num = ((!_202B_202C_206B_200B_200F_200F_206A_206F_202C_202A_206B_200F_202C_202A_202C_206C_200C_200D_200E_202C_202D_202B_200C_200B_206E_200F_206F_206B_200D_200D_200E_202A_206A_200E_202D_206F_206A_200D_206F_202A_202E(condition, ConditionFlag.InDutyQueue)) ? 734035570 : 734035572);
|
|
break;
|
|
case 1:
|
|
_206C_202B_200B_202B_200B_206B_206E_206A_206F_206C_202A_200B_202A_206E_206B_200F_200E_206C_200B_200B_206D_206A_202A_206B_206F_206F_202C_206C_202A_206D_202B_202D_206B_206D_200C_200F_200D_206C_200F_206D_202E((ILogger)logger, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-1265156459), Array.Empty<object>());
|
|
_startMs = _202E_200D_202B_202B_206E_206C_200D_202B_206C_206E_200C_200C_202D_200F_200D_202D_202C_200C_202D_206D_200B_202D_202C_202A_206B_206E_200D_200E_200C_206D_206B_206C_206A_202A_200D_200F_206D_202B_202B_206A_202E();
|
|
return true;
|
|
case 4:
|
|
autoDutyIpc.StartLevelingMode();
|
|
_startMs = _202E_200D_202B_202B_206E_206C_200D_202B_206C_206E_200C_200C_202D_200F_200D_202D_202C_200C_202D_206D_200B_202D_202C_202A_206B_206E_200D_200E_200C_206D_206B_206C_206A_202A_200D_200F_206D_202B_202B_206A_202E();
|
|
return true;
|
|
case 3:
|
|
_206C_202B_200B_202B_200B_206B_206E_206A_206F_206C_202A_200B_202A_206E_206B_200F_200E_206C_200B_200B_206D_206A_202A_206B_206F_206F_202C_206C_202A_206D_202B_202D_206B_206D_200C_200F_200D_206C_200F_206D_202E((ILogger)logger, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1626350162), Array.Empty<object>());
|
|
return true;
|
|
case 5:
|
|
num = (autoDutyIpc.IsStopped() ? 734035571 : 734035574);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
bool flag = _202B_202C_206B_200B_200F_200F_206A_206F_202C_202A_206B_200F_202C_202A_202C_206C_200C_200D_200E_202C_202D_202B_200C_200B_206E_200F_206F_206B_200D_200D_200E_202A_206A_200E_202D_206F_206A_200D_206F_202A_202E(condition, ConditionFlag.BoundByDuty);
|
|
bool flag2 = _202B_202C_206B_200B_200F_200F_206A_206F_202C_202A_206B_200F_202C_202A_202C_206C_200C_200D_200E_202C_202D_202B_200C_200B_206E_200F_206F_206B_200D_200D_200E_202A_206A_200E_202D_206F_206A_200D_206F_202A_202E(condition, ConditionFlag.InDutyQueue);
|
|
int num = (flag2 ? 1 : 0);
|
|
int num2 = (flag ? 1 : 0);
|
|
int num3 = (((num2 & num) + (num2 ^ num) == 0) ? 108538645 : 108538644);
|
|
while (true)
|
|
{
|
|
int num4 = num3;
|
|
num = 108538645;
|
|
num2 = num4;
|
|
int num5 = num2 + num;
|
|
int num6 = num2 & num;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 3:
|
|
return ETaskResult.StillRunning;
|
|
case 1:
|
|
_206C_202B_200B_202B_200B_206B_206E_206A_206F_206C_202A_200B_202A_206E_206B_200F_200E_206C_200B_200B_206D_206A_202A_206B_206F_206F_202C_206C_202A_206D_202B_202D_206B_206D_200C_200F_200D_206C_200F_206D_202E((ILogger)logger, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-1699127209), new object[2] { flag, flag2 });
|
|
return ETaskResult.TaskComplete;
|
|
case 6:
|
|
_206D_206B_200C_202B_200E_206D_200D_206B_200E_202B_206C_202A_206A_206B_200B_202A_206D_200F_202B_206E_200B_202D_206F_206F_206A_206C_200B_206F_202D_200D_202B_202E_206D_202A_206D_206C_206E_202B_202B_202D_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>(-1096810868), Array.Empty<object>());
|
|
_200E_202B_200D_202A_206C_200C_200F_206A_206D_202B_206B_206A_206C_206C_202B_200E_202C_206B_200D_206A_200B_206C_200C_200B_200C_200F_200F_200F_200C_200B_200D_206A_200E_206E_206E_206F_206F_200C_206E_200D_202E(chatGui, 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>(-1253886514), global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(1231541163), (ushort?)(ushort)576);
|
|
return ETaskResult.End;
|
|
case 0:
|
|
num3 = (autoDutyIpc.IsStopped() ? 108538640 : 108538646);
|
|
break;
|
|
case 5:
|
|
num3 = ((_202E_200D_202B_202B_206E_206C_200D_202B_206C_206E_200C_200C_202D_200F_200D_202D_202C_200C_202D_206D_200B_202D_202C_202A_206B_206E_200D_200E_200C_206D_206B_206C_206A_202A_200D_200F_206D_202B_202B_206A_202E() - _startMs >= 10000) ? 108538643 : 108538647);
|
|
break;
|
|
case 2:
|
|
return ETaskResult.StillRunning;
|
|
case 4:
|
|
num3 = 108538644;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void StopNow()
|
|
{
|
|
autoDutyIpc.Stop();
|
|
}
|
|
|
|
void IStoppableTaskExecutor.StopNow()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
|
this.StopNow();
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static void _200E_200D_206E_206F_202C_202A_200F_202A_206D_202B_202D_206C_206D_200B_206E_202E_200B_202E_206E_202D_202A_202B_202C_202B_206F_200B_206A_202E_202A_206B_202C_206A_206F_206E_200C_206D_200D_200D_202C_202D_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogInformation(P_1, P_2);
|
|
}
|
|
|
|
static bool _202B_202C_206B_200B_200F_200F_206A_206F_202C_202A_206B_200F_202C_202A_202C_206C_200C_200D_200E_202C_202D_202B_200C_200B_206E_200F_206F_206B_200D_200D_200E_202A_206A_200E_202D_206F_206A_200D_206F_202A_202E(ICondition P_0, ConditionFlag P_1)
|
|
{
|
|
return P_0[P_1];
|
|
}
|
|
|
|
static void _206C_202B_200B_202B_200B_206B_206E_206A_206F_206C_202A_200B_202A_206E_206B_200F_200E_206C_200B_200B_206D_206A_202A_206B_206F_206F_202C_206C_202A_206D_202B_202D_206B_206D_200C_200F_200D_206C_200F_206D_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static long _202E_200D_202B_202B_206E_206C_200D_202B_206C_206E_200C_200C_202D_200F_200D_202D_202C_200C_202D_206D_200B_202D_202C_202A_206B_206E_200D_200E_200C_206D_206B_206C_206A_202A_200D_200F_206D_202B_202B_206A_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static void _206D_206B_200C_202B_200E_206D_200D_206B_200E_202B_206C_202A_206A_206B_200B_202A_206D_200F_202B_206E_200B_202D_206F_206F_206A_206C_200B_206F_202D_200D_202B_202E_206D_202A_206D_206C_206E_202B_202B_202D_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogError(P_1, P_2);
|
|
}
|
|
|
|
static void _200E_202B_200D_202A_206C_200C_200F_206A_206D_202B_206B_206A_206C_206C_202B_200E_202C_206B_200D_206A_200B_206C_200C_200B_200C_200F_200F_200F_200C_200B_200D_206A_200E_206E_206E_206F_206F_200C_206E_200D_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
|
{
|
|
P_0.PrintError(P_1, P_2, P_3);
|
|
}
|
|
}
|
|
|
|
internal sealed record WaitLevelingModeTask(int RequiredLevel) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _200C_202C_206A_200F_202D_206A_202E_202E_202B_206F_206F_206B_206E_200F_200F_206D_200D_200E_200E_202C_206C_206E_206F_200F_206D_206D_200B_200D_200D_202E_200F_202C_206C_206D_202C_202C_202A_200B_202C_200F_202E(typeof(WaitLevelingModeTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(26, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-1813991496));
|
|
defaultInterpolatedStringHandler.AppendFormatted(RequiredLevel);
|
|
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)
|
|
{
|
|
_200E_206E_202D_206D_202E_206F_200C_200E_206E_200D_202C_202D_200D_206C_200F_206C_202C_200F_202A_202E_206B_202E_206A_200F_202C_206C_206E_206A_206C_202A_200C_202D_200E_200B_206A_200F_202D_202B_200B_202D_202E();
|
|
_200B_206F_200D_206B_202C_200E_206E_202E_206E_202D_202A_206A_202B_202C_200D_202E_202A_202D_206C_202C_206B_206D_206F_200F_206B_200F_206B_206F_200F_206F_202D_206C_202A_202A_200F_202B_202E_202A_202E_206B_202E(builder, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-2045243570));
|
|
_200B_206F_200D_206B_202C_200E_206E_202E_206E_202D_202A_206A_202B_202C_200D_202E_202A_202D_206C_202C_206B_206D_206F_200F_206B_200F_206B_206F_200F_206F_202D_206C_202A_202A_200F_202B_202E_202A_202E_206B_202E(builder, RequiredLevel.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(WaitLevelingModeTask? other)
|
|
{
|
|
int num = (((object)this == other) ? (-1709227923) : (-1709227922));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1709227921;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 3:
|
|
num = -1709227922;
|
|
break;
|
|
case 2:
|
|
return true;
|
|
case 1:
|
|
num = (((object)other == null) ? (-1709227921) : (-1709227926));
|
|
break;
|
|
case 4:
|
|
return EqualityComparer<int>.Default.Equals(RequiredLevel, other.RequiredLevel);
|
|
case 5:
|
|
num = ((!_200C_200C_206F_206D_200B_202D_206C_200F_206A_206C_202D_206F_206A_202E_200D_200B_202D_200B_202B_202D_202E_200F_206B_202D_202B_206E_206A_202B_206F_202A_200C_206C_202D_206E_202C_200B_206C_202D_202D_206A_202E(EqualityContract, other.EqualityContract)) ? (-1709227921) : (-1709227925));
|
|
break;
|
|
case 0:
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<WaitLevelingModeTask>.Equals(WaitLevelingModeTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _200C_202C_206A_200F_202D_206A_202E_202E_202B_206F_206F_206B_206E_200F_200F_206D_200D_200E_200E_202C_206C_206E_206F_200F_206D_206D_200B_200D_200D_202E_200F_202C_206C_206D_202C_202C_202A_200B_202C_200F_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _200E_206E_202D_206D_202E_206F_200C_200E_206E_200D_202C_202D_200D_206C_200F_206C_202C_200F_202A_202E_206B_202E_206A_200F_202C_206C_206E_206A_206C_202A_200C_202D_200E_200B_206A_200F_202D_202B_200B_202D_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _200B_206F_200D_206B_202C_200E_206E_202E_206E_202D_202A_206A_202B_202C_200D_202E_202A_202D_206C_202C_206B_206D_206F_200F_206B_200F_206B_206F_200F_206F_202D_206C_202A_202A_200F_202B_202E_202A_202E_206B_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _200C_200C_206F_206D_200B_202D_206C_200F_206A_206C_202D_206F_206A_202E_200D_200B_202D_200B_202B_202D_202E_200F_206B_202D_202B_206E_206A_202B_206F_202A_200C_206C_202D_206E_202C_200B_206C_202D_202D_206A_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class WaitLevelingModeExecutor(AutoDutyIpc autoDutyIpc, IObjectTable objectTable, ICondition condition, IChatGui chatGui, ILogger<WaitLevelingModeExecutor> logger) : TaskExecutor<WaitLevelingModeTask>(), IStoppableTaskExecutor, ITaskExecutor
|
|
{
|
|
private bool _wasInDuty;
|
|
|
|
private long _statusLogNextMs;
|
|
|
|
private long _idleSinceMs = -1L;
|
|
|
|
private long _reissueNextMs;
|
|
|
|
protected override bool Start()
|
|
{
|
|
_wasInDuty = false;
|
|
_statusLogNextMs = 0L;
|
|
_idleSinceMs = -1L;
|
|
_reissueNextMs = 0L;
|
|
return true;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
bool flag = _200D_206B_200E_206B_200B_200C_200F_200B_200C_206A_200D_202B_202C_206A_202D_200B_200C_206F_202A_202B_206C_202A_200D_200B_200C_206E_202B_202C_200B_202D_202D_202D_202C_206F_202C_202A_206E_206E_202B_200C_202E(condition, ConditionFlag.BoundByDuty);
|
|
bool flag2 = _200D_206B_200E_206B_200B_200C_200F_200B_200C_206A_200D_202B_202C_206A_202D_200B_200C_206F_202A_202B_206C_202A_200D_200B_200C_206E_202B_202C_200B_202D_202D_202D_202C_206F_202C_202A_206E_206E_202B_200C_202E(condition, ConditionFlag.InDutyQueue);
|
|
int num = ((!flag) ? (-561621789) : (-561621778));
|
|
byte b = default(byte);
|
|
long num7 = default(long);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -561621782;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 15:
|
|
_idleSinceMs = -1L;
|
|
num = -561621792;
|
|
break;
|
|
case 13:
|
|
_202C_200F_200E_206B_200C_202A_206F_202B_202C_202E_206B_200B_200C_200D_202E_202B_206F_206D_202B_206F_202B_202E_202E_202E_200B_200F_200B_206F_202C_202C_202C_202C_206C_206C_206A_206F_206C_202B_200E_206E_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>(1085997974), new object[2]
|
|
{
|
|
b,
|
|
base.Task.RequiredLevel
|
|
});
|
|
_200F_206C_200C_202A_206B_206E_200D_200C_206C_202D_206E_200D_200E_202B_200C_202C_202E_200F_200E_206F_200D_202C_200D_206A_206F_200D_202A_200B_206F_202D_200E_206A_206C_206E_202C_206D_206E_200E_206E_202A_202E(chatGui, 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>(555207029), 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>(467221712), (ushort?)(ushort)576);
|
|
return ETaskResult.End;
|
|
case 12:
|
|
num = ((!autoDutyIpc.IsStopped()) ? (-561621787) : (-561621767));
|
|
break;
|
|
case 10:
|
|
return ETaskResult.StillRunning;
|
|
case 17:
|
|
if (!_200D_206B_200E_206B_200B_200C_200F_200B_200C_206A_200D_202B_202C_206A_202D_200B_200C_206F_202A_202B_206C_202A_200D_200B_200C_206E_202B_202C_200B_202D_202D_202D_202C_206F_202C_202A_206E_206E_202B_200C_202E(condition, ConditionFlag.BetweenAreas51))
|
|
{
|
|
num = -561621762;
|
|
break;
|
|
}
|
|
goto case 14;
|
|
case 5:
|
|
_206C_200F_200E_206A_206A_200F_202A_206A_202A_206D_206D_206D_206D_206C_200B_206D_202B_200B_200B_206A_200E_200C_200F_202B_200B_206D_206C_202E_202E_200D_206D_200D_200F_206E_200B_206A_202A_206D_200C_202E_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>(-2081714817), Array.Empty<object>());
|
|
_wasInDuty = true;
|
|
num = -561621789;
|
|
break;
|
|
case 8:
|
|
num7 = _206C_206C_200B_200F_202A_200B_206C_202B_206C_202B_202C_200B_206E_206C_200D_200D_200F_200C_202C_202B_202C_206B_202B_200F_200E_200F_200B_200B_202D_202A_206D_200E_200B_206F_206D_202D_202E_200D_202B_200D_202E();
|
|
num = ((_idleSinceMs >= 0) ? (-561621783) : (-561621782));
|
|
break;
|
|
case 20:
|
|
num = ((num7 < _reissueNextMs) ? (-561621792) : (-561621781));
|
|
break;
|
|
case 14:
|
|
num = -561621792;
|
|
break;
|
|
case 19:
|
|
num = (flag ? (-561621787) : (-561621766));
|
|
break;
|
|
case 6:
|
|
{
|
|
_206D_202B_202A_206A_202B_202B_200C_200C_206A_206E_200B_202A_206F_200F_202D_200B_202D_200D_200B_202E_206A_206E_200D_200D_206C_206C_206B_200C_202A_202D_206F_202E_200F_200D_200F_206E_206B_202E_200C_206A_202E((ILogger)logger, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-943071448), new object[2]
|
|
{
|
|
base.Task.RequiredLevel,
|
|
b
|
|
});
|
|
IChatGui chatGui = chatGui;
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(37, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-1065319718));
|
|
defaultInterpolatedStringHandler.AppendFormatted(b);
|
|
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>(2026620031));
|
|
_202D_200B_206A_200B_206E_206D_202C_206F_200D_202D_202A_206A_200C_200F_202D_200B_200C_202B_202C_206F_206A_200C_202A_200E_202A_206C_202D_202E_200C_200E_200B_206B_200D_206B_202B_206C_202D_206D_200E_206F_202E(chatGui, defaultInterpolatedStringHandler.ToStringAndClear(), global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(1231541163), (ushort?)(ushort)576);
|
|
autoDutyIpc.Stop();
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
case 0:
|
|
_idleSinceMs = num7;
|
|
num = -561621783;
|
|
break;
|
|
case 11:
|
|
num = -561621778;
|
|
break;
|
|
case 21:
|
|
num = (_200D_206B_200E_206B_200B_200C_200F_200B_200C_206A_200D_202B_202C_206A_202D_200B_200C_206F_202A_202B_206C_202A_200D_200B_200C_206E_202B_202C_200B_202D_202D_202D_202C_206F_202C_202A_206E_206E_202B_200C_202E(condition, ConditionFlag.BetweenAreas) ? (-561621788) : (-561621765));
|
|
break;
|
|
case 4:
|
|
num = (_wasInDuty ? (-561621789) : (-561621777));
|
|
break;
|
|
case 18:
|
|
{
|
|
int num12 = base.Task.RequiredLevel - b;
|
|
_206C_200F_200E_206A_206A_200F_202A_206A_202A_206D_206D_206D_206D_206C_200B_206D_202B_200B_200B_206A_200E_200C_200F_202B_200B_206D_206C_202E_202E_200D_206D_200D_200F_206E_200B_206A_202A_206D_200C_202E_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>(2028353863), new object[3]
|
|
{
|
|
b,
|
|
base.Task.RequiredLevel,
|
|
num12
|
|
});
|
|
long num13 = num7;
|
|
long num9 = 30000L;
|
|
long num10 = num13;
|
|
_statusLogNextMs = (num10 | num9) + (num10 & num9);
|
|
num = -561621779;
|
|
break;
|
|
}
|
|
case 9:
|
|
{
|
|
IPlayerCharacter playerCharacter = _206C_202D_200F_200C_206E_206F_206C_202D_206D_202E_200C_200F_200C_206C_202C_202C_202E_202A_202D_202E_202B_200D_206B_202C_200B_202C_206A_206F_206E_200C_200D_202E_206F_206E_206B_202A_206F_200C_206C_200C_202E(objectTable);
|
|
b = (byte)((playerCharacter != null) ? _206A_200E_200F_206A_202C_206B_200B_202A_206D_206B_206F_206C_200B_206A_206F_202D_202A_206D_202D_200E_206D_200C_206E_206A_200C_200D_206E_200F_202D_206F_206F_202E_206A_202D_206B_202D_202E_200F_200F_202D_202E((ICharacter)playerCharacter) : 0);
|
|
num = ((b < base.Task.RequiredLevel) ? (-561621786) : (-561621780));
|
|
break;
|
|
}
|
|
case 7:
|
|
{
|
|
long num11 = num7;
|
|
long num9 = _idleSinceMs;
|
|
long num10 = num11;
|
|
num = ((~(~num10 + num9) <= 90000) ? (-561621761) : (-561621785));
|
|
break;
|
|
}
|
|
case 16:
|
|
num = (flag2 ? (-561621787) : (-561621784));
|
|
break;
|
|
case 2:
|
|
num = ((!_wasInDuty) ? (-561621787) : (-561621790));
|
|
break;
|
|
case 1:
|
|
{
|
|
_206C_200F_200E_206A_206A_200F_202A_206A_202A_206D_206D_206D_206D_206C_200B_206D_202B_200B_200B_206A_200E_200C_200F_202B_200B_206D_206C_202E_202E_200D_206D_200D_200F_206E_200B_206A_202A_206D_200C_202E_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>(1740398930), Array.Empty<object>());
|
|
autoDutyIpc.StartLevelingMode();
|
|
long num8 = num7;
|
|
long num9 = 5000L;
|
|
long num10 = num8;
|
|
_reissueNextMs = (num10 | num9) + (num10 & num9);
|
|
num = -561621792;
|
|
break;
|
|
}
|
|
case 3:
|
|
num = ((num7 < _statusLogNextMs) ? (-561621779) : (-561621768));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void StopNow()
|
|
{
|
|
autoDutyIpc.Stop();
|
|
}
|
|
|
|
void IStoppableTaskExecutor.StopNow()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
|
this.StopNow();
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static bool _200D_206B_200E_206B_200B_200C_200F_200B_200C_206A_200D_202B_202C_206A_202D_200B_200C_206F_202A_202B_206C_202A_200D_200B_200C_206E_202B_202C_200B_202D_202D_202D_202C_206F_202C_202A_206E_206E_202B_200C_202E(ICondition P_0, ConditionFlag P_1)
|
|
{
|
|
return P_0[P_1];
|
|
}
|
|
|
|
static void _206C_200F_200E_206A_206A_200F_202A_206A_202A_206D_206D_206D_206D_206C_200B_206D_202B_200B_200B_206A_200E_200C_200F_202B_200B_206D_206C_202E_202E_200D_206D_200D_200F_206E_200B_206A_202A_206D_200C_202E_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static IPlayerCharacter _206C_202D_200F_200C_206E_206F_206C_202D_206D_202E_200C_200F_200C_206C_202C_202C_202E_202A_202D_202E_202B_200D_206B_202C_200B_202C_206A_206F_206E_200C_200D_202E_206F_206E_206B_202A_206F_200C_206C_200C_202E(IObjectTable P_0)
|
|
{
|
|
return P_0.LocalPlayer;
|
|
}
|
|
|
|
static byte _206A_200E_200F_206A_202C_206B_200B_202A_206D_206B_206F_206C_200B_206A_206F_202D_202A_206D_202D_200E_206D_200C_206E_206A_200C_200D_206E_200F_202D_206F_206F_202E_206A_202D_206B_202D_202E_200F_200F_202D_202E(ICharacter P_0)
|
|
{
|
|
return P_0.Level;
|
|
}
|
|
|
|
static void _206D_202B_202A_206A_202B_202B_200C_200C_206A_206E_200B_202A_206F_200F_202D_200B_202D_200D_200B_202E_206A_206E_200D_200D_206C_206C_206B_200C_202A_202D_206F_202E_200F_200D_200F_206E_206B_202E_200C_206A_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogInformation(P_1, P_2);
|
|
}
|
|
|
|
static void _202D_200B_206A_200B_206E_206D_202C_206F_200D_202D_202A_206A_200C_200F_202D_200B_200C_202B_202C_206F_206A_200C_202A_200E_202A_206C_202D_202E_200C_200E_200B_206B_200D_206B_202B_206C_202D_206D_200E_206F_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
|
{
|
|
P_0.Print(P_1, P_2, P_3);
|
|
}
|
|
|
|
static long _206C_206C_200B_200F_202A_200B_206C_202B_206C_202B_202C_200B_206E_206C_200D_200D_200F_200C_202C_202B_202C_206B_202B_200F_200E_200F_200B_200B_202D_202A_206D_200E_200B_206F_206D_202D_202E_200D_202B_200D_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static void _202C_200F_200E_206B_200C_202A_206F_202B_202C_202E_206B_200B_200C_200D_202E_202B_206F_206D_202B_206F_202B_202E_202E_202E_200B_200F_200B_206F_202C_202C_202C_202C_206C_206C_206A_206F_206C_202B_200E_206E_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogError(P_1, P_2);
|
|
}
|
|
|
|
static void _200F_206C_200C_202A_206B_206E_200D_200C_206C_202D_206E_200D_200E_202B_200C_202C_202E_200F_200E_206F_200D_202C_200D_206A_206F_200D_202A_200B_206F_202D_200E_206A_206C_206E_202C_206D_206E_200E_206E_202A_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
|
{
|
|
P_0.PrintError(P_1, P_2, P_3);
|
|
}
|
|
}
|
|
}
|