Only set start time in resetQuestState() when new status is started

This commit is contained in:
Dev 2023-11-30 10:13:45 +00:00
parent 9ed5869fa6
commit b52ea4f1fa

View File

@ -748,7 +748,13 @@ export class QuestHelper
const currentTimestamp = this.timeUtil.getTimestamp(); const currentTimestamp = this.timeUtil.getTimestamp();
questToUpdate.status = newQuestState; questToUpdate.status = newQuestState;
// Only set start time when quest is being started
if (newQuestState === QuestStatus.Started)
{
questToUpdate.startTime = currentTimestamp; questToUpdate.startTime = currentTimestamp;
}
questToUpdate.statusTimers[newQuestState] = currentTimestamp; questToUpdate.statusTimers[newQuestState] = currentTimestamp;
// Delete all status timers after applying new status // Delete all status timers after applying new status