Add default combat delay to all non-overworld enemy encounters

pull/34/head
Liza 2024-08-25 16:24:54 +02:00
parent ca4bc07eeb
commit 0ac2fae4b9
Signed by: liza
GPG Key ID: 7199F8D727D55F67
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,7 @@ internal static class Combat
ArgumentNullException.ThrowIfNull(step.DataId);
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);
break;
}
@ -52,11 +53,15 @@ internal static class Combat
yield return useItemFactory.OnObject(quest.Id, step.DataId.Value, step.ItemId.Value,
step.CompletionQuestVariablesFlags, true);
yield return new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(2));
yield return CreateTask(quest, sequence, step);
break;
}
case EEnemySpawnType.AutoOnEnterArea:
if (step.CombatDelaySecondsAtStart == null)
yield return new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(2));
// automatically triggered when entering area, i.e. only unmount
yield return CreateTask(quest, sequence, step);
break;