From 2e2d129871089000b52e43f4a379d990b3ca3195 Mon Sep 17 00:00:00 2001 From: Matthe815 Date: Thu, 16 Nov 2023 11:10:46 -0500 Subject: [PATCH] docs: Fix annotation for custom quest conditions --- server/channelserver/handlers_quest.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/channelserver/handlers_quest.go b/server/channelserver/handlers_quest.go index 91a000c5b..999519766 100644 --- a/server/channelserver/handlers_quest.go +++ b/server/channelserver/handlers_quest.go @@ -80,7 +80,8 @@ func seasonConversion(s *Session, questFile string) string { return questFile } - // For custom quests, we need to return the day or night version of the quest. + // If the code reaches this point, it's most likely a custom quest with no seasonal variations in the files. + // Since event quests when seasonal pick day or night and the client requests either one, we need to differentiate between the two to prevent issues. var time string if TimeGameAbsolute() > 2880 { @@ -89,7 +90,7 @@ func seasonConversion(s *Session, questFile string) string { time = "n" } - // Request a file based on day or night + // Request a D0 or N0 file depending on the time of day. The time of day matters since the client will quite a few issues if it's different to the one it requests. return fmt.Sprintf("%s%s%d", questFile[:5], time, 0) } }