muffin v7.5.6
This commit is contained in:
parent
6266f9e6b7
commit
addf2d530f
619 changed files with 264792 additions and 446022 deletions
|
|
@ -1,3 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Questionable.Functions;
|
||||
using Questionable.Model;
|
||||
|
|
@ -11,66 +15,234 @@ internal static class NextQuest
|
|||
{
|
||||
public override ITask? CreateTask(Quest quest, QuestSequence sequence, QuestStep step)
|
||||
{
|
||||
if (step.InteractionType != EInteractionType.CompleteQuest)
|
||||
int num = ((_202A_206F_206D_206A_200D_206F_200C_206B_202E_202D_202A_206A_206F_200C_200C_206C_202E_206D_202C_206A_206E_202E_202A_200E_206E_202B_202E_202B_206B_202C_200B_200D_200C_202E_202D_200B_202C_202B_206E_206E_202E(step) == EInteractionType.CompleteQuest) ? (-1909378292) : (-1909378290));
|
||||
while (true)
|
||||
{
|
||||
return null;
|
||||
int num2 = num;
|
||||
int num3 = -1909378291;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 7:
|
||||
num = -1909378290;
|
||||
break;
|
||||
case 0:
|
||||
return null;
|
||||
case 5:
|
||||
return new SetQuestTask(_206F_206E_200D_200E_200B_202B_202B_202D_202D_202B_202E_202D_206F_200E_200B_200D_200E_200D_202B_202C_200E_202E_206C_200B_200E_200D_206D_206A_206F_202D_200C_200E_202B_206B_202D_206B_206E_202B_200B_200E_202E(step), quest.Id);
|
||||
case 4:
|
||||
return null;
|
||||
case 1:
|
||||
num = ((!_200B_202C_200B_206C_202A_200C_206F_206C_200D_202B_200F_200E_206A_200B_200D_202C_200E_206D_206B_202B_200C_202D_200D_206F_202D_200E_206A_202E_200B_202C_206A_202B_202D_206C_200B_200F_202E_206D_206B_206F_202E(_206F_206E_200D_200E_200B_202B_202B_202D_202D_202B_202E_202D_206F_200E_200B_200D_200E_200D_202B_202C_200E_202E_206C_200B_200E_200D_206D_206A_206F_202D_200C_200E_202B_206B_202D_206B_206E_202B_200B_200E_202E(step), (ElementId)null)) ? (-1909378293) : (-1909378299));
|
||||
break;
|
||||
case 6:
|
||||
num = ((!_200B_202C_200B_206C_202A_200C_206F_206C_200D_202B_200F_200E_206A_200B_200D_202C_200E_206D_206B_202B_200C_202D_200D_206F_202D_200E_206A_202E_200B_202C_206A_202B_202D_206C_200B_200F_202E_206D_206B_206F_202E(_206F_206E_200D_200E_200B_202B_202B_202D_202D_202B_202E_202D_206F_200E_200B_200D_200E_200D_202B_202C_200E_202E_206C_200B_200E_200D_206D_206A_206F_202D_200C_200E_202B_206B_202D_206B_206E_202B_200B_200E_202E(step), quest.Id)) ? (-1909378289) : (-1909378295));
|
||||
break;
|
||||
case 2:
|
||||
num = ((!questFunctions.GetPriorityQuests(onlyClassAndRoleQuests: true).Contains(_206F_206E_200D_200E_200B_202B_202B_202D_202D_202B_202E_202D_206F_200E_200B_200D_200E_200D_202B_202C_200E_202E_206C_200B_200E_200D_206D_206A_206F_202D_200C_200E_202B_206B_202D_206B_206E_202B_200B_200E_202E(step))) ? (-1909378296) : (-1909378291));
|
||||
break;
|
||||
case 3:
|
||||
return null;
|
||||
case 8:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
if (step.NextQuestId == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
if (step.NextQuestId == quest.Id)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
if (questFunctions.GetPriorityQuests(onlyClassAndRoleQuests: true).Contains(step.NextQuestId))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return new SetQuestTask(step.NextQuestId, quest.Id);
|
||||
}
|
||||
|
||||
static EInteractionType _202A_206F_206D_206A_200D_206F_200C_206B_202E_202D_202A_206A_206F_200C_200C_206C_202E_206D_202C_206A_206E_202E_202A_200E_206E_202B_202E_202B_206B_202C_200B_200D_200C_202E_202D_200B_202C_202B_206E_206E_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.InteractionType;
|
||||
}
|
||||
|
||||
static ElementId _206F_206E_200D_200E_200B_202B_202B_202D_202D_202B_202E_202D_206F_200E_200B_200D_200E_200D_202B_202C_200E_202E_206C_200B_200E_200D_206D_206A_206F_202D_200C_200E_202B_206B_202D_206B_206E_202B_200B_200E_202E(QuestStep P_0)
|
||||
{
|
||||
return P_0.NextQuestId;
|
||||
}
|
||||
|
||||
static bool _200B_202C_200B_206C_202A_200C_206F_206C_200D_202B_200F_200E_206A_200B_200D_202C_200E_206D_206B_202B_200C_202D_200D_206F_202D_200E_206A_202E_200B_202C_206A_202B_202D_206C_200B_200F_202E_206D_206B_206F_202E(ElementId P_0, ElementId P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed record SetQuestTask(ElementId NextQuestId, ElementId CurrentQuestId) : ITask
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _200E_202A_206A_200C_200D_202E_206B_206B_202B_206F_200D_202C_200C_202C_206A_200C_206B_206C_206C_206F_200E_202B_206C_200B_200C_206B_202A_200D_202A_206A_200B_200C_202C_202D_206A_202D_206E_202C_200B_206D_202E(typeof(SetQuestTask).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()
|
||||
{
|
||||
return $"SetNextQuest({NextQuestId})";
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(14, 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>(-2031144159));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(NextQuestId);
|
||||
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)
|
||||
{
|
||||
_202E_206B_202E_200B_200D_200B_206F_206B_202D_202C_200C_200E_206B_206F_206C_202E_206A_206B_200D_202D_206B_206F_206F_202A_202C_206B_202C_206F_202C_206D_200E_200B_202B_202D_206C_200E_202D_206E_202D_200D_202E();
|
||||
_206E_206A_206A_202B_200E_206D_206C_200B_200C_200E_206B_202A_200D_206E_206A_200E_206F_206F_202D_202E_206A_200E_202D_202C_200F_206F_206C_202D_206F_202C_202E_206C_200C_202B_202C_206A_206E_206F_202C_206F_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>(129873473));
|
||||
_202D_202A_206B_200E_206B_200C_206C_206D_202D_202D_202A_202B_200F_202B_206C_206E_202C_200C_206D_200F_206A_200F_200F_202E_200B_200F_206F_200F_200B_206F_202B_202D_200C_206A_200B_206F_200D_206C_200D_206F_202E(builder, (object)NextQuestId);
|
||||
_206E_206A_206A_202B_200E_206D_206C_200B_200C_200E_206B_202A_200D_206E_206A_200E_206F_206F_202D_202E_206A_200E_202D_202C_200F_206F_206C_202D_206F_202C_202E_206C_200C_202B_202C_206A_206E_206F_202C_206F_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>(-1559739733));
|
||||
_202D_202A_206B_200E_206B_200C_206C_206D_202D_202D_202A_202B_200F_202B_206C_206E_202C_200C_206D_200F_206A_200F_200F_202E_200B_200F_206F_200F_200B_206F_202B_202D_200C_206A_200B_206F_200D_206C_200D_206F_202E(builder, (object)CurrentQuestId);
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(SetQuestTask? other)
|
||||
{
|
||||
int num = (((object)this == other) ? (-1393326810) : (-1393326816));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1393326814;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 3:
|
||||
return EqualityComparer<ElementId>.Default.Equals(CurrentQuestId, other.CurrentQuestId);
|
||||
case 2:
|
||||
num = (((object)other == null) ? (-1393326813) : (-1393326809));
|
||||
break;
|
||||
case 6:
|
||||
num = ((!EqualityComparer<ElementId>.Default.Equals(NextQuestId, other.NextQuestId)) ? (-1393326813) : (-1393326815));
|
||||
break;
|
||||
case 4:
|
||||
return true;
|
||||
case 5:
|
||||
num = ((!_206E_200E_200E_200D_202D_206B_206B_200E_200F_206E_202B_200B_202D_206C_202B_202B_200C_206E_200C_202B_202A_206D_202C_200B_206D_206E_206C_206E_202D_202C_200F_206B_200D_200D_200B_200C_202A_206F_200B_202D_202E(EqualityContract, other.EqualityContract)) ? (-1393326813) : (-1393326812));
|
||||
break;
|
||||
case 1:
|
||||
return false;
|
||||
case 0:
|
||||
num = -1393326816;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<SetQuestTask>.Equals(SetQuestTask? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _200E_202A_206A_200C_200D_202E_206B_206B_202B_206F_200D_202C_200C_202C_206A_200C_206B_206C_206C_206F_200E_202B_206C_200B_200C_206B_202A_200D_202A_206A_200B_200C_202C_202D_206A_202D_206E_202C_200B_206D_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static void _202E_206B_202E_200B_200D_200B_206F_206B_202D_202C_200C_200E_206B_206F_206C_202E_206A_206B_200D_202D_206B_206F_206F_202A_202C_206B_202C_206F_202C_206D_200E_200B_202B_202D_206C_200E_202D_206E_202D_200D_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _206E_206A_206A_202B_200E_206D_206C_200B_200C_200E_206B_202A_200D_206E_206A_200E_206F_206F_202D_202E_206A_200E_202D_202C_200F_206F_206C_202D_206F_202C_202E_206C_200C_202B_202C_206A_206E_206F_202C_206F_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _202D_202A_206B_200E_206B_200C_206C_206D_202D_202D_202A_202B_200F_202B_206C_206E_202C_200C_206D_200F_206A_200F_200F_202E_200B_200F_206F_200F_200B_206F_202B_202D_200C_206A_200B_206F_200D_206C_200D_206F_202E(StringBuilder P_0, object P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _206E_200E_200E_200D_202D_206B_206B_200E_200F_206E_202B_200B_202D_206C_202B_202B_200C_206E_200C_202B_202A_206D_202C_200B_206D_206E_206C_206E_202D_202C_200F_206B_200D_200D_200B_200C_202A_206F_200B_202D_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class NextQuestExecutor(QuestRegistry questRegistry, QuestController questController, QuestFunctions questFunctions, ILogger<NextQuestExecutor> logger) : TaskExecutor<SetQuestTask>()
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
protected override bool Start()
|
||||
{
|
||||
QuestController.EAutomationType automationType = questController.AutomationType;
|
||||
Quest quest;
|
||||
if ((uint)(automationType - 3) <= 1u)
|
||||
int num = (((uint)(automationType - 3) > 1u) ? (-54591417) : (-54591410));
|
||||
bool flag = default(bool);
|
||||
Quest quest = default(Quest);
|
||||
while (true)
|
||||
{
|
||||
logger.LogInformation("Won't set next quest to {QuestId}, automation type is CurrentQuestOnly", base.Task.NextQuestId);
|
||||
questController.SetNextQuest(null);
|
||||
int num2 = num;
|
||||
int num3 = -54591409;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
num = ((!flag) ? (-54591415) : (-54591411));
|
||||
break;
|
||||
case 8:
|
||||
flag = false;
|
||||
num = -54591409;
|
||||
break;
|
||||
case 7:
|
||||
return true;
|
||||
case 6:
|
||||
num = ((!questFunctions.IsQuestLocked(base.Task.NextQuestId, base.Task.CurrentQuestId)) ? (-54591414) : (-54591418));
|
||||
break;
|
||||
case 3:
|
||||
num = -54591410;
|
||||
break;
|
||||
case 2:
|
||||
_206A_200F_206F_206E_200E_200E_206D_202C_200C_200D_202C_200C_202D_206F_202A_202A_200B_200E_200E_202D_202B_200D_206A_206E_200B_200F_206E_202C_206E_206E_200D_202C_206E_200F_200F_200E_206C_206F_206C_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>(-517035289), new object[1] { base.Task.NextQuestId });
|
||||
questController.SetNextQuest(null);
|
||||
num = -54591416;
|
||||
break;
|
||||
case 10:
|
||||
_206A_200F_206F_206E_200E_200E_206D_202C_200C_200D_202C_200C_202D_206F_202A_202A_200B_200E_200E_202D_202B_200D_206A_206E_200B_200F_206E_202C_206E_206E_200D_202C_206E_200F_200F_200E_206C_206F_206C_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>(-2109635352), new object[2]
|
||||
{
|
||||
base.Task.NextQuestId,
|
||||
quest.Info.Name
|
||||
});
|
||||
questController.SetNextQuest(quest);
|
||||
num = -54591416;
|
||||
break;
|
||||
case 9:
|
||||
_206A_200F_206F_206E_200E_200E_206D_202C_200C_200D_202C_200C_202D_206F_202A_202A_200B_200E_200E_202D_202B_200D_206A_206E_200B_200F_206E_202C_206E_206E_200D_202C_206E_200F_200F_200E_206C_206F_206C_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>(-1849595001), new object[1] { base.Task.NextQuestId });
|
||||
questController.SetNextQuest(null);
|
||||
num = -54591416;
|
||||
break;
|
||||
case 1:
|
||||
flag = true;
|
||||
num = -54591409;
|
||||
break;
|
||||
case 4:
|
||||
_206A_200F_206F_206E_200E_200E_206D_202C_200C_200D_202C_200C_202D_206F_202A_202A_200B_200E_200E_202D_202B_200D_206A_206E_200B_200F_206E_202C_206E_206E_200D_202C_206E_200F_200F_200E_206C_206F_206C_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>(1489956066), new object[1] { base.Task.NextQuestId });
|
||||
questController.SetNextQuest(null);
|
||||
num = -54591416;
|
||||
break;
|
||||
case 5:
|
||||
num = ((!questRegistry.TryGetQuest(base.Task.NextQuestId, out quest)) ? (-54591413) : (-54591419));
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (questFunctions.IsQuestLocked(base.Task.NextQuestId, base.Task.CurrentQuestId))
|
||||
{
|
||||
logger.LogInformation("Can't set next quest to {QuestId}, quest is locked", base.Task.NextQuestId);
|
||||
questController.SetNextQuest(null);
|
||||
}
|
||||
else if (questRegistry.TryGetQuest(base.Task.NextQuestId, out quest))
|
||||
{
|
||||
logger.LogInformation("Setting next quest to {QuestId}: '{QuestName}'", base.Task.NextQuestId, quest.Info.Name);
|
||||
questController.SetNextQuest(quest);
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.LogInformation("Next quest with id {QuestId} not found", base.Task.NextQuestId);
|
||||
questController.SetNextQuest(null);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override ETaskResult Update()
|
||||
|
|
@ -82,5 +254,10 @@ internal static class NextQuest
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static void _206A_200F_206F_206E_200E_200E_206D_202C_200C_200D_202C_200C_202D_206F_202A_202A_200B_200E_200E_202D_202B_200D_206A_206E_200B_200F_206E_202C_206E_206E_200D_202C_206E_200F_200F_200E_206C_206F_206C_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogInformation(P_1, P_2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue