forked from aly/qstbak
muffin v7.5.11
This commit is contained in:
parent
addf2d530f
commit
3102923ce2
522 changed files with 41082 additions and 211592 deletions
|
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.ClientState.Objects.Enums;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Questionable.Functions;
|
||||
|
|
@ -15,146 +12,27 @@ internal static class Aetheryte
|
|||
{
|
||||
internal sealed class Factory : SimpleTaskFactory
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ITask? CreateTask(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
int num = ((_200F_206D_200C_206B_200C_206E_202B_202A_206E_200D_200E_206D_202E_202D_200C_202B_200B_206C_202B_206B_200B_206D_200F_206F_206B_200F_200B_200C_202D_202A_206C_202C_200C_202E_202E_200F_206C_202A_206A_202A_202E(step) == EInteractionType.AttuneAetheryte) ? (-343069115) : (-343069116));
|
||||
while (true)
|
||||
if (step.InteractionType != EInteractionType.AttuneAetheryte)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -343069115;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
goto IL_0047;
|
||||
case 1:
|
||||
return null;
|
||||
case 0:
|
||||
_200B_206D_206E_200D_206F_202E_202D_206C_206A_206B_202B_200E_206C_200D_206A_206B_206D_202C_200D_202C_200B_202B_206A_202B_202A_200C_200D_206D_206F_206A_200D_206F_206A_206D_200D_206E_206F_200F_206B_200D_202E((object)_206F_206F_206B_200B_202A_200D_200D_200F_202C_202B_202A_202E_200D_200B_202B_200F_200D_206C_202E_200F_200B_202E_200F_200C_202C_206B_202B_200F_206B_202A_202A_206A_202C_202A_202E_202A_206D_200F_200D_206A_202E(step), 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>(1584480667));
|
||||
return new Attune(_206F_206F_206B_200B_202A_200D_200D_200F_202C_202B_202A_202E_200D_200B_202B_200F_200D_206C_202E_200F_200B_202E_200F_200C_202C_206B_202B_200F_206B_202A_202A_206A_202C_202A_202E_202A_206D_200F_200D_206A_202E(step).Value);
|
||||
}
|
||||
continue;
|
||||
IL_0047:
|
||||
num = -343069116;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static EInteractionType _200F_206D_200C_206B_200C_206E_202B_202A_206E_200D_200E_206D_202E_202D_200C_202B_200B_206C_202B_206B_200B_206D_200F_206F_206B_200F_200B_200C_202D_202A_206C_202C_200C_202E_202E_200F_206C_202A_206A_202A_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.InteractionType;
|
||||
}
|
||||
|
||||
static EAetheryteLocation? _206F_206F_206B_200B_202A_200D_200D_200F_202C_202B_202A_202E_200D_200B_202B_200F_200D_206C_202E_200F_200B_202E_200F_200C_202C_206B_202B_200F_206B_202A_202A_206A_202C_202A_202E_202A_206D_200F_200D_206A_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.Aetheryte;
|
||||
}
|
||||
|
||||
static void _200B_206D_206E_200D_206F_202E_202D_206C_206A_206B_202B_200E_206C_200D_206A_206B_206D_202C_200D_202C_200B_202B_206A_202B_202A_200C_200D_206D_206F_206A_200D_206F_206A_206D_200D_206E_206F_200F_206B_200D_202E(object P_0, string P_1)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(P_0, P_1);
|
||||
ArgumentNullException.ThrowIfNull(step.Aetheryte, "step.Aetheryte");
|
||||
return new Attune(step.Aetheryte.Value);
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed record Attune(EAetheryteLocation AetheryteLocation) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _206F_206F_202A_200F_206F_202C_202B_206C_202A_200F_206E_200E_206F_206B_206A_200C_206D_200E_200F_206D_202E_206A_200C_206E_202B_200B_206E_206C_200D_206D_206D_206D_206E_200C_200D_202A_200D_206F_200B_202E_202E(typeof(Attune).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
public bool ShouldRedoOnInterrupt()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ITask.ShouldRedoOnInterrupt()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in ShouldRedoOnInterrupt
|
||||
return this.ShouldRedoOnInterrupt();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string ToString()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(17, 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>(-1240918148));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(AetheryteLocation);
|
||||
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)
|
||||
{
|
||||
_202E_206B_202C_200E_202A_200E_200D_200B_200B_206F_206E_206B_200B_200E_202C_200F_206A_200D_206A_200D_202E_200C_206D_206C_200D_206D_206A_206B_200E_206B_202A_202E_202E_206C_200C_206D_202E_206C_206C_202C_202E();
|
||||
_202B_202B_206C_202C_202E_200C_200B_206D_200F_202D_200D_202E_202C_206C_206B_206C_206E_200B_206D_202A_200C_202E_206B_202D_202D_206E_202D_202C_200E_200C_202A_202C_200D_200F_206C_200C_200F_202A_206B_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>(-1285909237));
|
||||
_202B_202B_206C_202C_202E_200C_200B_206D_200F_202D_200D_202E_202C_206C_206B_206C_206E_200B_206D_202A_200C_202E_206B_202D_202D_206E_202D_202C_200E_200C_202A_202C_200D_200F_206C_200C_200F_202A_206B_202A_202E(builder, AetheryteLocation.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(Attune? other)
|
||||
{
|
||||
int num = (((object)this == other) ? (-82451630) : (-82451626));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -82451625;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = -82451626;
|
||||
break;
|
||||
case 1:
|
||||
num = (((object)other == null) ? (-82451628) : (-82451625));
|
||||
break;
|
||||
case 3:
|
||||
return false;
|
||||
case 4:
|
||||
return EqualityComparer<EAetheryteLocation>.Default.Equals(AetheryteLocation, other.AetheryteLocation);
|
||||
case 5:
|
||||
return true;
|
||||
case 0:
|
||||
num = ((!_200C_206A_202D_206A_200D_206E_202A_200F_206A_202A_202D_206E_202E_202C_200E_200D_202D_206F_206F_200F_206C_200E_206C_206B_206E_202D_202B_206E_206D_206D_200C_206D_202E_202C_206C_202B_202D_200C_206D_202A_202E(EqualityContract, other.EqualityContract)) ? (-82451628) : (-82451629));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<Attune>.Equals(Attune? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _206F_206F_202A_200F_206F_202C_202B_206C_202A_200F_206E_200E_206F_206B_206A_200C_206D_200E_200F_206D_202E_206A_200C_206E_202B_200B_206E_206C_200D_206D_206D_206D_206E_200C_200D_202A_200D_206F_200B_202E_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _202E_206B_202C_200E_202A_200E_200D_200B_200B_206F_206E_206B_200B_200E_202C_200F_206A_200D_206A_200D_202E_200C_206D_206C_200D_206D_206A_206B_200E_206B_202A_202E_202E_206C_200C_206D_202E_206C_206C_202C_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _202B_202B_206C_202C_202E_200C_200B_206D_200F_202D_200D_202E_202C_206C_206B_206C_206E_200B_206D_202A_200C_202E_206B_202D_202D_206E_202D_202C_200E_200C_202A_202C_200D_200F_206C_200C_200F_202A_206B_202A_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _200C_206A_202D_206A_200D_206E_202A_200F_206A_202A_202D_206E_202E_202C_200E_200D_202D_206F_206F_200F_206C_200E_206C_206B_206E_202D_202B_206E_206D_206D_200C_206D_202E_202C_206C_202B_202D_200C_206D_202A_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
return $"AttuneAetheryte({AetheryteLocation})";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -162,100 +40,51 @@ internal static class Aetheryte
|
|||
{
|
||||
protected abstract EAetheryteLocation GetLocation();
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
protected override bool Start()
|
||||
{
|
||||
EAetheryteLocation location = GetLocation();
|
||||
int num = (_003CaetheryteFunctions_003EP.IsAetheryteUnlocked(location) ? 1186609547 : 1186609544);
|
||||
while (true)
|
||||
if (!_003CaetheryteFunctions_003EP.IsAetheryteUnlocked(location))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1186609545;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
_202E_206B_200D_206D_206C_202B_202E_200B_200E_206D_202A_200D_206F_200C_202C_206C_206A_206F_202B_200D_200C_202E_200E_202A_206E_206D_200C_206B_200C_202A_202E_200D_202D_202D_202C_206E_202D_202A_202A_206E_202E(_003Clogger_003EP, 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>(1529861734), new object[2] { _003Clabel_003EP, location });
|
||||
return false;
|
||||
case 1:
|
||||
_206A_200C_200D_202B_200B_202E_206A_206A_200D_200E_200B_200D_200D_200E_206F_202D_206E_200B_206E_202D_206F_206E_202A_200F_202A_206D_202C_200D_200E_202A_200C_200E_200E_200C_206B_200F_206C_200D_200D_206D_202E(_003Clogger_003EP, 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>(-1889927611), new object[2] { _003Clabel_003EP, location });
|
||||
base.ProgressContext = InteractionProgressContext.FromActionUseOrDefault(() => _003CgameFunctions_003EP.InteractWith((uint)location, ObjectKind.Aetheryte));
|
||||
return true;
|
||||
case 0:
|
||||
goto IL_00e9;
|
||||
}
|
||||
continue;
|
||||
IL_00e9:
|
||||
num = 1186609544;
|
||||
_003Clogger_003EP.LogInformation("Attuning to {Label} {Location}", _003Clabel_003EP, location);
|
||||
base.ProgressContext = InteractionProgressContext.FromActionUseOrDefault(() => _003CgameFunctions_003EP.InteractWith((uint)location, ObjectKind.Aetheryte));
|
||||
return true;
|
||||
}
|
||||
_003Clogger_003EP.LogDebug("Already attuned to {Label} {Location}", _003Clabel_003EP, location);
|
||||
return false;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override ETaskResult Update()
|
||||
{
|
||||
int num = ((!_003CaetheryteFunctions_003EP.IsAetheryteUnlocked(GetLocation())) ? 1810240359 : 1810240355);
|
||||
while (true)
|
||||
if (_003CaetheryteFunctions_003EP.IsAetheryteUnlocked(GetLocation()))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1810240354;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
ResetProgressTimer();
|
||||
return ETaskResult.TaskComplete;
|
||||
}
|
||||
if (base.ProgressContext != null)
|
||||
{
|
||||
if (base.ProgressContext.WasInterrupted())
|
||||
{
|
||||
case 4:
|
||||
num = ((!base.ProgressContext.WasSuccessful()) ? 1810240357 : 1810240356);
|
||||
break;
|
||||
case 5:
|
||||
num = ((base.ProgressContext == null) ? 1810240357 : 1810240352);
|
||||
break;
|
||||
case 7:
|
||||
_003Clogger_003EP.LogDebug("Attunement to {Label} {Location} was interrupted", _003Clabel_003EP, GetLocation());
|
||||
return ETaskResult.StillRunning;
|
||||
case 2:
|
||||
num = ((!base.ProgressContext.WasInterrupted()) ? 1810240358 : 1810240354);
|
||||
break;
|
||||
case 0:
|
||||
_202E_206B_200D_206D_206C_202B_202E_200B_200E_206D_202A_200D_206F_200C_202C_206C_206A_206F_202B_200D_200C_202E_200E_202A_206E_206D_200C_206B_200C_202A_202E_200D_202D_202D_202C_206E_202D_202A_202A_206E_202E(_003Clogger_003EP, 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>(-854407988), new object[2]
|
||||
{
|
||||
_003Clabel_003EP,
|
||||
GetLocation()
|
||||
});
|
||||
return ETaskResult.StillRunning;
|
||||
case 3:
|
||||
num = 1810240355;
|
||||
break;
|
||||
case 1:
|
||||
}
|
||||
if (base.ProgressContext.WasSuccessful())
|
||||
{
|
||||
ResetProgressTimer();
|
||||
return ETaskResult.TaskComplete;
|
||||
case 6:
|
||||
ResetProgressTimer();
|
||||
num = 1810240357;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ETaskResult.StillRunning;
|
||||
}
|
||||
|
||||
public override bool ShouldInterruptOnDamage()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static void _206A_200C_200D_202B_200B_202E_206A_206A_200D_200E_200B_200D_200D_200E_206F_202D_206E_200B_206E_202D_206F_206E_202A_200F_202A_206D_202C_200D_200E_202A_200C_200E_200E_200C_206B_200F_206C_200D_200D_206D_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogInformation(P_1, P_2);
|
||||
}
|
||||
|
||||
static void _202E_206B_200D_206D_206C_202B_202E_200B_200E_206D_202A_200D_206F_200C_202C_206C_206A_206F_202B_200D_200C_202E_200E_202A_206E_206D_200C_206B_200C_202A_202E_200D_202D_202D_202C_206E_202D_202A_202A_206E_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class DoAttune : DoAttuneBase<Attune>
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public DoAttune(AetheryteFunctions aetheryteFunctions, GameFunctions gameFunctions, ILogger<DoAttune> logger)
|
||||
: base(aetheryteFunctions, gameFunctions, (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>(1427720199))
|
||||
: base(aetheryteFunctions, gameFunctions, (ILogger)logger, "aetheryte")
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue