forked from liza/Questionable
master #3
@ -41,6 +41,7 @@ internal static class Combat
|
|||||||
ArgumentNullException.ThrowIfNull(step.DataId);
|
ArgumentNullException.ThrowIfNull(step.DataId);
|
||||||
|
|
||||||
yield return interactFactory.Interact(step.DataId.Value, quest, EInteractionType.None, true);
|
yield return interactFactory.Interact(step.DataId.Value, quest, EInteractionType.None, true);
|
||||||
|
yield return new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(2));
|
||||||
yield return CreateTask(quest, sequence, step);
|
yield return CreateTask(quest, sequence, step);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -52,11 +53,15 @@ internal static class Combat
|
|||||||
|
|
||||||
yield return useItemFactory.OnObject(quest.Id, step.DataId.Value, step.ItemId.Value,
|
yield return useItemFactory.OnObject(quest.Id, step.DataId.Value, step.ItemId.Value,
|
||||||
step.CompletionQuestVariablesFlags, true);
|
step.CompletionQuestVariablesFlags, true);
|
||||||
|
yield return new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(2));
|
||||||
yield return CreateTask(quest, sequence, step);
|
yield return CreateTask(quest, sequence, step);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case EEnemySpawnType.AutoOnEnterArea:
|
case EEnemySpawnType.AutoOnEnterArea:
|
||||||
|
if (step.CombatDelaySecondsAtStart == null)
|
||||||
|
yield return new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(2));
|
||||||
|
|
||||||
// automatically triggered when entering area, i.e. only unmount
|
// automatically triggered when entering area, i.e. only unmount
|
||||||
yield return CreateTask(quest, sequence, step);
|
yield return CreateTask(quest, sequence, step);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user