punish v6.8.18.0
This commit is contained in:
commit
cfb4dea47e
316 changed files with 554088 additions and 0 deletions
53
Questionable/Questionable.Model/SatisfactionSupplyInfo.cs
Normal file
53
Questionable/Questionable.Model/SatisfactionSupplyInfo.cs
Normal file
|
@ -0,0 +1,53 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using LLib.GameData;
|
||||
using Lumina.Excel.Sheets;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.Model;
|
||||
|
||||
internal sealed class SatisfactionSupplyInfo : IQuestInfo
|
||||
{
|
||||
public ElementId QuestId { get; }
|
||||
|
||||
public string Name { get; }
|
||||
|
||||
public uint IssuerDataId { get; }
|
||||
|
||||
public bool IsRepeatable => true;
|
||||
|
||||
public ImmutableList<PreviousQuestInfo> PreviousQuests { get; }
|
||||
|
||||
public EQuestJoin PreviousQuestJoin => EQuestJoin.All;
|
||||
|
||||
public ushort Level { get; }
|
||||
|
||||
public EAlliedSociety AlliedSociety => EAlliedSociety.None;
|
||||
|
||||
public uint? JournalGenre => null;
|
||||
|
||||
public ushort SortKey { get; }
|
||||
|
||||
public bool IsMainScenarioQuest => false;
|
||||
|
||||
public EExpansionVersion Expansion { get; }
|
||||
|
||||
public IReadOnlyList<EClassJob> ClassJobs { get; } = new global::_003C_003Ez__ReadOnlyArray<EClassJob>(new EClassJob[2]
|
||||
{
|
||||
EClassJob.Miner,
|
||||
EClassJob.Botanist
|
||||
});
|
||||
|
||||
public SatisfactionSupplyInfo(SatisfactionNpc npc)
|
||||
{
|
||||
QuestId = new SatisfactionSupplyNpcId((ushort)npc.RowId);
|
||||
Name = npc.Npc.Value.Singular.ToString();
|
||||
IssuerDataId = npc.Npc.RowId;
|
||||
Level = npc.LevelUnlock;
|
||||
SortKey = QuestId.Value;
|
||||
Expansion = (EExpansionVersion)npc.QuestRequired.Value.Expansion.RowId;
|
||||
PreviousQuestInfo reference = new PreviousQuestInfo(Questionable.Model.Questing.QuestId.FromRowId(npc.QuestRequired.RowId), 0);
|
||||
PreviousQuests = ImmutableList.Create(new ReadOnlySpan<PreviousQuestInfo>(in reference));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue