From 8ff5202a1fef0f4b30e640b2396b1cc9758f67e1 Mon Sep 17 00:00:00 2001 From: MrZ_26 Date: Sat, 8 Aug 2020 15:11:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E8=AE=BE=E7=BD=AEdas/arr?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/timer.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Zframework/timer.lua b/Zframework/timer.lua index 12c00d2e..03e3e6cd 100644 --- a/Zframework/timer.lua +++ b/Zframework/timer.lua @@ -317,7 +317,15 @@ function Tmr.setting_control() if T.das>0 then T.das=T.das-1 if T.das==0 then - T.pos=T.pos+T.dir + if T.arr==0 then + T.pos=T.pos+7*T.dir + T.das=setting.das + T.arr=setting.arr + T.dir=-T.dir + T.wait=26 + else + T.pos=T.pos+T.dir + end end else T.arr=T.arr-1