新增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, drop=5,lock=30,
task=function(P)P.modeData.maxCombo=0 end, task=function(P)P.modeData.maxCombo=0 end,
dropPiece=check_c4w, dropPiece=check_c4w,
freshLimit=15,ospin=false, freshLimit=15,ospin=false,initSkip=true,
bg='rgb',bgm='oxygen', bg='rgb',bgm='oxygen',
}, },
pauseLimit=true, pauseLimit=true,

View File

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

View File

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

View File

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