Skip to content

Commit 7a84d69

Browse files
committed
添加IHdS的开关
1 parent 6a07a67 commit 7a84d69

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

assets/game/brikPlayer.lua

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,17 @@ function BP:popNext(ifHold)
658658

659659
self:triggerEvent('afterSpawn')
660660

661-
if self.keyBuffer.hardDrop then -- IHdS
662-
self.keyBuffer.hardDrop=false
663-
self:brikDropped()
661+
if self.settings.bufferDrop then -- IHdS
662+
if self.settings.bufferDrop=='hold' then
663+
if self.keyState.hardDrop then
664+
self:brikDropped()
665+
end
666+
elseif self.settings.bufferDrop=='buffer' then
667+
if self.keyBuffer.hardDrop then
668+
self.keyBuffer.hardDrop=false
669+
self:brikDropped()
670+
end
671+
end
664672
end
665673
end
666674
---@return Techmino.Brik.Cell
@@ -2041,6 +2049,7 @@ local baseEnv={
20412049
bufferMove='buffer', -- buffer/hold to do initial move
20422050
bufferRotate='buffer', -- buffer/hold to do initial rotate
20432051
bufferHold='buffer', -- buffer/hold to do initial hold
2052+
bufferDrop='buffer', -- buffer/hold to do harddrop
20442053
aHdLock=60, -- Auto harddrop lock
20452054
mHdLock=40, -- Manual harddrop lock
20462055
freshLockInASD=true, -- Fresh lockDelay in auto shift delay

assets/game/gelaPlayer.lua

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,17 @@ function GP:popNext()
463463

464464
self:triggerEvent('afterSpawn')
465465

466-
if self.keyBuffer.hardDrop then -- IHdS
467-
self.keyBuffer.hardDrop=false
468-
self:gelaDropped()
466+
if self.settings.bufferDrop then -- IHdS
467+
if self.settings.bufferDrop=='hold' then
468+
if self.keyState.hardDrop then
469+
self:gelaDropped()
470+
end
471+
elseif self.settings.bufferDrop=='buffer' then
472+
if self.keyBuffer.hardDrop then
473+
self.keyBuffer.hardDrop=false
474+
self:gelaDropped()
475+
end
476+
end
469477
end
470478
end
471479
function GP:getGela(mat)
@@ -1453,6 +1461,7 @@ local baseEnv={
14531461
dblMoveRelInvRedir=true,
14541462
bufferMove='buffer',
14551463
bufferRotate='buffer',
1464+
bufferDrop='buffer',
14561465
aHdLock=60,
14571466
mHdLock=40,
14581467
freshLockInASD=true,

0 commit comments

Comments
 (0)