From ffb0d25a4324575957e6452b226f3aeb5eb21208 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 19 Nov 2023 13:48:43 -0500 Subject: [PATCH] docs: Fixed and cleaned a bit of the documentation --- server/channelserver/handlers_quest.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/channelserver/handlers_quest.go b/server/channelserver/handlers_quest.go index 24c5f2035..e329dab1b 100644 --- a/server/channelserver/handlers_quest.go +++ b/server/channelserver/handlers_quest.go @@ -225,13 +225,13 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) { continue } - // Count the number of cycles necessary to align quest with actual time. + // Count the number of cycles necessary to align quest with the correct date range. cycleCount := calculateNumberOfCycles(time.Duration(activeDuration+inactiveDuration)*24*time.Hour, startTime) - // Calculate the rotation time based on start time, active duration, and inactive duration + // Calculate the rotation time based on start time, active duration, and inactive duration. rotationTime := startTime.Add(time.Duration(activeDuration+inactiveDuration) * 24 * time.Duration(cycleCount) * time.Hour) if currentTime.After(rotationTime) { - // take the rotationTime and normalize it to midnight + // take the rotationTime and normalize it to midnight as to align with the ingame message for event quest rotation. newRotationTime := time.Date(rotationTime.Year(), rotationTime.Month(), rotationTime.Day(), 0, 0, 0, 0, rotationTime.Location()) newRotationTime = newRotationTime.Add(time.Duration(TimeMidnight().Add(13 * time.Hour).Nanosecond())) @@ -240,7 +240,7 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) { transaction.Rollback() // Rollback if an error occurs break } - startTime = newRotationTime // Set the new start time so the quest can be used immediatelyw + startTime = newRotationTime // Set the new start time so the quest can be used/remove immediately. } // Check if the quest is currently active