Core/Instances: Add new config options to control the time when both daily and weekly resets occur (will not be restricted to instances only)

Port From (https://github.com/TrinityCore/TrinityCore/commit/cedf09f93c44be2abf1c2b40e0e4c51f95f2975c)
This commit is contained in:
hondacrx
2022-10-04 17:02:16 -04:00
parent 8d2770081b
commit 276d199a6f
4 changed files with 22 additions and 11 deletions
+2 -1
View File
@@ -541,7 +541,8 @@ namespace Game
Values[WorldCfg.InstanceIgnoreRaid] = GetDefaultValue("Instance.IgnoreRaid", false);
Values[WorldCfg.CastUnstuck] = GetDefaultValue("CastUnstuck", true);
Values[WorldCfg.InstanceResetTimeHour] = GetDefaultValue("Instance.ResetTimeHour", 4);
Values[WorldCfg.ResetScheduleWeekDay] = GetDefaultValue("ResetSchedule.WeekDay", 2);
Values[WorldCfg.ResetScheduleHour] = GetDefaultValue("ResetSchedule.Hour", 8);
Values[WorldCfg.InstanceUnloadDelay] = GetDefaultValue("Instance.UnloadDelay", 30 * Time.Minute * Time.InMilliseconds);
Values[WorldCfg.DailyQuestResetTimeHour] = GetDefaultValue("Quests.DailyResetTime", 3);
if ((int)Values[WorldCfg.DailyQuestResetTimeHour] > 23)