freshDate函数会返回是否刷新了存档日期
This commit is contained in:
@@ -471,13 +471,17 @@ function generateLine(hole)
|
|||||||
-- return 2^10-1-2^(hole-1)
|
-- return 2^10-1-2^(hole-1)
|
||||||
return 1023-2^(hole-1)
|
return 1023-2^(hole-1)
|
||||||
end
|
end
|
||||||
function freshDate()
|
function freshDate(mode)
|
||||||
|
if not mode then mode=""end
|
||||||
local date=os.date("%Y/%m/%d")
|
local date=os.date("%Y/%m/%d")
|
||||||
if STAT.date~=date then
|
if STAT.date~=date then
|
||||||
STAT.date=date
|
STAT.date=date
|
||||||
STAT.todayTime=0
|
STAT.todayTime=0
|
||||||
|
if not mode:find("q")then
|
||||||
LOG.print(text.newDay,"message")
|
LOG.print(text.newDay,"message")
|
||||||
end
|
end
|
||||||
|
return true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function legalGameTime()--Check if today's playtime is legal
|
function legalGameTime()--Check if today's playtime is legal
|
||||||
if
|
if
|
||||||
|
|||||||
Reference in New Issue
Block a user