muffin v6.35 with old pdb
This commit is contained in:
parent
ac85599236
commit
b5d2cc6708
31 changed files with 958 additions and 958 deletions
|
|
@ -179,26 +179,26 @@ internal sealed class CommandHandler : IDisposable
|
|||
{
|
||||
return;
|
||||
}
|
||||
string[] array = arguments.Split(' ');
|
||||
string text = array[0];
|
||||
if (text == null)
|
||||
string[] questId = arguments.Split(' ');
|
||||
string questRoot = questId[0];
|
||||
if (questRoot == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
switch (text.Length)
|
||||
switch (questRoot.Length)
|
||||
{
|
||||
case 4:
|
||||
switch (text[0])
|
||||
switch (questRoot[0])
|
||||
{
|
||||
case 'n':
|
||||
if (text == "next")
|
||||
if (questRoot == "next")
|
||||
{
|
||||
SetNextQuest(array.Skip(1).ToArray());
|
||||
SetNextQuest(questId.Skip(1).ToArray());
|
||||
}
|
||||
break;
|
||||
case 't':
|
||||
{
|
||||
if (!(text == "taxi"))
|
||||
if (!(questRoot == "taxi"))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
@ -246,25 +246,25 @@ internal sealed class CommandHandler : IDisposable
|
|||
}
|
||||
break;
|
||||
case 12:
|
||||
switch (text[0])
|
||||
switch (questRoot[0])
|
||||
{
|
||||
case 'a':
|
||||
if (text == "abandon-duty")
|
||||
if (questRoot == "abandon-duty")
|
||||
{
|
||||
_gameFunctions.AbandonDuty();
|
||||
}
|
||||
break;
|
||||
case 'u':
|
||||
{
|
||||
if (!(text == "unlock-links"))
|
||||
if (!(questRoot == "unlock-links"))
|
||||
{
|
||||
break;
|
||||
}
|
||||
IReadOnlyList<uint> unlockLinks = _gameFunctions.GetUnlockLinks();
|
||||
if (unlockLinks.Count >= 0)
|
||||
IReadOnlyList<uint> questNode = _gameFunctions.GetUnlockLinks();
|
||||
if (questNode.Count >= 0)
|
||||
{
|
||||
_chatGui.Print($"Saved {unlockLinks.Count} unlock links to log.", "Questionable", 576);
|
||||
List<uint> list6 = unlockLinks.Except(_previouslyUnlockedUnlockLinks).ToList();
|
||||
_chatGui.Print($"Saved {questNode.Count} unlock links to log.", "Questionable", 576);
|
||||
List<uint> list6 = questNode.Except(_previouslyUnlockedUnlockLinks).ToList();
|
||||
if (_previouslyUnlockedUnlockLinks.Count > 0 && list6.Count > 0)
|
||||
{
|
||||
_chatGui.Print("New unlock links: " + string.Join(", ", list6), "Questionable", 576);
|
||||
|
|
@ -274,17 +274,17 @@ internal sealed class CommandHandler : IDisposable
|
|||
{
|
||||
_chatGui.PrintError("Could not query unlock links.", "Questionable", 576);
|
||||
}
|
||||
_previouslyUnlockedUnlockLinks = unlockLinks;
|
||||
_previouslyUnlockedUnlockLinks = questNode;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 9:
|
||||
switch (text[0])
|
||||
switch (questRoot[0])
|
||||
{
|
||||
case 'f':
|
||||
{
|
||||
if (!(text == "festivals"))
|
||||
if (!(questRoot == "festivals"))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
@ -312,7 +312,7 @@ internal sealed class CommandHandler : IDisposable
|
|||
}
|
||||
case 'a':
|
||||
{
|
||||
if (!(text == "aethernet"))
|
||||
if (!(questRoot == "aethernet"))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
@ -327,13 +327,13 @@ internal sealed class CommandHandler : IDisposable
|
|||
{
|
||||
item7.Deconstruct(out key, out value10);
|
||||
EAetheryteLocation key2 = key;
|
||||
string text2 = value10;
|
||||
string text = value10;
|
||||
if (aetheryteData.TerritoryIds.TryGetValue(key2, out var value11) && value11 == territoryType)
|
||||
{
|
||||
int num8 = text2.IndexOf(']', StringComparison.Ordinal);
|
||||
int num8 = text.IndexOf(']', StringComparison.Ordinal);
|
||||
if (num8 > 0)
|
||||
{
|
||||
string item3 = text2.Substring(1, num8 - 1);
|
||||
string item3 = text.Substring(1, num8 - 1);
|
||||
hashSet2.Add(item3);
|
||||
}
|
||||
}
|
||||
|
|
@ -347,21 +347,21 @@ internal sealed class CommandHandler : IDisposable
|
|||
{
|
||||
item8.Deconstruct(out key, out value10);
|
||||
EAetheryteLocation eAetheryteLocation = key;
|
||||
string text3 = value10;
|
||||
int num9 = text3.IndexOf(']', StringComparison.Ordinal);
|
||||
string text2 = value10;
|
||||
int num9 = text2.IndexOf(']', StringComparison.Ordinal);
|
||||
if (num9 <= 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
string text4 = text3.Substring(1, num9 - 1);
|
||||
if (hashSet2.Contains(text4))
|
||||
string text3 = text2.Substring(1, num9 - 1);
|
||||
if (hashSet2.Contains(text3))
|
||||
{
|
||||
if (!dictionary.ContainsKey(text4))
|
||||
if (!dictionary.ContainsKey(text3))
|
||||
{
|
||||
dictionary[text4] = new List<(EAetheryteLocation, string, bool)>();
|
||||
dictionary[text3] = new List<(EAetheryteLocation, string, bool)>();
|
||||
}
|
||||
bool item4 = _aetheryteFunctions.IsAetheryteUnlocked(eAetheryteLocation);
|
||||
dictionary[text4].Add((eAetheryteLocation, text3, item4));
|
||||
dictionary[text3].Add((eAetheryteLocation, text2, item4));
|
||||
}
|
||||
}
|
||||
{
|
||||
|
|
@ -404,32 +404,32 @@ internal sealed class CommandHandler : IDisposable
|
|||
}
|
||||
break;
|
||||
case 5:
|
||||
if (text == "setup")
|
||||
if (questRoot == "setup")
|
||||
{
|
||||
_oneTimeSetupWindow.IsOpenAndUncollapsed = true;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (text == "do")
|
||||
if (questRoot == "do")
|
||||
{
|
||||
ConfigureDebugOverlay(array.Skip(1).ToArray());
|
||||
ConfigureDebugOverlay(questId.Skip(1).ToArray());
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (text == "sim")
|
||||
if (questRoot == "sim")
|
||||
{
|
||||
SetSimulatedQuest(array.Skip(1).ToArray());
|
||||
SetSimulatedQuest(questId.Skip(1).ToArray());
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
if (text == "mountid")
|
||||
if (questRoot == "mountid")
|
||||
{
|
||||
PrintMountId();
|
||||
}
|
||||
break;
|
||||
case 11:
|
||||
{
|
||||
if (!(text == "quest-kills"))
|
||||
if (!(questRoot == "quest-kills"))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
@ -629,21 +629,21 @@ internal sealed class CommandHandler : IDisposable
|
|||
|
||||
private void ConfigureDebugOverlay(string[] arguments)
|
||||
{
|
||||
ElementId elementId;
|
||||
ElementId name;
|
||||
if (!_debugOverlay.DrawConditions())
|
||||
{
|
||||
_chatGui.PrintError("You don't have the debug overlay enabled.", "Questionable", 576);
|
||||
}
|
||||
else if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out elementId) && elementId != null)
|
||||
else if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out name) && name != null)
|
||||
{
|
||||
if (_questRegistry.TryGetQuest(elementId, out Questionable.Model.Quest quest))
|
||||
if (_questRegistry.TryGetQuest(name, out Questionable.Model.Quest quest))
|
||||
{
|
||||
_debugOverlay.HighlightedQuest = quest.Id;
|
||||
_chatGui.Print($"Set highlighted quest to {elementId} ({quest.Info.Name}).", "Questionable", 576);
|
||||
_chatGui.Print($"Set highlighted quest to {name} ({quest.Info.Name}).", "Questionable", 576);
|
||||
}
|
||||
else
|
||||
{
|
||||
_chatGui.PrintError($"Unknown quest {elementId}.", "Questionable", 576);
|
||||
_chatGui.PrintError($"Unknown quest {name}.", "Questionable", 576);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -716,11 +716,11 @@ internal sealed class CommandHandler : IDisposable
|
|||
|
||||
private void PrintMountId()
|
||||
{
|
||||
ushort? mountId = _gameFunctions.GetMountId();
|
||||
if (mountId.HasValue)
|
||||
ushort? allQuests = _gameFunctions.GetMountId();
|
||||
if (allQuests.HasValue)
|
||||
{
|
||||
Mount? rowOrDefault = _dataManager.GetExcelSheet<Mount>().GetRowOrDefault(mountId.Value);
|
||||
_chatGui.Print($"Mount ID: {mountId}, Name: {rowOrDefault?.Singular}, Obtainable: {((rowOrDefault?.Order == -1) ? "No" : "Yes")}", "Questionable", 576);
|
||||
Mount? rowOrDefault = _dataManager.GetExcelSheet<Mount>().GetRowOrDefault(allQuests.Value);
|
||||
_chatGui.Print($"Mount ID: {allQuests}, Name: {rowOrDefault?.Singular}, Obtainable: {((rowOrDefault?.Order == -1) ? "No" : "Yes")}", "Questionable", 576);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue