Fixed some comment formats.
This commit is contained in:
parent
73a4d7b9fd
commit
fca9fd3c50
1 changed files with 10 additions and 7 deletions
|
@ -230,15 +230,15 @@ function core:ResetValorPoints()
|
||||||
end
|
end
|
||||||
|
|
||||||
function core:GetNextVPReset()
|
function core:GetNextVPReset()
|
||||||
--prepare calendar
|
-- We need to have access to the instance lockouts on the calendar.
|
||||||
local currentCalendarSetting = GetCVar('calendarShowResets') -- get current value and store
|
local currentCalendarSetting = GetCVar('calendarShowResets')
|
||||||
SetCVar('calendarShowResets', 1) -- set it to what we want
|
SetCVar('calendarShowResets', 1)
|
||||||
|
|
||||||
--figure out what time the server resets daily information
|
-- Figure out what time the server resets daily information
|
||||||
local questReset = GetQuestResetTime()
|
local questReset = GetQuestResetTime()
|
||||||
local resetTime = date('*t', time() + questReset)
|
local resetTime = date('*t', time() + questReset)
|
||||||
|
|
||||||
--figure out reset day using next BH lockout
|
-- Figure out reset day using next BH lockout
|
||||||
local _, month, day, year = CalendarGetDate()
|
local _, month, day, year = CalendarGetDate()
|
||||||
|
|
||||||
local monthOffset = 0
|
local monthOffset = 0
|
||||||
|
@ -266,10 +266,10 @@ function core:GetNextVPReset()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--return calendar
|
-- Reset the calendar to the original settings
|
||||||
SetCVar('calendarShowResets', currentCalendarSetting)
|
SetCVar('calendarShowResets', currentCalendarSetting)
|
||||||
|
|
||||||
--and combine for the reset timestamp
|
-- And combine for the reset timestamp
|
||||||
if(resetDate ~= nil) then
|
if(resetDate ~= nil) then
|
||||||
resetDate.hour = resetTime.hour
|
resetDate.hour = resetTime.hour
|
||||||
resetDate.min = resetTime.min
|
resetDate.min = resetTime.min
|
||||||
|
@ -279,6 +279,9 @@ function core:GetNextVPReset()
|
||||||
else
|
else
|
||||||
vpResetTime = nil
|
vpResetTime = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Update after we have the vpResetTime to make sure we set valor points
|
||||||
|
core:UpdateChores()
|
||||||
end
|
end
|
||||||
|
|
||||||
function core:DrawTooltip()
|
function core:DrawTooltip()
|
||||||
|
|
Loading…
Reference in a new issue