新增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

@@ -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()