From 2e9260ace5b4c31bfb81ad1f64bd52513d2ffd06 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 4 Mar 2021 17:53:38 +0800 Subject: [PATCH] =?UTF-8?q?freshDate=E5=87=BD=E6=95=B0=E4=BC=9A=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=98=AF=E5=90=A6=E5=88=B7=E6=96=B0=E4=BA=86=E5=AD=98?= =?UTF-8?q?=E6=A1=A3=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/gametoolfunc.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index 261c71fc..0856c552 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -471,12 +471,16 @@ function generateLine(hole) -- return 2^10-1-2^(hole-1) return 1023-2^(hole-1) end -function freshDate() +function freshDate(mode) + if not mode then mode=""end local date=os.date("%Y/%m/%d") if STAT.date~=date then STAT.date=date STAT.todayTime=0 - LOG.print(text.newDay,"message") + if not mode:find("q")then + LOG.print(text.newDay,"message") + end + return true end end function legalGameTime()--Check if today's playtime is legal