muffin v6.35 with old pdb

This commit is contained in:
alydev 2025-10-29 06:52:53 +10:00
parent ac85599236
commit b5d2cc6708
31 changed files with 958 additions and 958 deletions

View file

@ -73,7 +73,7 @@ internal sealed class QuestInfo : IQuestInfo
public QuestInfo(Lumina.Excel.Sheets.Quest quest, uint newGamePlusChapter, byte startingCity, JournalGenreOverrides journalGenreOverrides, bool isSeasonalEventQuest = false, DateTime? seasonalQuestExpiry = null)
{
QuestId = Questionable.Model.Questing.QuestId.FromRowId(quest.RowId);
string value = QuestId.Value switch
string localPlayer = QuestId.Value switch
{
85 => " (Lancer)",
108 => " (Marauder)",
@ -90,7 +90,7 @@ internal sealed class QuestInfo : IQuestInfo
1434 => " (Ul'dah)",
_ => "",
};
Name = $"{quest.Name}{value}";
Name = $"{quest.Name}{localPlayer}";
Level = quest.ClassJobLevel[0];
IssuerDataId = quest.IssuerStart.RowId;
IsRepeatable = quest.IsRepeatable;
@ -144,9 +144,9 @@ internal sealed class QuestInfo : IQuestInfo
tuple = (quest.JournalGenre.ValueNullable?.RowId, null);
break;
}
(uint?, ushort?) tuple2 = tuple;
JournalGenre = tuple2.Item1;
SortKey = tuple2.Item2 ?? quest.SortKey;
(uint?, ushort?) battleChara = tuple;
JournalGenre = battleChara.Item1;
SortKey = battleChara.Item2 ?? quest.SortKey;
JournalGenre? valueNullable = quest.JournalGenre.ValueNullable;
IsMainScenarioQuest = valueNullable.HasValue && valueNullable.GetValueOrDefault().Icon == 61412;
CompletesInstantly = quest.TodoParams[0].ToDoCompleteSeq == 0;
@ -210,16 +210,16 @@ internal sealed class QuestInfo : IQuestInfo
}
QuestLockJoin = questJoin;
ImmutableList<QuestId> questLocks = QuestLocks;
int num = 0;
int festival = 0;
QuestId[] array = new QuestId[questLocks.Count + questId.Length];
foreach (QuestId item in questLocks)
{
array[num] = item;
num++;
array[festival] = item;
festival++;
}
ReadOnlySpan<QuestId> readOnlySpan = new ReadOnlySpan<QuestId>(questId);
readOnlySpan.CopyTo(new Span<QuestId>(array).Slice(num, readOnlySpan.Length));
num += readOnlySpan.Length;
readOnlySpan.CopyTo(new Span<QuestId>(array).Slice(festival, readOnlySpan.Length));
festival += readOnlySpan.Length;
QuestLocks = ImmutableList.Create(new ReadOnlySpan<QuestId>(array));
}
}

View file

@ -31,11 +31,11 @@ internal sealed class QuestProgressInfo
Variables = questWork.Variables.ToArray().ToList();
IsHidden = questWork.IsHidden;
ClassJob = (EClassJob)questWork.AcceptClassJob;
Span<byte> variables = questWork.Variables;
Span<byte> progress = questWork.Variables;
string text = "";
for (int i = 0; i < variables.Length; i++)
for (int i = 0; i < progress.Length; i++)
{
text = text + variables[i] + " ";
text = text + progress[i] + " ";
if (i % 2 == 1)
{
text += " ";