From 9d52cf27d87f8071c03d88c4f9679ddd1881125c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 22 Jul 2021 00:14:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/customGame.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/parts/scenes/customGame.lua b/parts/scenes/customGame.lua index 1e7c837c..679e7d6e 100644 --- a/parts/scenes/customGame.lua +++ b/parts/scenes/customGame.lua @@ -4,7 +4,9 @@ local CUSTOMENV=CUSTOMENV local function notAir(L) for i=1,10 do - if L[i]>0 then return true end + if L[i]>0 then + return true + end end end local sList={ @@ -55,11 +57,11 @@ function scene.keyDown(key,isRep) MES.new('error',text.ai_fixed) return elseif #BAG>0 then - for _=1,#BAG do - if BAG[_]>7 then - MES.new('error',text.ai_prebag) - return - end + for _=1,#BAG do + if BAG[_]>7 then + MES.new('error',text.ai_prebag) + return + end end elseif #MISSION>0 then MES.new('error',text.ai_mission) @@ -245,4 +247,4 @@ scene.widgetList={ WIDGET.newSelector{name="bgm", x=1120, y=1030,w=250,color='Y',list=BGM.getList(),disp=CUSval("bgm"),code=function(i)CUSTOMENV.bgm=i BGM.play(i)end}, } -return scene +return scene \ No newline at end of file