forked from aly/qstbak
1746 lines
72 KiB
C#
1746 lines
72 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using Dalamud.Game.ClientState.Conditions;
|
|
using Dalamud.Game.ClientState.Objects.Types;
|
|
using Dalamud.Plugin.Services;
|
|
using FFXIVClientStructs.FFXIV.Client.Game;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.Event;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.InstanceContent;
|
|
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 SinglePlayerDuty
|
|
{
|
|
internal static class SpecialTerritories
|
|
{
|
|
public const ushort Lahabrea = 1052;
|
|
|
|
public const ushort ItsProbablyATrap = 665;
|
|
|
|
public const ushort Naadam = 688;
|
|
}
|
|
|
|
internal sealed class Factory(BossModIpc bossModIpc, WrathComboModule wrathComboModule, RotationSolverRebornModule rsrModule, Configuration configuration, TerritoryData territoryData, QuestFunctions questFunctions, DutyRetryState dutyRetryState, ICondition condition, IClientState clientState, IObjectTable objectTable) : ITaskFactory
|
|
{
|
|
[CompilerGenerated]
|
|
private sealed class _003CCreateAllTasks_003Ed__11 : IEnumerable<ITask>, IEnumerable, IEnumerator<ITask>, IEnumerator, IDisposable
|
|
{
|
|
private int _003C_003E1__state;
|
|
|
|
private ITask _003C_003E2__current;
|
|
|
|
private int _003C_003El__initialThreadId;
|
|
|
|
private QuestStep step;
|
|
|
|
public QuestStep _003C_003E3__step;
|
|
|
|
public Factory _003C_003E4__this;
|
|
|
|
private Quest quest;
|
|
|
|
public Quest _003C_003E3__quest;
|
|
|
|
private byte _003CseqBefore_003E5__2;
|
|
|
|
private IReadOnlyList<byte> _003CvarsBefore_003E5__3;
|
|
|
|
private List<ITask> _003CdutyTasks_003E5__4;
|
|
|
|
private List<ITask>.Enumerator _003C_003E7__wrap4;
|
|
|
|
ITask IEnumerator<ITask>.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
object IEnumerator.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
public _003CCreateAllTasks_003Ed__11(int _003C_003E1__state)
|
|
{
|
|
this._003C_003E1__state = _003C_003E1__state;
|
|
_003C_003El__initialThreadId = _206B_202C_206B_200B_200C_202B_202A_202E_206F_202C_200E_200C_206B_206D_200E_200D_200E_206E_200F_202E_206E_200E_202D_200C_202C_200B_206A_202C_206F_202C_206E_200E_206F_206E_200C_206C_206C_200B_202C_206A_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IDisposable.Dispose()
|
|
{
|
|
int num = _003C_003E1__state;
|
|
int num2 = ((num == -3) ? (-1270802467) : (-1270802466));
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -1270802465;
|
|
int num5 = num3;
|
|
int num6 = num5 + num4;
|
|
int num7 = num5 & num4;
|
|
switch (num6 - (num7 + num7))
|
|
{
|
|
default:
|
|
continue;
|
|
case 0:
|
|
num2 = -1270802466;
|
|
continue;
|
|
case 1:
|
|
if (num == 2)
|
|
{
|
|
num2 = -1270802467;
|
|
continue;
|
|
}
|
|
break;
|
|
case 2:
|
|
try
|
|
{
|
|
}
|
|
finally
|
|
{
|
|
_003C_003Em__Finally1();
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
_003CvarsBefore_003E5__3 = null;
|
|
_003CdutyTasks_003E5__4 = null;
|
|
_003C_003E7__wrap4 = default(List<ITask>.Enumerator);
|
|
_003C_003E1__state = -2;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private bool MoveNext()
|
|
{
|
|
try
|
|
{
|
|
int num = _003C_003E1__state;
|
|
Factory CS_0024_003C_003E8__locals17 = _003C_003E4__this;
|
|
switch (num)
|
|
{
|
|
case 2:
|
|
goto IL_0283;
|
|
case 1:
|
|
goto IL_03d6;
|
|
case 0:
|
|
goto IL_0449;
|
|
case 3:
|
|
goto IL_04a2;
|
|
}
|
|
int num2 = -114893671;
|
|
goto IL_0030;
|
|
IL_03d6:
|
|
_003C_003E1__state = -1;
|
|
num2 = ((!CS_0024_003C_003E8__locals17.bossModIpc.IsConfiguredToRunSoloInstance(quest.Id, _206D_202A_206D_200C_206C_202C_202A_202A_206C_202D_202B_202E_202B_200C_200F_202B_206C_202D_202A_202B_206D_206F_200D_206E_200C_206E_200E_206E_200B_206D_200E_206E_200C_202B_202B_200D_202E_202E_206A_200E_202E(step))) ? (-114893693) : (-114893690));
|
|
goto IL_0030;
|
|
IL_0030:
|
|
TerritoryData.ContentFinderConditionData contentFinderConditionData = default(TerritoryData.ContentFinderConditionData);
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -114893684;
|
|
int num5 = num3;
|
|
int num6 = num5 + num4;
|
|
int num7 = num5 & num4;
|
|
switch (num6 - (num7 + num7))
|
|
{
|
|
case 0:
|
|
_003CdutyTasks_003E5__4.Add(new Duty.EnableBossModPassiveForDutyTask());
|
|
num2 = -114893679;
|
|
break;
|
|
case 21:
|
|
return false;
|
|
case 3:
|
|
throw new TaskException(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>(1303253303));
|
|
case 10:
|
|
goto IL_0109;
|
|
case 19:
|
|
_003CdutyTasks_003E5__4.Add(new WaitCondition.Task(delegate
|
|
{
|
|
int num8 = ((Factory._206A_206B_202D_202C_206C_202C_200C_202E_202B_202E_200C_200F_202B_206C_202E_202A_200B_206E_200E_206F_202A_206A_200E_202B_200E_202D_200C_202E_202C_206C_202A_200F_202C_200D_202D_200C_206A_202A_202E_206A_202E(CS_0024_003C_003E8__locals17.clientState) == 688) ? 594200038 : 594200037);
|
|
while (true)
|
|
{
|
|
int num9 = num8;
|
|
int num10 = 594200036;
|
|
int num11 = num9;
|
|
int num12 = num11 + num10;
|
|
int num13 = num11 & num10;
|
|
switch (num12 - (num13 + num13))
|
|
{
|
|
case 0:
|
|
goto IL_0055;
|
|
case 1:
|
|
return true;
|
|
case 2:
|
|
{
|
|
IGameObject gameObject = Factory._202E_202A_202D_202C_200C_200F_206F_206C_202D_206F_206A_206F_202C_202C_202B_202E_206C_202B_200D_206C_206D_206E_202B_200F_206B_200E_206D_202D_202D_206B_202B_200E_200E_202D_202E_206F_202B_202E_206D_202C_202E(CS_0024_003C_003E8__locals17.objectTable, 0);
|
|
Vector3 vector = ((gameObject != null) ? Factory._206D_202B_202B_206E_200E_200D_200F_200C_202E_206B_202E_206B_206E_202B_206C_206A_202A_200E_202E_200C_206D_200D_202B_202B_206E_206E_206D_206C_206D_200E_200C_206E_200C_200D_200D_200E_200E_202D_200C_200C_202E(gameObject) : default(Vector3));
|
|
return (new Vector3(352.01f, -1.45f, 288.59f) - vector).Length() < 10f;
|
|
}
|
|
}
|
|
continue;
|
|
IL_0055:
|
|
num8 = 594200037;
|
|
}
|
|
}, 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>(-647590790)));
|
|
_003CdutyTasks_003E5__4.Add(new Mount.UnmountTask());
|
|
_003CdutyTasks_003E5__4.Add(new EnableAi());
|
|
num2 = -114893668;
|
|
break;
|
|
case 2:
|
|
_003CdutyTasks_003E5__4.Add(new SetTarget(14643u));
|
|
_003CdutyTasks_003E5__4.Add(new WaitCondition.Task(delegate
|
|
{
|
|
int num8 = (Factory._200D_206F_202B_202A_202E_206C_200B_202B_206F_202D_202C_200B_206E_200C_200C_200B_206D_202B_206C_206C_206A_200F_202C_202D_202A_200D_202B_200D_200D_206F_202E_206B_200D_206A_206A_202D_206F_202A_206E_200F_202E(CS_0024_003C_003E8__locals17.condition, ConditionFlag.Unconscious) ? (-535748773) : (-535748776));
|
|
while (true)
|
|
{
|
|
int num9 = num8;
|
|
int num10 = -535748774;
|
|
int num11 = num9;
|
|
switch ((num11 | num10) - (num11 & num10))
|
|
{
|
|
case 0:
|
|
goto IL_004c;
|
|
case 2:
|
|
return Factory._206A_206B_202D_202C_206C_202C_200C_202E_202B_202E_200C_200F_202B_206C_202E_202A_200B_206E_200E_206F_202A_206A_200E_202B_200E_202D_200C_202E_202C_206C_202A_200F_202C_200D_202D_200C_206A_202A_202E_206A_202E(CS_0024_003C_003E8__locals17.clientState) != 1052;
|
|
case 1:
|
|
return true;
|
|
}
|
|
continue;
|
|
IL_004c:
|
|
num8 = -535748776;
|
|
}
|
|
}, 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>(2114872246)));
|
|
_003CdutyTasks_003E5__4.Add(new DisableAi());
|
|
_003CdutyTasks_003E5__4.Add(new WaitCondition.Task(delegate
|
|
{
|
|
int num8 = ((!Factory._200D_206F_202B_202A_202E_206C_200B_202B_206F_202D_202C_200B_206E_200C_200C_200B_206D_202B_206C_206C_206A_200F_202C_202D_202A_200D_202B_200D_200D_206F_202E_206B_200D_206A_206A_202D_206F_202A_206E_200F_202E(CS_0024_003C_003E8__locals17.condition, ConditionFlag.Unconscious)) ? 269561027 : 269561026);
|
|
while (true)
|
|
{
|
|
int num9 = num8;
|
|
int num10 = 269561027;
|
|
int num11 = num9;
|
|
int num12 = num11 + num10;
|
|
int num13 = num11 & num10;
|
|
switch (num12 - (num13 + num13))
|
|
{
|
|
case 0:
|
|
return true;
|
|
case 1:
|
|
return Factory._206A_206B_202D_202C_206C_202C_200C_202E_202B_202E_200C_200F_202B_206C_202E_202A_200B_206E_200E_206F_202A_206A_200E_202B_200E_202D_200C_202E_202C_206C_202A_200F_202C_200D_202D_200C_206A_202A_202E_206A_202E(CS_0024_003C_003E8__locals17.clientState) != 1052;
|
|
case 2:
|
|
goto IL_0066;
|
|
}
|
|
continue;
|
|
IL_0066:
|
|
num8 = 269561026;
|
|
}
|
|
}, 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>(724387601)));
|
|
_003CdutyTasks_003E5__4.Add(new EnableAi());
|
|
num2 = -114893668;
|
|
break;
|
|
case 16:
|
|
_003CdutyTasks_003E5__4.Add(new WaitSinglePlayerDuty(contentFinderConditionData.ContentFinderConditionId));
|
|
_003CdutyTasks_003E5__4.Add(new DisableAi());
|
|
_003CdutyTasks_003E5__4.Add(new Duty.DisableCombatPluginsForDutyTask());
|
|
_003C_003E7__wrap4 = _003CdutyTasks_003E5__4.GetEnumerator();
|
|
_003C_003E1__state = -3;
|
|
num2 = -114893694;
|
|
break;
|
|
case 7:
|
|
goto end_IL_0030;
|
|
case 27:
|
|
return false;
|
|
case 13:
|
|
_003CdutyTasks_003E5__4.Add(new Duty.EnableBossModForDutyTask());
|
|
num2 = -114893679;
|
|
break;
|
|
case 4:
|
|
goto IL_02c6;
|
|
case 28:
|
|
goto IL_0355;
|
|
case 14:
|
|
goto IL_037d;
|
|
case 23:
|
|
_003C_003E2__current = new Mount.UnmountTask();
|
|
_003C_003E1__state = 1;
|
|
return true;
|
|
case 26:
|
|
num2 = -114893671;
|
|
break;
|
|
case 8:
|
|
goto IL_03d6;
|
|
case 9:
|
|
goto IL_041b;
|
|
case 17:
|
|
goto IL_0449;
|
|
case 5:
|
|
goto IL_047a;
|
|
case 6:
|
|
goto IL_04a2;
|
|
case 11:
|
|
_003CdutyTasks_003E5__4.Add(new WaitCondition.Task(delegate
|
|
{
|
|
int num8 = (CS_0024_003C_003E8__locals17.DutyActionsAvailable() ? 1858330759 : 1858330756);
|
|
while (true)
|
|
{
|
|
int num9 = num8;
|
|
int num10 = 1858330758;
|
|
int num11 = num9;
|
|
switch ((num11 | num10) - (num11 & num10))
|
|
{
|
|
case 0:
|
|
goto IL_0046;
|
|
case 2:
|
|
return Factory._206A_206B_202D_202C_206C_202C_200C_202E_202B_202E_200C_200F_202B_206C_202E_202A_200B_206E_200E_206F_202A_206A_200E_202B_200E_202D_200C_202E_202C_206C_202A_200F_202C_200D_202D_200C_206A_202A_202E_206A_202E(CS_0024_003C_003E8__locals17.clientState) != 665;
|
|
case 1:
|
|
return true;
|
|
}
|
|
continue;
|
|
IL_0046:
|
|
num8 = 1858330756;
|
|
}
|
|
}, 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>(1936756952)));
|
|
_003CdutyTasks_003E5__4.Add(new EnableAi());
|
|
num2 = -114893668;
|
|
break;
|
|
case 12:
|
|
_003CdutyTasks_003E5__4.Add(new Duty.EnableWrathForDutyTask());
|
|
num2 = -114893691;
|
|
break;
|
|
case 25:
|
|
_003CdutyTasks_003E5__4.Add(new Duty.EnableRsrForDutyTask());
|
|
num2 = -114893691;
|
|
break;
|
|
case 22:
|
|
goto IL_053d;
|
|
case 18:
|
|
goto IL_0565;
|
|
case 20:
|
|
_003C_003Em__Finally1();
|
|
_003C_003E7__wrap4 = default(List<ITask>.Enumerator);
|
|
_003C_003E2__current = new CheckDutyOutcome(quest.Id, _003CseqBefore_003E5__2, _003CvarsBefore_003E5__3, _202B_206A_202B_206F_200F_200B_206C_206D_206C_200C_202A_202D_206F_202E_206F_206B_206B_206C_200C_206E_200C_202D_200C_206B_202A_200E_206A_206A_200F_200D_206A_206E_202A_202A_206D_202D_200D_200E_206B_206B_202E(step), _003CdutyTasks_003E5__4);
|
|
_003C_003E1__state = 3;
|
|
return true;
|
|
case 24:
|
|
goto IL_05ec;
|
|
case 1:
|
|
{
|
|
ITask current = _003C_003E7__wrap4.Current;
|
|
_003C_003E2__current = current;
|
|
_003C_003E1__state = 2;
|
|
return true;
|
|
}
|
|
case 29:
|
|
goto IL_0643;
|
|
case 15:
|
|
return false;
|
|
}
|
|
continue;
|
|
IL_0643:
|
|
_003CdutyTasks_003E5__4.Add(new StartSinglePlayerDuty(contentFinderConditionData.ContentFinderConditionId));
|
|
_003CdutyTasks_003E5__4.Add(new WaitAtStart.WaitDelay(TimeSpan.FromSeconds(2L)));
|
|
_003CdutyTasks_003E5__4.Add(new EnableAi());
|
|
num2 = ((contentFinderConditionData.TerritoryId != 1052) ? (-114893670) : (-114893682));
|
|
continue;
|
|
IL_0109:
|
|
num2 = (CS_0024_003C_003E8__locals17.territoryData.TryGetContentFinderConditionForSoloInstance(quest.Id, _200F_206A_206D_206F_206B_202D_202B_206F_200B_200F_202C_206B_206F_206A_206B_202E_206F_200C_202B_206F_202A_206E_206D_206C_202C_200C_206E_206B_200B_200B_200B_202A_200C_206B_206C_206A_202C_202D_206B_200D_202E(step), out contentFinderConditionData) ? (-114893688) : (-114893681));
|
|
continue;
|
|
IL_0355:
|
|
num2 = ((!CS_0024_003C_003E8__locals17.rsrModule.IsAvailable()) ? (-114893691) : (-114893675));
|
|
continue;
|
|
IL_05ec:
|
|
num2 = ((!CS_0024_003C_003E8__locals17.bossModIpc.IsSupported()) ? (-114893679) : (-114893684));
|
|
continue;
|
|
IL_047a:
|
|
num2 = ((!CS_0024_003C_003E8__locals17.bossModIpc.IsSupported()) ? (-114893676) : (-114893695));
|
|
continue;
|
|
IL_037d:
|
|
num2 = (_003C_003E7__wrap4.MoveNext() ? (-114893683) : (-114893672));
|
|
continue;
|
|
IL_0565:
|
|
num2 = ((contentFinderConditionData.TerritoryId != 688) ? (-114893668) : (-114893665));
|
|
continue;
|
|
IL_02c6:
|
|
QuestProgressInfo questProgressInfo = CS_0024_003C_003E8__locals17.questFunctions.GetQuestProgressInfo(quest.Id);
|
|
_003CseqBefore_003E5__2 = questProgressInfo?.Sequence ?? 0;
|
|
_003CvarsBefore_003E5__3 = questProgressInfo?.Variables.ToArray();
|
|
CS_0024_003C_003E8__locals17.dutyRetryState.Reset();
|
|
_003CdutyTasks_003E5__4 = new List<ITask>();
|
|
num2 = ((!CS_0024_003C_003E8__locals17.wrathComboModule.IsAvailable()) ? (-114893680) : (-114893696));
|
|
continue;
|
|
IL_041b:
|
|
num2 = ((CS_0024_003C_003E8__locals17.configuration.General.CombatModule != Configuration.ECombatModule.BossMod) ? (-114893676) : (-114893687));
|
|
continue;
|
|
IL_053d:
|
|
num2 = ((contentFinderConditionData.TerritoryId != 665) ? (-114893666) : (-114893689));
|
|
continue;
|
|
end_IL_0030:
|
|
break;
|
|
}
|
|
goto IL_0283;
|
|
IL_04a2:
|
|
_003C_003E1__state = -1;
|
|
_003CvarsBefore_003E5__3 = null;
|
|
_003CdutyTasks_003E5__4 = null;
|
|
num2 = -114893693;
|
|
goto IL_0030;
|
|
IL_0449:
|
|
_003C_003E1__state = -1;
|
|
num2 = ((_206F_200E_206B_206F_202C_202C_200C_202C_206C_206D_200B_206C_200E_200B_202C_206A_200B_206F_202A_206C_200C_202D_202D_200D_206B_206E_200C_202A_206A_200B_200D_200C_202E_200D_202B_202E_200F_206A_206A_200F_202E(step) == EInteractionType.SinglePlayerDuty) ? (-114893669) : (-114893673));
|
|
goto IL_0030;
|
|
IL_0283:
|
|
_003C_003E1__state = -3;
|
|
num2 = -114893694;
|
|
goto IL_0030;
|
|
}
|
|
catch
|
|
{
|
|
//try-fault
|
|
((IDisposable)this).Dispose();
|
|
throw;
|
|
}
|
|
}
|
|
|
|
bool IEnumerator.MoveNext()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
|
|
return this.MoveNext();
|
|
}
|
|
|
|
private void _003C_003Em__Finally1()
|
|
{
|
|
_003C_003E1__state = -1;
|
|
((IDisposable)_003C_003E7__wrap4/*cast due to .constrained prefix*/).Dispose();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IEnumerator.Reset()
|
|
{
|
|
throw _200B_200C_206A_206D_206D_200C_206B_206D_206B_206E_200B_206D_200B_200B_202A_200D_206D_202E_206F_200E_206D_200D_202B_200B_200B_200D_206B_202C_202C_202E_206B_200E_206E_206A_202B_202B_202C_202B_200D_206E_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator<ITask> IEnumerable<ITask>.GetEnumerator()
|
|
{
|
|
int num = ((_003C_003E1__state != -2) ? (-2042698329) : (-2042698330));
|
|
_003CCreateAllTasks_003Ed__11 _003CCreateAllTasks_003Ed__ = default(_003CCreateAllTasks_003Ed__11);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -2042698332;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 4:
|
|
num = -2042698330;
|
|
break;
|
|
case 0:
|
|
_003CCreateAllTasks_003Ed__.quest = _003C_003E3__quest;
|
|
_003CCreateAllTasks_003Ed__.step = _003C_003E3__step;
|
|
return _003CCreateAllTasks_003Ed__;
|
|
case 3:
|
|
_003CCreateAllTasks_003Ed__ = new _003CCreateAllTasks_003Ed__11(0)
|
|
{
|
|
_003C_003E4__this = _003C_003E4__this
|
|
};
|
|
num = -2042698332;
|
|
break;
|
|
case 1:
|
|
_003C_003E1__state = 0;
|
|
_003CCreateAllTasks_003Ed__ = this;
|
|
num = -2042698332;
|
|
break;
|
|
case 2:
|
|
num = ((_003C_003El__initialThreadId != _206B_202C_206B_200B_200C_202B_202A_202E_206F_202C_200E_200C_206B_206D_200E_200D_200E_206E_200F_202E_206E_200E_202D_200C_202C_200B_206A_202C_206F_202C_206E_200E_206F_206E_200C_206C_206C_200B_202C_206A_202E()) ? (-2042698329) : (-2042698331));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return ((IEnumerable<ITask>)this).GetEnumerator();
|
|
}
|
|
|
|
static int _206B_202C_206B_200B_200C_202B_202A_202E_206F_202C_200E_200C_206B_206D_200E_200D_200E_206E_200F_202E_206E_200E_202D_200C_202C_200B_206A_202C_206F_202C_206E_200E_206F_206E_200C_206C_206C_200B_202C_206A_202E()
|
|
{
|
|
return Environment.CurrentManagedThreadId;
|
|
}
|
|
|
|
static EInteractionType _206F_200E_206B_206F_202C_202C_200C_202C_206C_206D_200B_206C_200E_200B_202C_206A_200B_206F_202A_206C_200C_202D_202D_200D_206B_206E_200C_202A_206A_200B_200D_200C_202E_200D_202B_202E_200F_206A_206A_200F_202E(QuestStep P_0)
|
|
{
|
|
return P_0.InteractionType;
|
|
}
|
|
|
|
static SinglePlayerDutyOptions _206D_202A_206D_200C_206C_202C_202A_202A_206C_202D_202B_202E_202B_200C_200F_202B_206C_202D_202A_202B_206D_206F_200D_206E_200C_206E_200E_206E_200B_206D_200E_206E_200C_202B_202B_200D_202E_202E_206A_200E_202E(QuestStep P_0)
|
|
{
|
|
return P_0.SinglePlayerDutyOptions;
|
|
}
|
|
|
|
static byte _200F_206A_206D_206F_206B_202D_202B_206F_200B_200F_202C_206B_206F_206A_206B_202E_206F_200C_202B_206F_202A_206E_206D_206C_202C_200C_206E_206B_200B_200B_200B_202A_200C_206B_206C_206A_202C_202D_206B_200D_202E(QuestStep P_0)
|
|
{
|
|
return P_0.SinglePlayerDutyIndex;
|
|
}
|
|
|
|
static List<QuestWorkValue> _202B_206A_202B_206F_200F_200B_206C_206D_206C_200C_202A_202D_206F_202E_206F_206B_206B_206C_200C_206E_200C_202D_200C_206B_202A_200E_206A_206A_200F_200D_206A_206E_202A_202A_206D_202D_200D_200E_206B_206B_202E(QuestStep P_0)
|
|
{
|
|
return P_0.CompletionQuestVariablesFlags;
|
|
}
|
|
|
|
static NotSupportedException _200B_200C_206A_206D_206D_200C_206B_206D_206B_206E_200B_206D_200B_200B_202A_200D_206D_202E_206F_200E_206D_200D_202B_200B_200B_200D_206B_202C_202C_202E_206B_200E_206E_206A_202B_202B_202C_202B_200D_206E_202E()
|
|
{
|
|
return new NotSupportedException();
|
|
}
|
|
}
|
|
|
|
[IteratorStateMachine(typeof(_003CCreateAllTasks_003Ed__11))]
|
|
public IEnumerable<ITask> CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
|
{
|
|
//yield-return decompiler failed: Unexpected instruction in Iterator.Dispose()
|
|
return new _003CCreateAllTasks_003Ed__11(-2)
|
|
{
|
|
_003C_003E4__this = this,
|
|
_003C_003E3__quest = quest,
|
|
_003C_003E3__step = step
|
|
};
|
|
}
|
|
|
|
IEnumerable<ITask> ITaskFactory.CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in CreateAllTasks
|
|
return this.CreateAllTasks(quest, sequence, step);
|
|
}
|
|
|
|
private unsafe bool DutyActionsAvailable()
|
|
{
|
|
ContentDirector* contentDirector = EventFramework.Instance()->GetContentDirector();
|
|
int num = ((contentDirector == null) ? (-1007812082) : (-1007812083));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1007812084;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
goto IL_0050;
|
|
case 1:
|
|
return contentDirector->DutyActionManager.ActionsPresent;
|
|
case 2:
|
|
return false;
|
|
}
|
|
continue;
|
|
IL_0050:
|
|
num = -1007812083;
|
|
}
|
|
}
|
|
|
|
static bool _200D_206F_202B_202A_202E_206C_200B_202B_206F_202D_202C_200B_206E_200C_200C_200B_206D_202B_206C_206C_206A_200F_202C_202D_202A_200D_202B_200D_200D_206F_202E_206B_200D_206A_206A_202D_206F_202A_206E_200F_202E(ICondition P_0, ConditionFlag P_1)
|
|
{
|
|
return P_0[P_1];
|
|
}
|
|
|
|
static uint _206A_206B_202D_202C_206C_202C_200C_202E_202B_202E_200C_200F_202B_206C_202E_202A_200B_206E_200E_206F_202A_206A_200E_202B_200E_202D_200C_202E_202C_206C_202A_200F_202C_200D_202D_200C_206A_202A_202E_206A_202E(IClientState P_0)
|
|
{
|
|
return P_0.TerritoryType;
|
|
}
|
|
|
|
static IGameObject _202E_202A_202D_202C_200C_200F_206F_206C_202D_206F_206A_206F_202C_202C_202B_202E_206C_202B_200D_206C_206D_206E_202B_200F_206B_200E_206D_202D_202D_206B_202B_200E_200E_202D_202E_206F_202B_202E_206D_202C_202E(IObjectTable P_0, int P_1)
|
|
{
|
|
return P_0[P_1];
|
|
}
|
|
|
|
static Vector3 _206D_202B_202B_206E_200E_200D_200F_200C_202E_206B_202E_206B_206E_202B_206C_206A_202A_200E_202E_200C_206D_200D_202B_202B_206E_206E_206D_206C_206D_200E_200C_206E_200C_200D_200D_200E_200E_202D_200C_200C_202E(IGameObject P_0)
|
|
{
|
|
return P_0.Position;
|
|
}
|
|
}
|
|
|
|
internal sealed record StartSinglePlayerDuty(uint ContentFinderConditionId) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202A_202C_200C_206D_202C_206E_206A_200C_200D_206C_202E_206F_202A_202D_206C_206B_206C_202D_200B_200F_202D_200D_202C_202A_200C_200C_206F_200E_202C_206B_206E_202D_200F_202C_202B_200F_200C_206E_206F_206F_202E(typeof(StartSinglePlayerDuty).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(32, 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>(1699884371));
|
|
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)
|
|
{
|
|
_202A_206B_202A_200B_206B_200D_206C_200D_200B_206A_206C_200B_200C_206F_200E_200C_206F_200D_202E_202D_200D_206E_206A_206E_202B_200C_202E_200B_202D_202D_200D_200F_200F_206A_202B_200E_202A_202A_202C_206A_202E();
|
|
_206D_206B_206B_200C_206D_206B_200D_206E_202D_206E_200F_206E_206A_200C_200C_206F_206C_206A_202A_202D_200B_202C_206E_202D_202A_200D_206C_200F_206C_202E_200B_206B_206E_202A_206A_206F_206A_206D_202D_200E_202E(builder, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(573777242));
|
|
_206D_206B_206B_200C_206D_206B_200D_206E_202D_206E_200F_206E_206A_200C_200C_206F_206C_206A_202A_202D_200B_202C_206E_202D_202A_200D_206C_200F_206C_202E_200B_206B_206E_202A_206A_206F_206A_206D_202D_200E_202E(builder, ContentFinderConditionId.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(StartSinglePlayerDuty? other)
|
|
{
|
|
int num = (((object)this == other) ? 182286437 : 182286433);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 182286432;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
num = 182286433;
|
|
break;
|
|
case 0:
|
|
return false;
|
|
case 3:
|
|
return EqualityComparer<uint>.Default.Equals(ContentFinderConditionId, other.ContentFinderConditionId);
|
|
case 4:
|
|
num = ((!_202B_202D_206F_200E_200B_206C_206C_202C_200E_200D_206A_202C_206A_206E_200B_200C_200E_202E_206C_206A_200D_202C_206C_206A_200F_200B_202C_206D_206D_206D_206D_200F_202B_202C_202E_202D_200C_202A_200C_202D_202E(EqualityContract, other.EqualityContract)) ? 182286432 : 182286435);
|
|
break;
|
|
case 5:
|
|
return true;
|
|
case 1:
|
|
num = (((object)other == null) ? 182286432 : 182286436);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<StartSinglePlayerDuty>.Equals(StartSinglePlayerDuty? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202A_202C_200C_206D_202C_206E_206A_200C_200D_206C_202E_206F_202A_202D_206C_206B_206C_202D_200B_200F_202D_200D_202C_202A_200C_200C_206F_200E_202C_206B_206E_202D_200F_202C_202B_200F_200C_206E_206F_206F_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _202A_206B_202A_200B_206B_200D_206C_200D_200B_206A_206C_200B_200C_206F_200E_200C_206F_200D_202E_202D_200D_206E_206A_206E_202B_200C_202E_200B_202D_202D_200D_200F_200F_206A_202B_200E_202A_202A_202C_206A_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _206D_206B_206B_200C_206D_206B_200D_206E_202D_206E_200F_206E_206A_200C_200C_206F_206C_206A_202A_202D_200B_202C_206E_202D_202A_200D_206C_200F_206C_202E_200B_206B_206E_202A_206A_206F_206A_206D_202D_200E_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _202B_202D_206F_200E_200B_206C_206C_202C_200E_200D_206A_202C_206A_206E_200B_200C_200E_202E_206C_206A_200D_202C_206C_206A_200F_200B_202C_206D_206D_206D_206D_200F_202B_202C_202E_202D_200C_202A_200C_202D_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class StartSinglePlayerDutyExecutor(ICondition condition) : TaskExecutor<StartSinglePlayerDuty>()
|
|
{
|
|
private long _enteredAtMs;
|
|
|
|
protected override bool Start()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public unsafe override ETaskResult Update()
|
|
{
|
|
int num = ((GameMain.Instance()->CurrentContentFinderConditionId == base.Task.ContentFinderConditionId) ? (-1428211712) : (-1428211711));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1428211710;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = -1428211711;
|
|
break;
|
|
case 6:
|
|
num = ((_enteredAtMs != 0L) ? (-1428211706) : (-1428211705));
|
|
break;
|
|
case 7:
|
|
return ETaskResult.StillRunning;
|
|
case 4:
|
|
num = ((_202E_206B_206B_206D_202D_202C_206E_206A_206C_206D_206C_206F_202E_206B_202E_202D_206E_202A_202E_202E_202E_206F_202B_206A_202A_206A_202D_206A_206E_200E_206D_206E_200F_202B_206D_202C_200F_202A_206F_202A_202E() - _enteredAtMs >= 2000) ? (-1428211709) : (-1428211702));
|
|
break;
|
|
case 8:
|
|
return ETaskResult.StillRunning;
|
|
case 2:
|
|
num = (_202C_206C_206E_202C_200D_206D_202A_200C_200B_206E_206B_206E_200C_202B_206F_200C_202E_206D_200D_206F_206E_206B_200D_202B_202A_202C_206B_206A_200D_206C_200B_206E_202B_200E_206B_200E_206D_202A_206F_202C_202E(condition, ConditionFlag.BoundByDuty) ? (-1428211708) : (-1428211707));
|
|
break;
|
|
case 5:
|
|
_enteredAtMs = _202E_206B_206B_206D_202D_202C_206E_206A_206C_206D_206C_206F_202E_206B_202E_202D_206E_202A_202E_202E_202E_206F_202B_206A_202A_206A_202D_206A_206E_200E_206D_206E_200F_202B_206D_202C_200F_202A_206F_202A_202E();
|
|
num = -1428211706;
|
|
break;
|
|
case 1:
|
|
return ETaskResult.TaskComplete;
|
|
case 3:
|
|
return ETaskResult.StillRunning;
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static bool _202C_206C_206E_202C_200D_206D_202A_200C_200B_206E_206B_206E_200C_202B_206F_200C_202E_206D_200D_206F_206E_206B_200D_202B_202A_202C_206B_206A_200D_206C_200B_206E_202B_200E_206B_200E_206D_202A_206F_202C_202E(ICondition P_0, ConditionFlag P_1)
|
|
{
|
|
return P_0[P_1];
|
|
}
|
|
|
|
static long _202E_206B_206B_206D_202D_202C_206E_206A_206C_206D_206C_206F_202E_206B_202E_202D_206E_202A_202E_202E_202E_206F_202B_206A_202A_206A_202D_206A_206E_200E_206D_206E_200F_202B_206D_202C_200F_202A_206F_202A_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
}
|
|
|
|
internal sealed record EnableAi : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206A_206E_200F_206C_206D_200B_202E_200D_206C_202E_206B_200D_202B_206C_200E_206D_206B_206F_206F_202C_200B_206B_200C_202A_202D_206B_200E_200B_202E_206C_202D_206A_202E_200F_202A_202C_200E_200F_200E_206C_202E(typeof(EnableAi).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>(-1155426603);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(EnableAi? other)
|
|
{
|
|
int num = (((object)this == other) ? (-348645376) : (-348645374));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -348645373;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 4:
|
|
return false;
|
|
case 1:
|
|
num = (((object)other == null) ? (-348645369) : (-348645375));
|
|
break;
|
|
case 0:
|
|
num = -348645374;
|
|
break;
|
|
case 3:
|
|
return true;
|
|
case 2:
|
|
return _206F_200B_202A_200E_200B_206F_202D_206B_202C_200F_206C_200B_200F_202C_200D_206B_206E_202A_202E_206B_200D_202A_206B_206B_200F_200D_202D_200E_206A_200F_202E_202A_202D_206E_200F_202B_206B_200C_202D_202E_202E(EqualityContract, other.EqualityContract);
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<EnableAi>.Equals(EnableAi? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206A_206E_200F_206C_206D_200B_202E_200D_206C_202E_206B_200D_202B_206C_200E_206D_206B_206F_206F_202C_200B_206B_200C_202A_202D_206B_200E_200B_202E_206C_202D_206A_202E_200F_202A_202C_200E_200F_200E_206C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _206F_200B_202A_200E_200B_206F_202D_206B_202C_200F_206C_200B_200F_202C_200D_206B_206E_202A_202E_206B_200D_202A_206B_206B_200F_200D_202D_200E_206A_200F_202E_202A_202D_206E_200F_202B_206B_200C_202D_202E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class EnableAiExecutor(BossModIpc bossModIpc) : TaskExecutor<EnableAi>()
|
|
{
|
|
protected override bool Start()
|
|
{
|
|
bossModIpc.EnableQuestBattleAi();
|
|
return true;
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
internal sealed record WaitSinglePlayerDuty(uint ContentFinderConditionId) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206E_200E_206D_202B_202C_202E_206B_202E_200C_202C_206B_200D_200D_200E_206E_202A_202C_206B_200E_206D_200C_200F_202C_202B_202A_202D_202E_202E_200E_206C_202D_200F_202E_206F_200F_206E_202C_206D_202E_202C_202E(typeof(WaitSinglePlayerDuty).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(29, 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>(453077313));
|
|
defaultInterpolatedStringHandler.AppendFormatted(ContentFinderConditionId);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(424561659));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_206F_200D_202E_202D_202B_206C_202E_202D_202E_206E_202B_206F_206E_200D_202B_202B_206C_206E_200F_202D_206D_206F_200E_200F_206E_200C_202A_202E_200D_202B_202A_202D_202A_202A_206D_206E_206D_202C_206F_200D_202E();
|
|
_206E_206D_200E_200C_202C_202A_206E_202A_206D_206D_200D_200B_206A_206E_206D_202D_206D_202B_206C_200D_202E_200F_200D_202B_202C_200E_206B_200C_200B_200C_202B_206D_200D_202B_206C_206E_202C_200C_206A_202A_202E(builder, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-547124860));
|
|
_206E_206D_200E_200C_202C_202A_206E_202A_206D_206D_200D_200B_206A_206E_206D_202D_206D_202B_206C_200D_202E_200F_200D_202B_202C_200E_206B_200C_200B_200C_202B_206D_200D_202B_206C_206E_202C_200C_206A_202A_202E(builder, ContentFinderConditionId.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(WaitSinglePlayerDuty? other)
|
|
{
|
|
int num = (((object)this == other) ? 1295617410 : 1295617411);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1295617414;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = 1295617411;
|
|
break;
|
|
case 3:
|
|
num = ((!_200D_202B_202A_202B_200C_200B_202D_200B_206D_206B_200C_202C_200D_206A_200E_202C_206C_200E_200D_206A_200C_200B_200B_206A_200E_200D_200C_200F_206A_200F_200E_202D_200D_202D_206A_206A_200B_202D_200E_206C_202E(EqualityContract, other.EqualityContract)) ? 1295617415 : 1295617412);
|
|
break;
|
|
case 4:
|
|
return true;
|
|
case 2:
|
|
return EqualityComparer<uint>.Default.Equals(ContentFinderConditionId, other.ContentFinderConditionId);
|
|
case 5:
|
|
num = (((object)other == null) ? 1295617415 : 1295617413);
|
|
break;
|
|
case 1:
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<WaitSinglePlayerDuty>.Equals(WaitSinglePlayerDuty? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206E_200E_206D_202B_202C_202E_206B_202E_200C_202C_206B_200D_200D_200E_206E_202A_202C_206B_200E_206D_200C_200F_202C_202B_202A_202D_202E_202E_200E_206C_202D_200F_202E_206F_200F_206E_202C_206D_202E_202C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _206F_200D_202E_202D_202B_206C_202E_202D_202E_206E_202B_206F_206E_200D_202B_202B_206C_206E_200F_202D_206D_206F_200E_200F_206E_200C_202A_202E_200D_202B_202A_202D_202A_202A_206D_206E_206D_202C_206F_200D_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _206E_206D_200E_200C_202C_202A_206E_202A_206D_206D_200D_200B_206A_206E_206D_202D_206D_202B_206C_200D_202E_200F_200D_202B_202C_200E_206B_200C_200B_200C_202B_206D_200D_202B_206C_206E_202C_200C_206A_202A_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _200D_202B_202A_202B_200C_200B_202D_200B_206D_206B_200C_202C_200D_206A_200E_202C_206C_200E_200D_206A_200C_200B_200B_206A_200E_200D_200C_200F_206A_200F_200E_202D_200D_202D_206A_206A_200B_202D_200E_206C_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class WaitSinglePlayerDutyExecutor(BossModIpc bossModIpc, MovementController movementController, TerritoryData territoryData, NotificationService notificationService) : TaskExecutor<WaitSinglePlayerDuty>(), IStoppableTaskExecutor, ITaskExecutor, IDebugStateProvider
|
|
{
|
|
protected override bool Start()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public unsafe override ETaskResult Update()
|
|
{
|
|
int num = ((GameMain.Instance()->CurrentContentFinderConditionId == base.Task.ContentFinderConditionId) ? (-1834918135) : (-1834918134));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1834918136;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 1:
|
|
return ETaskResult.StillRunning;
|
|
case 2:
|
|
{
|
|
string text = territoryData.GetContentFinderCondition(base.Task.ContentFinderConditionId)?.Name ?? 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>(-259383863);
|
|
notificationService.Notify(EInteractionType.SinglePlayerDuty, _202A_200B_200D_202C_202E_200B_206F_206E_206D_206C_206E_200D_200D_206A_206F_202A_206E_206C_200E_206D_202D_202B_202B_200D_200E_202E_202D_200C_200D_200F_200B_206A_202C_200F_200D_200C_202A_200F_200B_202E_202E(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>(735471578), text));
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
case 0:
|
|
goto IL_00b0;
|
|
}
|
|
continue;
|
|
IL_00b0:
|
|
num = -1834918134;
|
|
}
|
|
}
|
|
|
|
public void StopNow()
|
|
{
|
|
bossModIpc.DisableQuestBattleAi();
|
|
}
|
|
|
|
void IStoppableTaskExecutor.StopNow()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in StopNow
|
|
this.StopNow();
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public string? GetDebugState()
|
|
{
|
|
int num = (movementController.IsNavmeshReady ? 584129140 : 584129143);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 584129141;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_004b;
|
|
case 1:
|
|
return null;
|
|
case 2:
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(10, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(412480717));
|
|
defaultInterpolatedStringHandler.AppendFormatted(movementController.BuiltNavmeshPercent);
|
|
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>(-1723959331));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
}
|
|
continue;
|
|
IL_004b:
|
|
num = 584129143;
|
|
}
|
|
}
|
|
|
|
string? IDebugStateProvider.GetDebugState()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in GetDebugState
|
|
return this.GetDebugState();
|
|
}
|
|
|
|
static string _202A_200B_200D_202C_202E_200B_206F_206E_206D_206C_206E_200D_200D_206A_206F_202A_206E_206C_200E_206D_202D_202B_202B_200D_200E_202E_202D_200C_200D_200F_200B_206A_202C_200F_200D_200C_202A_200F_200B_202E_202E(string P_0, string P_1)
|
|
{
|
|
return P_0 + P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed record DisableAi : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206C_202C_202C_200C_206B_202C_206E_200F_200F_200D_200E_206A_202C_200E_202E_200B_202B_200D_200F_200B_206C_200F_206D_200B_202E_202E_206F_206E_206E_206C_200C_200F_200B_200D_206A_200F_206B_200E_206A_202C_202E(typeof(DisableAi).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>(1704444161);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(DisableAi? other)
|
|
{
|
|
int num = (((object)this == other) ? 1927354889 : 1927354891);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1927354888;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
return true;
|
|
case 3:
|
|
num = (((object)other == null) ? 1927354890 : 1927354892);
|
|
break;
|
|
case 2:
|
|
return false;
|
|
case 0:
|
|
num = 1927354891;
|
|
break;
|
|
case 4:
|
|
return _202E_206F_200C_206E_202C_202B_206A_206B_206E_206F_206C_202C_202C_202D_200B_200E_206C_200E_200C_206D_206F_200C_200F_206A_200F_202D_200B_206B_202C_200C_200C_206E_206B_206F_200D_200E_200F_200D_202E_202D_202E(EqualityContract, other.EqualityContract);
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<DisableAi>.Equals(DisableAi? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206C_202C_202C_200C_206B_202C_206E_200F_200F_200D_200E_206A_202C_200E_202E_200B_202B_200D_200F_200B_206C_200F_206D_200B_202E_202E_206F_206E_206E_206C_200C_200F_200B_200D_206A_200F_206B_200E_206A_202C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _202E_206F_200C_206E_202C_202B_206A_206B_206E_206F_206C_202C_202C_202D_200B_200E_206C_200E_200C_206D_206F_200C_200F_206A_200F_202D_200B_206B_202C_200C_200C_206E_206B_206F_200D_200E_200F_200D_202E_202D_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class DisableAiExecutor(BossModIpc bossModIpc) : TaskExecutor<DisableAi>()
|
|
{
|
|
protected override bool Start()
|
|
{
|
|
bossModIpc.DisableQuestBattleAi();
|
|
return true;
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
internal sealed record SetTarget(uint DataId) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202D_202A_206A_202D_202C_206A_200F_206B_206F_200E_200C_206B_206B_200E_202D_200E_206F_206C_202C_200F_202B_202C_202E_202D_202C_206C_206A_206C_206A_206C_200C_200C_206C_202D_206B_200E_202D_200C_206C_206C_202E(typeof(SetTarget).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(11, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(214601937));
|
|
defaultInterpolatedStringHandler.AppendFormatted(DataId);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(444206578));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_206E_200C_206C_206E_200C_202D_200C_200B_200D_202C_200F_200C_202C_200B_200E_200D_200B_202C_206F_200D_200D_200D_206D_206E_206A_202C_206D_202B_206E_202B_202C_200B_200E_206C_206C_202B_202E_206B_206C_202E_202E();
|
|
_200C_202E_206A_202E_202A_202C_202B_200D_200D_206C_200F_200C_206D_200E_202B_206C_206B_206E_206C_200C_206D_202C_202B_202D_202C_202C_206A_206C_200C_202C_200F_200E_200F_202E_206B_206E_202A_206A_202E_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>(931106117));
|
|
_200C_202E_206A_202E_202A_202C_202B_200D_200D_206C_200F_200C_206D_200E_202B_206C_206B_206E_206C_200C_206D_202C_202B_202D_202C_202C_206A_206C_200C_202C_200F_200E_200F_202E_206B_206E_202A_206A_202E_202E_202E(builder, DataId.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(SetTarget? other)
|
|
{
|
|
int num = (((object)this == other) ? (-1091938364) : (-1091938362));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1091938363;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 4:
|
|
num = ((!_202D_206A_202E_206B_202A_200D_206F_206C_202B_202B_202E_200F_206C_202D_206D_202A_206C_206D_206C_202A_206C_202D_200B_206B_206C_206E_202A_202C_206A_202C_206D_206E_206A_202E_206E_202E_202B_206E_206E_206F_202E(EqualityContract, other.EqualityContract)) ? (-1091938361) : (-1091938368));
|
|
break;
|
|
case 5:
|
|
return EqualityComparer<uint>.Default.Equals(DataId, other.DataId);
|
|
case 0:
|
|
num = -1091938362;
|
|
break;
|
|
case 1:
|
|
return true;
|
|
case 2:
|
|
return false;
|
|
case 3:
|
|
num = (((object)other == null) ? (-1091938361) : (-1091938367));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<SetTarget>.Equals(SetTarget? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202D_202A_206A_202D_202C_206A_200F_206B_206F_200E_200C_206B_206B_200E_202D_200E_206F_206C_202C_200F_202B_202C_202E_202D_202C_206C_206A_206C_206A_206C_200C_200C_206C_202D_206B_200E_202D_200C_206C_206C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _206E_200C_206C_206E_200C_202D_200C_200B_200D_202C_200F_200C_202C_200B_200E_200D_200B_202C_206F_200D_200D_200D_206D_206E_206A_202C_206D_202B_206E_202B_202C_200B_200E_206C_206C_202B_202E_206B_206C_202E_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _200C_202E_206A_202E_202A_202C_202B_200D_200D_206C_200F_200C_206D_200E_202B_206C_206B_206E_206C_200C_206D_202C_202B_202D_202C_202C_206A_206C_200C_202C_200F_200E_200F_202E_206B_206E_202A_206A_202E_202E_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _202D_206A_202E_206B_202A_200D_206F_206C_202B_202B_202E_200F_206C_202D_206D_202A_206C_206D_206C_202A_206C_202D_200B_206B_206C_206E_202A_202C_206A_202C_206D_206E_206A_202E_206E_202E_202B_206E_206E_206F_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class SetTargetExecutor(ITargetManager targetManager, GameFunctions gameFunctions) : TaskExecutor<SetTarget>()
|
|
{
|
|
protected override bool Start()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
IGameObject gameObject = _206E_202A_206C_206C_202D_200C_206B_206A_200D_202D_200F_202C_206B_202E_202E_202C_206D_206F_202D_206D_200B_202B_206B_202D_206B_206A_206C_202D_202C_200E_206F_200E_200C_206D_202D_200F_206E_202A_202D_206D_202E(targetManager);
|
|
int num = ((((gameObject != null) ? new uint?(_202D_206E_206D_202E_200B_206B_200F_202C_206E_206B_206A_200E_202A_202E_202D_202E_202C_202E_202C_206B_202D_202B_206B_206D_206E_202B_200C_200B_206C_202C_200D_202A_206B_202D_202C_206D_206C_200F_202E_206F_202E(gameObject)) : ((uint?)null)) != base.Task.DataId) ? (-1585152087) : (-1585152081));
|
|
IGameObject gameObject2 = default(IGameObject);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1585152083;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = -1585152081;
|
|
break;
|
|
case 4:
|
|
gameObject2 = gameFunctions.FindObjectByDataId(base.Task.DataId, null, warnIfMissing: false);
|
|
num = ((gameObject2 != null) ? (-1585152084) : (-1585152082));
|
|
break;
|
|
case 2:
|
|
return ETaskResult.TaskComplete;
|
|
case 1:
|
|
_200C_206D_200F_202D_202C_206F_206A_206C_206A_206F_206E_206C_206C_202B_202A_200B_202A_200B_206D_206C_206E_206D_200F_202B_200C_206A_206E_202A_200B_206F_202B_202B_200E_206B_200D_206F_200B_206A_202E_202C_202E(targetManager, gameObject2);
|
|
return ETaskResult.StillRunning;
|
|
case 3:
|
|
return ETaskResult.StillRunning;
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static IGameObject _206E_202A_206C_206C_202D_200C_206B_206A_200D_202D_200F_202C_206B_202E_202E_202C_206D_206F_202D_206D_200B_202B_206B_202D_206B_206A_206C_202D_202C_200E_206F_200E_200C_206D_202D_200F_206E_202A_202D_206D_202E(ITargetManager P_0)
|
|
{
|
|
return P_0.Target;
|
|
}
|
|
|
|
static uint _202D_206E_206D_202E_200B_206B_200F_202C_206E_206B_206A_200E_202A_202E_202D_202E_202C_202E_202C_206B_202D_202B_206B_206D_206E_202B_200C_200B_206C_202C_200D_202A_206B_202D_202C_206D_206C_200F_202E_206F_202E(IGameObject P_0)
|
|
{
|
|
return P_0.BaseId;
|
|
}
|
|
|
|
static void _200C_206D_200F_202D_202C_206F_206A_206C_206A_206F_206E_206C_206C_202B_202A_200B_202A_200B_206D_206C_206E_206D_200F_202B_200C_206A_206E_202A_200B_206F_202B_202B_200E_206B_200D_206F_200B_206A_202E_202C_202E(ITargetManager P_0, IGameObject P_1)
|
|
{
|
|
P_0.Target = P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed record CheckDutyOutcome(ElementId QuestId, byte SequenceBeforeEntering, IReadOnlyList<byte>? VariablesBeforeEntering, IList<QuestWorkValue?> CompletionQuestVariablesFlags, IReadOnlyList<ITask> DutyTasks) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202D_200F_206B_200C_202C_200D_206D_202C_206E_206F_206C_202E_202D_206F_200D_200D_200F_200C_206F_206A_200C_200E_206F_202A_200E_202E_202B_200E_200E_206C_206D_206C_200B_202C_202E_200C_200C_202A_200F_202C_202E(typeof(CheckDutyOutcome).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>(-2119118709);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_200D_202D_202E_206C_206E_200E_206A_200E_206E_206F_200D_206D_200F_202A_206C_202A_202E_206B_206C_202D_202E_200F_200D_206C_200C_200E_206E_206C_206B_200D_206E_206A_200E_200D_202D_200F_206D_200C_202D_200D_202E();
|
|
_202E_200B_200B_202E_206D_200F_206E_202E_202E_202A_206E_202B_206F_206D_206D_206D_202B_206C_202E_200E_206C_200C_206E_206D_200B_202B_202B_200F_206B_200D_202A_200E_206B_206D_202E_206C_202B_206A_206E_202A_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>(65254652));
|
|
_206F_202E_206D_206B_206F_200C_202B_200E_206D_206E_202E_206D_200B_200B_202D_200E_200C_206F_200C_202C_202D_200F_200B_200B_200F_202E_200F_202D_200F_200E_206E_206F_202E_200D_202C_200E_202A_200F_200E_206C_202E(builder, (object)QuestId);
|
|
_202E_200B_200B_202E_206D_200F_206E_202E_202E_202A_206E_202B_206F_206D_206D_206D_202B_206C_202E_200E_206C_200C_206E_206D_200B_202B_202B_200F_206B_200D_202A_200E_206B_206D_202E_206C_202B_206A_206E_202A_202E(builder, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1722041938));
|
|
_202E_200B_200B_202E_206D_200F_206E_202E_202E_202A_206E_202B_206F_206D_206D_206D_202B_206C_202E_200E_206C_200C_206E_206D_200B_202B_202B_200F_206B_200D_202A_200E_206B_206D_202E_206C_202B_206A_206E_202A_202E(builder, SequenceBeforeEntering.ToString());
|
|
_202E_200B_200B_202E_206D_200F_206E_202E_202E_202A_206E_202B_206F_206D_206D_206D_202B_206C_202E_200E_206C_200C_206E_206D_200B_202B_202B_200F_206B_200D_202A_200E_206B_206D_202E_206C_202B_206A_206E_202A_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>(295162259));
|
|
_206F_202E_206D_206B_206F_200C_202B_200E_206D_206E_202E_206D_200B_200B_202D_200E_200C_206F_200C_202C_202D_200F_200B_200B_200F_202E_200F_202D_200F_200E_206E_206F_202E_200D_202C_200E_202A_200F_200E_206C_202E(builder, (object)VariablesBeforeEntering);
|
|
_202E_200B_200B_202E_206D_200F_206E_202E_202E_202A_206E_202B_206F_206D_206D_206D_202B_206C_202E_200E_206C_200C_206E_206D_200B_202B_202B_200F_206B_200D_202A_200E_206B_206D_202E_206C_202B_206A_206E_202A_202E(builder, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-1930370304));
|
|
_206F_202E_206D_206B_206F_200C_202B_200E_206D_206E_202E_206D_200B_200B_202D_200E_200C_206F_200C_202C_202D_200F_200B_200B_200F_202E_200F_202D_200F_200E_206E_206F_202E_200D_202C_200E_202A_200F_200E_206C_202E(builder, (object)CompletionQuestVariablesFlags);
|
|
_202E_200B_200B_202E_206D_200F_206E_202E_202E_202A_206E_202B_206F_206D_206D_206D_202B_206C_202E_200E_206C_200C_206E_206D_200B_202B_202B_200F_206B_200D_202A_200E_206B_206D_202E_206C_202B_206A_206E_202A_202E(builder, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-369995844));
|
|
_206F_202E_206D_206B_206F_200C_202B_200E_206D_206E_202E_206D_200B_200B_202D_200E_200C_206F_200C_202C_202D_200F_200B_200B_200F_202E_200F_202D_200F_200E_206E_206F_202E_200D_202C_200E_202A_200F_200E_206C_202E(builder, (object)DutyTasks);
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(CheckDutyOutcome? other)
|
|
{
|
|
int num = (((object)this == other) ? 879204954 : 879204945);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 879204953;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = 879204945;
|
|
break;
|
|
case 9:
|
|
num = ((!EqualityComparer<IReadOnlyList<byte>>.Default.Equals(VariablesBeforeEntering, other.VariablesBeforeEntering)) ? 879204958 : 879204955);
|
|
break;
|
|
case 6:
|
|
num = ((!_200E_206C_202E_200E_200D_202A_206A_200D_200B_200E_202B_200F_206C_202C_206F_206A_202D_206C_206D_202A_202A_202B_202C_200B_206E_200B_206D_200C_206C_206D_206B_200B_206B_200B_202C_202E_202A_206C_200C_200E_202E(EqualityContract, other.EqualityContract)) ? 879204958 : 879204952);
|
|
break;
|
|
case 2:
|
|
num = ((!EqualityComparer<IList<QuestWorkValue>>.Default.Equals(CompletionQuestVariablesFlags, other.CompletionQuestVariablesFlags)) ? 879204958 : 879204956);
|
|
break;
|
|
case 5:
|
|
return EqualityComparer<IReadOnlyList<ITask>>.Default.Equals(DutyTasks, other.DutyTasks);
|
|
case 1:
|
|
num = ((!EqualityComparer<ElementId>.Default.Equals(QuestId, other.QuestId)) ? 879204958 : 879204957);
|
|
break;
|
|
case 7:
|
|
return false;
|
|
case 3:
|
|
return true;
|
|
case 4:
|
|
num = ((!EqualityComparer<byte>.Default.Equals(SequenceBeforeEntering, other.SequenceBeforeEntering)) ? 879204958 : 879204944);
|
|
break;
|
|
case 8:
|
|
num = (((object)other == null) ? 879204958 : 879204959);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<CheckDutyOutcome>.Equals(CheckDutyOutcome? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202D_200F_206B_200C_202C_200D_206D_202C_206E_206F_206C_202E_202D_206F_200D_200D_200F_200C_206F_206A_200C_200E_206F_202A_200E_202E_202B_200E_200E_206C_206D_206C_200B_202C_202E_200C_200C_202A_200F_202C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _200D_202D_202E_206C_206E_200E_206A_200E_206E_206F_200D_206D_200F_202A_206C_202A_202E_206B_206C_202D_202E_200F_200D_206C_200C_200E_206E_206C_206B_200D_206E_206A_200E_200D_202D_200F_206D_200C_202D_200D_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _202E_200B_200B_202E_206D_200F_206E_202E_202E_202A_206E_202B_206F_206D_206D_206D_202B_206C_202E_200E_206C_200C_206E_206D_200B_202B_202B_200F_206B_200D_202A_200E_206B_206D_202E_206C_202B_206A_206E_202A_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _206F_202E_206D_206B_206F_200C_202B_200E_206D_206E_202E_206D_200B_200B_202D_200E_200C_206F_200C_202C_202D_200F_200B_200B_200F_202E_200F_202D_200F_200E_206E_206F_202E_200D_202C_200E_202A_200F_200E_206C_202E(StringBuilder P_0, object P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _200E_206C_202E_200E_200D_202A_206A_200D_200B_200E_202B_200F_206C_202C_206F_206A_202D_206C_206D_202A_202A_202B_202C_200B_206E_200B_206D_200C_206C_206D_206B_200B_206B_200B_202C_202E_202A_206C_200C_200E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class CheckDutyOutcomeExecutor(QuestFunctions questFunctions, DutyRetryState retryState, Configuration configuration, ILogger<CheckDutyOutcomeExecutor> logger) : TaskExecutor<CheckDutyOutcome>(), IExtraTaskCreator, ITaskExecutor
|
|
{
|
|
[CompilerGenerated]
|
|
private sealed class _003CCreateExtraTasks_003Ed__9 : IEnumerable<ITask>, IEnumerable, IEnumerator<ITask>, IEnumerator, IDisposable
|
|
{
|
|
private int _003C_003E1__state;
|
|
|
|
private ITask _003C_003E2__current;
|
|
|
|
private int _003C_003El__initialThreadId;
|
|
|
|
public CheckDutyOutcomeExecutor _003C_003E4__this;
|
|
|
|
private IEnumerator<ITask> _003C_003E7__wrap1;
|
|
|
|
ITask IEnumerator<ITask>.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
object IEnumerator.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
public _003CCreateExtraTasks_003Ed__9(int _003C_003E1__state)
|
|
{
|
|
this._003C_003E1__state = _003C_003E1__state;
|
|
_003C_003El__initialThreadId = _206E_200B_202D_200C_200C_206D_206B_206D_202B_200F_206E_200F_206A_206C_202B_206A_206C_206C_206E_200C_206A_202E_206C_206B_202E_202D_200E_206F_206E_202D_200C_202C_200D_202A_206D_200C_200B_206A_206D_206E_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IDisposable.Dispose()
|
|
{
|
|
int num = _003C_003E1__state;
|
|
int num2 = ((num == -3) ? (-1813267653) : (-1813267656));
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -1813267654;
|
|
int num5 = num3;
|
|
switch ((num5 | num4) - (num5 & num4))
|
|
{
|
|
default:
|
|
continue;
|
|
case 0:
|
|
num2 = -1813267656;
|
|
continue;
|
|
case 2:
|
|
if (num == 1)
|
|
{
|
|
num2 = -1813267653;
|
|
continue;
|
|
}
|
|
break;
|
|
case 1:
|
|
try
|
|
{
|
|
}
|
|
finally
|
|
{
|
|
_003C_003Em__Finally1();
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
_003C_003E7__wrap1 = null;
|
|
_003C_003E1__state = -2;
|
|
}
|
|
|
|
private bool MoveNext()
|
|
{
|
|
try
|
|
{
|
|
int num = _003C_003E1__state;
|
|
CheckDutyOutcomeExecutor checkDutyOutcomeExecutor = _003C_003E4__this;
|
|
int num2;
|
|
switch (num)
|
|
{
|
|
default:
|
|
num2 = -1102833708;
|
|
goto IL_002c;
|
|
case 1:
|
|
_003C_003E1__state = -3;
|
|
num2 = -1102833709;
|
|
goto IL_002c;
|
|
case 0:
|
|
goto IL_011b;
|
|
case 2:
|
|
break;
|
|
IL_002c:
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -1102833705;
|
|
int num5 = num3;
|
|
switch ((num5 | num4) - (num5 & num4))
|
|
{
|
|
case 4:
|
|
goto IL_006c;
|
|
case 5:
|
|
{
|
|
ITask current = _003C_003E7__wrap1.Current;
|
|
_003C_003E2__current = current;
|
|
_003C_003E1__state = 1;
|
|
return true;
|
|
}
|
|
case 7:
|
|
_003C_003Em__Finally1();
|
|
_003C_003E7__wrap1 = null;
|
|
_003C_003E2__current = checkDutyOutcomeExecutor.Task;
|
|
_003C_003E1__state = 2;
|
|
return true;
|
|
case 3:
|
|
return false;
|
|
case 2:
|
|
goto end_IL_002c;
|
|
case 6:
|
|
goto IL_011b;
|
|
case 0:
|
|
num2 = -1102833708;
|
|
break;
|
|
case 1:
|
|
goto end_IL_000f;
|
|
}
|
|
continue;
|
|
IL_006c:
|
|
num2 = (_202E_202A_200D_200F_202E_202D_202A_206A_200C_202A_200E_202C_200C_202C_200B_202D_206B_202D_200D_200F_200D_200D_202B_200E_202B_200B_202D_200F_202B_202A_202C_200B_200E_202D_200D_200F_202D_200F_206A_206E_202E((IEnumerator)_003C_003E7__wrap1) ? (-1102833710) : (-1102833712));
|
|
continue;
|
|
end_IL_002c:
|
|
break;
|
|
}
|
|
goto case 1;
|
|
IL_011b:
|
|
_003C_003E1__state = -1;
|
|
_003C_003E7__wrap1 = checkDutyOutcomeExecutor.Task.DutyTasks.GetEnumerator();
|
|
_003C_003E1__state = -3;
|
|
num2 = -1102833709;
|
|
goto IL_002c;
|
|
end_IL_000f:
|
|
break;
|
|
}
|
|
_003C_003E1__state = -1;
|
|
return false;
|
|
}
|
|
catch
|
|
{
|
|
//try-fault
|
|
((IDisposable)this).Dispose();
|
|
throw;
|
|
}
|
|
}
|
|
|
|
bool IEnumerator.MoveNext()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
|
|
return this.MoveNext();
|
|
}
|
|
|
|
private void _003C_003Em__Finally1()
|
|
{
|
|
_003C_003E1__state = -1;
|
|
int num = ((_003C_003E7__wrap1 == null) ? (-1381992250) : (-1381992251));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1381992249;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 1:
|
|
return;
|
|
case 2:
|
|
_200F_206B_206B_202D_202B_202A_206F_200D_206C_202C_202D_202D_202D_206F_206F_200C_200F_206C_200C_202D_206E_200F_206E_200D_202B_206D_202D_206A_202C_206F_202D_206E_206F_206A_202C_206C_206A_206E_202D_202C_202E((IDisposable)_003C_003E7__wrap1);
|
|
num = -1381992250;
|
|
break;
|
|
case 0:
|
|
num = -1381992251;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IEnumerator.Reset()
|
|
{
|
|
throw _206F_200D_200B_200C_200F_202C_200E_200C_200E_200B_202A_200C_206F_202B_200B_200B_200C_202B_200B_202B_200E_200F_206C_202A_206C_202D_206D_206C_202A_200F_202B_206D_206F_206C_206D_202C_200C_202E_206E_206E_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator<ITask> IEnumerable<ITask>.GetEnumerator()
|
|
{
|
|
int num = ((_003C_003E1__state != -2) ? 139527152 : 139527153);
|
|
_003CCreateExtraTasks_003Ed__9 result = default(_003CCreateExtraTasks_003Ed__9);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 139527155;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 1:
|
|
_003C_003E1__state = 0;
|
|
result = this;
|
|
num = 139527155;
|
|
break;
|
|
case 2:
|
|
num = ((_003C_003El__initialThreadId != _206E_200B_202D_200C_200C_206D_206B_206D_202B_200F_206E_200F_206A_206C_202B_206A_206C_206C_206E_200C_206A_202E_206C_206B_202E_202D_200E_206F_206E_202D_200C_202C_200D_202A_206D_200C_200B_206A_206D_206E_202E()) ? 139527152 : 139527154);
|
|
break;
|
|
case 4:
|
|
num = 139527153;
|
|
break;
|
|
case 0:
|
|
return result;
|
|
case 3:
|
|
result = new _003CCreateExtraTasks_003Ed__9(0)
|
|
{
|
|
_003C_003E4__this = _003C_003E4__this
|
|
};
|
|
num = 139527155;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return ((IEnumerable<ITask>)this).GetEnumerator();
|
|
}
|
|
|
|
static int _206E_200B_202D_200C_200C_206D_206B_206D_202B_200F_206E_200F_206A_206C_202B_206A_206C_206C_206E_200C_206A_202E_206C_206B_202E_202D_200E_206F_206E_202D_200C_202C_200D_202A_206D_200C_200B_206A_206D_206E_202E()
|
|
{
|
|
return Environment.CurrentManagedThreadId;
|
|
}
|
|
|
|
static bool _202E_202A_200D_200F_202E_202D_202A_206A_200C_202A_200E_202C_200C_202C_200B_202D_206B_202D_200D_200F_200D_200D_202B_200E_202B_200B_202D_200F_202B_202A_202C_200B_200E_202D_200D_200F_202D_200F_206A_206E_202E(IEnumerator P_0)
|
|
{
|
|
return P_0.MoveNext();
|
|
}
|
|
|
|
static void _200F_206B_206B_202D_202B_202A_206F_200D_206C_202C_202D_202D_202D_206F_206F_200C_200F_206C_200C_202D_206E_200F_206E_200D_202B_206D_202D_206A_202C_206F_202D_206E_206F_206A_202C_206C_206A_206E_202D_202C_202E(IDisposable P_0)
|
|
{
|
|
P_0.Dispose();
|
|
}
|
|
|
|
static NotSupportedException _206F_200D_200B_200C_200F_202C_200E_200C_200E_200B_202A_200C_206F_202B_200B_200B_200C_202B_200B_202B_200E_200F_206C_202A_206C_202D_206D_206C_202A_200F_202B_206D_206F_206C_206D_202C_200C_202E_206E_206E_202E()
|
|
{
|
|
return new NotSupportedException();
|
|
}
|
|
}
|
|
|
|
private long _checkAtMs;
|
|
|
|
protected override bool Start()
|
|
{
|
|
_checkAtMs = _206C_206E_200E_206D_206E_202A_202E_206D_200E_202D_200B_206B_206D_206C_206C_200F_206A_202A_202C_202B_202C_202B_202A_206C_206D_202E_206A_206B_200D_202D_202B_206C_202E_202A_200F_200F_206A_202A_200C_206A_202E() + 2000;
|
|
retryState.BeginAwaitingOutcome();
|
|
return true;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ETaskResult Update()
|
|
{
|
|
int num = ((_206C_206E_200E_206D_206E_202A_202E_206D_200E_202D_200B_206B_206D_206C_206C_200F_206A_202A_202C_202B_202C_202B_202A_206C_206D_202E_206A_206B_200D_202D_202B_206C_202E_202A_200F_200F_206A_202A_200C_206A_202E() >= _checkAtMs) ? 1656852810 : 1656852811);
|
|
string text = default(string);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1656852809;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 4:
|
|
num = 1656852811;
|
|
break;
|
|
case 2:
|
|
return ETaskResult.StillRunning;
|
|
case 6:
|
|
_202E_206C_206A_200C_206B_202A_200C_202C_200F_200E_206F_206F_206C_200E_200D_202B_200B_200D_206E_206E_202E_202A_202D_202D_202D_200D_206C_200F_202A_200C_200B_202C_206B_202D_200E_206F_202B_206A_200D_202B_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>(237903421), Array.Empty<object>());
|
|
retryState.EndAwaitingOutcome();
|
|
return ETaskResult.End;
|
|
case 3:
|
|
text = DetectSuccess();
|
|
num = ((text == null) ? 1656852812 : 1656852808);
|
|
break;
|
|
case 1:
|
|
_202E_206C_206A_200C_206B_202A_200C_202C_200F_200E_206F_206F_206C_200E_200D_202B_200B_200D_206E_206E_202E_202A_202D_202D_202D_200D_206C_200F_202A_200C_200B_202C_206B_202D_200E_206F_202B_206A_200D_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>(1884362116), new object[1] { text });
|
|
retryState.Reset();
|
|
return ETaskResult.TaskComplete;
|
|
case 5:
|
|
{
|
|
int maxRetries = configuration.SinglePlayerDuties.MaxRetries;
|
|
num = (retryState.CanRetry(maxRetries) ? 1656852809 : 1656852815);
|
|
break;
|
|
}
|
|
case 0:
|
|
retryState.RecordRetry();
|
|
_202E_206C_206A_200C_206B_202A_200C_202C_200F_200E_206F_206F_206C_200E_200D_202B_200B_200D_206E_206E_202E_202A_202D_202D_202D_200D_206C_200F_202A_200C_200B_202C_206B_202D_200E_206F_202B_206A_200D_202B_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>(17889198), Array.Empty<object>());
|
|
return ETaskResult.CreateNewTasks;
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private string? DetectSuccess()
|
|
{
|
|
QuestProgressInfo questProgressInfo = questFunctions.GetQuestProgressInfo(base.Task.QuestId);
|
|
int num = ((questProgressInfo != null) ? (-1549389800) : (-1549389796));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1549389800;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 3:
|
|
num = (questProgressInfo.Variables.SequenceEqual(base.Task.VariablesBeforeEntering) ? (-1549389794) : (-1549389793));
|
|
break;
|
|
case 1:
|
|
num = ((base.Task.VariablesBeforeEntering == null) ? (-1549389794) : (-1549389797));
|
|
break;
|
|
case 4:
|
|
return 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>(1354389610);
|
|
case 9:
|
|
num = ((!QuestWorkUtils.MatchesQuestWork(base.Task.CompletionQuestVariablesFlags, questProgressInfo)) ? (-1549389799) : (-1549389806));
|
|
break;
|
|
case 8:
|
|
num = ((!QuestWorkUtils.HasCompletionFlags(base.Task.CompletionQuestVariablesFlags)) ? (-1549389799) : (-1549389807));
|
|
break;
|
|
case 7:
|
|
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>(1360167157);
|
|
case 0:
|
|
num = ((questProgressInfo.Sequence <= base.Task.SequenceBeforeEntering) ? (-1549389808) : (-1549389795));
|
|
break;
|
|
case 5:
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(13, 2);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(534730551));
|
|
defaultInterpolatedStringHandler.AppendFormatted(base.Task.SequenceBeforeEntering);
|
|
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>(-116138750));
|
|
defaultInterpolatedStringHandler.AppendFormatted(questProgressInfo.Sequence);
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
case 6:
|
|
return null;
|
|
case 10:
|
|
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>(-181103930);
|
|
case 2:
|
|
num = -1549389796;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[IteratorStateMachine(typeof(_003CCreateExtraTasks_003Ed__9))]
|
|
public IEnumerable<ITask> CreateExtraTasks()
|
|
{
|
|
//yield-return decompiler failed: Unexpected instruction in Iterator.Dispose()
|
|
return new _003CCreateExtraTasks_003Ed__9(-2)
|
|
{
|
|
_003C_003E4__this = this
|
|
};
|
|
}
|
|
|
|
IEnumerable<ITask> IExtraTaskCreator.CreateExtraTasks()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in CreateExtraTasks
|
|
return this.CreateExtraTasks();
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static long _206C_206E_200E_206D_206E_202A_202E_206D_200E_202D_200B_206B_206D_206C_206C_200F_206A_202A_202C_202B_202C_202B_202A_206C_206D_202E_206A_206B_200D_202D_202B_206C_202E_202A_200F_200F_206A_202A_200C_206A_202E()
|
|
{
|
|
return Environment.TickCount64;
|
|
}
|
|
|
|
static void _202E_206C_206A_200C_206B_202A_200C_202C_200F_200E_206F_206F_206C_200E_200D_202B_200B_200D_206E_206E_202E_202A_202D_202D_202D_200D_206C_200F_202A_200C_200B_202C_206B_202D_200E_206F_202B_206A_200D_202B_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogInformation(P_1, P_2);
|
|
}
|
|
}
|
|
}
|