新增initSkip功能,允许开局跳过若干个方块

This commit is contained in:
MrZ626
2021-05-13 11:47:29 +08:00
parent 0f30a35ae3
commit a04438dbf8
4 changed files with 10 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ return{
drop=5,lock=30,
task=function(P)P.modeData.maxCombo=0 end,
dropPiece=check_c4w,
freshLimit=15,ospin=false,
freshLimit=15,ospin=false,initSkip=true,
bg='rgb',bgm='oxygen',
},
pauseLimit=true,

View File

@@ -22,7 +22,7 @@ return{
drop=30,lock=60,infHold=true,
task=function(P)P.modeData.maxCombo=0 end,
dropPiece=check_c4w,
freshLimit=15,ospin=false,
freshLimit=15,ospin=false,initSkip=true,
bg='rgb',bgm='oxygen',
},
pauseLimit=true,

View File

@@ -35,7 +35,7 @@ return{
fieldH=20,maxOver=1e99,
nextCount=6,nextStartPos=1,
holdCount=1,infHold=false,phyHold=false,
ospin=true,deepDrop=false,
ospin=true,deepDrop=false,initSkip=false,
RS="TRS",
sequence='bag',
seqData={1,2,3,4,5,6,7},

View File

@@ -1904,8 +1904,13 @@ function Player:act_softDrop()
end
end
function Player:act_hold()
if self.control and self.waiting==-1 then
self:hold()
if self.control then
if self.waiting==-1 then
self:hold()
end
elseif self.gameEnv.initSkip then
rem(self.nextQueue,1)
self.newNext()
end
end
function Player:act_func1()