规范代码,大量xxx=nil换成xxx=false

This commit is contained in:
MrZ626
2020-12-22 14:54:01 +08:00
parent f611199fab
commit fe2abf6903
25 changed files with 127 additions and 128 deletions

View File

@@ -5,7 +5,6 @@ return{
drop=1e99,lock=1e99,
holdCount=0,
dropPiece=function(P)P:lose()end,
task=nil,
bg="bg1",bgm="new era",
},
pauseLimit=true,

View File

@@ -61,7 +61,7 @@ return{
PLY.newPlayer(1)
local L=GAME.modeEnv.opponent
if L~=0 then
GAME.modeEnv.target=nil
GAME.modeEnv.target=false
if L<6 then
PLY.newAIPlayer(2,AIBUILDER("9S",2*L))
else

View File

@@ -42,7 +42,7 @@ return{
PLY.newPlayer(1)
local L=GAME.modeEnv.opponent
if L~=0 then
GAME.modeEnv.target=nil
GAME.modeEnv.target=false
if L<6 then
PLY.newAIPlayer(2,AIBUILDER("9S",2*L))
else

View File

@@ -7,7 +7,7 @@ local function check_LVup(P)
--Stage 1: clear 3 techrash
if T==12 then--Stage 2: swap color of S/Z & J/L
P.waiting=30
P.curMission=nil
P.curMission=false
ENV.skin[1],ENV.skin[2]=ENV.skin[2],ENV.skin[1]
ENV.skin[3],ENV.skin[4]=ENV.skin[4],ENV.skin[3]