1
0
forked from liza/Questionable

Support 'ChatMessage' in CompleteQuest steps

This commit is contained in:
Liza 2024-08-27 21:14:22 +02:00
parent 21c9e2fcac
commit b9061b3190
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 9 additions and 1 deletions
Questionable/Controller/Steps/Interactions

View File

@ -28,6 +28,9 @@ internal static class Interact
if (step.Emote != null)
yield break;
if (step.ChatMessage != null)
yield break;
if (step.DataId == null)
yield break;
}

View File

@ -17,7 +17,12 @@ internal static class Say
{
public IEnumerable<ITask> CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
{
if (step.InteractionType != EInteractionType.Say)
if (step.InteractionType is EInteractionType.AcceptQuest or EInteractionType.CompleteQuest)
{
if (step.ChatMessage == null)
return [];
}
else if (step.InteractionType != EInteractionType.Say)
return [];