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,4 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Plugin.Services;
|
||||
using Questionable.Model;
|
||||
using Questionable.Model.Questing;
|
||||
|
|
@ -12,7 +13,14 @@ internal sealed class SimulateQuestCommandHandler : IDebugCommandHandler
|
|||
|
||||
private readonly IChatGui _chatGui;
|
||||
|
||||
public string CommandName => "sim";
|
||||
public string CommandName
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
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>(408484576);
|
||||
}
|
||||
}
|
||||
|
||||
public SimulateQuestCommandHandler(QuestController questController, QuestRegistry questRegistry, IChatGui chatGui)
|
||||
{
|
||||
|
|
@ -21,38 +29,126 @@ internal sealed class SimulateQuestCommandHandler : IDebugCommandHandler
|
|||
_chatGui = chatGui;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public void Execute(string[] arguments)
|
||||
{
|
||||
if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out ElementId elementId) && elementId != null)
|
||||
int num = ((arguments.Length < 1) ? 75346620 : 75346609);
|
||||
int step = default(int);
|
||||
int result = default(int);
|
||||
ElementId elementId = default(ElementId);
|
||||
byte result2 = default(byte);
|
||||
byte sequence = default(byte);
|
||||
QuestSequence questSequence = default(QuestSequence);
|
||||
Quest quest = default(Quest);
|
||||
while (true)
|
||||
{
|
||||
if (_questRegistry.TryGetQuest(elementId, out Quest quest))
|
||||
int num2 = num;
|
||||
int num3 = 75346615;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 12:
|
||||
step = result;
|
||||
num = 75346611;
|
||||
break;
|
||||
case 7:
|
||||
{
|
||||
IChatGui chatGui2 = _chatGui;
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler2 = new DefaultInterpolatedStringHandler(15, 1);
|
||||
defaultInterpolatedStringHandler2.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>(-742005049));
|
||||
defaultInterpolatedStringHandler2.AppendFormatted(elementId);
|
||||
defaultInterpolatedStringHandler2.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>(-404473860));
|
||||
_200B_206F_202C_200F_200E_200C_200E_200B_202C_200F_206F_200D_200E_202A_202D_200C_200D_202B_200C_200B_206B_202B_200C_202A_202D_206F_206E_202B_206E_200E_202D_206D_202E_200E_200D_200E_202E_200F_200D_202B_202E(chatGui2, defaultInterpolatedStringHandler2.ToStringAndClear(), global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1481660241), (ushort?)(ushort)576);
|
||||
return;
|
||||
}
|
||||
case 0:
|
||||
num = ((!byte.TryParse(arguments[1], out result2)) ? 75346611 : 75346614);
|
||||
break;
|
||||
case 9:
|
||||
num = ((!_206F_200B_200F_202E_206B_206A_202C_202B_206A_200B_202E_202B_202C_202A_200C_200B_202B_202D_206E_206C_202E_206A_202A_200C_206B_200F_200F_200B_206E_202C_206C_206A_202B_206D_206F_202D_206E_206E_200C_206B_202E(elementId, (ElementId)null)) ? 75346620 : 75346613);
|
||||
break;
|
||||
case 3:
|
||||
num = ((!int.TryParse(arguments[2], out result)) ? 75346611 : 75346618);
|
||||
break;
|
||||
case 10:
|
||||
num = 75346609;
|
||||
break;
|
||||
case 8:
|
||||
sequence = 0;
|
||||
step = 0;
|
||||
num = ((arguments.Length < 2) ? 75346611 : 75346615);
|
||||
break;
|
||||
case 13:
|
||||
num = ((_206E_200E_202A_206C_202A_200D_206D_200D_202B_202D_200C_200F_202D_202C_202D_202E_206B_202C_206F_200C_206E_206B_202D_206D_206A_206D_200E_202A_206C_206A_206A_206C_206E_206D_206A_206B_200E_206E_206E_200E_202E(questSequence, result) == null) ? 75346611 : 75346619);
|
||||
break;
|
||||
case 11:
|
||||
_questController.SimulateQuest(null, 0, 0);
|
||||
_200B_206D_206B_206E_206E_202C_200C_202C_202D_202C_206E_202A_206E_206B_206D_206E_200E_206B_206A_200C_200C_206B_202D_200C_206F_200E_202C_206E_206D_202A_206B_202B_202A_206E_206A_202C_206C_206C_206E_206E_202E(_chatGui, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(31159756), global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(85756196), (ushort?)(ushort)576);
|
||||
return;
|
||||
case 2:
|
||||
num = ((!_questRegistry.TryGetQuest(elementId, out quest)) ? 75346608 : 75346623);
|
||||
break;
|
||||
case 5:
|
||||
sequence = _206A_200B_206E_206D_200F_206F_202A_206A_202D_202E_200F_200E_202C_200E_206C_206F_200C_202A_202E_202E_206C_200F_202C_206A_200B_200F_200E_206F_206D_202A_206E_202A_202A_200B_206C_206D_206A_200D_206E_202B_202E(questSequence);
|
||||
num = ((arguments.Length < 3) ? 75346611 : 75346612);
|
||||
break;
|
||||
case 1:
|
||||
questSequence = quest.FindSequence(result2);
|
||||
num = ((questSequence == null) ? 75346611 : 75346610);
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
byte sequence = 0;
|
||||
int step = 0;
|
||||
if (arguments.Length >= 2 && byte.TryParse(arguments[1], out var result))
|
||||
{
|
||||
QuestSequence questSequence = quest.FindSequence(result);
|
||||
if (questSequence != null)
|
||||
{
|
||||
sequence = questSequence.Sequence;
|
||||
if (arguments.Length >= 3 && int.TryParse(arguments[2], out var result2) && questSequence.FindStep(result2) != null)
|
||||
{
|
||||
step = result2;
|
||||
}
|
||||
}
|
||||
}
|
||||
_questController.SimulateQuest(quest, sequence, step);
|
||||
_chatGui.Print($"Simulating quest {elementId} ({quest.Info.Name}).", "Questionable", 576);
|
||||
IChatGui chatGui = _chatGui;
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(21, 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>(-1180305998));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(elementId);
|
||||
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>(1099691430));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(quest.Info.Name);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1109945913));
|
||||
_200B_206D_206B_206E_206E_202C_200C_202C_202D_202C_206E_202A_206E_206B_206D_206E_200E_206B_206A_200C_200C_206B_202D_200C_206F_200E_202C_206E_206D_202A_206B_202B_202A_206E_206A_202C_206C_206C_206E_206E_202E(chatGui, defaultInterpolatedStringHandler.ToStringAndClear(), global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-1179749275), (ushort?)(ushort)576);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
_chatGui.PrintError($"Unknown quest {elementId}.", "Questionable", 576);
|
||||
case 6:
|
||||
num = ((!_202A_206D_206D_206D_206C_200D_200E_202D_202A_206A_202C_206F_200B_202B_206E_200C_200E_200C_206E_206A_200C_206F_200E_202A_202C_206F_200F_200B_206D_202D_202B_202D_202E_200E_202D_200E_200D_200B_206E_200E_202E(arguments[0], ref elementId)) ? 75346620 : 75346622);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_questController.SimulateQuest(null, 0, 0);
|
||||
_chatGui.Print("Cleared simulated quest.", "Questionable", 576);
|
||||
}
|
||||
}
|
||||
|
||||
void IDebugCommandHandler.Execute(string[] arguments)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Execute
|
||||
this.Execute(arguments);
|
||||
}
|
||||
|
||||
static bool _202A_206D_206D_206D_206C_200D_200E_202D_202A_206A_202C_206F_200B_202B_206E_200C_200E_200C_206E_206A_200C_206F_200E_202A_202C_206F_200F_200B_206D_202D_202B_202D_202E_200E_202D_200E_200D_200B_206E_200E_202E(string P_0, ref ElementId P_1)
|
||||
{
|
||||
return ElementId.TryFromString(P_0, out P_1);
|
||||
}
|
||||
|
||||
static bool _206F_200B_200F_202E_206B_206A_202C_202B_206A_200B_202E_202B_202C_202A_200C_200B_202B_202D_206E_206C_202E_206A_202A_200C_206B_200F_200F_200B_206E_202C_206C_206A_202B_206D_206F_202D_206E_206E_200C_206B_202E(ElementId P_0, ElementId P_1)
|
||||
{
|
||||
return P_0 != P_1;
|
||||
}
|
||||
|
||||
static byte _206A_200B_206E_206D_200F_206F_202A_206A_202D_202E_200F_200E_202C_200E_206C_206F_200C_202A_202E_202E_206C_200F_202C_206A_200B_200F_200E_206F_206D_202A_206E_202A_202A_200B_206C_206D_206A_200D_206E_202B_202E(QuestSequence P_0)
|
||||
{
|
||||
return P_0.Sequence;
|
||||
}
|
||||
|
||||
static QuestStep _206E_200E_202A_206C_202A_200D_206D_200D_202B_202D_200C_200F_202D_202C_202D_202E_206B_202C_206F_200C_206E_206B_202D_206D_206A_206D_200E_202A_206C_206A_206A_206C_206E_206D_206A_206B_200E_206E_206E_200E_202E(QuestSequence P_0, int P_1)
|
||||
{
|
||||
return P_0.FindStep(P_1);
|
||||
}
|
||||
|
||||
static void _200B_206D_206B_206E_206E_202C_200C_202C_202D_202C_206E_202A_206E_206B_206D_206E_200E_206B_206A_200C_200C_206B_202D_200C_206F_200E_202C_206E_206D_202A_206B_202B_202A_206E_206A_202C_206C_206C_206E_206E_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
||||
{
|
||||
P_0.Print(P_1, P_2, P_3);
|
||||
}
|
||||
|
||||
static void _200B_206F_202C_200F_200E_200C_200E_200B_202C_200F_206F_200D_200E_202A_202D_200C_200D_202B_200C_200B_206B_202B_200C_202A_202D_206F_206E_202B_206E_200E_202D_206D_202E_200E_200D_200E_202E_200F_200D_202B_202E(IChatGui P_0, string P_1, string P_2, ushort? P_3)
|
||||
{
|
||||
P_0.PrintError(P_1, P_2, P_3);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue