整理代码
This commit is contained in:
@@ -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)
|
||||||
@@ -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},
|
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
|
||||||
Reference in New Issue
Block a user