整理代码

This commit is contained in:
MrZ626
2021-07-22 00:14:24 +08:00
parent 35c38387e1
commit 9d52cf27d8

View File

@@ -4,7 +4,9 @@ local CUSTOMENV=CUSTOMENV
local function notAir(L) local function notAir(L)
for i=1,10 do for i=1,10 do
if L[i]>0 then return true end if L[i]>0 then
return true
end
end end
end end
local sList={ local sList={
@@ -55,11 +57,11 @@ function scene.keyDown(key,isRep)
MES.new('error',text.ai_fixed) MES.new('error',text.ai_fixed)
return return
elseif #BAG>0 then elseif #BAG>0 then
for _=1,#BAG do for _=1,#BAG do
if BAG[_]>7 then if BAG[_]>7 then
MES.new('error',text.ai_prebag) MES.new('error',text.ai_prebag)
return return
end end
end end
elseif #MISSION>0 then elseif #MISSION>0 then
MES.new('error',text.ai_mission) MES.new('error',text.ai_mission)